/* A.S.S Science Academy - design system
   One accent (forest green), one neutral family (green tinted grey),
   one radius scale (10px containers / 6px controls). */

:root {
  --bg: #fbfcfa;
  --bg-sunk: #f1f6f1;
  --surface: #ffffff;
  --line: #e1e9e0;
  --line-strong: #cbd8c9;
  --text: #16201a;
  --text-muted: #59685f;
  --accent: #1f6b45;
  --accent-hover: #175236;
  --accent-soft: #e6f1ea;
  --accent-on: #ffffff;
  --focus: #3f9469;

  --radius-lg: 10px;
  --radius-sm: 6px;
  --container: 1180px;
  --shadow: 0 1px 2px rgba(22, 24, 28, 0.04), 0 8px 24px rgba(22, 24, 28, 0.05);

  --font-sans: "Outfit", "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;

  --z-nav: 100;
  --z-menu: 110;
  --z-skip: 200;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1411;
    --bg-sunk: #121b16;
    --surface: #151e19;
    --line: #23302a;
    --line-strong: #32423a;
    --text: #e9f0ec;
    --text-muted: #9cb0a4;
    --accent: #7fd3a2;
    --accent-hover: #a3e2bd;
    --accent-soft: #16241d;
    --accent-on: #0e1411;
    --focus: #7fd3a2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1411;
  --bg-sunk: #121b16;
  --surface: #151e19;
  --line: #23302a;
  --line-strong: #32423a;
  --text: #e9f0ec;
  --text-muted: #9cb0a4;
  --accent: #7fd3a2;
  --accent-hover: #a3e2bd;
  --accent-soft: #16241d;
  --accent-on: #0e1411;
  --focus: #7fd3a2;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; max-width: 65ch; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--accent-on);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 160ms ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.section { padding-block: 4.5rem 5rem; }
@media (min-width: 768px) {
  .section { padding-block: 6.5rem 7rem; }
}
.section--sunk { background: var(--bg-sunk); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
}

.lede { font-size: 1.08rem; color: var(--text-muted); }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}

.brand__name { font-size: 0.98rem; white-space: nowrap; }

.nav__links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  padding-block: 0.4rem;
  transition: color 180ms ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -1.5px 0 var(--accent);
}

.nav__group { position: relative; }

.nav__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 180ms ease;
}
.nav__group-btn:hover { color: var(--text); }
.nav__group-btn svg { width: 12px; height: 12px; transition: transform 180ms ease; }
.nav__group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__submenu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: -0.9rem;
  z-index: var(--z-menu);
  min-width: 250px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: none;
}
.nav__submenu[data-open="true"] { display: block; }
.nav__submenu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
}
.nav__submenu a:hover { background: var(--accent-soft); }

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

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.icon-btn:hover { background: var(--bg-sunk); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.97); }
.icon-btn svg { width: 18px; height: 18px; }

/* mobile drawer */
.nav__drawer {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav__drawer[hidden] { display: none; }
.nav__drawer ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1.2rem;
}
.nav__drawer a {
  display: block;
  padding: 0.7rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.nav__drawer .sub a { padding-left: 1rem; color: var(--text-muted); }

@media (min-width: 900px) {
  .nav__drawer { display: none !important; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 120ms ease, color 180ms ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-sunk); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.text-link svg { width: 14px; height: 14px; transition: transform 180ms ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero { padding-block: 3.5rem 4rem; }
@media (min-width: 768px) {
  .hero { padding-block: 5.5rem 6rem; }
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero p { font-size: 1.08rem; color: var(--text-muted); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
}
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.02);
}

/* ---------- page header (inner pages) ---------- */

.page-head {
  border-bottom: 1px solid var(--line);
  padding-block: 3rem 3.2rem;
}
@media (min-width: 768px) {
  .page-head { padding-block: 4.5rem 4.8rem; }
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--bg);
  padding: 1.6rem 1.4rem;
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat__label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- programmes (asymmetric bento) ---------- */

.prog-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .prog-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }
  .prog-card--lead { grid-row: span 2; }
}

.prog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.prog-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.prog-card__media {
  margin: -1.75rem -1.75rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.prog-card__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}
.prog-card--lead .prog-card__media { aspect-ratio: 4 / 3; }
.prog-card--accent { background: var(--accent-soft); }
.prog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.prog-card p { font-size: 0.95rem; color: var(--text-muted); }
.prog-card .text-link { margin-top: auto; padding-top: 1.2rem; }

/* ---------- feature list (checked) ---------- */

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .checklist { grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; }
}
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.97rem;
}
.checklist svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.22rem;
  color: var(--accent);
}

/* ---------- split section ---------- */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
  .split--reverse > *:first-child { order: 2; }
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(0.15);
}

