@charset "UTF-8";
/* ==========================================================================
   Valgrande — stylesheet
   Owned by the css/responsive lane (site/assets/css/** only).

   Notes for future editors:
   - The header is position:sticky, NOT fixed. It therefore reserves its own
     space in flow, so no element ever needs a hard-coded `margin-top` to clear
     it. That offset used to be `margin-top:64px` and desynced the moment the
     header grew (language switcher, wrapped nav, translated labels).
     --header-h below is only ever used for scroll offsets, where being a few
     pixels out is cosmetic rather than a broken layout.
   - Colour tokens are chosen for WCAG 2.1 AA. Measured ratios are noted next
     to each token; do not lighten them without re-checking.
   - No JS is required by anything in this file. The only stateful hook is
     `.is-open`, toggled on `.site-nav` / `.nav-toggle` by the existing script.
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root{
  /* Surfaces */
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --white: #ffffff;
  --teal: #1f4747;
  --teal-deep: #16403f;
  --footer-bg: #161e21;

  /* Text — all measured against --bg (#faf7f2) and --bg-alt (#f1ebe1) */
  --ink: #1f2a2e;        /* 14.6:1 on --bg        */
  --ink-soft: #4a5358;   /*  7.4:1 on --bg        */
  --muted: #646b6f;      /*  5.1:1 on --bg, 4.6:1 on --bg-alt (was #7a8084 = 3.7:1, failed AA) */
  --line: #e2dccf;
  --line-strong: #cfc6b2;

  /* Gold.
     --gold is DECORATIVE ONLY (rules, borders, marks): 3.0:1 on --bg, which
     clears the 3:1 non-text bar but fails the 4.5:1 text bar.
     Use --gold-deep for any gold text or link on a light surface. */
  --gold: #b08947;       /* decorative: 3.0:1 on --bg                         */
  --gold-deep: #7d5f31;  /* text/links: 5.5:1 on --bg, 5.0:1 on --bg-alt,
                            5.9:1 on white; white on it = 5.9:1              */
  --gold-ink: #5e4724;   /* hover / solid-button hover: 8.2:1 on --bg,
                            white on it = 8.7:1                              */
  --gold-soft: #e9c97a;  /* gold for DARK surfaces: 6.4:1 on --teal,
                            10.9:1 on --footer-bg                            */
  --gold-wash: #f6efe1;

  /* Focus. Redefined on dark surfaces further down. */
  --focus-ring: #123f3f; /* 10.9:1 against --bg                              */
  --focus-halo: #ffffff;

  /* Metrics */
  --max: 1200px;
  --max-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 2px;
  --radius-lg: 3px;
  --shadow: 0 24px 60px -30px rgba(31,42,46,.35);
  --shadow-soft: 0 14px 30px -22px rgba(0,0,0,.35);
  --tap: 44px;               /* minimum comfortable touch target */
  --header-h: 72px;          /* scroll-offset hint only — see file header */

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.4,.1,.2,1);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  font-family:var(--sans);
  font-size:clamp(16px, 0.98rem + 0.12vw, 18px);
  line-height:1.7;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

a{
  color:var(--gold-deep);
  text-decoration:none;
  transition:color .2s var(--ease);
}
a:hover{color:var(--gold-ink)}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:400;
  color:var(--ink);
  letter-spacing:.01em;
  margin:0 0 .5em;
  text-wrap:balance;
}
h1{font-size:clamp(2.2rem, 5vw, 4.2rem);line-height:1.08;font-weight:300}
h2{font-size:clamp(1.75rem, 3.4vw, 2.8rem);line-height:1.2}
h3{font-size:clamp(1.3rem, 1.6vw, 1.5rem);line-height:1.3}
h4{
  font-size:1.05rem;letter-spacing:.08em;text-transform:uppercase;
  font-family:var(--sans);font-weight:600;color:var(--ink-soft);
}
p{margin:0 0 1em;text-wrap:pretty}
p:last-child{margin-bottom:0}

ul,ol{text-wrap:pretty}

.muted{color:var(--muted)}

/* In-page anchors clear the sticky header. */
:target,[id]{scroll-margin-top:calc(var(--header-h) + 1rem)}

.eyebrow{
  font-family:var(--sans);
  font-size:.78rem;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold-deep);      /* was --gold at 3.0:1 — failed AA for text */
  margin:0 0 1.2rem;
  font-weight:600;
}

