/* ==========================================================================
   TuniEnglish Club — style.css
   --------------------------------------------------------------------------
   Contents
     01. Design tokens (light + dark themes)
     02. Reset & base
     03. Typography & helpers
     04. Buttons, links, forms basics
     05. Header / navigation
     06. Hero
     07. About
     08. What We Offer
     09. Contact & location
     10. Join CTA
     11. Footer
     12. Join modal + form
     13. Back-to-top
     14. Motion (reveal + reduced motion)
   Mobile-first: base styles target ~360px, then min-width media queries.
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   Every colour used in the UI is declared here. Swap a value once and it
   updates everywhere. Themes are switched with [data-theme] on <html>.
   ========================================================================== */
:root {
  /* --- Typography -------------------------------------------------------- */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* --- Surfaces (light: red / blue / white) ------------------------------ */
  --bg:            #FFFFFF;   /* page background                     */
  --bg-soft:       #F4F7FF;   /* alternating soft section            */
  --surface:       #FFFFFF;   /* cards, modal                        */
  --surface-2:     #F7F9FF;   /* inputs, subtle inner surfaces       */
  --header-bg:     rgba(255, 255, 255, 0.82);
  --backdrop:      rgba(11, 42, 111, 0.55);

  /* --- Brand ------------------------------------------------------------- */
  --primary:       #D62839;   /* red — main buttons & key accents    */
  --primary-ink:   #B21E2D;   /* pressed / hover shade of the red    */
  --secondary:     #1D4ED8;   /* blue — links, highlights, secondary */
  --secondary-ink: #1A43B8;   /* pressed / hover shade of the blue   */
  --heading:       #0B2A6F;   /* deep blue — headings               */
  --on-primary:    #FFFFFF;   /* text on red                         */
  --on-secondary:  #FFFFFF;   /* text on blue                        */

  /* --- Text -------------------------------------------------------------- */
  --text:          #0F172A;
  --text-muted:    #475569;

  /* --- Tints / borders / shadows ---------------------------------------- */
  --primary-soft:  rgba(214, 40, 57, 0.10);
  --primary-on-tint: #B21E2D;   /* red text sitting on a red-tinted surface (AA) */
  --secondary-soft: rgba(29, 78, 216, 0.10);
  --border:        rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.22);
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md:  0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg:  0 24px 60px rgba(11, 42, 111, 0.18);
  --glow:       none;                       /* subtle glow (dark theme) */
  --glow-blue:  none;
  --btn-primary-glow: none;
  --ring:       0 0 0 3px rgba(29, 78, 216, 0.35);
  --ring-contrast: 0 0 0 3px rgba(214, 40, 57, 0.35);

  /* --- Footer (deep blue in light theme) -------------------------------- */
  --footer-bg:     #0B2A6F;
  --footer-bg-2:   #08215A;
  --footer-text:   #FFFFFF;
  --footer-muted:  rgba(255, 255, 255, 0.76);
  --footer-border: rgba(255, 255, 255, 0.16);

  /* --- Hero (always sits on the photo, so it stays dark in both themes) -- */
  --hero-veil-1:  rgba(11, 42, 111, 0.80);
  --hero-veil-2:  rgba(10, 12, 26, 0.92);
  --hero-text:    #FFFFFF;
  --hero-muted:   rgba(255, 255, 255, 0.82);

  /* --- Shape & motion ---------------------------------------------------- */
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --header-h: 68px;
  /* Smooth cross-fade when the theme changes (~0.3s) */
  --theme-transition: background-color .3s ease, color .3s ease,
                      border-color .3s ease, box-shadow .3s ease,
                      fill .3s ease, stroke .3s ease;
}

