/* =============================================================
   PROPOSAL SANTORINI — Design System
   Luxury / editorial "quiet luxury" aesthetic.
   Palette: Aegean deep blue + warm off-white + muted antique gold.
   Type: Cormorant Garamond (display serif) + Inter (body sans).
   Mobile-first, accessible, performance-minded.
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --ink: #14304a;          /* deep caldera/Aegean blue (primary dark) */
  --ink-deep: #0e2236;     /* darker blue for footer / overlays */
  --sea: #2f5d80;          /* mid Aegean blue (links / accents) */
  --gold: #b18a45;         /* muted antique gold (single accent) */
  --gold-soft: #c9a767;    /* lighter gold for hovers */
  --bone: #faf6ef;         /* warm off-white (page background) */
  --sand: #efe6d8;         /* subtle warm neutral (alt sections) */
  --line: #e2d8c8;         /* hairline borders */
  --char: #2b2a27;         /* body text (near-black, warm) */
  --char-soft: #5b5950;    /* secondary text */
  --white: #ffffff;

  /* Typography */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.75rem, 7vw, 6rem);
  --fs-h1: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.4rem, 2.4vw, 1.9rem);
  --fs-lead: clamp(1.1rem, 1.6vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing / layout */
  --maxw: 1240px;
  --maxw-narrow: 820px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(20, 48, 74, 0.06);
  --shadow-md: 0 18px 50px -20px rgba(20, 48, 74, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(14, 34, 54, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--char);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--sea); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: 0.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1rem;
}

.lead { font-size: var(--fs-lead); color: var(--char-soft); font-weight: 300; line-height: 1.55; }

.serif-accent { font-family: var(--font-serif); font-style: italic; color: var(--sea); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--maxw-narrow); }

section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: rgba(255,255,255,0.85); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.2rem; }

.divider { width: 64px; height: 1px; background: var(--gold); margin: 1.5rem 0; }
.center .divider { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05em 2.1em; border-radius: var(--radius);
  transition: all 0.3s var(--ease); cursor: pointer; text-align: center;
  border: 1px solid transparent; line-height: 1;
}
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--small { padding: 0.8em 1.5em; font-size: 0.72rem; }

.link-arrow {
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.link-arrow::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 7. Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.is-transparent { background: transparent; }
.site-header.is-solid { background: rgba(250, 246, 239, 0.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand svg, .brand img { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink); line-height: 1; white-space: nowrap;
}
.is-transparent .brand__name { color: var(--white); }
.is-transparent .brand .logo-mark [data-ink] { fill: var(--white); }
.is-transparent .brand__name .tld { color: var(--gold-soft); }
.brand__name .tld { color: var(--gold); }

/* Primary nav */
.nav__menu { display: none; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; }
.nav__links > li { position: relative; margin: 0; }
.nav__link {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--char); padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.35em;
  background: none;
}
.is-transparent .nav__link { color: rgba(255,255,255,0.92); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--gold); }
.nav__link .caret { width: 9px; height: 9px; transition: transform 0.3s var(--ease); }
.nav__link[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 268px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 0.6rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: all 0.28s var(--ease); z-index: 50;
}
.nav__links > li:hover .dropdown,
.nav__links > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 0.7rem 0.9rem; border-radius: var(--radius); color: var(--char);
  font-size: 0.92rem; font-family: var(--font-sans); letter-spacing: 0.01em;
}
.dropdown a:hover { background: var(--bone); color: var(--ink); padding-left: 1.2rem; }
.dropdown a small { display: block; font-size: 0.74rem; color: var(--char-soft); letter-spacing: 0; margin-top: 2px; }

.nav__actions { display: flex; align-items: center; gap: 0.9rem; }

/* Language switcher */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--char); padding: 0.5rem 0.4rem;
}
.is-transparent .lang__toggle { color: rgba(255,255,255,0.92); }
.lang__toggle:hover { color: var(--gold); }
.lang__toggle .caret { width: 9px; height: 9px; transition: transform 0.3s var(--ease); }
.lang__toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 168px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  list-style: none; margin: 0; padding: 0.4rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.28s var(--ease); z-index: 60;
}
.lang__menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu li { margin: 0; }
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 0.8rem; border-radius: var(--radius); color: var(--char); font-size: 0.9rem;
}
.lang__menu a:hover { background: var(--bone); color: var(--ink); }
.lang__menu a[aria-current="true"] { color: var(--gold); font-weight: 600; }
.lang__menu a .native { color: var(--char-soft); font-size: 0.78rem; }

