/*
Theme Name: Vacay with Val
Theme URI: https://vacaywithval.com
Author: Vacay with Val
Description: Custom theme for Vacay with Val (vacaywithval.com). Hidden gems, handpicked. Playfair Display headlines, Inter body text and the Vacay with Val teal palette. Every page is built from native editor blocks. Pair it with the vacay-with-val-pages.xml import file and the Vacay with Val Forms & Membership plugin (forms, Stripe checkout, Itineraries and Places).
Version: 2.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vacay-with-val
Tags: one-column, custom-menu, custom-colors, full-width-template, block-styles
*/

/* ---------- Brand tokens ---------- */
:root {
	--vwv-accent: #3A7676;      /* deep teal: links, buttons, eyebrows (overridable in the Customizer) */
	--vwv-teal: #6FABAB;        /* Valerie Gil brand teal */
	--vwv-teal-light: #B5DADA;  /* buttons on dark bands */
	--vwv-teal-pale: #E7F0EF;   /* pale teal bands */
	--vwv-bg: #F6F4F0;          /* warm off-white page */
	--vwv-ink: #4B4C4E;         /* charcoal text */
	--vwv-muted: #676767;       /* secondary text */
	--vwv-slate: #4F5154;       /* feature bands */
	--vwv-line: #D9D7D2;
	--vwv-serif: 'Playfair Display', Georgia, serif;
	--vwv-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--vwv-bg);
	color: var(--vwv-ink);
	font-family: var(--vwv-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--vwv-ink); }
a:hover { color: var(--vwv-accent); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
	outline: 2px solid var(--vwv-accent);
	outline-offset: 2px;
}
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; border-radius: 8px;
}
.vwv-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Seasonal promo band ---------- */
.vwv-promo { background: var(--vwv-slate); color: var(--vwv-bg); }
.vwv-promo__inner {
	max-width: 1200px; margin: 0 auto; padding: 12px 32px;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: 8px 16px; font-size: 15px; text-align: center;
}
.vwv-promo__lead { font-family: var(--vwv-serif); font-style: italic; font-size: 17px; }
.vwv-promo a { color: var(--vwv-bg); font-weight: 600; }

