/* Self-hosted Google Fonts (Jost, Manrope) — latin, latin-ext, cyrillic */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Perla Homes — Quiet Luxury one-page
   ========================================================= */

:root {
  /* Palette — the only colours on the site */
  --green-900: #16302A;  /* darkest sections, footer */
  --green-700: #1F3B32;  /* brand green: primary buttons, dark blocks, headings on light */
  --pearl: #F8F5EF;      /* main background, text on green */
  --milk: #EFE7DA;       /* alternate section background */
  --sand: #D8C8AE;       /* soft fills (no lines on the site) */
  --taupe: #7A6F62;      /* secondary text on pearl (AA 4.5:1; on milk use --ink) */
  --ink: #1A1F1C;        /* body text on light */
  --gold: #B8975A;       /* accent only: logo area, small labels, link colour on --green-900, focus ring */
  --error: #9A2F22;      /* form errors only: 6.1:1 on --milk, 7.5:1 on #fff (WCAG AA) */

  /* Roles, built from the palette only */
  --ink-soft: var(--taupe);
  --line: var(--sand);
  --on-dark-soft: color-mix(in srgb, var(--pearl) 80%, transparent); /* ≥ 7.7:1 on both greens */

  --font-display: 'Jost', 'Century Gothic', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 104px;
  --s7: 160px;

  /* Layout grid — the only place that sets widths and rhythm.
     Every section aligns to the same container: left edge = logo, right edge = language switcher. */
  --container: 1280px;
  --gutter: 24px;           /* side margin outside the container */
  --section-space: 96px;    /* vertical padding of every section */
  --col-gap: 24px;          /* 12-column grid gap (About, Contact) */
  --head-gap: 24px;         /* heading → text */
  --content-gap: 40px;      /* text → content */
  --header-bar: 76px;      /* header bar design height: 48px logo + 14px above and below */
  --header-h: var(--header-bar); /* real header height — main.js overwrites it with the measured value */

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Layered, green-tinted shadows */
  --shadow-1: 0 1px 2px rgba(31, 59, 50, .05), 0 4px 12px rgba(31, 59, 50, .05);
  --shadow-2: 0 2px 4px rgba(31, 59, 50, .05), 0 12px 32px rgba(31, 59, 50, .09), 0 32px 64px rgba(31, 59, 50, .07);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 900px) { :root { --section-space: 140px; --content-gap: 64px; } }