/* --- Dark theme: red / blue / black ------------------------------------- */
[data-theme="dark"] {
  --bg:            #0A0A0F;
  --bg-soft:       #0D0F17;
  --surface:       #14161F;
  --surface-2:     #101322;
  --header-bg:     rgba(10, 10, 15, 0.76);
  --backdrop:      rgba(2, 4, 12, 0.72);

  --primary:       #FF4D5E;
  --primary-ink:   #FF7180;
  --secondary:     #4C8DFF;
  --secondary-ink: #74A6FF;
  --heading:       #F1F5F9;        /* headings go light in the dark theme */
  --on-primary:    #0A0A0F;        /* dark ink on bright red keeps AA contrast */
  --on-secondary:  #071026;

  --text:          #F1F5F9;
  --text-muted:    #94A3B8;

  --primary-soft:  rgba(255, 77, 94, 0.14);
  --primary-on-tint: #FF7180;   /* brighter red for tinted surfaces on black */
  --secondary-soft: rgba(76, 141, 255, 0.16);
  --border:        rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.34);
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow-md:  0 14px 34px rgba(0, 0, 0, 0.55);
  --shadow-lg:  0 26px 64px rgba(0, 0, 0, 0.6);
  /* Soft glow instead of heavy shadows on black */
  --glow:      0 0 0 1px rgba(255, 77, 94, 0.22), 0 12px 38px rgba(255, 77, 94, 0.14);
  --glow-blue: 0 0 0 1px rgba(76, 141, 255, 0.22), 0 12px 38px rgba(76, 141, 255, 0.16);
  --btn-primary-glow: 0 10px 30px rgba(255, 77, 94, 0.28);
  --ring:       0 0 0 3px rgba(76, 141, 255, 0.45);
  --ring-contrast: 0 0 0 3px rgba(255, 77, 94, 0.45);

  --footer-bg:     #0E1119;
  --footer-bg-2:   #0A0A0F;
  --footer-text:   #F1F5F9;
  --footer-muted:  rgba(241, 245, 249, 0.72);
  --footer-border: rgba(241, 245, 249, 0.14);

  --hero-veil-1:  rgba(10, 10, 15, 0.84);
  --hero-veil-2:  rgba(10, 10, 15, 0.95);
  --hero-text:    #FFFFFF;
  --hero-muted:   rgba(255, 255, 255, 0.80);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   No-JavaScript fallback.
   When script.js never runs, no [data-theme] attribute is ever set, so the OS
   preference has to select the dark palette on its own. An explicit choice
   (data-theme="light") still wins.
   ⚠ Keep these values in sync with the [data-theme="dark"] block above.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg:            #0A0A0F;
  --bg-soft:       #0D0F17;
  --surface:       #14161F;
  --surface-2:     #101322;
  --header-bg:     rgba(10, 10, 15, 0.76);
  --backdrop:      rgba(2, 4, 12, 0.72);

  --primary:       #FF4D5E;
  --primary-ink:   #FF7180;
  --secondary:     #4C8DFF;
  --secondary-ink: #74A6FF;
  --heading:       #F1F5F9;        /* headings go light in the dark theme */
  --on-primary:    #0A0A0F;        /* dark ink on bright red keeps AA contrast */
  --on-secondary:  #071026;

  --text:          #F1F5F9;
  --text-muted:    #94A3B8;

  --primary-soft:  rgba(255, 77, 94, 0.14);
  --primary-on-tint: #FF7180;   /* brighter red for tinted surfaces on black */
  --secondary-soft: rgba(76, 141, 255, 0.16);
  --border:        rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.34);
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow-md:  0 14px 34px rgba(0, 0, 0, 0.55);
  --shadow-lg:  0 26px 64px rgba(0, 0, 0, 0.6);
  /* Soft glow instead of heavy shadows on black */
  --glow:      0 0 0 1px rgba(255, 77, 94, 0.22), 0 12px 38px rgba(255, 77, 94, 0.14);
  --glow-blue: 0 0 0 1px rgba(76, 141, 255, 0.22), 0 12px 38px rgba(76, 141, 255, 0.16);
  --btn-primary-glow: 0 10px 30px rgba(255, 77, 94, 0.28);
  --ring:       0 0 0 3px rgba(76, 141, 255, 0.45);
  --ring-contrast: 0 0 0 3px rgba(255, 77, 94, 0.45);

  --footer-bg:     #0E1119;
  --footer-bg-2:   #0A0A0F;
  --footer-text:   #F1F5F9;
  --footer-muted:  rgba(241, 245, 249, 0.72);
  --footer-border: rgba(241, 245, 249, 0.14);

  --hero-veil-1:  rgba(10, 10, 15, 0.84);
  --hero-veil-2:  rgba(10, 10, 15, 0.95);
  --hero-text:    #FFFFFF;
  --hero-muted:   rgba(255, 255, 255, 0.80);
    color-scheme: dark;
  }
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px); /* anchor offset under sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

img,
picture,
svg,
video { max-width: 100%; }

img { height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  transition: color .3s ease;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--secondary); text-underline-offset: 3px; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.hero :focus-visible,
.footer :focus-visible,
.modal :focus-visible { outline-color: var(--secondary); }
.hero :focus-visible { outline-color: #FFFFFF; }

/* Fixed-position skip link */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   03. TYPOGRAPHY & HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: clamp(56px, 9vw, 104px) 0;
  transition: var(--theme-transition);
}
.section--soft { background-color: var(--bg-soft); }

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section__title {
  font-size: clamp(1.6rem, 5.2vw, 2.4rem);
  margin-bottom: .6rem;
}
.section__intro {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.075rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.section--soft .eyebrow { color: var(--secondary); }

.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  color: var(--text);
  font-weight: 500;
}

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

