/*
  Symphony Spaces marketing site.
  Brand: Poppins (Regular 400, Medium 500 only), self-hosted. UK English copy. No em dashes.
  Palette: Brunswick Green #1C4E4F, Cambridge Blue #79A682, Celadon #B6D2AD, Sea Salt #F6FAF9,
  Carbon Wing #101418; supplementary Mimosa #F2B949, Gunmetal #142828, Mint Cream #D7E7E1.
*/

/* Self-hosted Poppins. Drop the woff2 files into assets/fonts/ (see fonts/README.md). Until
   they are present the stack falls back to a system geometric sans, so the site still renders.
   font-src 'self' in the CSP allows only these self-hosted files. Split by unicode-range so
   latin-ext only loads when a page actually uses those glyphs. */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-2019, U+201C-201D, U+2020-2022, U+2026, U+2039-203A, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-2019, U+201C-201D, U+2020-2022, U+2026, U+2039-203A, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brunswick-green: #1c4e4f;
  --brunswick-dark: #163f40;
  --cambridge-blue: #79a682;
  --celadon: #b6d2ad;
  --sea-salt: #f6faf9;
  --carbon-wing: #101418;
  --mimosa: #f2b949;
  --gunmetal: #142828;
  --mint-cream: #d7e7e1;

  --bg: var(--sea-salt);
  --ink: var(--carbon-wing);
  --ink-soft: #3a4a48;
  --primary: var(--brunswick-green);
  --on-primary: #ffffff;
  --accent: var(--mimosa);
  --border: #dbe6e2;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1320px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.05);
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.04), 0 14px 34px rgba(16, 20, 24, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; margin-bottom: 0.35em; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
/* Eyebrow kicker. Not a generic pill: a short Mimosa rule echoing the wordmark's
   underline, then spaced uppercase text. The bar is the logo's signature detail. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary); background: none;
  padding: 0; margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; flex: 0 0 auto; width: 28px; height: 3px; border-radius: 2px;
  background: var(--accent);
}
.acc { color: var(--cambridge-blue); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 66ch; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--cambridge-blue); outline-offset: 2px; border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--gunmetal); }
.btn--accent:hover { background: #eaad33; box-shadow: var(--shadow); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--brunswick-dark); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--cambridge-blue); background: #fff; }

/* Header (dark) */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brunswick-green); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 52px; width: auto; }
.site-header .wordmark { font-size: 1.2rem; }
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
}
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--mint-cream); font-weight: 500; font-size: 1.05rem; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .btn { padding: 11px 22px; font-size: 1rem; }
.nav .btn--ghost { color: #fff; border-color: rgba(214, 231, 225, 0.4); }
.nav .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* Hero */
/* Dark hero, flowing out of the green header for one continuous band before the content
   turns light. Depth from a layered green-to-gunmetal gradient plus soft radial glows. */
.hero {
  position: relative;
  color: var(--sea-salt);
  background:
    radial-gradient(820px 480px at 88% -10%, rgba(121, 166, 130, 0.38), transparent 60%),
    radial-gradient(680px 420px at 2% 118%, rgba(182, 210, 173, 0.20), transparent 55%),
    linear-gradient(160deg, var(--brunswick-green) 0%, #163b3c 48%, var(--gunmetal) 100%);
  overflow: hidden;
  /* The hero manages its own vertical rhythm via .hero__inner; drop the generic section padding
     so content is not pushed down by a double top gap. */
  padding-block: 0;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 84px); }
.hero h1 { margin-bottom: 0.35em; color: #fff; }
.hero .eyebrow { background: none; color: var(--celadon); }
.hero .acc { color: var(--celadon); }
.hero .lead { font-size: 1.18rem; color: var(--mint-cream); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__note { margin-top: 20px; font-size: 0.9rem; color: rgba(214, 231, 225, 0.75); }
.hero .btn--ghost { color: #fff; border-color: rgba(214, 231, 225, 0.4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* Hero art: a live booking dashboard mock, all first-party (no external media). */
.hero__art { display: grid; place-items: center; align-self: center; }
.hero-dash {
  width: 100%;
  color: var(--mint-cream);
  background: linear-gradient(180deg, rgba(20, 40, 40, 0.72), rgba(16, 20, 24, 0.82));
  border: 1px solid rgba(214, 231, 225, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  padding: 20px;
  backdrop-filter: blur(2px);
}
.hero-dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hero-dash__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #fff; font-size: 0.95rem; }
.hero-dash__live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--celadon); }
.hero-dash__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--celadon); box-shadow: 0 0 0 0 rgba(182, 210, 173, 0.6); animation: livepulse 2.4s ease-in-out infinite; }
.hero-dash__when { font-size: 0.78rem; color: rgba(214, 231, 225, 0.65); }
.hero-dash__metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.hero-dash__metric b { font-size: 2.4rem; font-weight: 500; color: #fff; line-height: 1; }
.hero-dash__delta { font-size: 0.8rem; color: var(--celadon); font-weight: 500; }
.hero-dash__label { font-size: 0.75rem; color: rgba(214, 231, 225, 0.65); margin-bottom: 14px; }
.hero-dash__spark { width: 100%; height: 44px; display: block; margin-bottom: 16px; }
.hero-dash__rows { display: grid; gap: 8px; margin-bottom: 16px; }
.hero-dash__row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; font-size: 0.82rem; }
.hero-dash__time { color: rgba(214, 231, 225, 0.6); font-variant-numeric: tabular-nums; }
.hero-dash__room { color: #eef5f2; }
.hero-dash__chip { font-size: 0.68rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.hero-dash__chip--booked { background: rgba(121, 166, 130, 0.28); color: var(--celadon); }
.hero-dash__chip--held { background: rgba(242, 185, 73, 0.24); color: var(--mimosa); }
.hero-dash__chip--free { background: rgba(214, 231, 225, 0.14); color: rgba(214, 231, 225, 0.8); }
.hero-dash__bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; }
.hero-dash__bar span { display: block; height: 100%; }
.hero-dash__bar .is-booked { background: var(--cambridge-blue); width: 58%; }
.hero-dash__bar .is-held { background: var(--mimosa); width: 16%; }
.hero-dash__bar .is-free { background: rgba(214, 231, 225, 0.22); width: 26%; }
.hero-dash__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.72rem; color: rgba(214, 231, 225, 0.7); }
.hero-dash__legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero-dash__legend i { width: 9px; height: 9px; border-radius: 3px; }
.hero-dash__legend i.is-booked { background: var(--cambridge-blue); }
.hero-dash__legend i.is-held { background: var(--mimosa); }
.hero-dash__legend i.is-free { background: rgba(214, 231, 225, 0.35); }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(182, 210, 173, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(182, 210, 173, 0); } }