@media (min-width: 1100px) { :root { --header-bar: 104px; } } /* 64px logo + 20px above and below */
@media (min-width: 1200px) { :root { --gutter: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* anchor targets start right below the fixed header */
section[id], footer[id] { scroll-margin-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* short texts: balance the lines so no word sits alone on the last line */
.lead, .hero__line, .why__body p, .costa-card__body p, .faq__a p, .contact-banner__text, .band__desc { text-wrap: balance; }
/* The only outline on the site: keyboard focus ring (:focus-visible never matches mouse or touch on buttons/links) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: var(--s1); left: var(--s1); z-index: 100; padding: var(--s1) var(--s2); background: var(--pearl); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h2, .hero__title, .band__name, .h3, .tag, .btn, .footer__h {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 300;
}
.h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: .14em;
}
.h3 { font-size: 15px; letter-spacing: .16em; font-weight: 400; line-height: 1.4; }
.lead { max-width: 56ch; margin-top: var(--head-gap); color: var(--ink-soft); }
/* Eyebrow (About, Contact): small label. Pearl, not gold: gold text is 4.4:1 on --green-700, below AA */
.eyebrow {
  margin-bottom: var(--head-gap);
  font-family: var(--font-display); font-size: 12px; line-height: 1.4; font-weight: 400;
  text-transform: uppercase; letter-spacing: .2em; color: var(--on-dark-soft);
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-space); }
.section--pearl { background: var(--pearl); }
.section--milk { background: var(--milk); --ink-soft: var(--ink); } /* taupe is below AA on milk */
.section--green { background: var(--green-700); color: var(--pearl); }
.section--dark { background: var(--green-900); color: var(--pearl); }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .06; mix-blend-mode: overlay;
}
.section-head { margin-bottom: var(--content-gap); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s4);
  font-size: 13px; font-weight: 400; letter-spacing: .2em;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
  position: relative; isolation: isolate; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--light { background: var(--pearl); color: var(--green-700); }
.btn--light::before { background: var(--milk); }
/* soft filled on dark / photo: pearl 12% → pearl with green text on hover */
.btn--ghost { background: color-mix(in srgb, var(--pearl) 12%, transparent); color: var(--pearl); transition: color .25s var(--ease), transform .35s var(--ease); }
.btn--ghost::before { background: var(--pearl); transition-duration: .25s; }
.btn--ghost:hover { color: var(--green-700); }
.btn--green { background: var(--green-700); color: var(--pearl); }
.btn--green::before { background: var(--green-900); }
.btn--outline { background: var(--milk); color: var(--ink); } /* soft secondary on light */
.btn--outline::before { background: var(--sand); }
.btn--small { min-height: 40px; padding: 0 var(--s3); font-size: 12px; }
@media (max-width: 599px) { .hero__actions .btn, .band .btn, .form .btn { width: 100%; } }

.arrow {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--milk);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.arrow:hover { transform: scale(1.08); }
.arrow:active { transform: scale(.94); }
.arrow:disabled { opacity: .3; cursor: default; transform: none; }
.arrow--light { background: color-mix(in srgb, var(--pearl) 12%, transparent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--pearl);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-700); /* no shadow: green header vs light sections is the separation */
  opacity: 0; transition: opacity .5s var(--ease);
}
.header.is-solid::before, .header.is-open::before { opacity: 1; }
/* Logo left, menu + language on the right, on the same container as every section */
.header__inner {
  height: var(--header-bar);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
/* Official round Perla emblem (assets/img/logo-perla-256): 48px → 64px, shown as is */
.logo { display: block; border-radius: 50%; transition: opacity .3s var(--ease); }
.logo__img { display: block; width: 48px; height: 48px; }
.logo:hover { opacity: .85; }
.logo:active { opacity: .7; }
.header__right { display: none; align-items: center; gap: var(--s4); }
/* One text style for every header item: menu links and language switcher */
.nav a, .lang__toggle {
  font-family: var(--font-display); font-size: 12px; font-weight: 400; line-height: 16px;
  letter-spacing: .12em; text-transform: uppercase;
  padding-block: var(--s1);
}
.nav { display: flex; gap: var(--s4); align-items: center; }
.nav a { display: block; transition: opacity .3s var(--ease); }
.nav a:hover { opacity: .65; }
.nav a:active { opacity: .45; }

/* Language dropdown */
.lang { position: relative; }
.lang__toggle { display: inline-flex; align-items: center; gap: 6px; color: inherit; transition: opacity .3s var(--ease); }
.lang__toggle:hover { opacity: .65; }
.lang__toggle:active { opacity: .45; }
.lang__chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .35s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute; top: calc(100% + var(--s1)); right: 0; min-width: 168px; padding: var(--s1) 0;
  background: var(--pearl); color: var(--ink); box-shadow: var(--shadow-2);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.lang.is-open .lang__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.lang__opt {
  display: block; width: 100%; padding: 10px var(--s3); text-align: left;
  font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  transition: opacity .25s var(--ease);
}
.lang__opt:hover { color: var(--ink); background: var(--milk); }
.lang__opt:active { opacity: .7; }
.lang__opt[aria-current="true"] { color: var(--green-700); font-weight: 500; }

.burger { width: 44px; height: 44px; margin-right: -10px; display: grid; place-content: center; gap: 7px; }
.burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.burger:active { opacity: .7; }
.mobile-menu { padding: var(--s2) var(--gutter) var(--s5); }
.mobile-menu a { display: block; padding: 12px 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: 15px; transition: opacity .3s var(--ease); }
.mobile-menu a:hover { opacity: .65; }
.mobile-menu a:active { opacity: .45; }
/* In the burger menu the list opens inline */
.lang--menu { margin-top: var(--s3); }
.lang--menu .lang__toggle { font-size: 15px; letter-spacing: .2em; min-height: 44px; }
.lang--menu .lang__list { position: static; display: none; min-width: 0; padding: 0; background: none; color: inherit; box-shadow: none; transform: none; }
.lang--menu.is-open .lang__list { display: block; }
.lang--menu .lang__opt { padding: 10px 0; font-size: 16px; color: var(--on-dark-soft); }
.lang--menu .lang__opt:hover { color: var(--pearl); background: none; }
.lang--menu .lang__opt[aria-current="true"] { color: var(--pearl); }

@media (min-width: 1100px) {
  .logo__img { width: 64px; height: 64px; }
  .header__right { display: flex; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: var(--pearl); text-align: center; overflow: hidden; background: var(--green-900);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(22, 48, 42, .42), transparent 70%),
    linear-gradient(to bottom, rgba(22, 48, 42, .5), rgba(22, 48, 42, .1) 30%, rgba(22, 48, 42, .25) 70%, rgba(22, 48, 42, .65));
}
.hero__content { position: relative; z-index: 2; padding: var(--header-h) var(--gutter) var(--s5); max-width: 980px; }
.hero__title {
  font-size: clamp(34px, 6.4vw, 92px); line-height: 1.08; letter-spacing: .12em;
  text-shadow: 0 2px 30px rgba(22, 48, 42, .25);
}
.hero__line { margin: var(--s3) auto 0; max-width: 40ch; font-size: clamp(16px, 1.3vw, 18px); color: rgba(248, 245, 239, .92); }
.hero__actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; background: var(--milk); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait img { position: absolute; inset: 0; }
.photo::after { /* warm green colour treatment */
  content: ""; position: absolute; inset: 0; background: var(--green-700); mix-blend-mode: multiply; opacity: .08; pointer-events: none;
}

/* ---------- Selected properties: 3 × 2 grid of real developments ---------- */
/* Each card is a 5-row subgrid (photo, location, name, price, button): these lines align across a row
   even when a name wraps; the location line is reserved when empty. No lines or outlines. */
.pgrid { display: grid; gap: 32px; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.pcard__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--milk); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__media img, .pcard:focus-within .pcard__media img { transform: scale(1.04); }
.pcard__tag {
  position: absolute; top: 16px; left: 16px; padding: 6px 12px; background: var(--pearl); color: var(--green-700);
  font-family: var(--font-display); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em;
}
.pcard__name { margin-top: 20px; font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 19px; line-height: 1.3; letter-spacing: .14em; color: var(--green-700); }
.pcard__price { margin-top: 6px; font-family: var(--font-display); font-size: 17px; line-height: 1.4; letter-spacing: .04em; color: var(--ink); }
.pcard__btn { justify-self: start; align-self: end; margin-top: 20px; }
.pcard__btn::before { transition-duration: .25s; }
@media (max-width: 599px) { .pcard__btn { justify-self: stretch; } }

/* ---------- Full-width bands ---------- */
.band { position: relative; color: var(--pearl); overflow: hidden; display: flex; align-items: flex-end; min-height: 76svh; background: var(--green-900); }
.band__media, .band__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__media img { object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(22, 48, 42, .75), rgba(22, 48, 42, .1) 65%);
}
.band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--green-700); mix-blend-mode: multiply; opacity: .12; }
.band__content { position: relative; z-index: 2; padding-block: var(--section-space); }
.band__content--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.tag { display: inline-block; padding: 6px 12px; background: var(--green-700); font-size: 11px; letter-spacing: .2em; font-weight: 400; }
.band__price { margin-top: var(--s3); font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: .04em; line-height: 1.1; }
.band__name { margin-top: var(--s1); font-size: 14px; letter-spacing: .22em; font-weight: 400; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.band__district { color: rgba(248, 245, 239, .75); }
.band__specs { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s2); font-size: 14px; color: rgba(248, 245, 239, .85); }
.band__desc { margin: var(--s1) 0 var(--s3); max-width: 56ch; color: rgba(248, 245, 239, .85); }
/* Marbella band: photo with soft shade bottom-left, text on it */
.band--hq { min-height: 80vh; }
.band--hq .band__media img { object-position: 50% 60%; }
.band--hq::before {
  background:
    radial-gradient(ellipse 80% 95% at 0% 100%, rgba(22, 48, 42, .82), rgba(22, 48, 42, .5) 42%, rgba(22, 48, 42, 0) 75%),
    linear-gradient(to top, rgba(22, 48, 42, .35), rgba(22, 48, 42, 0) 45%);
}
.hq__kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: rgba(248, 245, 239, .85); }
.hq__title { margin-top: var(--s2); font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.12; letter-spacing: .1em; }
.hq__text { margin-top: var(--head-gap); max-width: 44ch; font-size: clamp(16px, 1.2vw, 18px); color: rgba(248, 245, 239, .9); text-wrap: balance; }
@media (max-width: 767px) {
  .band--hq { min-height: 78svh; }
  .band--hq .band__media img { object-position: 58% 50%; }
  .band--hq::before { background: linear-gradient(to top, rgba(22, 48, 42, .82), rgba(22, 48, 42, .4) 50%, rgba(22, 48, 42, 0) 80%); }
}

