/* ==========================================================================
   Nicolas Strebel — Design System
   Refined Mediterranean luxury · editorial · calm
   Signature accent: #7993AD
   --------------------------------------------------------------------------
   Sections:
     1. Design tokens (:root)
     2. Reset & base
     3. Typography
     4. Layout & containers
     5. Buttons & links
     6. Navigation
     7. Footer
     8. Components (cards, stats, dividers, forms)
     9. Motion (scroll reveal)
    10. Utilities & responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Color — built around the signature blue #7993AD */
  --stone:        #F7F4EF;   /* warm off-white page background (never pure white) */
  --stone-2:      #EFE9DF;   /* soft neutral for alternating sections */
  --navy:         #22323F;   /* deep navy — authority, headings */
  --ink:          #2B3742;   /* primary body text */
  --muted:        #5F6E7A;   /* secondary / supporting text */
  --accent:       #7993AD;   /* signature muted blue — links, dividers, icons */
  --accent-deep:  #5F7790;   /* deepened accent — filled buttons (AA on white) */
  --accent-soft:  #DCE4EC;   /* tints, hovers, soft fills */
  --sand:         #BFA171;   /* warm sand/gold — secondary accent (construction arm) */
  --sand-deep:    #A2854F;   /* deepened sand for text/hover contrast */
  --white:        #FFFFFF;
  --line:         rgba(34, 50, 63, 0.12);  /* hairline dividers */
  --line-strong:  rgba(34, 50, 63, 0.20);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-display: clamp(2.75rem, 1.4rem + 6.0vw, 6rem);     /* hero headline */
  --fs-h1:      clamp(2.4rem, 1.5rem + 3.8vw, 4.2rem);
  --fs-h2:      clamp(2.05rem, 1.35rem + 2.6vw, 3.2rem);
  --fs-h3:      clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem);
  --fs-lead:    clamp(1.25rem, 1.08rem + 0.7vw, 1.65rem); /* intro paragraphs */
  --fs-body:    1.15rem;                                  /* ~18px base — easy laptop reading */
  --fs-small:   1.02rem;
  --fs-eyebrow: 0.84rem;                                  /* small-caps label */

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --space-9: 9rem;

  /* Section rhythm (generous, but not cavernous) */
  --section-y: clamp(3.25rem, 2rem + 5vw, 6.5rem);

  /* Containers */
  --container:  1200px;   /* standard content width */
  --container-wide: 1400px;
  --reading:    44rem;    /* comfortable reading measure (~70ch) */

  /* Radius */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows — soft, restrained */
  --shadow-sm: 0 1px 2px rgba(34,50,63,0.06), 0 2px 8px rgba(34,50,63,0.04);
  --shadow:    0 4px 12px rgba(34,50,63,0.07), 0 12px 32px rgba(34,50,63,0.06);
  --shadow-lg: 0 10px 30px rgba(34,50,63,0.10), 0 24px 60px rgba(34,50,63,0.08);

  /* Motion — slow, subtle, luxury pacing */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  200ms;
  --dur:       420ms;
  --dur-slow:  800ms;

  /* Sticky nav height (used to fit the hero to the viewport) */
  --nav-h: 79px;

  /* Z-index scale */
  --z-base: 1;
  --z-raised: 10;
  --z-nav: 100;
  --z-float: 200;
  --z-overlay: 300;
}

/* 2. RESET & BASE ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button { font-family: inherit; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: var(--z-overlay);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* 3. TYPOGRAPHY ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.4em;
}

p { margin: 0 0 1.15em; max-width: var(--reading); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}
.eyebrow--sand { color: var(--sand-deep); }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* Inline links in prose: ink text with accent underline (keeps contrast AA) */
.prose a,
a.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}
.prose a:hover,
a.link:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent-deep);
}

/* 4. LAYOUT & CONTAINERS ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container--wide { max-width: var(--container-wide); }
.container--reading { max-width: var(--reading); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--stone-2); }
.section--navy { background: var(--navy); color: var(--stone); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

.stack > * + * { margin-top: var(--space-4); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { max-width: 56rem; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.section-head.text-center { margin-inline: auto; }
/* Section intros — larger & more readable on desktop, fill the empty space */
.section-head h2, .paths-head__text h2, .selector-head h2 {
  font-size: clamp(2.35rem, 1.5rem + 3vw, 3.85rem); line-height: 1.04; }