/* ---------- Header ---------- */
.vwv-header {
	max-width: 1200px; margin: 0 auto; padding: 24px 32px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.vwv-logo {
	font-family: var(--vwv-serif); font-size: 26px; font-weight: 500;
	text-decoration: none; letter-spacing: -0.01em; color: var(--vwv-ink);
}
.vwv-logo em { font-style: italic; }
.vwv-logo .vwv-logo__val { color: var(--vwv-accent); }
.vwv-logo img { max-height: 56px; width: auto; display: block; }
.vwv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.vwv-nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.vwv-nav .current-menu-item > a,
.vwv-nav .current-page-ancestor > a,
.vwv-nav a[aria-current="page"] {
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
	color: var(--vwv-accent); font-weight: 700;
}
.vwv-nav .vwv-button > a,
.vwv-nav a.vwv-button {
	background: var(--vwv-accent); color: #fff; padding: 12px 22px; border-radius: 999px;
	text-decoration: none; font-weight: 500;
}
.vwv-nav .vwv-button > a:hover { color: #fff; filter: brightness(1.08); }
.vwv-nav-toggle {
	display: none; border: 1px solid var(--vwv-line); background: #fff; color: var(--vwv-ink);
	border-radius: 999px; height: 44px; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------- Footer ---------- */
.vwv-footer {
	max-width: 1200px; margin: 0 auto; padding: 40px 32px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
	font-size: 14px; color: var(--vwv-muted);
}
.vwv-footer__name { margin: 0 0 4px; font-family: var(--vwv-serif); font-size: 18px; color: var(--vwv-ink); }
.vwv-footer__name em { font-style: italic; }
.vwv-footer p { margin: 0; }
.vwv-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- Page content ---------- */
.vwv-content { width: 100%; }
.vwv-content > *:first-child { margin-top: 0; }
.vwv-content img[data-mockup] { background: #E3E3E2; }

/* Pages created later in the editor (no designed H1 of their own) */
.vwv-plain { max-width: 820px; margin: 0 auto; padding: 40px 32px 96px; font-size: 18px; }
.vwv-plain h1, .vwv-plain h2, .vwv-plain h3 { font-family: var(--vwv-serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
.vwv-plain h1 { font-size: 56px; margin: 0 0 24px; }
.vwv-plain h2 { font-size: 38px; margin: 48px 0 16px; }
.vwv-plain h3 { font-size: 26px; margin: 32px 0 12px; }
.vwv-plain a { color: var(--vwv-accent); }
.vwv-plain .wp-block-button__link, .vwv-plain button, .vwv-plain input[type="submit"] {
	background: var(--vwv-accent); color: #fff; border: 0; border-radius: 999px;
	padding: 14px 26px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.vwv-plain input[type="text"], .vwv-plain input[type="email"], .vwv-plain input[type="password"],
.vwv-plain select, .vwv-plain textarea {
	width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--vwv-line);
	border-radius: 12px; font: inherit; background: #fff; color: var(--vwv-ink);
}
.vwv-plain textarea { padding: 14px 16px; }
.vwv-eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vwv-accent); }

/* Blog / archive list */
.vwv-post { padding: 28px 0; border-top: 1px solid var(--vwv-line); }
.vwv-post h2 { margin: 0 0 8px; font-size: 32px; }
.vwv-post h2 a { text-decoration: none; }
.vwv-pagination { margin-top: 40px; display: flex; gap: 16px; }

/* ---------- Form messages (from the Vacay with Val Forms plugin) ---------- */
.vwv-form-message a { color: inherit; font-weight: 600; }

/* ---------- Mobile ---------- */
/* Phones: the menu becomes one row you swipe sideways, with "Join the list" kept in view */
@media (max-width: 760px) {
	.vwv-header { padding: 16px 20px 8px; gap: 12px; }
	.vwv-nav-toggle { display: none !important; }
	.vwv-nav { width: 100%; display: block !important; }
	.vwv-nav ul {
		flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 4px 0 10px;
		white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.vwv-nav ul::-webkit-scrollbar { display: none; }
	.vwv-nav li { flex: 0 0 auto; }
	.vwv-nav li:last-child { position: sticky; right: 0; box-shadow: -14px 0 12px var(--vwv-bg); border-radius: 999px; }
	.vwv-nav .vwv-button > a, .vwv-nav a.vwv-button { display: inline-block; padding: 10px 18px; }
	.vwv-content h1, .vwv-plain h1 { font-size: clamp(40px, 11vw, 64px) !important; line-height: 1.05 !important; overflow-wrap: break-word; }
	.vwv-content h2, .vwv-plain h2 { overflow-wrap: break-word; }
	.vwv-content .vwv-gems { background-size: 120px auto !important; background-position: right 20px top 24px !important; padding-top: 24px; }
}
@media (max-width: 700px) {
	.vwv-header, .vwv-footer, .vwv-promo__inner, .vwv-wrap, .vwv-plain { padding-left: 20px; padding-right: 20px; }
	/* The designed pages use inline styles: tame the desktop sizes on phones */
	.vwv-content [style*="max-width: 1200px"],
	.vwv-content [style*="max-width: 860px"],
	.vwv-content [style*="max-width: 960px"],
	.vwv-content [style*="max-width: 1000px"],
	.vwv-content [style*="max-width: 760px"],
	.vwv-content [style*="max-width: 720px"] { padding-left: 20px !important; padding-right: 20px !important; }
	.vwv-content section { padding-top: 56px !important; padding-bottom: 56px !important; }
	.vwv-content section > div[style*="padding: 9"],
	.vwv-content section > div[style*="padding: 8"],
	.vwv-content section > div[style*="padding: 7"] { padding-top: 56px !important; padding-bottom: 56px !important; }
	.vwv-content h2 { font-size: 32px !important; line-height: 1.12 !important; }
	.vwv-content [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
	.vwv-content [style*="flex: 1 1"] { flex-basis: 100% !important; }
	.vwv-content [style*="height: 540px"], .vwv-content [style*="height: 480px"],
	.vwv-content [style*="height: 460px"], .vwv-content [style*="height: 420px"] { height: 320px !important; }
	.vwv-plain h1 { font-size: 40px; }
	/* 16px stops iPhones zooming in when a form field is tapped */
	.vwv-content input:not([type="checkbox"]):not([type="radio"]), .vwv-content select, .vwv-content textarea,
	.vwv-plain input:not([type="checkbox"]):not([type="radio"]), .vwv-plain select, .vwv-plain textarea { font-size: 16px !important; }
	.vwv-content img, .vwv-plain img { max-width: 100%; height: auto; }
	.vwv-plain table { display: block; overflow-x: auto; }
}
@media print {
	.vwv-promo, .vwv-header, .vwv-footer, .no-print { display: none !important; }
	.vwv-gem-page { background: #fff !important; }
}
/* A gem for you: the card page */
.vwv-gem-page { padding: 8px 0 32px; }