/* ---------- Contact banner ---------- */
.band--contact { min-height: 70vh; align-items: center; }
.band--contact .band__media img { object-position: 60% 50%; }
.band--contact::before {
  background:
    linear-gradient(to right, rgba(22, 48, 42, .74), rgba(22, 48, 42, .5) 36%, rgba(22, 48, 42, .08) 68%, rgba(22, 48, 42, 0)),
    linear-gradient(to top, rgba(22, 48, 42, .25), rgba(22, 48, 42, 0) 40%);
}
.band--contact::after { opacity: .1; }
.contact-banner { max-width: 520px; }
.contact-banner__title { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.12; letter-spacing: .1em; }
.contact-banner__text { margin-top: var(--head-gap); max-width: 44ch; font-size: clamp(16px, 1.2vw, 17px); color: rgba(248, 245, 239, .9); }
.contact-banner__actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 767px) {
  .band--contact { min-height: 0; align-items: flex-end; }
  .band--contact .band__media img { object-position: 72% 50%; }
  .band--contact::before { background: linear-gradient(to top, rgba(22, 48, 42, .86), rgba(22, 48, 42, .62) 55%, rgba(22, 48, 42, .25)); }
  .contact-banner__actions .btn { width: 100%; }
}

/* ---------- Costa del Sol ---------- */
/* Heading + intro, then a 3×2 grid of equal cards: 4:3 photo, title, one line */
.costa-grid { display: grid; gap: var(--s3); }
.costa-card { --ink-soft: var(--taupe); display: flex; flex-direction: column; background: var(--pearl); box-shadow: var(--shadow-1); }
.costa-card__photo { aspect-ratio: 4 / 3; }
.costa-card__photo img { position: absolute; inset: 0; }
.costa-card__body { flex: 1; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
.costa-card__body p { color: var(--ink-soft); }
@media (min-width: 700px) { .costa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .costa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
  .costa-card__body { padding: var(--s3) var(--s4) var(--s4); }
}

/* ---------- About: editorial split ---------- */
/* ≥1024: two equal halves. Left: text in normal flow on the page's left margin line, centred vertically.
   Right: portrait full-bleed to the right screen edge and the full section height, caption on the photo.
   Below 1024: portrait edge to edge (4:5), then the text. No lines anywhere. */
#about { padding-block: 0; overflow: hidden; }
.about__figure { position: relative; margin: 0; }
.about__figure .photo { aspect-ratio: 4 / 5; }
.about__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.photo--founder::after { content: none; } /* client portrait shown untinted */
.about__figure::after { /* soft shade under the caption, lower 30% only */
  content: ""; position: absolute; inset: 70% 0 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(22, 48, 42, 0), rgba(22, 48, 42, .55));
}
.about__caption {
  position: absolute; z-index: 1; left: var(--s3); right: var(--s3); bottom: var(--s3);
  font-family: var(--font-display); font-size: 13px; line-height: 1.4; text-transform: uppercase; letter-spacing: .15em; color: var(--pearl);
}
.about__content { padding: 48px var(--gutter); }
.about .eyebrow { margin-bottom: var(--s2); color: var(--ink-soft); } /* taupe on pearl, 4.5:1 */
.about .h2 { margin-bottom: var(--s3); color: var(--green-700); }
.about__quote { margin: 0 0 var(--s4); max-width: 540px; font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 1.4; color: var(--green-700); text-wrap: pretty; }
.about__paras p { max-width: 540px; font-size: 17px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.about__paras p + p { margin-top: 20px; }
/* phones / tablets: value left, label right; labels share one column */
.about__facts { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.about__facts li { display: contents; }
.about__value { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 1.1; color: var(--green-700); }
.about__label { font-family: var(--font-display); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft); white-space: nowrap; }
/* filled green CTA: no border, darker green on hover */
.about__cta { width: 100%; min-height: 52px; margin-top: var(--s4); padding: 0 40px; font-size: 13px; letter-spacing: .2em; }
.about__cta::before { transition-duration: .25s; }
@media (min-width: 1024px) {
  .about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } /* always two equal halves */
  .about__figure { grid-column: 2; grid-row: 1; }
  .about__figure .photo { aspect-ratio: auto; height: 100%; }
  .about__caption { left: 32px; right: 32px; bottom: 32px; }
  .about__content {
    grid-column: 1; grid-row: 1; align-self: center;
    padding-block: var(--about-pad, var(--s6));
    /* left edge = the container's content line (logo line): half width (100%) minus half the container */
    padding-left: max(var(--gutter), calc(100% - var(--container) / 2));
    padding-right: clamp(32px, 3vw, 56px);
  }
  .about__content > :not(.about__facts) { max-width: 540px; }
  .about__cta { width: auto; } /* the facts row may use the full column so EN labels stay on one row */
  .about__quote { font-size: 24px; }
  /* labels stay on one line; longer languages (ES/RU) wrap the third fact to a second row instead of overflowing */
  .about__facts { display: flex; flex-wrap: wrap; gap: var(--s3) 48px; align-items: flex-start; }
  .about__facts li { display: flex; flex-direction: column; gap: 4px; }
  .about__value { font-size: 40px; }
}
/* Enough height: the whole block fits one screen under the header; the photo fills that height */
@media (min-width: 1024px) and (min-height: 640px) {
  /* min-height, not height: a longer language grows the section instead of being cut off */
  #about { --about-pad: clamp(32px, 5vh, 72px); min-height: calc(100svh - var(--header-h)); display: grid; }
  .about .eyebrow { margin-bottom: clamp(10px, 1.4vh, 16px); }
  .about .h2 { margin-bottom: clamp(14px, 2vh, 24px); }
  .about__quote { margin-bottom: clamp(12px, 2.2vh, 40px); }
  .about__paras p + p { margin-top: clamp(12px, 1.6vh, 20px); }
  .about__facts, .about__cta { margin-top: clamp(12px, 2.2vh, 40px); }
  .about .h2 { font-size: clamp(32px, 4.2vh, 52px); }
  .about__quote { font-size: clamp(20px, 2.4vh, 26px); }
  .about__paras p { font-size: clamp(16px, 1.7vh, 18px); line-height: 1.6; }
  .about__value { font-size: clamp(28px, 3.6vh, 40px); }
}