.link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration-thickness: 2px;
}
.link--strong { font-weight: 700; }
.link:hover { color: var(--secondary-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Inline icon system (SVG sprite) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   04. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .74rem 1.15rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background-color: var(--btn-bg);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease,
              box-shadow .22s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .58rem .9rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.5rem; font-size: 1.02rem; }

/* Red = primary action */
.btn--primary {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--btn-primary-glow);
}
.btn--primary:hover { background-color: var(--primary-ink); box-shadow: var(--glow); }
/* A red button needs a lighter focus ring than the standard blue outline */
.btn--primary:focus-visible,
.cta .btn--primary:focus-visible {
  outline: 3px solid var(--bg);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--primary), var(--btn-primary-glow);
}

/* Blue = secondary action */
.btn--secondary {
  background-color: var(--secondary);
  color: var(--on-secondary);
}
.btn--secondary:hover { background-color: var(--secondary-ink); box-shadow: var(--glow-blue); }

/* Outline = tertiary action on light surfaces */
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background-color: var(--surface);
}
.btn--ghost:hover { border-color: var(--secondary); color: var(--secondary); }

/* Ghost inside the hero: glassy on the photo */
.hero .btn--ghost {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);   /* Safari */
}
.hero .btn--ghost:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--heading);
}

/* ==========================================================================
   05. HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: var(--theme-transition);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* --- Brand: the logo alone carries the wordmark --------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: .25rem 0;
  flex: none;
}
.brand__plate {
  position: relative;
  display: grid;
  place-items: center;
  /* Plain white plate: the logo keeps a clean, always-readable background
     on the white navbar, on the dark hero and in the footer. */
  background-color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  box-shadow: var(--shadow-sm);
}
/* matching thin gradient frame (same technique as the hero plate) */
.brand__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background-image: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}
/* Taller on desktop where the sticky bar has room, smaller on phones */
.brand__plate img { width: auto; height: 42px; }

/* --- Header tools: theme switch beside the menu button ------------------- */
.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;      /* keeps them pinned right on mobile, where .nav is hidden */
}

/* --- Hamburger ----------------------------------------------------------- */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--secondary); background-color: var(--secondary-soft); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --- Mobile nav panel ---------------------------------------------------- */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 12px 20px 20px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav.is-open { display: block; animation: navDown .24s ease both; }
@keyframes navDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.nav__link {
  display: block;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background-color: var(--secondary-soft); color: var(--secondary); }
.nav__link[aria-current="page"] {
  /* deeper red on the tinted pill keeps the active link at AA contrast */
  color: var(--primary-on-tint);
  background-color: var(--primary-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.nav__actions .btn { flex: 1; }

/* --- Theme toggle -------------------------------------------------------- */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--secondary); color: var(--secondary); }
.theme-toggle .icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity .3s ease, transform .3s ease;
}
/* Light theme shows the moon (click → go dark); dark theme shows the sun */
.theme-toggle .icon--sun  { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .icon--moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon--sun  { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon--moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* ==========================================================================
   06. HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 10vw, 88px) 0 clamp(56px, 8vw, 88px);
  color: var(--hero-text);
  background-color: #0B1020; /* fallback behind the photo */
  text-align: center;
}
.hero__media,
.hero__veil,
.hero__blobs {
  position: absolute;
  inset: 0;
}
.hero__media { z-index: -3; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.03);
  filter: saturate(0.85) contrast(1.02);
}
/* Dark veil keeps white text at AA contrast over the photo */
.hero__veil {
  z-index: -2;
  background-image:
    linear-gradient(180deg, var(--hero-veil-1) 0%, var(--hero-veil-2) 62%, var(--hero-veil-1) 100%),
    radial-gradient(70% 60% at 15% 10%, rgba(214, 40, 57, 0.40), transparent 60%),
    radial-gradient(60% 55% at 88% 82%, rgba(29, 78, 216, 0.46), transparent 62%),
    radial-gradient(90% 70% at 50% 45%, rgba(8, 20, 55, 0.35), transparent 70%);
}