/* ==========================================================================
   3. Focus visibility  (the site previously had none at all)
   --------------------------------------------------------------------------
   A dark ring plus a light halo, so the indicator survives whatever sits
   directly behind it. Dark surfaces flip both tokens further down.
   ========================================================================== */
:where(a,button,input,select,textarea,summary,details,[tabindex]):focus-visible{
  outline:3px solid var(--focus-ring);
  outline-offset:3px;
  box-shadow:0 0 0 6px var(--focus-halo);
  border-radius:var(--radius);
}
/* Never leave a mouse click with a ring, but never suppress the keyboard one. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus:not(:focus-visible){outline:none}

/* Dark surfaces: warm ring, dark halo. */
.hero,
.contact-strip,
.site-footer,
.tile{
  --focus-ring:#ffd98a;   /* 7.6:1 on --teal, 12.5:1 on --footer-bg */
  --focus-halo:#0d2727;
}

/* Skip link — off-screen until focused, then a real, legible control. */
.skip-link{
  position:fixed;   /* fixed, not absolute: stays reachable at any scroll offset */
  top:.5rem;left:.5rem;
  z-index:200;
  transform:translateY(calc(-100% - 1rem));
  display:inline-flex;align-items:center;
  min-height:var(--tap);
  padding:.65rem 1.25rem;
  background:var(--teal);
  color:#fff;
  font-size:.82rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  border-radius:var(--radius);
  /* No shadow while parked off-screen: it bled into the top of the header. */
  transition:transform .2s var(--ease);
}
.skip-link:hover{color:#fff}
.skip-link:focus-visible{
  transform:translateY(0);
  box-shadow:0 10px 30px -12px rgba(0,0,0,.5);
  --focus-ring:#ffd98a;
  --focus-halo:#0d2727;
}

/* Skip-link and in-page-anchor targets are given tabindex="-1" so that focus
   follows the scroll (see assets/js/site.js and partials/header.php). They are
   containers, not controls, so they take no visible ring: the ring belongs to
   the next real control the user tabs to. */
[tabindex="-1"]:focus{outline:none}

/* ==========================================================================
   4. Header
   --------------------------------------------------------------------------
   position:sticky, so the header reserves its own height and nothing below
   it needs a magic offset. It can grow freely (language switcher, wrapped
   nav, long translated labels) without pushing content under itself.
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(250,247,242,.94);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .site-header{background:var(--bg)}
}

.nav-wrap{
  max-width:var(--max-wide);
  margin:0 auto;
  /* padding: top right bottom left — the RIGHT inset belongs on the right. */
  padding:.7rem max(var(--gutter), env(safe-area-inset-right)) .7rem max(var(--gutter), env(safe-area-inset-left));
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.6rem 1.5rem;
}

.brand{
  display:flex;align-items:baseline;gap:.5rem;
  color:var(--ink);
  min-height:var(--tap);
  align-content:center;
  flex-wrap:wrap;
  padding:.2rem 0;
}
.brand:hover{color:var(--gold-ink)}
.brand-name{
  font-family:var(--serif);
  font-size:clamp(1.15rem,3.2vw,1.45rem);line-height:1;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:400;
}
.brand-sub{
  font-size:.68rem;letter-spacing:.26em;
  color:var(--muted);text-transform:uppercase;
  margin-left:.2rem;
}

/* --- Primary nav --- */
.site-nav ul{
  list-style:none;margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:.15rem 1.35rem;
}
.site-nav a{
  display:block;
  font-size:.775rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink);
  font-weight:500;
  padding:.55rem 0;
  position:relative;
  white-space:nowrap;
}
.site-nav a:hover,
.site-nav a.is-active{color:var(--gold-ink)}
.site-nav a.is-active::after{
  content:"";position:absolute;left:0;right:0;bottom:.25rem;
  height:1px;background:var(--gold-deep);
}

/* Desktop single-row header: nine languages include some long nav labels
   (Polish, Danish). Slightly tighter tracking and gaps keep every language
   on one row at common laptop widths; where the longest still would not fit,
   the small "Sotogrande" tag gives way before the nav wraps. */
@media (min-width:1260px){
  .site-nav ul{gap:.15rem clamp(.85rem,1.3vw,1.35rem)}
  .site-nav a{letter-spacing:.1em}
}
@media (min-width:1260px) and (max-width:1365px){
  body.locale-pl .brand-sub{display:none}
}