/* ---------- Reviews (hidden until real reviews) ---------- */
.reviews__slider { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.reviews__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.review { flex: 0 0 100%; scroll-snap-align: start; text-align: center; padding: var(--s4); }

/* ---------- Why choose us ---------- */
.why { display: grid; gap: var(--s3); }
.why__card { --ink-soft: var(--ink); display: grid; grid-template-columns: 38% 1fr; background: var(--milk); box-shadow: var(--shadow-1); }
.why__card .photo { min-height: 180px; }
.why__card .photo img { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.why__card:hover .photo img { transform: scale(1.04); }
.why__body { padding: var(--s4) var(--s3); display: flex; flex-direction: column; justify-content: center; gap: var(--s1); }
.why__body p { font-size: 16px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .why { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .why__card .photo { min-height: 240px; }
  .why__body { padding: var(--s4); }
}

/* ---------- FAQ ---------- */
/* Two columns: static intro + CTA on the left, accordion on the right.
   Phones: one column, the CTA moves under the questions (.faq-side becomes display: contents). */
.faq-layout { display: flex; flex-direction: column; }
.faq-side { display: contents; }
.faq-side__head { margin-bottom: var(--content-gap); }
.faq-side__cta { order: 3; margin-top: var(--content-gap); }
.faq-side__ask { font-family: var(--font-display); font-weight: 300; font-size: 19px; line-height: 1.4; }
.faq-side__btn { margin-top: var(--s3); width: 100%; }
@media (min-width: 900px) {
  .faq-layout { display: grid; grid-template-columns: 7fr 13fr; gap: var(--s6); align-items: start; }
  .faq-side { display: block; }
  .faq-side__head { margin-bottom: 0; }
  .faq-side__btn { width: auto; }
}

@media (min-width: 900px) { .faq { margin-top: calc(var(--s3) * -1); } } /* first question's padding: tops line up with the heading */
.faq__item { position: relative; }
.faq__h { font: inherit; }
.faq__q {
  width: 100%; min-height: 72px; padding: var(--s3) 0;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: var(--s2);
  text-align: left; cursor: pointer;
}
.faq__num { position: relative; font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; color: var(--ink-soft); align-self: start; padding-top: 6px; }
.faq__num::after { /* gold copy fades in: animates opacity only */
  content: attr(data-n); position: absolute; left: 0; top: 6px; color: var(--green-700);
  opacity: 0; transition: opacity .35s var(--ease);
}
.faq__text {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; letter-spacing: .01em;
  transition: transform .45s var(--ease);
}
.faq__icon { position: relative; width: 18px; height: 18px; justify-self: end; transition: transform .45s var(--ease); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--ink);
  transition: transform .45s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__q:hover .faq__text, .faq__q:focus-visible .faq__text { transform: translateX(8px); }
.faq__q:hover .faq__num::after, .faq__q:focus-visible .faq__num::after, .faq__item.is-open .faq__num::after { opacity: 1; }
.faq__q:active .faq__text { opacity: .7; }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 var(--s5) var(--s4) calc(40px + var(--s2)); color: var(--ink-soft); }
.faq__a-inner p { max-width: 60ch; }
@media (max-width: 599px) {
  .faq__q { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 12px; }
  .faq__a-inner { padding: 0 0 var(--s3) calc(32px + 12px); }
}

/* ---------- Contact: light and compact ---------- */
/* Top: label, heading, intro. 40px down: form in columns 1–7 (2-column fields, consent + Send in one row),
   contact info in columns 9–12 (top = first form label), icons right under it. No lines anywhere. */
#contact { padding-block: clamp(48px, 7vh, 80px); }
.contact { display: grid; gap: 40px var(--col-gap); }
.contact .eyebrow { margin-bottom: var(--s2); color: var(--ink-soft); } /* ink on milk: taupe is 4.0:1 there, below AA */
.contact__title { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(32px, 4vw, 56px); line-height: 1.1; letter-spacing: .08em; color: var(--green-700); }
.contact__line { max-width: 480px; margin-top: var(--s2); font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: balance; }
.contact__info { display: flex; flex-direction: column; gap: var(--s3); }
.contact__list { display: flex; flex-direction: column; gap: var(--s3); }
.contact__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.contact__label { font-family: var(--font-display); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-soft); }
.contact__value { font-size: 17px; line-height: 1.5; color: var(--ink); }
a.contact__value { color: var(--green-700); transition: opacity .25s var(--ease); }
a.contact__value:hover { opacity: .7; }
a.contact__value:active { opacity: .5; }
.contact__value--sub { font-size: 15px; }
/* 20px icons, 24px apart; each link keeps a 44px touch area */
.contact__social { display: flex; margin-inline: -12px; margin-block: -12px; }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--green-700); transition: opacity .25s var(--ease); }
.contact__icon svg { width: 20px; height: 20px; }
.contact__icon .icon-line { fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact__icon .icon-line circle:last-child { fill: currentColor; stroke: none; }
.contact__icon .icon-fill { fill: currentColor; }
.contact__icon:hover { opacity: .7; }
.contact__icon:active { opacity: .5; }
@media (min-width: 900px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__head { grid-column: 1 / -1; }
  .form { grid-column: 1 / span 7; }
  .contact__info { grid-column: 9 / span 4; align-self: start; }
}

/* ---------- Form: pearl fields on milk, no borders ---------- */
.form { display: grid; gap: 16px; }
@media (min-width: 700px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field { position: relative; display: flex; flex-direction: column; gap: var(--s1); }
.field > label:not(.check) {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; line-height: 1.4; color: var(--green-700);
}
.field input, .field textarea, .field select {
  width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 0;
  background: var(--pearl); font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink);
  transition: background-color .25s var(--ease);
}
.field textarea { height: auto; padding: 8px 14px; line-height: 1.4; resize: none; }
.field select { appearance: none; cursor: pointer; padding-right: 40px; }
.field select option { color: var(--ink); background: var(--pearl); }
.field--select::after { /* thin chevron */
  content: ""; position: absolute; right: 18px; bottom: 19px; width: 7px; height: 7px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.field input:hover, .field textarea:hover, .field select:hover { background: color-mix(in srgb, var(--pearl) 50%, #fff); }
/* focus: white fill; the ring only for keyboard users (main.js sets .is-keyboard on <html> after Tab) */
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; }
.is-keyboard .field input:focus, .is-keyboard .field textarea:focus, .is-keyboard .field select:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 9999s; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { background: #fff; box-shadow: inset 0 0 0 1px var(--error); }
.field.is-invalid .check__box { box-shadow: inset 0 0 0 1px var(--error); }
.field__error { display: none; margin: 0; font-size: 14px; line-height: 1.4; color: var(--error); }
/* message: error left, live counter right */
.field__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.field__count { margin: 0 0 0 auto; flex: 0 0 auto; font-size: 13px; line-height: 1.4; color: var(--ink); opacity: .75; font-variant-numeric: tabular-nums; }
/* honeypot: off-screen, out of the tab order and the accessibility tree */
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.field.is-invalid .field__error { display: block; animation: field-error .4s var(--ease) both; }
@keyframes field-error { from { opacity: 0; transform: translateY(-4px); } }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--pearl); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .25s var(--ease); }
.check__box::after { /* pearl tick on green */
  content: ""; width: 5px; height: 9px; margin-top: -3px;
  border-right: 1.5px solid var(--pearl); border-bottom: 1.5px solid var(--pearl);
  opacity: 0; transform: rotate(45deg) scale(.4); transition: transform .3s var(--ease-spring), opacity .2s var(--ease);
}
.check:hover .check__box { background: #fff; }
.check input:checked + .check__box { background: var(--green-700); }
.check input:checked + .check__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check:active .check__box { transform: scale(.92); }
.check a { color: var(--green-700); font-weight: 500; transition: opacity .25s var(--ease); }
.check a:hover { opacity: .7; }
.check a:active { opacity: .5; }
/* consent left, Send right (stacked on phones) */
.form__end { display: flex; flex-direction: column; gap: var(--s3); }
.form__send { min-height: 48px; padding: 0 48px; font-size: 13px; letter-spacing: .2em; }
.form__send::before { transition-duration: .25s; }
@media (min-width: 700px) {
  .form__end { flex-direction: row; align-items: center; justify-content: space-between; }
  .form__send { flex: 0 0 auto; }
}
.form__success { color: var(--green-700); animation: field-error .5s var(--ease) both; }
.form__success[hidden] { display: none; }
.form__notice { margin: 0; color: var(--ink); animation: field-error .5s var(--ease) both; }
.form__notice[hidden] { display: none; }
.form__notice a { color: var(--green-700); font-weight: 500; white-space: nowrap; transition: opacity .25s var(--ease); }
.form__notice a:hover { opacity: .7; }
.form__notice a:active { opacity: .5; }
.form__notice a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* no double submit: the button is disabled while the request is prepared */
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn:disabled::before { transform: scaleX(0); }

/* ---------- Footer: compact ---------- */
/* Desktop: logo + line (cols 1–4) | Navigation (5–6) | Contact (7–9) | Languages (10–12), all tops on one line.
   Phones: logo + line, Navigation + Languages side by side, Contact, bottom bar. No lines anywhere. */
.footer { background: var(--green-900); color: var(--pearl); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--col-gap); }
.footer__brand { grid-column: 1 / -1; }
.footer__logo { display: block; width: 96px; height: 96px; }
.footer__line { max-width: 280px; margin-top: 20px; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--pearl) 70%, transparent); text-wrap: balance; }
.footer__col--nav { grid-column: 1; grid-row: 2; }
.footer__col--langs { grid-column: 2; grid-row: 2; }
.footer__col--contact { grid-column: 1 / -1; grid-row: 3; }
.footer__h { margin-bottom: 24px; font-size: 12px; line-height: 1.4; font-weight: 400; letter-spacing: .2em; color: var(--gold); } /* gold on --green-900: 5.1:1 */
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* links and values: one style, colour only (no gold, no underline) */
.flink, .footer__value { font-size: 16px; line-height: 1.5; color: color-mix(in srgb, var(--pearl) 85%, transparent); }
.flink { transition: color .25s var(--ease); }
.flink:hover { color: var(--pearl); }
.flink:active { opacity: .7; }
.footer__langs .lang__btn[aria-pressed="true"] { color: var(--pearl); font-weight: 500; }
.footer__pairs { display: flex; flex-direction: column; gap: 20px; }
.footer__pairs li { display: flex; flex-direction: column; align-items: flex-start; }
.footer__label { margin-bottom: 4px; font-family: var(--font-display); font-size: 12px; line-height: 1.25; text-transform: uppercase; letter-spacing: .15em; color: color-mix(in srgb, var(--pearl) 55%, transparent); } /* 4.9:1 */
.footer__pairs .flink + .flink { margin-top: 12px; }
.footer__bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 48px; font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--pearl) 60%, transparent); }
.footer__bottom .flink { font-size: 14px; color: color-mix(in srgb, var(--pearl) 60%, transparent); }
.footer__bottom .flink:hover { color: var(--pearl); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
/* phones: room under the last line for the fixed WhatsApp button (48px + 16px) */
@media (max-width: 767px) { .footer { padding-bottom: 80px; } }
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__legal { gap: 32px;
    /* keep the right-hand links clear of the fixed WhatsApp button (52px, 24px from the edge) */
    padding-right: max(0px, calc(88px - max(var(--gutter), (100vw - var(--container)) / 2))); }
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / span 4; }
  .footer__col--nav { grid-column: 5 / span 2; grid-row: 1; }
  .footer__col--contact { grid-column: 7 / span 3; grid-row: 1; }
  .footer__col--langs { grid-column: 10 / span 3; grid-row: 1; }
}