/* Decorative gradient shapes */
.hero__blobs { z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blob--red {
  width: clamp(160px, 40vw, 340px);
  aspect-ratio: 1;
  top: -8%;
  left: -6%;
  background-image: radial-gradient(circle at 35% 35%, #FF6A78, rgba(214, 40, 57, 0.1) 70%);
}
.blob--blue {
  width: clamp(180px, 46vw, 420px);
  aspect-ratio: 1;
  bottom: -14%;
  right: -10%;
  background-image: radial-gradient(circle at 60% 40%, #4C8DFF, rgba(29, 78, 216, 0.1) 70%);
  animation-delay: -6s;
}
.blob--ring {
  width: clamp(200px, 52vw, 460px);
  aspect-ratio: 1;
  top: 42%;
  left: 50%;
  translate: -50% 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: none;
  filter: none;
  opacity: 1;
  animation: none;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -22px, 0) scale(1.06); }
}

/* The hero photo fades into the page background instead of ending on a hard
   line, so the eye glides from the campus shot into the About section. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(70px, 12vw, 150px);
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg) 92%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero__tagline {
  margin: 0;
  font-size: clamp(.82rem, 2.6vw, .95rem);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

/* --- Brand lock-up: logo image + "Club" --------------------------------- */
.hero__title {
  margin: 0;
  display: flex;
  justify-content: center;
  color: var(--hero-text);
}
.hero__plate {
  position: relative;
  display: block;
  width: clamp(250px, 72vw, 420px);
  padding: clamp(7px, 1.3vw, 11px);
  /* Clean white card so the artwork is always legible against the photo, in
     both themes. The edges are softened with a white halo (below) so the card
     melts into the hero instead of cutting a hard white rectangle out of it. */
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  /* keep the logo image inside the rounded card (box-shadow is not clipped by this) */
  overflow: hidden;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.42),           /* drop shadow                */
    0 0 0 5px rgba(255, 255, 255, 0.07),       /* first, faint halo ring     */
    0 0 46px 14px rgba(255, 255, 255, 0.16);   /* wide, soft glow = the fade */
  animation: plateIn .8s cubic-bezier(.2, .7, .3, 1) both;
  isolation: isolate;
}
/* Thin red→blue gradient frame drawn just inside the card edge */
.hero__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, var(--primary) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .8;
  pointer-events: none;
}
.hero__plate img { width: 100%; position: relative; z-index: 1; }
@keyframes plateIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.hero__subtitle {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  color: var(--hero-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--hero-text);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);  /* Safari */
}

/* ==========================================================================
   07. ABOUT
   ========================================================================== */
.about {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.about__copy p { color: var(--text-muted); }
.about__copy .lead { color: var(--text); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  font-size: .87rem;
  font-weight: 700;
  color: var(--heading);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.badge .icon { color: var(--primary); }
.badge:nth-child(even) .icon { color: var(--secondary); }
.badge:hover { transform: translateY(-2px); border-color: var(--secondary); }

.about__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.about__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background-color: var(--surface);
}
/* Photo wrapper so the "View on Map" button can sit inside the picture */
.about__media { position: relative; overflow: hidden; }
.about__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
/* The campus photo eases in with a very slight zoom as the section is reached */
.about__media img {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .3, 1);
}
[data-reveal]:not(.is-visible) .about__media img { opacity: 0; transform: scale(1.045); }
.about__map {
  position: absolute;
  right: 14px;
  bottom: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.about__figure figcaption {
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   08. WHAT WE OFFER
   ========================================================================== */
/* The three offer cards sit one beneath another at every screen size, each
   full width and identical in shape — the same look as the Cultural Immersion
   card. The column is capped so the text stays readable on wide monitors. */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-inline: auto;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  /* red/blue top accent that grows on hover */
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background-image: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;      /* the line grows outwards from the middle */
  transition: transform .35s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md), var(--glow);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  font-size: 1.35rem;
}
.card__icon .icon { width: 26px; height: 26px; }
.card__icon--red  { background-color: var(--primary-soft);   color: var(--primary); }
.card__icon--blue { background-color: var(--secondary-soft); color: var(--secondary); }

