/* ==========================================================================
   First Screens – main stylesheet
   Fonts are self-hosted (no requests to Google).
   ========================================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); }

:root {
  --color-blue: #67a2f6;
  --color-blue-dark: #3a6fc4;
  --gradient: linear-gradient(135deg, #6aa1f5 0%, #f083d9 100%);
  --color-ink: #111111;
  --color-text-soft: #4b5563;
  --color-line: rgba(17, 17, 17, 0.1);
  --color-error: #b42318;
  --font-family-primary: "Poppins", "Inter", Arial, Helvetica, sans-serif;
  --nav-h: 76px;
  --radius: 16px;
  --shadow-card: 0 6px 22px rgba(17, 17, 17, 0.09), 0 1px 3px rgba(17, 17, 17, 0.06);
  --shadow-lift: 0 18px 44px rgba(17, 17, 17, 0.16), 0 3px 8px rgba(17, 17, 17, 0.08);
  --container: 1340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-blue-dark); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: var(--nav-h); }
body.is-home .hero { scroll-margin-top: 0; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 760px; }
.container--form { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: #111; color: #fff; padding: 0.7rem 1.1rem; border-radius: 8px; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: #fff;
  box-shadow: 0 2px 18px rgba(17, 17, 17, 0.09);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.site-nav.is-visible { transform: none; }
.site-nav__inner { height: 100%; width: min(100% - 2rem, var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-nav__logo { display: block; flex: none; }
.site-nav__logo img { height: 50px; width: auto; }
.site-nav__links ul { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); list-style: none; }
.site-nav__links a {
  position: relative; display: block; padding: 0.4rem 0;
  font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--color-ink);
}
.site-nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav__links a:hover::after, .site-nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav__links a[aria-current="true"] { color: var(--color-blue-dark); }
.site-nav__toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; border-radius: 10px; position: relative; }
.site-nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--color-ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s, top 0.25s; }
.site-nav__toggle span:nth-child(1) { top: 15px; }
.site-nav__toggle span:nth-child(2) { top: 22px; }
.site-nav__toggle span:nth-child(3) { top: 29px; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
body.is-sub main { padding-top: var(--nav-h); }

/* ---------- Hero ---------- */
/* Parallax: main.js moves the hero down by half the scroll distance, so it scrolls at 50% speed while the page
   content (.page-content, above it) slides over it. svh keeps the height stable while mobile browser bars collapse. */