/* ---------- WhatsApp + cookie ---------- */
.wa {
  position: fixed; right: var(--s2); bottom: var(--s2); z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-700); color: var(--pearl);
  box-shadow: 0 4px 12px rgba(22, 48, 42, .18), 0 12px 28px rgba(22, 48, 42, .16);
  translate: 0 0;
  transition: transform .35s var(--ease), translate .5s var(--ease);
}
.wa svg { width: 24px; height: 24px; fill: currentColor; }
.wa:hover { transform: scale(1.08); }
.wa:active { transform: scale(.95); }
@media (min-width: 768px) { .wa { right: var(--s3); bottom: var(--s3); } }
/* while the cookie banner is shown the button rides above it (main.js sets --consent-h) */
.consent-open .wa { translate: 0 calc(-1 * var(--consent-h, 0px)); }

/* Cookie banner: full-width bar on --green-900, three equal buttons */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: var(--s3) 0; background: var(--green-900); color: var(--pearl);
  box-shadow: 0 -1px 2px rgba(22, 48, 42, .08), 0 -12px 32px rgba(22, 48, 42, .18);
  animation: consent-in .6s var(--ease) both;
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } }
.consent__inner { display: grid; gap: var(--s2); }
.consent__text p { margin: 0; max-width: 68ch; font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); }
.consent__text a { color: var(--gold); font-weight: 500; white-space: nowrap; transition: opacity .25s var(--ease); } /* gold on --green-900: 5.1:1 */
.consent__text a:hover { opacity: .75; }
.consent__text a:active { opacity: .55; }
.consent__actions { display: grid; grid-template-columns: 1fr; gap: var(--s1); }
.consent__actions .btn { width: 100%; padding-inline: var(--s2); font-size: 11px; letter-spacing: .14em; }
@media (min-width: 600px) { .consent__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4); }
  .consent__actions { grid-template-columns: repeat(3, 176px); }
}