.card__title { font-size: 1.15rem; margin-bottom: .5rem; }
.card__text { color: var(--text-muted); margin: 0; }   /* keeps cards visually equal */

/* ==========================================================================
   09. CONTACT & LOCATION
   ========================================================================== */
/* Two info cards: side by side on wide screens, stacked on phones */
.contact {
  display: grid;
  /* the two cards share one line at every size — they read as a matching pair.
     minmax(0, …) stops a long email address from stretching its own column. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(8px, 2vw, 16px);
  max-width: 900px;
  margin-inline: auto;
}
.panel > div { min-width: 0; }

/* The two cards stay side by side at every width. From 480px up each card
   keeps the icon next to its text (a normal row); only on the very smallest
   phones does a card stack its own contents, because 150px is not enough room
   for an icon and a sentence. */
@media (max-width: 479px) {
  .panel { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .panel__icon { width: 40px; height: 40px; }
  .panel__icon .icon { width: 20px; height: 20px; }
  .panel__title { font-size: .95rem; }
  .panel__text { font-size: .82rem; }
  .panel__note { font-size: .72rem; }
  .panel__text .link { overflow-wrap: anywhere; }
}

.panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  height: 100%;                 /* match the sibling card exactly */
  padding: clamp(18px, 2.6vw, 24px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.panel:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md), var(--glow-blue); }
.panel > div { flex: 1 1 210px; }
.panel__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
}
.panel__icon .icon { width: 27px; height: 27px; }
.panel__icon--red  { background-color: var(--primary-soft);   color: var(--primary); }
.panel__icon--blue { background-color: var(--secondary-soft); color: var(--secondary); }
.panel__title { font-size: 1.12rem; margin-bottom: .3rem; }
.panel__text { margin: 0 0 .25rem; color: var(--text); }
.panel__note { margin: 0; font-size: .88rem; color: var(--text-muted); }
.panel__action { flex: 0 0 auto; }


/* ==========================================================================
   10. JOIN CTA BAND
   ========================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) 0;
  color: #FFFFFF;
  background-color: var(--primary);   /* fallback if the layer is unavailable */
}
/* The moving colour lives on its own oversized layer. Sliding it with a
   transform keeps the animation on the compositor (GPU), so a full-width band
   never repaints the page frame by frame — unlike animating background-position.
   Red and blue each get a wide zone with a narrow blend between them, so the
   band always reads as brand red on one side and brand blue on the other. */
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 200%;
  pointer-events: none;
  will-change: transform;
  background-image: linear-gradient(100deg,
    var(--primary) 0%,
    var(--primary) 40%,
    #8B2B7A 50%,
    var(--secondary) 60%,
    var(--secondary) 100%);
  animation: ctaSlide 18s ease-in-out infinite alternate;
}
@keyframes ctaSlide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* two soft light pools drifting in opposite directions add depth */
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;                 /* above .cta__bg, below the text */
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.cta::before {
  width: clamp(220px, 34vw, 420px);
  aspect-ratio: 1;
  top: -45%;
  left: -6%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  animation: ctaFloat 15s ease-in-out infinite;
}
.cta::after {
  width: clamp(260px, 40vw, 500px);
  aspect-ratio: 1;
  bottom: -60%;
  right: -8%;
  background-image: radial-gradient(circle, rgba(76, 141, 255, 0.85), transparent 70%);
  animation: ctaFloat 19s ease-in-out infinite reverse;
}
@keyframes ctaFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(34px, -18px, 0) scale(1.12); }
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta__title {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  margin-bottom: .35rem;
}
.cta__text { margin: 0; color: rgba(255, 255, 255, 0.92); }
.cta .btn--primary {
  background-color: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.cta .btn--primary:hover { background-color: #FFF1F2; color: var(--primary-ink); }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  padding-top: clamp(40px, 6vw, 64px);
  transition: var(--theme-transition);
}
.footer__inner {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(28px, 4vw, 40px);
}
.footer__plate {
  position: relative;
  display: inline-block;
  padding: 6px 8px;
  background-color: #FFFFFF;      /* white plate for legibility on the dark footer */
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.footer__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background-image: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .7;
  pointer-events: none;
}
.footer__plate img { width: auto; height: 62px; }
.footer__tagline {
  margin: .8rem 0 0;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--footer-muted);
}
.footer__heading {
  color: var(--footer-text);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer nav ul,
.footer__contact ul { display: grid; gap: .55rem; }
.footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 500;
}
.footer a:hover { color: var(--secondary); text-decoration: underline; }
[data-theme="dark"] .footer a:hover { color: var(--secondary); }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--footer-muted);
}
.footer__contact .icon { color: var(--primary); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: .88rem;
}
.footer__bottom p { margin: 0; }