.nav__cta { display: none; }

/* Hamburger */
.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 1100; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: all 0.3s var(--ease); }
.is-transparent .nav__toggle span { background: var(--white); }
body.menu-open .nav__toggle span { background: var(--ink); }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1050; background: var(--bone);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column;
}
body.menu-open .mobile-nav { transform: translateX(0); }
.mobile-nav__group { border-bottom: 1px solid var(--line); }
.mobile-nav__group > a,
.mobile-nav__group > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); text-align: left;
}
.mobile-nav__group > button .caret { width: 14px; transition: transform 0.3s var(--ease); }
.mobile-nav__group > button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.mobile-nav__sub.open { max-height: 600px; padding-bottom: 0.8rem; }
.mobile-nav__sub a { display: block; padding: 0.55rem 0 0.55rem 1rem; font-size: 1rem; color: var(--char-soft); }
.mobile-nav__sub a:hover { color: var(--gold); }
.mobile-nav__cta { margin-top: 2rem; }
.mobile-nav__cta .btn { width: 100%; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(4rem, 10vh, 8rem); color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* Cinematic Aegean sunset placeholder gradient (owner: replace with video/photo) */
.hero__media.placeholder {
  background:
    radial-gradient(120% 80% at 75% 18%, rgba(232, 168, 110, 0.55), transparent 55%),
    radial-gradient(100% 70% at 20% 30%, rgba(201, 167, 103, 0.35), transparent 50%),
    linear-gradient(180deg, #1e4061 0%, #2f5d80 38%, #6e7e8f 62%, #c98f5e 84%, #e8b07a 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,34,54,0.45) 0%, rgba(14,34,54,0.08) 40%, rgba(14,34,54,0.55) 100%);
}
.hero__inner { max-width: 760px; }
.hero h1 { color: var(--white); font-size: var(--fs-hero); font-weight: 500; margin-bottom: 1.25rem; text-shadow: 0 2px 30px rgba(14,34,54,0.4); }
.hero .eyebrow { color: var(--gold-soft); }
.hero__sub { font-size: var(--fs-lead); font-weight: 300; max-width: 540px; margin-bottom: 2.2rem; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* Mobile-first: stack the home-hero CTAs full-width so they don't wrap raggedly
   and never collide with the scroll cue (which is hidden below 600px). */
.hero .hero__actions { flex-direction: column; align-items: stretch; }
.hero .hero__actions .btn { width: 100%; }
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 1;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.75);
  display: none; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 38px; background: rgba(255,255,255,0.6); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0%,100% { opacity: 0.3; transform: scaleY(0.4); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Page hero (interior pages) */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem); color: var(--white); overflow: hidden;
}
.page-hero.placeholder-media::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(232, 168, 110, 0.5), transparent 55%),
    linear-gradient(150deg, var(--ink-deep) 0%, var(--ink) 45%, var(--sea) 100%);
}
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,34,54,0.35), rgba(14,34,54,0.55)); }
.page-hero h1 { color: var(--white); margin-top: 0.6rem; }
.page-hero .lead { color: rgba(255,255,255,0.9); margin-top: 1rem; max-width: 640px; }
.page-hero .eyebrow { color: var(--gold-soft); }
/* Page hero with a real photo background (scrim provided by .page-hero::after) */
.page-hero.has-photo { background-size: cover; background-position: center 38%; background-repeat: no-repeat; }

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs { padding-block: 1.1rem; font-size: 0.8rem; border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; align-items: center; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--char-soft); letter-spacing: 0.04em; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--char-soft); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.page-hero + .breadcrumbs { background: var(--white); }