.section-head > p:not(.eyebrow), .paths-head__text > p:not(.eyebrow), .selector-head > p.text-muted {
  font-size: var(--fs-lead); line-height: 1.5; }
.section-head .eyebrow, .paths-head .eyebrow, .selector-head .eyebrow { font-size: 0.92rem; }

/* 5. BUTTONS & LINKS -------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent-deep);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  min-height: 48px;            /* touch target */
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--navy); }
.btn:active { transform: translateY(1px); }

.btn--primary { --btn-bg: var(--navy); }
.btn--primary:hover { --btn-bg: var(--accent-deep); background: var(--accent-deep); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn--on-dark { background: var(--stone); color: var(--navy); }
.btn--on-dark:hover { background: var(--white); color: var(--navy); }

.btn--whatsapp { --btn-bg: var(--accent-deep); }
.btn--whatsapp:hover { background: var(--navy); }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

/* Quiet text CTA with arrow */
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.text-cta:hover { gap: 0.85em; color: var(--navy); }
.text-cta .icon { width: 1.1em; height: 1.1em; }

/* 6. NAVIGATION ------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--stone) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--navy); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.lang-toggle:hover { color: var(--navy); border-color: var(--line-strong); }

.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--navy);
}

/* 7. FOOTER ----------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: color-mix(in srgb, var(--stone) 80%, transparent);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
}
.footer a { color: var(--stone); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); margin-bottom: 0.75rem; }
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 2rem;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
}

/* 8. COMPONENTS ------------------------------------------------------------- */

/* Card (services, properties, etc.) */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--accent-soft); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: clamp(1.25rem, 3vw, 1.75rem); }

/* Service / arm card */
.arm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--accent);
  height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.arm:hover { box-shadow: var(--shadow); }
.arm--sand { border-top-color: var(--sand); }
.arm__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-deep);
  letter-spacing: 0.1em;
}
.arm--sand .arm__num { color: var(--sand-deep); }
.arm__icon {
  width: 44px; height: 44px;
  color: var(--accent-deep);
}
.arm--sand .arm__icon { color: var(--sand-deep); }

/* Trust stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}
.section--navy .stat__num { color: var(--white); }
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.section--navy .stat__label { color: color-mix(in srgb, var(--stone) 75%, transparent); }

/* Decorative divider */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-accent { width: 56px; height: 2px; background: var(--accent); border: 0; margin: 0 0 1.5rem; }
.rule-accent.is-center { margin-inline: auto; }
.rule-accent--sand { background: var(--sand); }

/* Comparison table (agent vs advisor) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare__col { padding: clamp(1.5rem, 3vw, 2.25rem); }
.compare__col + .compare__col { border-left: 1px solid var(--line); }
.compare__col--highlight { background: var(--white); }
.compare__col--muted { background: var(--stone-2); }
.compare h3 { margin-bottom: 1rem; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.compare li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-small); }
.compare .icon { flex: none; width: 1.2em; height: 1.2em; margin-top: 0.15em; }

/* Forms */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.25rem; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }

/* Floating WhatsApp button (persistent on mobile) */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-float);
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.wa-float:hover { background: var(--accent-deep); transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }

/* 9. MOTION — scroll reveal ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__media img, .card:hover .card__media img { transition: none; transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 10. UTILITIES & RESPONSIVE ------------------------------------------------ */
.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;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Tablet — collapse nav to a hamburger before it crowds */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

/* Collapse the nav to a hamburger earlier (7 items need the room) */
@media (max-width: 1080px) {
  .nav__links, .nav__actions .lang-toggle, .nav__actions .btn--whatsapp { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  }
  .nav__links.is-open a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

/* Mobile */
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Mobile nav drawer (legacy selector kept for parity) */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  }
  .nav__links.is-open a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

/* ==========================================================================
   11. PAGE COMPONENTS (full site) — heroes, properties, process, testimonials
   ========================================================================== */