/* ==========================================================================
   12. JOIN MODAL + FORM
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);  /* Safari */
  animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: clamp(20px, 4vw, 34px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--glow);
  animation: modalIn .3s cubic-bezier(.2, .7, .3, 1) both;
  overscroll-behavior: contain;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.modal__x:hover { color: var(--on-primary); background-color: var(--primary); border-color: var(--primary); }
.modal__x .icon { width: 20px; height: 20px; }

.modal__head { padding-right: 46px; margin-bottom: 20px; }
.modal__title { font-size: clamp(1.3rem, 4.4vw, 1.7rem); margin-bottom: .4rem; }
.modal__desc { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* --- Form layout --------------------------------------------------------- */
.form__grid {
  display: grid;
  gap: 14px;
}
.field__label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--heading);
}
.req { color: var(--primary); }
.optional { font-weight: 500; color: var(--text-muted); font-size: .82rem; }

.field__input {
  width: 100%;
  padding: .72rem .85rem;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field__input::placeholder { color: var(--text-muted); opacity: .8; }
.field__input:hover { border-color: var(--border-strong); }
.field__input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: var(--ring);
  background-color: var(--surface);
}
.field__input--area { resize: vertical; min-height: 104px; }
select.field__input { appearance: none; background-image: none; cursor: pointer; }
select.field__input option { color: var(--text); background-color: var(--surface); }

.field__hint { margin: .35rem 0 0; font-size: .8rem; color: var(--text-muted); }

/* Inline validation feedback */
.field__error {
  margin: .35rem 0 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary);
}
.field__error::before { content: "⚠ "; }
.field.is-invalid .field__input { border-color: var(--primary); background-color: var(--primary-soft); }
.field.is-invalid .field__input:focus { box-shadow: var(--ring-contrast); }
.field.is-valid .field__input { border-color: var(--secondary); }

.form__required-note {
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--text-muted);
}

/* Reserved height: the status line never shifts the buttons below it */
.form__status {
  min-height: 1.45em;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.form__actions .btn { flex: 1 1 140px; }
.form__actions .btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* --- Success state ------------------------------------------------------- */
.success {
  text-align: center;
  padding: 12px 0 4px;
}
.success[hidden] { display: none; }
.success__icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  color: #FFFFFF;
  background-image: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: var(--glow);
}
.success__icon .icon { width: 32px; height: 32px; stroke-width: 2.2; }
.success__title { font-size: 1.35rem; margin-bottom: .5rem; }
.success__text { color: var(--text-muted); max-width: 44ch; margin: 0 auto 20px; }

/* ==========================================================================
   13. BACK TO TOP
   ========================================================================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--on-primary);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), var(--btn-primary-glow);
  transition: transform .2s ease, background-color .2s ease, opacity .3s ease;
}
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-3px); background-color: var(--primary-ink); }

/* ==========================================================================
   14. MOTION (scroll reveal + reduced motion)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* Respect users who prefer less motion: no animation, no smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal] .about__media img { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover, .panel:hover, .badge:hover, .about__map:hover, .to-top:hover { transform: none; }
  /* the CTA keeps its colours but stays perfectly still */
  .cta__bg { animation: none; transform: translate3d(-25%, 0, 0); }
  .cta::before, .cta::after { animation: none; }
}