/* ---------- 10. Photo placeholder slots ---------- */
.photo-slot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px),
    linear-gradient(150deg, #d8c3a6 0%, #b9a382 35%, #4d6e85 100%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: rgba(255,255,255,0.95); min-height: 100%;
}
.photo-slot[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.photo-slot[data-ratio="3-4"] { aspect-ratio: 3 / 4; }
.photo-slot[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.photo-slot[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.photo-slot[data-ratio="9-16"] { aspect-ratio: 9 / 16; }
.photo-slot[data-ratio="3-2"] { aspect-ratio: 3 / 2; }
.photo-slot__label {
  padding: 1.2rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; max-width: 90%; line-height: 1.6;
}
.photo-slot__label::before { content: "\1F4F7"; display: block; font-size: 1.4rem; margin-bottom: 0.5rem; opacity: 0.85; }
.photo-slot__label span { display: block; font-weight: 400; text-transform: none; letter-spacing: 0.02em; opacity: 0.85; margin-top: 0.4rem; font-size: 0.72rem; }

/* ---------- 10b. Real photography (replaces placeholder slots) ---------- */
.photo-slot.is-filled { background: var(--ink-deep); }
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.photo-slot.is-filled .photo-slot__label { display: none; }

/* Hero real photo (img may be wrapped in <picture>, so pin it to fill .hero__media) */
.hero__media picture { position: absolute; inset: 0; display: block; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.hero.has-photo::after {
  background: linear-gradient(180deg, rgba(14,34,54,0.42) 0%, rgba(14,34,54,0.10) 32%, rgba(14,34,54,0.30) 60%, rgba(14,34,54,0.72) 100%);
}

/* Hero background video — enhances the still photo; JS only loads it when
   the visitor allows motion and isn't on data-saver, so the WebP stays the LCP. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none !important; } }

/* Full-bleed photo section (e.g. review band) */
.section--photo { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.section--photo > * { position: relative; z-index: 1; }
.section--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(rgba(14,34,54,0.80), rgba(14,34,54,0.86)); }

/* CTA band with real photo */
.cta-band.has-photo { background-size: cover; background-position: center 40%; }
.cta-band.has-photo::after { background: rgba(14,34,54,0.56); }

/* ---------- 11. Grid utilities ---------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.2rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; grid-template-columns: 1fr; }

/* ---------- 12. Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.6rem; }
.card__price { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.15rem; margin-bottom: 0.4rem; }
.card__desc { color: var(--char-soft); font-size: 0.98rem; margin-bottom: 1.3rem; flex: 1; }
.card__foot { margin-top: auto; }
.card__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; background: rgba(20,48,74,0.85); color: #fff;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 0.4rem 0.8rem; border-radius: 100px; backdrop-filter: blur(4px);
}

/* Feature / value tiles */
.feature { text-align: left; }
.feature__icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 1.1rem; }
.feature h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature p { color: var(--char-soft); font-size: 0.98rem; }

/* Stat row */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold); line-height: 1; }
.stat__label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--char-soft); margin-top: 0.6rem; }
.section--ink .stat__label { color: rgba(255,255,255,0.7); }

/* ---------- 13. Split / media-text ---------- */
.media-text__media { position: relative; }
.media-text__body .eyebrow { margin-bottom: 0.8rem; }

/* ---------- 14. Testimonials ---------- */
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote__stars { color: var(--gold); letter-spacing: 0.2em; margin-bottom: 1.5rem; font-size: 1.1rem; }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-style: italic; line-height: 1.3; color: var(--ink); margin-bottom: 1.5rem; }
.section--ink .quote blockquote { color: var(--white); }
.quote cite { font-style: normal; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--char-soft); }
.section--ink .quote cite { color: var(--gold-soft); }

.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.review-card .quote__stars { text-align: left; margin-bottom: 1rem; font-size: 1rem; }
.review-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--ink); line-height: 1.4; margin-bottom: 1.2rem; }
.review-card cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--char-soft); display: block; }
.review-card cite span { display: block; color: var(--gold); margin-top: 0.2rem; letter-spacing: 0.04em; }