/* ---- Hero (homepage, full-bleed) ---------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,30,38,0.86) 0%, rgba(20,30,38,0.45) 50%, rgba(20,30,38,0.30) 100%),
    linear-gradient(to right, rgba(20,30,38,0.55), rgba(20,30,38,0.10));
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 6vw, 6rem); text-shadow: 0 1px 30px rgba(15,22,28,0.45); }
.hero__eyebrow { color: #EAF0F6; }
.hero h1, .hero .display { color: var(--white); max-width: 18ch; }
.hero__sub { color: rgba(255,255,255,0.86); font-size: var(--fs-lead); max-width: 46ch; margin-top: 0.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7); display: grid; place-items: center; gap: 0.4rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll svg { width: 20px; height: 20px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@media (prefers-reduced-motion: reduce){ .hero__scroll svg{ animation: none; } }

/* ---- Page hero (inner pages) -------------------------------------------- */
.page-hero { position: relative; background: var(--navy); color: var(--stone); overflow: hidden; }
.page-hero--image { min-height: clamp(340px, 48vw, 520px); display: flex; align-items: flex-end; }
.page-hero--image .page-hero__media { position: absolute; inset: 0; }
.page-hero--image .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero__media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(20,30,38,0.82), rgba(20,30,38,0.35) 70%, rgba(20,30,38,0.25));
}
.page-hero--plain { padding-block: clamp(3.5rem, 3rem + 5vw, 7rem); }
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 4vw, 4rem); }
.page-hero h1, .page-hero .display { color: var(--white); max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 52ch; font-size: var(--fs-lead); }
.page-hero--plain h1 { color: var(--white); }
.breadcrumb { font-size: var(--fs-small); color: rgba(255,255,255,0.6); margin-bottom: 1rem; letter-spacing: 0.04em; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---- Split section (image + text) --------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split__media--wide img { aspect-ratio: 4/3; }
.split__body { max-width: 38rem; }

/* ---- Property cards ------------------------------------------------------ */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
.prop-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.prop-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--stone-2); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.05); }
.prop-card__tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.92); color: var(--navy);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
}
.prop-card__body { padding: clamp(1.1rem, 2.5vw, 1.5rem); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.prop-card__loc { font-size: var(--fs-small); color: var(--accent-deep); font-weight: 600; letter-spacing: 0.02em; }
.prop-card h3 { margin: 0; font-size: 1.35rem; }
.prop-card__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.98rem; color: var(--muted); margin-top: auto; padding-top: 0.5rem; }
.prop-card__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.prop-card__meta .icon { width: 1.05em; height: 1.05em; color: var(--accent-deep); }
.prop-card__price { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); margin-top: 0.25rem; }
.prop-card__price small { font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* ---- Property detail ----------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 0.6rem; }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.gallery a:first-child { grid-row: span 2; grid-column: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform var(--dur-slow) var(--ease); }
.gallery a:first-child img { aspect-ratio: 1/1; }
.gallery a:hover img { transform: scale(1.04); }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,30,38,0.55); color: #fff; font-weight: 600; letter-spacing: 0.04em; }

.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list div { background: var(--white); padding: 1rem 1.25rem; }
.spec-list dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 0.25rem 0 0; font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); }
.detail-aside { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.detail-aside .price { font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.detail-aside .price small { display:block; font-family: var(--font-sans); font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-top: 0.35rem; }

/* ---- Process steps ------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent-deep);
  width: 3rem; height: 3rem; border: 1px solid var(--accent-soft); border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.step__body h3 { margin-bottom: 0.4rem; }
.step__body p { margin: 0; color: var(--muted); }

/* ---- Why / trust feature list ------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.feature { display: flex; flex-direction: column; gap: 0.75rem; }
.feature__icon { width: 40px; height: 40px; color: var(--accent-deep); }
.feature h3 { font-size: 1.45rem; margin: 0; }
.feature p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }

/* ---- Testimonials -------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.25rem;
}
.quote__mark { font-family: var(--font-serif); font-size: 3rem; line-height: 0.5; color: var(--accent); height: 1.2rem; }
.quote p { font-size: 1.22rem; line-height: 1.6; color: var(--ink); margin: 0; }
.quote__who { margin-top: auto; font-size: var(--fs-small); }
.quote__who strong { display: block; color: var(--navy); font-weight: 600; }
.quote__who span { color: var(--muted); }

/* ---- Contact methods ----------------------------------------------------- */
.contact-methods { display: grid; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-method:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-method__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); border-radius: 50%; }
.contact-method__icon .icon { width: 20px; height: 20px; }
.contact-method__label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-method__value { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); }