/* Cookie settings panel (native modal <dialog>: focus trap + Esc) */
.consent-panel {
  width: min(560px, calc(100vw - 2 * var(--s2))); max-height: calc(100svh - 2 * var(--s2));
  margin: auto; padding: 0; border: 0; background: var(--pearl); color: var(--ink);
  box-shadow: var(--shadow-2), 0 48px 96px rgba(22, 48, 42, .18);
}
.consent-panel[open] { animation: panel-in .45s var(--ease) both; }
.consent-panel::backdrop { background: rgba(22, 48, 42, .55); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.consent-panel__inner { padding: var(--s4) var(--s3) var(--s3); }
@media (min-width: 600px) { .consent-panel__inner { padding: var(--s4); } }
.consent-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.consent-panel__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 1.3; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); }
.consent-panel__title:focus { outline: none; }
.consent-panel__close { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px 0 0; color: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.consent-panel__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.consent-panel__close:hover { transform: rotate(90deg); }
.consent-panel__close:active { opacity: .6; }
.consent-panel__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent-panel__intro, .consent-panel__note { margin: var(--s2) 0 0; font-size: 15px; line-height: 1.7; color: var(--ink); }
.consent-panel__note { padding: var(--s2); background: var(--milk); font-size: 14px; }
.consent-panel__note[hidden], .consent-row[hidden] { display: none; }
.consent-panel__list { margin: var(--s3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s1); }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s2); background: var(--milk); }
.consent-row__name { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--green-700); }
.consent-row__desc { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.consent-panel__actions { display: grid; grid-template-columns: 1fr; gap: var(--s1); margin-top: var(--s3); }
.consent-panel__actions .btn { width: 100%; padding-inline: var(--s2); font-size: 11px; letter-spacing: .14em; }
@media (min-width: 480px) { .consent-panel__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Square switch in the site style */
.switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch__track { position: absolute; inset: 0; background: var(--sand); transition: background-color .25s var(--ease); }
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--pearl);
  box-shadow: 0 1px 2px rgba(22, 48, 42, .2); transition: transform .35s var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--green-700); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: .6; }