/* ---------- 15. Lists / checks ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; color: var(--char-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 2rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.timeline .t-time { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.timeline h4 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0.2rem 0 0.3rem; }
.timeline p { color: var(--char-soft); font-size: 0.95rem; margin: 0; }

/* ---------- 16. FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; text-align: left; font-family: var(--font-serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--ink);
}
.faq__q .icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq__q .icon::before, .faq__q .icon::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.3s var(--ease); }
.faq__q .icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__q .icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__q[aria-expanded="true"] .icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a-inner { padding-bottom: 1.5rem; color: var(--char-soft); }
.faq__a-inner p:first-child { margin-top: 0; }

/* ---------- 17. Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.gallery-filters button {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 0.6rem 1.2rem; border: 1px solid var(--line); border-radius: 100px; color: var(--char-soft);
  transition: all 0.25s var(--ease); background: var(--white);
}
.gallery-filters button:hover { border-color: var(--gold); color: var(--ink); }
.gallery-filters button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.gallery-grid .photo-slot { transition: opacity 0.3s var(--ease); }
.gallery-grid [hidden] { display: none; }

/* ---------- 18. Forms ---------- */
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--char); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(177,138,69,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.82rem; color: var(--char-soft); }
.form__success {
  display: none; padding: 1.5rem; border: 1px solid var(--gold); border-radius: var(--radius-lg);
  background: rgba(177,138,69,0.08); color: var(--ink);
}
.form__success.show { display: block; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.72); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { margin-top: 1rem; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.9rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-soft); flex-shrink: 0; margin-top: 3px; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- 20. CTA band ---------- */
.cta-band { position: relative; text-align: center; overflow: hidden; }
.cta-band.placeholder-media::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 100% at 70% 20%, rgba(232,168,110,0.5), transparent 55%),
    linear-gradient(150deg, var(--ink-deep), var(--ink) 60%, var(--sea));
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,34,54,0.4); }
.cta-band h2 { color: var(--white); max-width: 700px; margin-inline: auto; }
.cta-band .lead { color: rgba(255,255,255,0.88); max-width: 560px; margin: 1.2rem auto 2.2rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- 21. Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 0.7rem var(--gutter);
  background: rgba(250,246,239,0.97); backdrop-filter: blur(8px); box-shadow: 0 -4px 20px rgba(20,48,74,0.1);
  transform: translateY(120%); transition: transform 0.4s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ---------- 22. Cookie consent ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1500; max-width: 460px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem; transform: translateY(150%); transition: transform 0.5s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie h4 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.5rem; }
.cookie p { font-size: 0.86rem; color: var(--char-soft); margin-bottom: 1.2rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie__actions .btn { flex: 1; }

/* ---------- 23. Content prose (blog) ---------- */
.prose { max-width: 740px; margin-inline: auto; }
.prose p, .prose ul, .prose ol { font-size: 1.13rem; line-height: 1.8; color: #36352f; }
.prose h2 { margin: 2.8rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--ink); }
.prose figure { margin: 2.5rem 0; }
.prose figcaption { font-size: 0.82rem; color: var(--char-soft); text-align: center; margin-top: 0.7rem; font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: var(--char-soft); margin-top: 1.2rem; }
.author-chip { display: flex; align-items: center; gap: 0.8rem; }
.author-chip .avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }

.author-box { display: flex; gap: 1.5rem; padding: 2rem; background: var(--sand); border-radius: var(--radius-lg); margin-top: 3rem; align-items: flex-start; }
.author-box .avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-box h4 { font-size: 1.3rem; }
.author-box .credential { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0.2rem 0 0.7rem; }

/* ---------- 24. Team ---------- */
.team-card { text-align: center; align-self: start; }
/* Reset the base .photo-slot min-height:100% here: cards are stretched grid
   items followed by text, so a 100% min-height + aspect-ratio:1/1 would balloon
   the square to the article's full height and overlap siblings/next section. */
.team-card .photo-slot { min-height: 0; margin-bottom: 1.2rem; }
.team-card h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.team-card p { font-size: 0.94rem; color: var(--char-soft); }
.team-card .langs { font-size: 0.8rem; color: var(--char-soft); margin-top: 0.8rem; font-style: italic; }

/* ---------- 25. Pills / meta ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.pill { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--sea); background: rgba(47,93,128,0.08); padding: 0.45rem 0.9rem; border-radius: 100px; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.info-item { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-item h4 { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.info-item p { font-size: 0.96rem; color: var(--char-soft); margin: 0; }

/* Map embed */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* AEO answer box */
.answer-box { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-lg); padding: 1.8rem 2rem; margin-bottom: 2rem; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box strong { color: var(--ink); }

/* Owner note callout */
.owner-note { background: rgba(177,138,69,0.08); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.85rem; color: var(--char-soft); margin: 1.5rem 0; }
.owner-note strong { color: var(--gold); letter-spacing: 0.06em; }