/* --- Hamburger (shown only at the mobile-nav breakpoint) --- */
.nav-toggle{
  display:none;
  background:transparent;border:0;cursor:pointer;
  width:var(--tap);height:var(--tap);
  padding:10px;
  flex:0 0 auto;
  color:var(--ink);
}
.nav-toggle span{
  display:block;height:2px;background:currentColor;
  margin:5px 0;border-radius:2px;
  transition:transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* --- Language menu --------------------------------------------------------
   A <details class="lang-dd"> disclosure: works with no JS. The summary is the
   button (globe + current code + chevron); the list drops down under it and
   names every language in its own tongue.
   -------------------------------------------------------------------- */
.visually-hidden{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.lang-menu{flex:0 0 auto;position:relative}
.lang-dd{position:relative}
.lang-toggle{
  list-style:none;                 /* hide the native disclosure marker */
  display:inline-flex;align-items:center;gap:.4rem;
  min-height:var(--tap);
  padding:.35rem .7rem;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  font-size:.74rem;font-weight:600;letter-spacing:.12em;
  cursor:pointer;
  user-select:none;
  transition:border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.lang-toggle::-webkit-details-marker{display:none}
.lang-toggle::marker{content:""}
.lang-toggle:hover,
.lang-dd[open] > .lang-toggle{border-color:var(--gold-deep);color:var(--gold-ink);background:var(--gold-wash)}
.lang-globe{width:18px;height:18px;flex:0 0 auto}
.lang-chevron{width:10px;height:10px;flex:0 0 auto;transition:transform .2s var(--ease)}
.lang-dd[open] .lang-chevron{transform:rotate(180deg)}

.lang-list{
  position:absolute;
  top:calc(100% + .5rem);
  right:0;
  z-index:60;
  min-width:13.5rem;
  margin:0;padding:.4rem;
  list-style:none;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:0 20px 40px -20px rgba(31,42,46,.45);
}
.lang-list a{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:var(--tap);
  padding:.4rem .75rem;
  border-radius:var(--radius);
  color:var(--ink);
  font-size:.92rem;
}
.lang-list a:hover{background:var(--gold-wash);color:var(--gold-ink)}
.lang-list a.is-active{color:var(--gold-ink);font-weight:600}
.lang-list a.is-active .lang-list-name::before{
  content:"";display:inline-block;width:.4rem;height:.4rem;margin:0 .5rem .12rem 0;
  border-radius:50%;background:var(--gold-deep);vertical-align:middle;
}
.lang-list-code{font-size:.7rem;letter-spacing:.14em;color:var(--muted)}


/* "This site is also available in …" banner. */
.lang-suggest{
  margin:0;
  border-top:1px solid var(--line);
  background:var(--gold-wash);
  text-align:center;
  font-size:.85rem;
}
.lang-suggest a{
  display:block;
  padding:.7rem var(--gutter);
  min-height:var(--tap);
  color:var(--gold-ink);
  font-weight:500;
}
.lang-suggest a:hover{background:#f0e6d2}

/* ==========================================================================
   5. Hero
   --------------------------------------------------------------------------
   svh, not vh: small-viewport units are fixed to the largest possible browser
   chrome, so the hero does not resize (and re-layout the page) when the
   mobile address bar hides or reappears. vh stays first as the fallback.
   No margin-top: the sticky header already occupies its own space.
   ========================================================================== */
.hero{
  position:relative;
  min-height:70vh;
  min-height:70svh;
  display:flex;align-items:center;justify-content:center;
  background-size:cover;background-position:center;
  background-color:var(--teal);
  color:#fff;
  text-align:center;
  padding:clamp(3.5rem,9vw,6rem) var(--gutter);
  overflow:hidden;
}
/* --------------------------------------------------------------------------
   Responsive background images (integration lane).

   .hero / .tile / .card-img are CSS backgrounds, so <picture> cannot reach
   them. The per-element URLs arrive as custom properties from lib/img.php
   (img_bg_vars() / img_bg_var()) in the style attribute — permitted by
   `style-src-attr 'unsafe-inline'` — while the breakpoints live here, where
   `style-src-elem` needs no 'unsafe-inline' for an inline <style> element.

   --bg-fb  plain url(), the universally supported fallback
   --bg-s/m/l  image-set() (WebP first) for 0 / >=721px / >=1441px  [hero]
   --bg        image-set() at one width                             [tile, card]
   -------------------------------------------------------------------------- */
.hero,
.tile,
.card-img{background-image:var(--bg-fb)}

@supports (background-image: image-set(url("i.webp") type("image/webp"))){
  .tile,
  .card-img{background-image:var(--bg)}

  .hero{background-image:var(--bg-s)}
  @media (min-width:721px){ .hero{background-image:var(--bg-m)} }
  @media (min-width:1441px){ .hero{background-image:var(--bg-l)} }
}

.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(31,42,46,.34) 0%,rgba(31,42,46,.62) 100%);
}
.hero-content{position:relative;max-width:880px;width:100%}
.hero h1{color:#fff;text-shadow:0 2px 30px rgba(0,0,0,.45);margin-bottom:1rem}
.hero-sub{
  font-size:clamp(1rem,1.6vw,1.18rem);
  color:#fff;
  text-shadow:0 1px 16px rgba(0,0,0,.5);
  margin:0 auto;max-width:640px;
}
.hero .eyebrow{color:#f2dca8;text-shadow:0 1px 12px rgba(0,0,0,.55)}

.page-index .hero{
  min-height:84vh;
  min-height:84svh;
}

/* Slim hero for inner pages without an image. */
.page-hero{
  background:var(--bg-alt);
  padding:clamp(3rem,7vw,5rem) var(--gutter) clamp(2.25rem,5vw,3.5rem);
  text-align:center;
  border-bottom:1px solid var(--line);
}
.page-hero h1{margin:.4rem 0 .6rem}
.page-hero p{max-width:680px;margin:0 auto;color:var(--ink-soft)}

/* ==========================================================================
   6. Layout primitives
   ========================================================================== */
.site-main{display:block}

.section{padding:clamp(3rem,7vw,5.5rem) var(--gutter)}
.section-tight{padding:clamp(2.25rem,5vw,3.5rem) var(--gutter)}
.section-alt{background:var(--bg-alt)}

.container{max-width:var(--max);margin:0 auto}
.narrow{max-width:760px;margin:0 auto;text-align:center}
.lead{font-size:clamp(1.05rem,1.5vw,1.18rem);color:var(--ink-soft);line-height:1.7}

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

/* --- Two-column split --- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,4vw,4rem);
  align-items:center;
}
.split.reverse > :first-child{order:2}
.split img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow)}
.split .col-text h2{margin-bottom:1rem}
.split .col-img{min-width:0}

/* --- Feature cards (3-up) --- */
.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1.25rem,2.5vw,2rem);
}
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
@media (hover:hover){
  .card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
}
.card:focus-within{box-shadow:var(--shadow)}
/* background-COLOR, never the `background` shorthand: the shorthand resets
   background-image to none and would cancel the --bg/--bg-fb image set above. */
.card-img{aspect-ratio:4/3;background-color:var(--bg-alt);background-size:cover;background-position:center}
.card-body{padding:1.5rem 1.5rem 1.75rem;display:flex;flex-direction:column;flex:1}
.card-body h3{margin-bottom:.6rem}
.card-body p{color:var(--ink-soft);font-size:.96rem}
.card-link{
  display:inline-flex;align-items:center;
  margin-top:auto;
  padding-top:.8rem;
  min-height:2.5rem;
  font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold-deep);font-weight:600;
  align-self:flex-start;
}
.card-link::after{content:" \2192";margin-left:.4em}

/* --- Image grids --- */
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.75rem,1.5vw,1rem)}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2vw,1.4rem)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.25rem,2.5vw,1.6rem)}