.switch input:not(:disabled):hover + .switch__track::after { transform: translateX(2px); }
.switch input:not(:disabled):checked:hover + .switch__track::after { transform: translateX(18px); }
.switch input:not(:disabled):active + .switch__track { opacity: .8; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Reveal (JS adds .js) ---------- */
.js [data-anim="hero"] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim="hero"] { opacity: 1; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Privacy and cookie policy (privacy.html) ---------- */
.legal-head {
  padding: calc(var(--header-h) + var(--s5)) 0 var(--s5);
  background: var(--green-900); color: var(--pearl);
}
.legal-head__title {
  margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1.15; letter-spacing: .1em; text-transform: uppercase; text-wrap: balance;
}
@media (max-width: 599px) { .legal-head__title { font-size: 22px; letter-spacing: .06em; } }
.legal-head__date { margin: var(--s3) 0 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); }
.legal-page { background: var(--pearl); }
.legal { max-width: 720px; padding: var(--s5) 0 var(--s6); font-size: 17px; line-height: 1.7; color: var(--ink); }
.legal p, .legal ul { margin: var(--s2) 0 0; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--gold); }
.legal strong { font-weight: 500; color: var(--green-700); }
.legal a:not(.btn) {
  color: var(--green-700); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--sand); transition: opacity .25s var(--ease);
}
.legal a:not(.btn):hover { opacity: .7; }
.legal a:not(.btn):active { opacity: .5; }
.legal code { padding: 2px 6px; background: var(--milk); font-size: .85em; font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
/* table of contents */
.legal-toc { padding: var(--s3); background: var(--milk); }
.legal-toc__title { margin: 0 0 var(--s2); font-family: var(--font-display); font-weight: 400; font-size: 13px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--green-700); }
.legal-toc ol { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; font-size: 16px; line-height: 1.5; }
.legal-toc ol li::marker { color: var(--ink); font-variant-numeric: tabular-nums; }
.legal .legal-toc a:not(.btn) { text-decoration: none; }
@media (min-width: 700px) { .legal-toc { padding: var(--s4); } }
/* sections */
.legal-sec { padding-top: var(--s5); scroll-margin-top: calc(var(--header-h) + var(--s1)); }
.legal-sec h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.3; letter-spacing: .06em; color: var(--green-700); }
.legal-sec h3 { margin: var(--s3) 0 0; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--green-700); }
.legal-actions { padding-top: var(--s1); }
/* storage table: soft row fills instead of lines; stacked cards on phones */
.legal-table { margin-top: var(--s3); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal-table th { padding: 12px 16px; background: var(--milk); font-weight: 500; text-align: left; color: var(--green-700); }
.legal-table td { padding: 14px 16px; vertical-align: top; }
.legal-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--milk) 55%, var(--pearl)); }
@media (max-width: 699px) {
  .legal { font-size: 16px; }
  .legal-table thead { display: none; } /* each cell shows its own label below */
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { padding: var(--s2); background: var(--milk); }
  .legal-table tbody tr:nth-child(even) { background: var(--milk); }
  .legal-table tr + tr { margin-top: var(--s1); }
  .legal-table td { padding: 4px 0; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .75; }
}

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
  .btn { padding: 0 var(--s3); letter-spacing: .12em; }
  .h2 { font-size: 21px; letter-spacing: .1em; }
  .why__card { grid-template-columns: 1fr; }
  .why__card .photo { aspect-ratio: 16 / 9; min-height: 0; }
  .why__body { padding: var(--s3); }
  .wa { width: 48px; height: 48px; }
}