/* ---- Trust logos / certifications strip --------------------------------- */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); }
.trust-strip span { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.trust-pill { display:inline-flex; align-items:center; gap:0.5rem; font-weight:600; color: var(--navy); }
.trust-pill .icon { width: 1.1em; height: 1.1em; color: var(--accent-deep); }

/* ---- Pillars (3 arms callout on inner pages) ---------------------------- */
.pill-row { display:flex; flex-wrap:wrap; gap: 0.6rem; }
.pill { font-size: 0.82rem; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft);
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); }
.pill--sand { color: var(--sand-deep); background: color-mix(in srgb, var(--sand) 24%, white); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band .display { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 46ch; margin-inline: auto; }
.cta-band .hero__actions, .cta-band .btn-row { justify-content: center; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---- Language dropdown (stub) ------------------------------------------- */
.lang { position: relative; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.4rem; min-width: 150px; display: none; z-index: var(--z-nav);
}
.lang__menu.is-open { display: block; }
.lang__menu a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-size: 0.9rem; }
.lang__menu a:hover { background: var(--stone-2); }
.lang__menu a[aria-disabled="true"] { color: var(--muted); }
.lang__menu small { color: var(--muted); }

/* ---- Responsive for page components ------------------------------------- */
@media (max-width: 920px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .prop-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:first-child { grid-column: span 2; }
  .spec-list { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 88vh; }
}

/* ==========================================================================
   12. REDESIGN — logo nav, hero stats, selector, cinematic listings, motion
   (Aligned to the $10K checklist: point of view, hierarchy, crafted motion)
   ========================================================================== */

/* Defensive: any bare .icon never balloons */
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---- Header: real logo + over-hero transparency ------------------------- */
.nav__brand { display: inline-flex; align-items: center; gap: 0; }
.nav__logo { height: 40px; width: auto; display: block; }
.nav__logo--light { display: none; }
.nav__links a { white-space: nowrap; }

.nav--over-hero:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.nav--over-hero:not(.is-scrolled) .nav__logo--dark { display: none; }
.nav--over-hero:not(.is-scrolled) .nav__logo--light { display: block; }
.nav--over-hero:not(.is-scrolled) .nav__links a { color: rgba(255,255,255,0.92); }
.nav--over-hero:not(.is-scrolled) .nav__links a::after { background: #fff; }
.nav--over-hero:not(.is-scrolled) .lang-toggle { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }
.nav--over-hero:not(.is-scrolled) .nav__toggle { color: #fff; }
.nav--over-hero:not(.is-scrolled) .btn--whatsapp {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nav--over-hero:not(.is-scrolled) .btn--whatsapp:hover { background: rgba(255,255,255,0.26); }

/* ---- Hero: flex column with stats band + italic accent ------------------ */
.hero { display: flex; flex-direction: column; justify-content: flex-end; }
.hero__inner { flex: 1 1 auto; display: flex; align-items: center; padding-block: clamp(0.75rem, 1.6vw, 1.6rem); margin-top: 0; }
.hero__inner > .container { width: 100%; }
.hero__title em { font-style: italic; font-weight: 500; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.hero__media img { transition: transform 1.6s var(--ease); }
.hero__stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-block: clamp(0.7rem, 1.3vw, 1.05rem);
  text-shadow: 0 1px 20px rgba(15,22,28,0.4);
}
.hero__stats-inner { display: flex; gap: clamp(1.5rem, 5vw, 4.5rem); flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat strong { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); color: #fff; line-height: 1; }
.hstat span { font-size: 0.82rem; color: rgba(255,255,255,0.72); margin-top: 0.3rem; letter-spacing: 0.02em; }

/* ---- Segmented selector -------------------------------------------------- */
.selector-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.selector-head p.text-muted { max-width: 34ch; margin: 0; }
.selector__tabs {
  display: inline-flex; gap: 0.35rem; flex-wrap: wrap;
  background: var(--stone-2); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.35rem; margin-bottom: 2.5rem;
}
.selector__tab {
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 0; border-radius: var(--radius-pill);
  padding: 0.7rem 1.5rem; cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.selector__tab:hover { color: var(--navy); }
.selector__tab.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.selector__panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.selector__panel[hidden] { display: none; }
.selector__panel.is-active { animation: panelIn 0.55s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.selector__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.selector__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.selector__body { max-width: 40rem; }
.selector__body h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-bottom: 0.75rem; }
.selector__body .btn { margin-top: 0.75rem; }

/* ---- Cinematic full-width listing cards (Vellaro-style) ----------------- */
.listings { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.listing {
  position: relative; display: flex; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  min-height: clamp(440px, 46vw, 580px);
}
.listing__media { position: absolute; inset: 0; display: block; }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.05); }
.listing__overlay {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.75rem); color: #fff;
  background: linear-gradient(to top, rgba(16,24,31,0.88) 0%, rgba(16,24,31,0.10) 48%, rgba(16,24,31,0.42) 100%);
  pointer-events: none;
}
.listing__overlay .listing__btn { pointer-events: auto; }
.listing__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.listing__loc { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.listing__badge { background: rgba(255,255,255,0.94); color: var(--navy); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 0.38rem 0.75rem; border-radius: var(--radius-pill); white-space: nowrap; }
.listing__mid { margin-top: 0.9rem; }
.listing__name { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); color: #fff; line-height: 1.02; margin: 0 0 0.5rem; text-shadow: 0 2px 26px rgba(0,0,0,0.45); }
.listing__desc { max-width: 48ch; color: rgba(255,255,255,0.9); margin: 0 0 1rem; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.listing__specs { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.92rem; color: rgba(255,255,255,0.92); }
.listing__specs span { display: inline-flex; align-items: center; gap: 0.45rem; }
.listing__row--bottom { margin-top: auto; padding-top: 1.5rem; align-items: center; }
.listing__price { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); color: #fff; }
.listing__price em { font-style: normal; font-family: var(--font-sans); font-size: 0.8rem; color: rgba(255,255,255,0.72); font-weight: 500; margin-right: 0.4rem; letter-spacing: 0.04em; }

/* ---- Crafted motion: gentle masked image reveal ------------------------- */
.reveal { transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.split__media.reveal img,
.selector__media img { transition: transform 1.4s var(--ease); }
.split__media.reveal img { transform: scale(1.07); }
.split__media.reveal.is-visible img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .selector__panel.is-active { animation: none; }
  .hero__media img, .split__media.reveal img, .listing__media img { transition: none !important; transform: none !important; }
}

/* ---- Mobile: designed, not shrunk --------------------------------------- */
@media (max-width: 920px) {
  .nav__logo { height: 34px; }
  .selector__panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .selector__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .hero__stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .hstat strong { font-size: 1.7rem; }
  .selector__tabs { display: grid; grid-template-columns: 1fr; width: 100%; border-radius: var(--radius-lg); }
  .selector__tab { text-align: left; }
  /* Curated listing cards STACK on mobile: image on top, navy text panel below */
  .listing { flex-direction: column; min-height: 0; position: relative; }
  .listing__media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; }
  .listing__overlay {
    position: static;                 /* so the badge anchors to .listing (over the image) */
    background: var(--navy);          /* solid panel, removes desktop image gradient */
    color: #fff;
    pointer-events: auto;
    gap: 0;
  }
  .listing__row--top { position: static; }
  .listing__mid { margin-top: 0.5rem; }
  .listing__name { font-size: 1.7rem; text-shadow: none; }
  .listing__desc { text-shadow: none; }
  .listing__loc { background: none; padding: 0; text-shadow: none; }
  .listing__badge { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
  .listing__row--bottom { flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.25rem; padding-top: 0; }
  .listing__btn { width: 100%; justify-content: center; }
}

/* Legibility scrim behind the transparent over-hero nav (white text on bright skies) */
.nav--over-hero { position: sticky; }
.nav--over-hero:not(.is-scrolled)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(16,24,31,0.55) 0%, rgba(16,24,31,0.18) 60%, rgba(16,24,31,0) 100%);
}

/* ---- Selector: framed, balanced module (kills the floating emptiness) --- */
.selector__panels {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.selector__panel {
  grid-template-columns: 1fr 1fr;   /* image and text box are exact equal halves */
  gap: 0;
  align-items: stretch;
}
.selector__media { border-radius: 0; box-shadow: none; min-height: 100%; }
.selector__media img { height: 100%; width: 100%; aspect-ratio: auto; min-height: 360px; object-fit: cover; }
.selector__body {
  max-width: none;
  align-self: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
@media (max-width: 920px) {
  .selector__panel { grid-template-columns: 1fr; }
  .selector__media img { min-height: 240px; aspect-ratio: 16 / 10; }
}

/* ---- Footer monogram + Properties filter bar --------------------------- */
.footer__logo { height: 58px; width: auto; display: block; margin-bottom: 1.1rem; }

.filters {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.filters__field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 160px; }
.filters__field label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filters__field select {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--stone); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 0.7rem 0.9rem; cursor: pointer; min-height: 46px;
  transition: border-color var(--dur-fast) var(--ease);
}
.filters__field select:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters__reset {
  align-self: end; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); padding: 0.7rem 1.3rem; min-height: 46px;
  font-family: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.filters__reset:hover { color: var(--navy); border-color: var(--navy); }
.filters__count { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
.filters__empty { text-align: center; color: var(--muted); padding: 2.5rem 0; }

@media (max-width: 680px) {
  .filters__field { flex: 1 1 calc(50% - 0.5rem); }
  .filters__reset { flex: 1 1 100%; }
}

/* ---- Tick bullet lists (short, scannable — for the homepage paths/about) - */
.tick-list { list-style: none; margin: 1.25rem 0 1.6rem; padding: 0; display: grid; gap: 0.8rem; }
.tick-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 1.18rem; line-height: 1.45; color: var(--ink); }
.tick-list li .icon { color: var(--accent-deep); width: 1.3em; height: 1.3em; flex: none; margin-top: 0.05em; }
.selector__body .tick-list li { font-size: 1.05rem; }

/* ---- Hero service buttons (instant, scannable "what he offers") --------- */
.hero__sub strong { color: #fff; font-weight: 700; }
.hero__services { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 2rem; max-width: 24rem; }
.hero__service {
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.18rem; color: #fff;
  background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-pill); padding: 0.95rem 1.6rem; text-decoration: none;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  box-shadow: 0 6px 20px rgba(13,20,26,0.18);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero__service:hover { background: rgba(255,255,255,0.28); border-color: #fff; transform: translateY(-2px); }
.hero__service .icon { width: 1.15em; height: 1.15em; opacity: 0.95; }
.hero__service-main { display: inline-flex; align-items: center; gap: 0.8rem; min-width: 0; }
.hero__service-main .icon { width: 1.4em; height: 1.4em; color: var(--accent-soft); opacity: 1; flex: none; }
.hero__actions { margin-top: 1.5rem; }
@media (max-width: 680px) {
  .hero__services { flex-direction: column; align-items: stretch; }
  .hero__service { justify-content: space-between; font-size: 1.15rem; padding: 1.1rem 1.5rem; }
}

/* ---- Mobile hero: content-height & top-aligned so H1 + service buttons
   are visible instantly (no scrolling past a tall image) ----------------- */
@media (max-width: 680px) {
  .hero { min-height: auto; justify-content: flex-start; }
  .hero__inner { margin-top: 0; padding-block: 1.75rem 2rem; }
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(16,24,31,0.46) 0%, rgba(16,24,31,0.62) 55%, rgba(16,24,31,0.72) 100%);
  }
  .hero__title { font-size: clamp(2.6rem, 2rem + 6vw, 3.4rem); }
  .hero__stats { margin-top: 0.5rem; }
}

/* ---- Selector: stack panels in one cell -> constant height (no vertical
   jump when switching tabs). Only the active panel is visible. ----------- */
.selector__panels { display: grid; }
.selector__panel {
  grid-area: 1 / 1;                 /* all panels share one cell */
  display: grid;                    /* override [hidden]/none; keep 2-col layout */
  opacity: 0;
  visibility: hidden;
  transform: none;
  animation: none;
  transition: opacity 0.4s var(--ease);
}
.selector__panel.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .selector__panel { transition: none; } }

.selector__panel.is-active { animation: none !important; }

/* Revert stacking: show only the active panel; height equalized via JS so the
   box stays a constant size across tabs (no vertical jump). */
.selector__panels { display: block; }
.selector__panel { grid-area: auto; opacity: 1; visibility: visible; transition: none; }
.selector__panel:not(.is-active) { display: none; }
.selector__panel.is-active { display: grid; }

/* Selector media: definite aspect-ratio so the image has a real height and
   fills its half (fixes the indefinite-height feedback loop). */
.selector__media { min-height: 0; aspect-ratio: 3 / 2.5; overflow: hidden; }
.selector__media img { height: 100%; width: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 920px) { .selector__media { aspect-ratio: 16 / 10; } }

/* ---- About: "at a glance" facts panel ---------------------------------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.75rem; }
.facts > div { background: var(--white); padding: 0.9rem 1.15rem; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0.25rem 0 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); line-height: 1.1; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ---- Hero: two-column layout with an "about Nicolas" card --------------- */
.hero h1, .hero .display { max-width: 20ch; }
.hero__title { font-size: clamp(2.3rem, 1.3rem + 2.9vw, 3.7rem); line-height: 1.06; max-width: 16ch; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero__copy { min-width: 0; }
.hero__sub { font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.35rem); }
.hero__copy .hero__about { max-width: 32rem; margin-top: clamp(0.85rem, 1.4vw, 1.2rem); }
.hero__aside { display: flex; flex-direction: column; justify-content: center; gap: 0.85rem; min-width: 0; }
.hero__aside .hero__services { margin-top: 0; max-width: none; }
.hero__aside .hero__actions { margin-top: 0.35rem; }
.hero__wa { width: 100%; justify-content: center; }
.hero__about { text-shadow: none;
  background: rgba(18,27,34,0.55); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg); padding: clamp(1.05rem, 0.85rem + 0.8vw, 1.4rem);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(8,13,17,0.35); }
.hero__about-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.hero__about-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  object-position: top center; background: #e9eef2; border: 2px solid rgba(255,255,255,0.5); flex: none; }
.hero__about-label { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft); font-weight: 600; }
.hero__about-name { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; line-height: 1.05; }
.hero__about p { color: rgba(255,255,255,0.86); font-size: 0.97rem; line-height: 1.5; margin: 0 0 0.8rem; }
.hero__about-cta { display: inline-flex; align-items: center; gap: 0.5em; color: #fff; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.hero__about-cta:hover { gap: 0.85em; border-color: #fff; }
.hero__about-cta .icon { width: 1.1em; height: 1.1em; }
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__aside { max-width: 38rem; gap: 1rem; }
}

/* ---- "Which path" — image path cards + Nicolas portrait ----------------- */
.paths-sec { position: relative; overflow: hidden; }
.paths-head { display: flex; justify-content: space-between; align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem); margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
.paths-head__text { max-width: 42ch; }
.paths-head__text h2 { margin: 0.4rem 0 0.6rem; }
.paths-head__text p { max-width: 36ch; margin: 0; }
.paths-head__photo { flex: none; margin: 0; transform: rotate(-3.5deg);
  background: var(--white); padding: 0.55rem 0.55rem 0.6rem; border-radius: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease); }
.paths-head__photo:hover { transform: rotate(-1.5deg) translateY(-3px); }
.paths-head__photo img { display: block; width: clamp(170px, 17vw, 224px); height: auto; border-radius: 11px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.path-card { position: relative; min-height: clamp(22rem, 17rem + 14vw, 30rem); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; isolation: isolate;
  box-shadow: var(--shadow); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.path-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .9s var(--ease); }
.path-card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(34,50,63,0) 26%, rgba(20,29,37,.55) 60%, rgba(15,23,30,.92) 100%); }
.path-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.path-card:hover img { transform: scale(1.07); }
.path-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.path-card__body { padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); color: #fff; }
.path-card__n { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.78); }
.path-card h3 { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.05; margin: .35rem 0 .55rem; }
.path-card p { color: rgba(255,255,255,.85); font-size: var(--fs-small); line-height: 1.5; margin: 0 0 1.1rem; max-width: 32ch; }
.path-card__cta { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans);
  font-weight: 600; font-size: .92rem; color: #fff; }
.path-card__cta .icon { width: 1.15rem; height: 1.15rem; transition: transform .35s ease; }
.path-card:hover .path-card__cta .icon { transform: translateX(5px); }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path-card { min-height: 17rem; }
}
@media (max-width: 760px) {
  .paths-head { gap: 1rem; align-items: center; }
  .paths-head__text { max-width: none; }
  .paths-head__photo { padding: 0.4rem 0.4rem 0.45rem; border-radius: 12px; }
  .paths-head__photo img { width: clamp(82px, 24vw, 110px); border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { .path-card img { transition: none !important; } }