.tile{
  position:relative;
  aspect-ratio:4/3;
  background-size:cover;background-position:center;
  background-color:var(--bg-alt);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.tile-caption{
  position:absolute;left:0;right:0;bottom:0;
  padding:1.6rem 1.2rem .9rem;
  color:#fff;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.74) 100%);
  font-family:var(--serif);
  font-size:clamp(1.05rem,1.6vw,1.2rem);
  line-height:1.3;
  letter-spacing:.04em;
}

/* Golf-club banners on /sport: whole image, name underneath. */
.club{margin:0;background:var(--white);box-shadow:var(--shadow-soft)}
.club img{width:100%;height:auto;aspect-ratio:1920/643;object-fit:cover}
.club a{display:block;color:inherit;height:100%}
.club figcaption{
  padding:.8rem 1rem .9rem;
  font-family:var(--serif);font-size:1.15rem;line-height:1.3;color:var(--ink);
}
.club-note{font-family:var(--sans);font-size:.78rem;color:var(--muted);white-space:nowrap}
.club-ext{display:inline-block;width:11px;height:11px;margin-left:.3rem;color:var(--gold-deep);vertical-align:.05em}
.club a:hover figcaption,
.club a:focus-visible figcaption{color:var(--gold-ink);text-decoration:underline;text-underline-offset:.2em}
.club{transition:box-shadow .2s var(--ease), transform .2s var(--ease)}
.club:hover{transform:translateY(-2px);box-shadow:var(--shadow)}

/* --- Stats row (4-up) --- */
.stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(1.5rem,3vw,2rem);
  text-align:center;
}
.stat-num{
  font-family:var(--serif);
  font-size:clamp(2.4rem,5vw,3.2rem);line-height:1;
  color:var(--gold-deep);
  display:block;
  margin-bottom:.35rem;
}
.stat-label{
  display:block;
  font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink-soft);
  line-height:1.5;
  text-wrap:balance;
}