/* ---------- 26. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- 27. Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.full-img { width: 100%; }

/* ---------- 28. Responsive ---------- */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .hero__actions { flex-direction: row; align-items: center; }
  .hero .hero__actions .btn { width: auto; }
  .hero__scroll { display: flex; }
}
@media (min-width: 900px) {
  .nav__cta { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .media-text__media { order: 2; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
  .split--40-60 { grid-template-columns: 0.8fr 1.2fr; }
}
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Primary inline nav needs more room now that it carries 8 items — until then
   the hamburger + drawer (and header CTA) serve tablet widths. */
@media (min-width: 1260px) {
  .nav__menu { display: block; }
  .nav__toggle { display: none; }
}

/* ---------- 29. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 30. Package comparison table ---------- */
/* A real <table> for semantics/desktop that reflows into labelled cards on
   small screens (each <td> carries a data-label used as its mobile heading). */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 720px; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; font-size: 0.95rem;
}
.compare thead th {
  background: var(--ink); color: rgba(255,255,255,0.82);
  font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; text-align: left; padding: 1rem 1.1rem;
}
.compare tbody th, .compare tbody td {
  padding: 1.15rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; text-align: left;
}
.compare tbody tr { transition: background 0.25s var(--ease); }
.compare tbody tr:hover { background: var(--bone); }
.compare tbody th { font-weight: 400; }
.compare .pkg-name { font-family: var(--font-serif); font-size: 1.22rem; color: var(--ink); line-height: 1.2; }
.compare .pkg-best { display: block; font-size: 0.8rem; color: var(--char-soft); margin-top: 0.25rem; }
.compare .row-tag {
  display: inline-block; margin-left: 0.5rem; background: var(--gold); color: #fff;
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 0.2rem 0.5rem; border-radius: 100px; vertical-align: middle;
}
.compare td { color: var(--char-soft); }
.compare .pkg-from { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.1rem; white-space: nowrap; }
.compare-note { font-size: 0.82rem; color: var(--char-soft); margin-top: 1.1rem; }

@media (max-width: 760px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; display: block; border: 0; background: transparent; }
  .compare thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .compare tbody, .compare tbody tr, .compare tbody th, .compare tbody td { display: block; width: 100%; }
  .compare tbody tr {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    margin-bottom: 1.1rem; padding: 0.4rem 1.2rem 1rem;
  }
  .compare tbody tr:hover { background: var(--white); }
  .compare tbody th { border-top: 0; padding: 1.1rem 0 0.4rem; }
  .compare .pkg-name { font-size: 1.45rem; }
  .compare tbody td {
    border-top: 1px solid var(--line); padding: 0.7rem 0;
    display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; text-align: right;
  }
  .compare tbody td::before {
    content: attr(data-label); flex-shrink: 0; text-align: left;
    font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.12em;
    text-transform: uppercase; font-weight: 600; color: var(--ink);
  }
  .compare td.compare-cta { justify-content: flex-start; padding-top: 1rem; }
  .compare td.compare-cta::before { display: none; }
}

/* ---------- 31. Lead magnet (email capture) ---------- */
/* Self-contained block — copy onto other pages (home, blog) as a soft conversion.
   Uses the shared .form / .form__fields / .form__success hooks so main.js drives it. */
.lead-magnet {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; display: grid; grid-template-columns: 1fr;
}
.lead-magnet__body { padding: clamp(1.8rem, 4vw, 3rem); }
.lead-magnet__body h2 { margin-top: 0.6rem; }
.lead-magnet__body .check-list { margin-top: 1.4rem; }
.lead-magnet__aside { padding: clamp(1.8rem, 4vw, 3rem); background: var(--sand); border-top: 1px solid var(--line); }
.lead-magnet__aside h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.lead-magnet__aside > p { color: var(--char-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }
.lead-form { display: grid; gap: 1.1rem; }
.lead-form .btn { width: 100%; }
.lead-form .form__consent { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.lead-form .form__consent input { width: auto; margin-top: 0.3rem; }
.lead-form .form__consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.82rem; color: var(--char-soft); }
@media (min-width: 800px) {
  .lead-magnet { grid-template-columns: 1.05fr 0.95fr; }
  .lead-magnet__aside { border-top: 0; border-left: 1px solid var(--line); }
}