.hero {
  position: relative; z-index: 0; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; will-change: transform;
  background: #d97ab8 url("/assets/img/hero-poster.jpg") center / cover no-repeat;
}
.page-content { position: relative; z-index: 1; background: #fff; box-shadow: 0 -22px 48px rgba(17, 17, 17, 0.2); }
.hero__toggle {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(17, 17, 17, 0.45); color: #fff; backdrop-filter: blur(6px);
  transition: background 0.2s;
}
.hero__toggle:hover { background: rgba(17, 17, 17, 0.75); }
.hero__toggle [hidden] { display: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 50%;
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- Sections & typography ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--page { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-title {
  font-size: clamp(1.7rem, 3.3vw, 2.6rem); font-weight: 700; letter-spacing: 0.04em;
  text-align: center; text-wrap: balance; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.section-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 0.9rem auto 0; background: var(--gradient); }
.section-title--left { text-align: left; }
.section-title--left::after { margin-left: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 70ch; margin-inline: auto; }
.section--intro .lead { text-align: center; }
.lead--small { text-align: center; font-size: 1.05rem; margin-bottom: 2.25rem; }
.back-link { margin-bottom: 1.25rem; font-size: 0.95rem; }
.back-link a { text-decoration: none; font-weight: 500; }
.back-link a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem; border: 2px solid var(--color-blue); border-radius: 999px;
  background: var(--color-blue); color: var(--color-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.3;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--color-ink); }
.btn--wide { min-width: 220px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Locations ---------- */
.section--locations { background: #fff; }
.filters { margin-bottom: 2.25rem; }
.filters[hidden] { display: none; }
.filters__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1rem; }
.filter-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.25rem;
  border: 1.5px solid #cfd6e2; border-radius: 10px; background: #fff; color: var(--color-ink);
  font-weight: 500; font-size: 1rem; line-height: 1.3; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { border-color: var(--color-ink); }
.filter-toggle__label { color: var(--color-text-soft); }
.filter-toggle__value { font-weight: 600; }
.filter-toggle svg { flex: none; transition: transform 0.2s ease; }
.filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.filter-toggle.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.filter-toggle.is-active .filter-toggle__label { color: rgba(255, 255, 255, 0.78); }
.filters__reset { border: 0; background: none; padding: 0.4rem 0.25rem; font-weight: 500; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.2em; }
.filters__reset[hidden] { display: none; }
.filters__reset:hover { color: var(--color-blue-dark); }
.filter-panel {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.1rem auto 0; max-width: 980px; padding: 1.1rem 1.25rem;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-card);
  animation: panel-in 0.18s ease;
}
.filter-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.chip {
  border: 1.5px solid #cfd6e2; background: #fff; color: var(--color-ink); border-radius: 8px;
  padding: 0.45rem 1.05rem; font-weight: 500; font-size: 0.93rem; line-height: 1.4; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chip:hover { border-color: var(--color-ink); }
.chip.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

.loc-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; transition: opacity 0.14s ease; }
.loc-grid.is-fading { opacity: 0; }
.loc-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-card);
  color: inherit; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.loc-card__media { display: block; aspect-ratio: 2 / 1; background: #eef1f6; overflow: hidden; }
.loc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.loc-card__placeholder { display: block; width: 100%; height: 100%; background: var(--gradient); opacity: 0.55; }
.loc-card__body { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.3rem 1.35rem; }
.loc-card__meta { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-soft); }
.loc-card__name { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.loc-card__specs { display: flex; flex-direction: column; font-size: 0.9rem; line-height: 1.55; color: #374151; margin-top: 0.2rem; }
.loc-card__specs b { font-weight: 500; }
@media (hover: hover) {
  .loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .loc-card:hover .loc-card__media img { transform: scale(1.04); }
}
.loc-empty { text-align: center; padding: 3rem 1rem; }
.loc-empty p { font-size: 1.15rem; font-weight: 500; }
.loc-empty[hidden] { display: none; }
.loc-actions { display: flex; justify-content: center; margin-top: 2.75rem; }
.loc-actions [hidden] { display: none; }

/* ---------- Location pop-up ---------- */
html.modal-open { overflow: hidden; }
.modal { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--color-ink); }
.modal[open] { display: grid; place-items: center; padding: clamp(0rem, 4vw, 2.5rem); }
.modal::backdrop { background: rgba(17, 17, 17, 0.62); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; width: min(1040px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modal-in 0.28s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #fff; color: var(--color-ink); box-shadow: 0 2px 10px rgba(17, 17, 17, 0.2);
}
.modal__close:hover { background: var(--color-ink); color: #fff; }
.modal__media { background: #fff; display: flex; flex-direction: column; }
.modal__main { aspect-ratio: 2 / 1; background: var(--gradient); overflow: hidden; display: grid; place-items: center; }
.modal__main.has-image { aspect-ratio: auto; background: #eef1f6; }
.modal__main img { display: block; width: 100%; height: auto; max-height: min(46vh, 520px); object-fit: contain; }
.modal__thumbs { display: flex; gap: 0.5rem; padding: 0.6rem; overflow-x: auto; background: #fff; }
.modal__thumb { flex: none; width: 96px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #eef1f6; opacity: 0.75; }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumb[aria-current="true"] { border-color: var(--color-ink); opacity: 1; }
.modal__content { padding: clamp(1.5rem, 3.4vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.modal__head, .modal__body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.modal__meta { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-soft); padding-right: 3rem; }
.modal__content h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; font-size: 0.95rem; padding: 1rem 0; border-block: 1px solid var(--color-line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; }
.modal__desc { font-size: 0.98rem; line-height: 1.65; }
.modal__desc p { margin-bottom: 0.8em; }
.modal__cta { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.modal__cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.modal__alt { font-size: 0.9rem; }

/* ---------- Addressable TV ---------- */
.section--atv { background: #fff; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin-inline: auto;
  background: #fff; border: 1px solid var(--color-line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 14px 44px rgba(17, 17, 17, 0.11);
}
.feature__media { min-height: 360px; background: #eef1f6; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 4vw, 3.25rem); }
.feature__body p:last-child { margin-bottom: 0; }
.benefits { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; margin: 2.5rem auto 0; }
.benefit {
  background: #fff; border: 1px solid rgba(17, 17, 17, 0.06); border-radius: 20px; padding: 2rem 1.75rem 2.1rem;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.1), 0 2px 6px rgba(17, 17, 17, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: default;
}
.benefit__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--gradient); color: var(--color-ink); }
.benefit h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.7rem; }
.benefit p { margin: 0; font-size: 0.97rem; line-height: 1.65; color: #2b3340; }
@media (hover: hover) and (min-width: 768px) {
  .benefit:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
}

/* ---------- Creatives (gradient) ---------- */
.section--creatives { background: var(--gradient); color: var(--color-ink); }
.creatives__text { max-width: 66ch; margin: 0 auto 3rem; text-align: center; }
.creatives__text a { font-weight: 600; }
.before-after { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(0.9rem, 2vw, 1.5rem); max-width: 980px; margin-inline: auto; }
.ba-arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--color-ink); box-shadow: 0 8px 22px rgba(17, 17, 17, 0.25);
}
.ba-item { margin: 0; text-align: center; }
.ba-item__media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 16px 44px rgba(17, 17, 17, 0.28); }
.ba-item__media img, .ba-item__media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Partners ticker ---------- */
.section--partner { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.ticker {
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-block: 0.75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker::-webkit-scrollbar { display: none; }
.ticker__track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; }
.ticker__item { flex: none; margin-right: clamp(2.5rem, 6vw, 5rem); display: flex; align-items: center; height: 64px; }
.ticker__item a { display: block; border-radius: 6px; }
.ticker__item img { height: 56px; width: auto; max-width: none; filter: grayscale(1); opacity: 0.72; transition: filter 0.25s, opacity 0.25s; }
.ticker__item a:hover img, .ticker__item a:focus-visible img { filter: none; opacity: 1; }

/* ---------- Contact form ---------- */
.section--contact { background: #fff; padding-top: clamp(2rem, 4vw, 3rem); }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { min-width: 0; }
.field label:not(.check):not(.altcha__label) { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.95rem; }
.req { color: var(--color-blue-dark); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid #c4cddb; border-radius: 12px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-blue-dark); box-shadow: 0 0 0 4px rgba(103, 162, 246, 0.35); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field__error { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--color-error); font-weight: 500; }
.field__error:empty { display: none; }
.field--hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.92rem; line-height: 1.55; cursor: pointer; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--color-blue-dark); }
.altcha { display: inline-flex; align-items: center; border: 1.5px solid #c4cddb; border-radius: 12px; background: #fff; padding: 0.7rem 1.1rem; }
.altcha__label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.altcha__box { width: 1.35rem; height: 1.35rem; accent-color: var(--color-blue-dark); }
.altcha.is-verifying .altcha__text { color: var(--color-text-soft); }
.altcha.is-verified { border-color: #1a7f45; }
.altcha.is-verified .altcha__text { color: #0f6b3a; }
.altcha.is-error { border-color: var(--color-error); }
.form__submit { display: flex; justify-content: center; margin-top: 0.5rem; }
.form__status { margin: 0.25rem 0 0; padding: 1rem 1.25rem; border-radius: 12px; font-weight: 500; text-align: center; }
.form__status[hidden] { display: none; }
.form__status.is-success { background: #e6f5ec; color: #0b4a27; border: 1px solid #a9dbbd; }
.form__status.is-error { background: #fdecea; color: #7a1a12; border: 1px solid #f3b8b2; }

/* ---------- Footer & bottom bar ---------- */
.site-footer { background: var(--color-blue); color: var(--color-ink); padding-block: clamp(2.75rem, 6vw, 4rem); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-title { margin-bottom: 0.9rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact { font-style: normal; text-align: right; }
.footer-contact p { margin-bottom: 0.6rem; }
.bottom-bar { background: var(--color-blue-dark); color: #fff; font-size: 0.85rem; padding-block: 1rem; }
.bottom-bar p { margin: 0; padding-right: 4.25rem; } /* keeps the text clear of the back-to-top button */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--color-ink); color: #fff; box-shadow: 0 6px 20px rgba(17, 17, 17, 0.3);
  opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--color-blue-dark); }
.to-top[hidden] { display: none; }

/* ---------- Legal pages ---------- */
.prose { max-width: 75ch; font-size: 1rem; }
.prose h2, .prose h3 { margin: 2em 0 0.6em; font-weight: 600; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.prose a { color: var(--color-blue-dark); }
.prose table { border-collapse: collapse; margin-bottom: 1.1em; }
.prose th, .prose td { border: 1px solid var(--color-line); padding: 0.4rem 0.7rem; text-align: left; }
.prose { overflow-wrap: anywhere; }

/* ---------- Scroll reveal (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(44px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .benefit.reveal:nth-child(2) { transition-delay: 0.1s; }
.js .benefit.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { padding: 1.6rem 1.25rem 1.7rem; }
}
@media (max-width: 899px) {
  :root { --nav-h: 66px; }
  .site-nav__logo img { height: 44px; }
  .site-nav__toggle { display: block; }
  .site-nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    background: #fff; padding: 1.5rem 1.25rem 2rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  }
  .site-nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s; }
  .site-nav__links ul { flex-direction: column; gap: 0; }
  .site-nav__links a { padding: 1rem 0.25rem; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--color-line); }
  .site-nav__links a::after { display: none; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero { background-image: url("/assets/img/hero-poster.jpg"); }
  .loc-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .filters__bar { gap: 0.6rem; }
  .filter-toggle { padding: 0.6rem 1rem; font-size: 0.95rem; }
  .filter-panel { justify-content: flex-start; padding: 0.9rem; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 3 / 2; }
  .benefits { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; justify-items: center; }
  .before-after .ba-item { width: 100%; }
  .ba-arrow { transform: rotate(90deg); width: 46px; height: 46px; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact { text-align: left; }
  .modal[open] { padding: 0; }
  .modal__panel { grid-template-columns: 1fr; border-radius: 0; height: 100%; animation-name: sheet-in; }
  .modal__content { grid-template-columns: minmax(0, 1fr); }
  .modal__main img { max-height: 44vh; }
  .modal__cta, .modal__cta-buttons { width: 100%; }
  .modal__cta-buttons { flex-direction: column; }
  .modal__cta .btn { width: 100%; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 767px) and (orientation: portrait) {
  .hero { background-image: url("/assets/img/hero-poster-portrait.jpg"); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__scroll { animation: none; }
}