/* --- Pull quote --- */
.quote{
  text-align:center;max-width:820px;margin:0 auto;
  font-family:var(--serif);font-size:clamp(1.25rem,2.4vw,1.8rem);
  line-height:1.5;color:var(--ink);font-style:italic;
  text-wrap:balance;
}
.quote::before{content:"\201C";color:var(--gold);font-size:3rem;line-height:0;vertical-align:-0.4em;margin-right:.2em}
.quote::after{content:"\201D";color:var(--gold);font-size:3rem;line-height:0;vertical-align:-0.4em;margin-left:.1em}

/* --- Buttons --- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:var(--tap);
  padding:.9rem 2rem;
  border:1px solid var(--gold-deep);
  color:var(--gold-deep);
  background:transparent;
  font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;
  line-height:1.2;
  text-align:center;
  border-radius:var(--radius);
  transition:background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor:pointer;
}
.btn:hover{background:var(--gold-deep);color:#fff;border-color:var(--gold-deep)}
.btn-solid{background:var(--gold-deep);color:#fff;border-color:var(--gold-deep)}
.btn-solid:hover{background:var(--gold-ink);border-color:var(--gold-ink);color:#fff}
.btn-light{border-color:#fff;color:#fff;background:transparent}
.btn-light:hover{background:#fff;color:var(--ink);border-color:#fff}
.btn + .btn{margin-left:.5rem}

/* --- Estate agents (3-up) --- */
.agents{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1.5rem,3vw,3rem);
  align-items:stretch;
}
.agent{
  display:flex;flex-direction:column;
  text-align:center;padding:clamp(1.5rem,3vw,2rem);
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
}
.agent img{
  height:clamp(64px,8vw,90px);width:auto;max-width:100%;
  margin:0 auto 1.25rem;
  filter:grayscale(20%);
  object-fit:contain;
}
.agent-name{font-size:1.25rem;margin-bottom:.5rem}
.agent p{color:var(--ink-soft);font-size:.95rem}
.agent .btn{margin-top:auto;align-self:center}
.agent-note{color:var(--muted);font-size:.92rem}

/* Agent contact links — the conversion path off this page, so they are the
   last thing in the card and pinned to its bottom edge. */
.agent-contact{
  list-style:none;
  margin:auto 0 0;
  padding:1.1rem 0 0;
  display:flex;flex-direction:column;align-items:center;gap:.15rem;
  border-top:1px solid var(--line);
}
.agent-contact li{margin:0}
.agent-contact a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:var(--tap);
  padding:.35rem .5rem;
  font-size:.9rem;
  color:var(--gold-deep);
  overflow-wrap:anywhere;
}
.agent-contact a:hover,
.agent-contact a:focus-visible{color:var(--gold-ink);text-decoration:underline}
.agent-contact li:first-child a{
  font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;
}
.agent-contact li:first-child a::after{content:" \2197";margin-left:.35em}

/* --- Small layout utilities -------------------------------------------
   These replace the last of the one-off inline style="" attributes in the
   templates (integration lane): the only style attributes left in the
   rendered HTML now carry --bg custom properties. */
.section-intro{margin-bottom:2.5rem}
.stack-md{margin-top:1.5rem}
.stack-lg{margin-top:2rem}
.text-center{text-align:center}