/* ==========================================================================
   PRINT — clean, ink-friendly handout of the club information
   ========================================================================== */
@media print {
  /* force the light palette and drop all decoration */
  :root {
    --bg: #FFFFFF; --bg-soft: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF;
    --text: #000000; --text-muted: #333333; --heading: #000000;
    --border: rgba(0, 0, 0, .35); --border-strong: rgba(0, 0, 0, .5);
    --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --glow: none;
    --glow-blue: none; --btn-primary-glow: none;
  }
  html { scroll-behavior: auto; }

  /* A section that was never scrolled past is still at opacity 0 — on paper
     every section must print, revealed or not. */
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-reveal] .about__media img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::after { display: none; }

  /* interactive chrome has no place on paper */
  .header, .to-top, .hero__blobs, .hero__veil, .modal,
  .hero__facts, .about__map, .cta .btn, .skip-link { display: none !important; }

  body { background: #FFFFFF; color: #000000; font-size: 11pt; }

  /* the hero prints as a plain title block */
  .hero { background: #FFFFFF; color: #000000; padding: 0 0 12pt; text-align: left; }
  .hero__media { display: none; }
  .hero__plate { width: 220px; box-shadow: none; border: 0; padding: 0; }
  .hero__tagline, .hero__subtitle { color: #000000; }
  .hero__actions { display: none; }

  .section { padding: 10pt 0; }
  .cards, .contact { max-width: none; grid-template-columns: 1fr; }

  /* keep cards and photos from being split across pages */
  .card, .panel, .badge, .about__figure, .cta { break-inside: avoid; page-break-inside: avoid; }
  .about { grid-template-columns: 1fr; }
  img { max-width: 60%; }

  /* the red→blue band would flood the page with ink: keep the words only */
  .cta, .cta__bg { background-image: none !important; background-color: #FFFFFF !important; animation: none !important; }
  .cta { color: #000000; }
  .cta__bg { display: none; }
  .cta__title, .cta__text { color: #000000 !important; }
  .cta__inner { display: block; }

  /* buttons become plain outlined text so they read as links on paper */
  .btn {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
  }
  .btn .icon { display: none; }

  /* show where the links actually go */
  .footer { background: #FFFFFF; color: #000000; border-top: 1px solid #000; padding-top: 8pt; }
  .footer a, .link, .panel a { color: #000000; text-decoration: underline; }
  .footer a[href^="mailto"]::after,
  .panel a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .footer__heading, .footer__tagline { color: #000000; }
  .footer__plate { box-shadow: none; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS  (tested at 360px / 768px / 1280px)
   ========================================================================== */

/* Small tablets and up */
@media (min-width: 600px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .cta__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .to-top { right: 24px; bottom: 24px; }
}

/* Tablets / small laptops */
@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .container { padding-inline: 28px; }
  .about { grid-template-columns: 1.05fr .95fr; }
  .footer__inner { grid-template-columns: 1.2fr 1fr 1.2fr; }
}

/* Desktop: inline navigation */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  /* the logo tucks closer to the edge, which opens up the gap before "Home" */
  .header__inner { padding-inline-start: 14px; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    padding: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav.is-open { animation: none; }
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    /* left margin = breathing room between the logo and "Home" */
    margin: 0 auto 0 clamp(12px, 2.4vw, 34px);
  }
  .nav__link { padding: .55rem .85rem; font-size: .95rem; position: relative; }
  .nav__link::after {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .25rem;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__actions { border-top: 0; padding-top: 0; }
  .nav__actions .btn { flex: 0 0 auto; }
  .brand__plate img { height: 48px; }
  .hero__facts li { font-size: .9rem; }
  .hero__plate { width: min(42vw, 470px); }   /* the logo leads the hero on desktop */
}

/* Large desktop */
@media (min-width: 1280px) {
  .section__title { font-size: 2.5rem; }
  .hero__plate { width: min(36vw, 500px); }
}

/* Very small phones: keep the hero fact pills on fewer lines */
@media (max-width: 420px) {
  .hero__facts { gap: 6px; }
  .hero__facts li { font-size: .78rem; padding: .4rem .7rem; }
  .hero__actions .btn { flex: 1 1 45%; }
}