/* ---------- steps (how it works) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  background: var(--bg);
  padding: 1.8rem 1.5rem 2rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: 0.94rem; color: var(--text-muted); margin: 0; }
.steps__no {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------- cta band ---------- */

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .cta {
    grid-template-columns: 1.3fr auto;
    padding: 3rem 3rem;
    gap: 3rem;
  }
}
.cta h2 { margin-bottom: 0.4rem; }
.cta p { margin: 0; color: var(--text-muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- map ---------- */

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(0.45);
}
@media (min-width: 900px) {
  .map iframe { height: 440px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map iframe {
    filter: grayscale(0.5) invert(0.92) hue-rotate(180deg);
  }
}
:root[data-theme="dark"] .map iframe {
  filter: grayscale(0.5) invert(0.92) hue-rotate(180deg);
}
.map__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}
.map__foot address {
  font-style: normal;
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.8rem;
}
.contact-list h2,
.contact-list h3 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.contact-list address { font-style: normal; color: var(--text); }

.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------- faq ---------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.faq details[open] summary::after { content: "-"; }
.faq p { color: var(--text-muted); padding-bottom: 1.2rem; margin: 0; font-size: 0.96rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
  padding-block: 3rem 2rem;
  margin-top: 1rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer__grid h3 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__grid a { color: var(--text); text-decoration: none; font-size: 0.94rem; }
.footer__grid a:hover { color: var(--accent); text-decoration: underline; }
.footer__grid p { font-size: 0.94rem; color: var(--text-muted); }

.social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 180ms ease, color 180ms ease;
}
.social a:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.social svg { width: 17px; height: 17px; }

.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer__base a { color: var(--text-muted); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 60dvh;
  display: grid;
  place-items: center;
  text-align: left;
}

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- icon sizing (Phosphor web font) ---------- */

.ph, .ph-fill, [class^="ph-"], [class*=" ph-"] { line-height: 1; }
.btn .ph, .btn .ph-fill { font-size: 1.05rem; }
.text-link .ph { font-size: 1rem; transition: transform 180ms ease; }
.text-link:hover .ph { transform: translateX(3px); }
.icon-btn .ph, .icon-btn .ph-fill { font-size: 1.15rem; }
.social .ph, .social .ph-fill { font-size: 1.05rem; }
.checklist .ph { font-size: 1.1rem; color: var(--accent); margin-top: 0.22rem; flex: none; }
.nav__group-btn .ph { font-size: 0.85rem; transition: transform 180ms ease; }
.nav__group-btn[aria-expanded="true"] .ph { transform: rotate(180deg); }

/* header call button collapses to the icon on narrow screens */
@media (max-width: 719px) {
  .btn--call { padding-inline: 0.85rem; }
  .btn--call .btn__label { display: none; }
  .brand__name {
    max-width: 9.5rem;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.2;
  }
  .nav { gap: 0.75rem; }
}

/* ---------- leaf motif: quiet environmental texture on the hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle at 70% 30%, var(--accent-soft), transparent 62%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* ---------- results carousel ---------- */

.carousel { position: relative; margin-top: 2.5rem; }

.carousel__viewport {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}
.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.carousel__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding: 1rem 1.2rem 1.15rem;
  border-top: 1px solid var(--line);
}
.carousel__caption h3 { margin: 0; font-size: 1rem; }
.carousel__caption span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}
.carousel__dots {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.carousel__dot {
  width: 30px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 200ms ease;
}
.carousel__dot[aria-selected="true"] { background: var(--accent); }
.carousel__arrows { display: flex; gap: 0.5rem; }

@media (min-width: 900px) {
  .carousel__slide { flex-basis: calc((100% - 2rem) / 2); }
}

/* ---------- contact and social icon tiles ---------- */

.channels {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 600px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .channels { grid-template-columns: repeat(3, 1fr); }
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 120ms ease;
}
.channel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.channel:active { transform: translateY(1px); }
.channel__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
  transition: background 200ms ease, color 200ms ease;
}
.channel:hover .channel__icon { background: var(--accent); color: var(--accent-on); }
.channel__text { display: grid; gap: 0.1rem; min-width: 0; }
.channel__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.channel__value {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* brand colour only on hover, so the page keeps one accent at rest */
.channel[data-brand="whatsapp"]:hover .channel__icon { background: #25d366; color: #05300f; }
.channel[data-brand="youtube"]:hover .channel__icon { background: #ff0033; color: #ffffff; }
.channel[data-brand="facebook"]:hover .channel__icon { background: #1877f2; color: #ffffff; }
.channel[data-brand="instagram"]:hover .channel__icon { background: #d9316f; color: #ffffff; }
.channel[data-brand="x"]:hover .channel__icon { background: #14181c; color: #ffffff; }

.social a[data-brand="whatsapp"]:hover { background: #25d366; border-color: #25d366; color: #05300f; }
.social a[data-brand="youtube"]:hover { background: #ff0033; border-color: #ff0033; color: #ffffff; }
.social a[data-brand="facebook"]:hover { background: #1877f2; border-color: #1877f2; color: #ffffff; }
.social a[data-brand="instagram"]:hover { background: #d9316f; border-color: #d9316f; color: #ffffff; }
.social a[data-brand="x"]:hover { background: #14181c; border-color: #14181c; color: #ffffff; }

/* ---------- WhatsApp and call actions ---------- */

:root {
  --whatsapp: #128c4a;
  --whatsapp-hover: #0e7a40;
  --whatsapp-on: #ffffff;
  --call-bg: #143028;
  --call-hover: #0d211b;
  --call-on: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --whatsapp: #25d366;
    --whatsapp-hover: #4ade8a;
    --whatsapp-on: #06331a;
    --call-bg: #e4ece7;
    --call-hover: #ffffff;
    --call-on: #0e1411;
  }
}
:root[data-theme="dark"] {
  --whatsapp: #25d366;
  --whatsapp-hover: #4ade8a;
  --whatsapp-on: #06331a;
  --call-bg: #e4ece7;
  --call-hover: #ffffff;
  --call-on: #0e1411;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-on);
}
.btn--whatsapp:hover { background: var(--whatsapp-hover); }

.btn--phone {
  background: var(--call-bg);
  color: var(--call-on);
}
.btn--phone:hover { background: var(--call-hover); }

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.02rem;
}
.btn--lg .ph, .btn--lg .ph-fill { font-size: 1.2rem; }

.hero__note {
  margin: 1.1rem 0 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.hero__note a { color: var(--text-muted); }
.hero__note a:hover { color: var(--accent); }

/* header: WhatsApp sits beside the call button, both collapse to icons on narrow screens */
@media (max-width: 860px) {
  .btn--call { padding-inline: 0.8rem; }
  .btn--call .btn__label { display: none; }
  .nav { gap: 0.6rem; }
  .nav__actions { gap: 0.4rem; }
}
@media (max-width: 719px) {
  .brand__name {
    max-width: 8.5rem;
    white-space: normal;
    font-size: 0.88rem;
    line-height: 1.2;
  }
}
/* the sticky bar already carries both actions on phones */
@media (max-width: 519px) {
  .nav__actions .btn--whatsapp { display: none; }
}

/* ---------- floating WhatsApp button (tablet and desktop) ---------- */

.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: var(--z-nav);
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--whatsapp);
  color: var(--whatsapp-on);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(18, 140, 74, 0.28);
  transition: background 200ms ease, transform 120ms ease;
}
.wa-float .ph, .wa-float .ph-fill { font-size: 1.35rem; }
.wa-float:hover { background: var(--whatsapp-hover); }
.wa-float:active { transform: translateY(1px); }

@media (min-width: 720px) {
  .wa-float { display: inline-flex; }
}
@media (min-width: 720px) and (max-width: 1000px) {
  .wa-float span { display: none; }
  .wa-float { padding: 0.9rem; border-radius: 999px; }
}

/* ---------- sticky call and WhatsApp bar on phones ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.action-bar .ph, .action-bar .ph-fill { font-size: 1.3rem; }
.action-bar__call {
  background: var(--call-bg);
  color: var(--call-on);
}
.action-bar__wa {
  background: var(--whatsapp);
  color: var(--whatsapp-on);
}
.action-bar a:active { filter: brightness(0.94); }

@media (min-width: 720px) {
  .action-bar { display: none; }
}
@media (max-width: 719px) {
  body { padding-bottom: 4.25rem; }
}

/* ---------- poster lightbox ---------- */

.carousel__zoom {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
}
.carousel__zoom img { display: block; }

.carousel__zoom-hint {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 22, 17, 0.72);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.carousel__zoom:hover .carousel__zoom-hint,
.carousel__zoom:focus-visible .carousel__zoom-hint { opacity: 1; transform: none; }

/* touch devices cannot hover, so the hint stays visible there */
@media (hover: none) {
  .carousel__zoom-hint { opacity: 1; transform: none; }
}

.lightbox {
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(8, 14, 11, 0.82);
  backdrop-filter: blur(2px);
}
.lightbox:not([open]) { display: none; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.lightbox__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}
.lightbox__close { flex: none; }

.lightbox__stage {
  background: var(--bg-sunk);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(94dvh - 8.5rem);
  object-fit: contain;
  margin-inline: auto;
}

.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}
.lightbox__count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* the page behind must not scroll while the poster is open */
body.is-locked { overflow: hidden; }

/* on phones the dialog fills the screen and the poster is scaled to the available
   height, so the names stay legible and the reader pans sideways */
@media (max-width: 719px) {
  .lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .lightbox__stage { flex: 1; display: flex; align-items: center; }
  .lightbox__image {
    width: auto;
    max-width: none;
    height: min(calc(100dvh - 9.5rem), 118vw);
    max-height: none;
  }
  .lightbox__hint { display: block; }
}

.lightbox__hint {
  display: none;
  margin: 0;
  padding: 0.5rem 1.1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 719px) {
  .lightbox .lightbox__hint { display: block; }
}

/* the drawer button belongs to phones only; this sits after .icon-btn so it wins */
@media (min-width: 900px) {
  .nav .nav__toggle { display: none; }
}