/* Trust bar */
.trust { background: var(--gunmetal); color: var(--mint-cream); }
.trust__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-block: 28px; }
.trust__lead { margin: 0; font-weight: 500; color: #fff; font-size: 0.95rem; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; list-style: none; }
.trust__list li { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; }
.trust__badge {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--celadon); color: var(--gunmetal);
  font-size: 0.7rem; font-weight: 500; line-height: 1;
}

/* Generic section rhythm */
section { padding-block: clamp(48px, 7vw, 88px); }
.who .section-lead { margin-top: 8px; }

/* Features */
.features h2 + .section-lead { margin-bottom: 8px; }
.feature-group { margin-top: 44px; }
.feature-group__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; color: var(--primary); margin-bottom: 18px; }
.feature-group__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--mint-cream); color: var(--primary); }
.feature-group__icon svg { width: 20px; height: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--celadon); }
.card h4 { color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Security band: reuses the features layout on a tinted ground so it reads as its own section. */
.security { background: linear-gradient(180deg, var(--sea-salt), #eef4f1); }
.security .baseline { background: #fff; border: 1px solid var(--border); }

/* Showcase */
.showcase { background: linear-gradient(180deg, #ffffff, var(--sea-salt)); }
.showcase__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticklist { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.ticklist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cambridge-blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
.art-svg { width: 100%; height: auto; border-radius: 16px; }

/* How it works */
.how .steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.how .steps li { display: flex; gap: 16px; align-items: flex-start; }
.step__n {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 500;
}
.how h3 { margin-bottom: 4px; }
.how p { margin: 0; color: var(--ink-soft); }

/* Pricing */
.pricing__plans, .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--cambridge-blue); box-shadow: var(--shadow); }
.plan__tag {
  position: absolute; top: -13px; left: 28px; background: var(--cambridge-blue); color: #fff;
  font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; margin: 0;
}
.plan__name { margin-bottom: 2px; }
.plan__for { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.plan__price { margin: 0 0 4px; }
.plan__poa { font-size: 1.6rem; font-weight: 500; color: var(--primary); }
.plan__quote { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; }
.plan__features { list-style: none; display: grid; gap: 10px; margin: 8px 0 22px; }
.plan__features li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--ink-soft); }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--celadon);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 11px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 11px no-repeat;
}
.plan__cta { margin-top: auto; }
.pricing__note { margin-top: 24px; color: var(--ink-soft); font-size: 0.9rem; max-width: 80ch; }
.baseline { margin-top: 32px; background: var(--mint-cream); border-radius: 18px; padding: 28px; }
.baseline h3 { color: var(--primary); }
.baseline p { margin: 0; color: var(--ink-soft); }

/* CTA band */
.cta { background: var(--brunswick-green); color: #fff; text-align: center; }
.cta__inner { max-width: 720px; margin-inline: auto; }
.cta h2 { color: #fff; }
.cta p { color: var(--mint-cream); }
.cta .btn { margin-top: 12px; }

/* Content pages (contact, accessibility) */
/* page-hero is a <section>, so it already carries the generic section padding-block above; the
   .container override must not add a second one on top or the banner gains a massive double gap.
   Zero the section padding here and let the container own the (compact) banner spacing. */
.page-hero { background: var(--sea-salt); border-bottom: 1px solid var(--border); padding-block: 0; }
.page-hero .container { padding-block: clamp(32px, 4.5vw, 56px); }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4em; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; max-width: 1040px; margin-inline: auto; }
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-terms { margin-top: 12px; font-size: 0.82rem; }
.contact-status { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; }
.contact-status--ok { background: #e6f4ea; color: #1b5e20; border: 1px solid #b7dfc1; }
.contact-status--bad { background: #fdecea; color: #b71c1c; border: 1px solid #f3c2bd; }
.contact-aside { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 108px; }
.contact-aside h3 { color: var(--primary); margin-top: 0; }

/* "More from MCR Systems" cross-sell band under the contact form. */

.more-mcr { background: linear-gradient(180deg, #eef4f1, var(--sea-salt)); border-top: 1px solid var(--border); }
.more-mcr .container { padding-block: clamp(40px, 6vw, 68px); }
.more-mcr__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 26px; }
.product-card h4 { margin: 0 0 6px; color: var(--primary); font-size: 1.05rem; }
.product-card p { color: var(--ink-soft); }
@media (max-width: 780px) { .more-mcr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .more-mcr__grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--gunmetal); color: #c6d4cf; padding-block: 52px 28px; }
.site-footer a { color: var(--mint-cream); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 9px; }
.site-footer__col h4 { color: #fff; margin: 0 0 6px; font-size: 0.95rem; }
.wordmark { font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.wordmark--sm { font-size: 1.15rem; }
.site-footer__logo { display: block; height: 40px; width: auto; margin-bottom: 12px; }
.site-footer .muted { color: #9fb2ac; }
.site-footer__base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(214, 231, 225, 0.18); }
.site-footer__base--flush { margin-top: 0; border-top: 0; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.site-footer__base .muted { color: #9fb2ac; margin: 0; }

/* Responsive */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .showcase__inner { grid-template-columns: 1fr; }
  .how .steps { grid-template-columns: 1fr; }
  .plans, .pricing__plans { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 88px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--brunswick-green); padding: 12px 24px 22px;
    border-top: 1px solid rgba(214, 231, 225, 0.16);
    max-height: 0; overflow: hidden; transition: max-height 0.24s ease; visibility: hidden;
  }
  .nav.is-open { max-height: 420px; visibility: visible; }
  .nav a { padding: 10px 0; }
  .nav .btn { width: 100%; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cookie consent banner (analytics). Injected by analytics.js, styled here so there are no inline
   styles and the CSP stays script-src / style-src 'self' plus the allowed Google origins. */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: #101418;
  color: #F6FAF9;
  border: 1px solid rgba(214, 231, 225, 0.18);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 20, 24, 0.35);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-consent__text { margin: 0; flex: 1 1 300px; }
.cookie-consent__link { color: #B6D2AD; text-decoration: underline; }
.cookie-consent__link:hover { color: #F6FAF9; }
.cookie-consent__actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.cookie-consent__btn {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.cookie-consent__btn--accept { background: #79A682; color: #101418; }
.cookie-consent__btn--accept:hover { background: #B6D2AD; }
.cookie-consent__btn--decline { background: transparent; color: #F6FAF9; border-color: rgba(246, 250, 249, 0.4); }
.cookie-consent__btn--decline:hover { border-color: #F6FAF9; }
@media (max-width: 560px) {
  .cookie-consent { flex-direction: column; align-items: stretch; }
  /* Stacked, the 300px flex-basis would become a 300px height: size the text to its content. */
  .cookie-consent__text { flex: 0 0 auto; }
  .cookie-consent__actions { justify-content: flex-end; }
}