/* --- Location map ------------------------------------------------------ */
.location-map{
  margin:0 auto;
  max-width:1000px;width:100%;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* --- Facility list --- */
.facility-list{color:var(--ink-soft);line-height:1.95;padding-left:1.2em;margin:0}
.facility-list li{margin-bottom:.15rem}

/* --- Community notices --- */
.notice-list{list-style:none;margin:0;padding:0;display:grid;gap:1.25rem}
.notice{
  background:var(--white);
  border:1px solid var(--line);
  border-left:3px solid var(--gold-deep);
  border-radius:var(--radius);
  padding:clamp(1.25rem,3vw,1.75rem);
}
.notice.is-placeholder{border-left-color:var(--line-strong);background:var(--bg-alt)}
.notice-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .85rem;
  margin-bottom:.6rem;
}
.notice-badge{
  display:inline-block;
  padding:.2rem .65rem;
  background:var(--gold-wash);
  border:1px solid var(--line-strong);
  border-radius:999px;
  font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;font-weight:600;
  color:var(--gold-ink);
}
.notice-date{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.notice-title{margin-bottom:.4rem}
.notice-body{color:var(--ink-soft);margin:0}
.notice-disclaimer{
  font-size:.92rem;color:var(--ink-soft);
  background:var(--gold-wash);
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  padding:1rem 1.25rem;
  margin-top:1.5rem;
}

/* ==========================================================================
   7. Contact strip + footer (dark surfaces)
   ========================================================================== */
.contact-strip{
  background:var(--teal);color:#fff;
  padding:clamp(1.75rem,4vw,2.5rem) var(--gutter);
  text-align:center;
}
/* A compact call-to-action band, not a section: small heading, tight rhythm. */
.contact-strip h2{color:#fff;font-size:clamp(1.45rem,2.4vw,1.85rem);margin-bottom:.4rem}
.contact-strip p{margin-bottom:.25rem}
.contact-strip .lead{font-size:1rem;line-height:1.6;margin-bottom:.25rem}
.contact-strip .stack-md{margin-top:.6rem}
.contact-strip p{color:rgba(255,255,255,.92)}
.contact-strip .eyebrow{color:var(--gold-soft)}
.contact-strip a:not(.btn){
  color:var(--gold-soft);          /* 6.4:1 on --teal */
  text-decoration:underline;
  text-underline-offset:.22em;
  text-decoration-thickness:1px;
  display:inline-block;
  padding:.3rem .1rem;             /* keeps phone/e-mail links easy to hit */
}
.contact-strip a:not(.btn):hover{color:#fff}
.contact-strip .btn{border-color:#fff;color:#fff}
.contact-strip .btn:hover{background:#fff;color:var(--teal)}

.site-footer{
  background:var(--footer-bg);
  color:#c9cdce;                   /* 10.6:1 on --footer-bg */
  padding:clamp(2rem,4vw,2.75rem) var(--gutter) 1.25rem;
}
.footer-inner{
  max-width:var(--max);margin:0 auto;
  display:grid;grid-template-columns:1.2fr 1fr 1.1fr;
  gap:clamp(1.5rem,3vw,2.5rem);
}
.site-footer h3{
  color:#fff;font-size:clamp(1.35rem,2.5vw,1.6rem);
  letter-spacing:.16em;text-transform:uppercase;font-weight:400;margin-bottom:.6rem;
}
.site-footer h4{color:#fff;letter-spacing:.18em;font-size:.85rem;margin-bottom:.6rem}
.site-footer p{color:#9ea4a6;font-size:.9rem;margin-bottom:.35rem}  /* 6.7:1 */
.site-footer .footer-brand p{line-height:1.6}
.site-footer a{color:var(--gold-soft)}                               /* 10.9:1 */
.site-footer a:hover{color:#fff}
/* Contact block: every tel:/mailto: keeps a >=24px target (WCAG 2.5.8). */
.footer-col p a{
  display:inline-block;
  padding:.15rem 0;
  text-decoration:underline;
  text-underline-offset:.22em;
  text-decoration-thickness:1px;
}
.footer-col > p:has(a){line-height:1.85}

/* Two columns: seven stacked links were most of the footer's height. */
.footer-nav{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
.footer-nav a{
  display:inline-flex;align-items:center;
  min-height:2rem;
  padding-right:.5rem;
  color:#c9cdce;font-size:.92rem;
}
.footer-nav a:hover{color:#fff;text-decoration:underline;text-underline-offset:.22em}

.footer-bottom{
  max-width:var(--max);margin:1.75rem auto 0;padding-top:1.1rem;
  border-top:1px solid #2a3236;
  text-align:center;
  color:#8e9496;                   /* 5.5:1 — was #7a8084 = 4.2:1, failed AA */
  font-size:.85rem;
}
.footer-bottom p{color:inherit;margin:0}

/* ==========================================================================
   8. Responsive
   --------------------------------------------------------------------------
   Breakpoints, largest first:
     1260  single-row header -> two-row header (brand+langs / nav)
     1080  4-up grids relax
      980  3-up content grids relax
      900  two-row header -> hamburger + full-width language row
      860  splits and card rows stack
      560  image grids go single column
   ========================================================================== */

/* --- Header: two rows (brand + languages, then the nav) --------------- */
@media (max-width: 1259px){
  /* The header becomes two rows here, not at 900px: keep the scroll offset
     in step or anchored content lands under the sticky header. */
  :root{--header-h:100px}
  .site-nav{order:3;flex:1 0 100%}
  .site-nav ul{justify-content:center;gap:.1rem 1.15rem}
  .lang-menu{order:2;margin-left:auto}
  .brand-sub{display:none}
}

/* --- Large tablet: ease the widest grids before they get cramped ------ */
@media (max-width: 1080px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
  .agents{gap:1.5rem}
  .agent{padding:1.5rem 1.25rem}
}

/* --- Tablet: 3-up content becomes 2-up (tiles) or stacks (cards) ------ */
@media (max-width: 980px){
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .clubs > :last-child:nth-child(odd){grid-column:1 / -1;justify-self:center;width:calc(50% - .7rem)}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.5rem}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agents{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* A lone third card/agent should not be a half-width orphan. */
  .cards > :last-child:nth-child(odd),
  .agents > :last-child:nth-child(odd){grid-column:1 / -1}
  .agents > :last-child:nth-child(odd){max-width:24rem;justify-self:center;width:100%}
}

/* --- Mobile navigation ------------------------------------------------- */
@media (max-width: 900px){
  :root{--header-h:68px}    /* single header row; scroll offset only */

  .nav-toggle{display:block}

  /* The dropdown hangs off the bottom of the whole header, whatever its
     height — including the language row and the suggestion banner. */
  .site-nav{
    position:absolute;
    top:100%;left:0;right:0;
    order:0;flex:0 0 auto;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    box-shadow:0 20px 40px -24px rgba(31,42,46,.55);
    max-height:calc(100vh - var(--header-h));
    max-height:calc(100svh - var(--header-h));
    overflow-y:auto;
    overscroll-behavior:contain;
    /* Closed: hidden from sight AND from the tab order. The old version
       only translated it off-screen, so its links stayed focusable. */
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-.5rem);
    transition:opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
    transition:opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .site-nav ul{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:.25rem var(--gutter) 1rem;
  }
  .site-nav li{border-bottom:1px solid var(--line)}
  .site-nav li:last-child{border-bottom:0}
  .site-nav a{
    display:flex;align-items:center;
    min-height:var(--tap);           /* comfortable tap target */
    padding:.85rem .25rem;
    font-size:.85rem;
    white-space:normal;
  }
  .site-nav a.is-active::after{left:.25rem;right:auto;width:1.75rem;bottom:.6rem}

  /* Brand | language menu | hamburger, all on one row. */
  .lang-menu{order:1;margin-left:auto}
  .nav-toggle{order:2}

  .nav-wrap{padding-top:.5rem;padding-bottom:.35rem;gap:0 .75rem}
  .brand{flex:1 1 auto;min-width:0}
}

/* --- Small tablet / large phone --------------------------------------- */
@media (max-width: 860px){
  .split{grid-template-columns:1fr;gap:2rem}
  .split.reverse > :first-child{order:0}
  .cards{grid-template-columns:1fr}
  .cards > :last-child:nth-child(odd){grid-column:auto}
  .agents{grid-template-columns:1fr;gap:1.5rem}
  .agents > :last-child:nth-child(odd){max-width:none;grid-column:auto}
  .grid-2{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr 1fr;gap:1.5rem 2rem}
  .footer-brand{grid-column:1 / -1}
  .hero{min-height:60vh;min-height:60svh}
  .page-index .hero{min-height:74vh;min-height:74svh}
}

/* --- Phones ------------------------------------------------------------ */
@media (max-width: 560px){
  .grid-3,
  .grid-4{grid-template-columns:1fr}
  .clubs > :last-child:nth-child(odd){width:auto;justify-self:stretch}
  .grid-3 .tile,
  .grid-4 .tile{aspect-ratio:16/10}
  .stats{gap:1.75rem 1rem}
  .stat-label{font-size:.7rem;letter-spacing:.12em}
  /* Phones: address across the top, then Contact | Explore side by side.
     Stacking all three made the footer taller than the screen. Links stay
     >=32px tall (WCAG 2.5.8 asks for 24px). */
  .site-footer{padding:1.6rem var(--gutter) 1rem}
  .footer-inner{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:1.1rem 1rem}
  .footer-brand{grid-column:1 / -1}
  .site-footer h3{font-size:1.15rem;margin-bottom:.35rem}
  .site-footer h4{font-size:.72rem;margin-bottom:.35rem}
  .site-footer p{font-size:.84rem;margin-bottom:.15rem}
  .site-footer .footer-brand p{line-height:1.5}
  .footer-col > p:has(a){line-height:1.75}
  .footer-col p a{padding:.1rem 0}
  .footer-nav{grid-template-columns:1fr;gap:0}
  .footer-nav a{min-height:2rem;font-size:.84rem}
  .footer-bottom{margin-top:1.1rem;padding-top:.8rem;font-size:.76rem}
  .btn{width:100%;padding-left:1.25rem;padding-right:1.25rem}
  .btn + .btn{margin-left:0;margin-top:.75rem}
  .agent .btn{width:100%}
  .quote::before,
  .quote::after{font-size:2.2rem}
  .hero{min-height:56vh;min-height:56svh}
  .page-index .hero{min-height:68vh;min-height:68svh}
}

@media (max-width: 380px){
  .brand-name{font-size:1.02rem;letter-spacing:.12em}
  .lang-toggle{padding-left:.55rem;padding-right:.55rem;gap:.3rem}
}

/* Very short viewports (landscape phones): don't let the hero eat the page. */
@media (max-height: 520px) and (orientation: landscape){
  .hero,
  .page-index .hero{min-height:26rem}
}

/* ==========================================================================
   9. Reduced motion
   --------------------------------------------------------------------------
   Turns off smooth scrolling and every transition/animation for anyone who
   has asked their OS for less movement.
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    transition-delay:0s !important;
    scroll-behavior:auto !important;
  }
  /* Keep the states, drop the movement. */
  .card:hover{transform:none}
  .club:hover{transform:none}
  .site-nav,
  .site-nav.is-open{transform:none}
  .skip-link{transform:translateY(calc(-100% - 1rem))}
  .skip-link:focus-visible{transform:translateY(0)}
}

/* ==========================================================================
   10. Print
   ========================================================================== */
@media print{
  @page{margin:16mm}

  html{scroll-behavior:auto}
  body{
    background:#fff;
    color:#000;
    font-size:11pt;
    line-height:1.5;
  }

  /* Chrome that means nothing on paper. */
  .skip-link,
  .nav-toggle,
  .site-nav,
  .lang-menu,
  .lang-suggest,
  .hero-overlay,
  .card-link::after{display:none !important}

  .site-header{
    position:static;
    background:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    border-bottom:1pt solid #000;
  }
  .nav-wrap{padding:0 0 6pt;display:block}
  .brand,.brand-name,.brand-sub{color:#000}
  .brand-sub{display:inline}

  .hero,
  .page-hero{
    min-height:0;
    background:none !important;
    color:#000;
    border:0;
    padding:12pt 0;
    text-align:left;
  }
  .hero h1,.hero-sub,.hero .eyebrow{color:#000;text-shadow:none}

  .section,
  .section-tight,
  .contact-strip,
  .site-footer{
    padding:12pt 0;
    background:none !important;
    color:#000;
  }
  .contact-strip h2,
  .contact-strip p,
  .contact-strip a,
  .site-footer h3,
  .site-footer h4,
  .site-footer p,
  .site-footer a,
  .footer-nav a,
  .footer-bottom{color:#000 !important}
  .site-footer{border-top:1pt solid #000;margin-top:12pt}

  .card,
  .agent,
  .notice,
  .tile,
  .split,
  .quote,
  figure,
  img{break-inside:avoid;page-break-inside:avoid}
  h1,h2,h3,h4{break-after:avoid;page-break-after:avoid}

  .card,.agent,.notice{border:1pt solid #999;box-shadow:none}
  .card-img,.tile{display:none}
  .split{grid-template-columns:1fr}
  .cards,.agents,.stats,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr;gap:8pt}
  .stats{text-align:left}

  a{color:#000;text-decoration:underline}
  /* Spell out destinations that the reader cannot click. */
  .site-main a[href^="http"]::after,
  .site-footer a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;word-break:break-all}
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after{content:""}
}
