/* ============================================================
   Barrari Academy — Universal Stylesheet  (v4, "Glossy Crest")
   Direction: premium & glossy — metallic blue / white / silver / gold.
   Reflective surfaces, glass cards, a shining medallion seal.
   Elegance via a bright white canvas + polished metal accents.
   ============================================================ */

:root {
  /* --- Blues --- */
  --royal:       #14477E;  /* Deep royal blue */
  --navy:        #0E3B63;  /* Deep navy — primary */
  --navy-deep:   #081D34;  /* Darkest navy — depth */
  --blue-grad:   linear-gradient(165deg, #16487F 0%, #0E3B63 55%, #081D34 100%);
  --blue-sheen:  radial-gradient(120% 90% at 50% -12%, rgba(255,255,255,.30), rgba(255,255,255,0) 55%);

  /* --- Gold (deep antique metal — sampled from the subject emblems) --- */
  --gold-grad:   linear-gradient(180deg, #D9A63C 0%, #A6721B 52%, #6E4410 100%);
  --gold-hi:     #E8B84E;
  --gold-line:   #6E4410;
  --gold-text:   #4A3205;  /* deep gold-brown for text on gold */

  /* --- Silver (bright glossy metal) --- */
  --silver-grad: linear-gradient(180deg, #FFFFFF 0%, #DBE2EA 48%, #A9B5C4 100%);
  --silver-hi:   #FFFFFF;
  --silver-line: #AEBAC9;
  --silver-mid:  #9AA7B7;

  /* --- Neutrals (clean white, no blue tint) --- */
  --page:        #FFFFFF;  /* Pure white — page base (no sad gray) */
  --paper:       #ffffff;  /* Cards */
  --card-grad:   linear-gradient(180deg, #FFFFFF 0%, #F3F4F6 100%);
  --ink:         #16324e;  /* Deep blue-ink body text */
  --ink-soft:    #566579;  /* Muted text */
  --line:        #DBE3ED;  /* Cool silver hairline */

  /* --- Back-compat aliases (consumed by certificate.html inline styles) --- */
  --gold:        #A6721B;  /* solid gold — borders, badges, list markers */
  --gold-bright: #C98F2A;  /* readable gold on navy (wordmark) */
  --bronze:      #7A4E12;  /* deep gold — labels/text */
  --ivory:       #F7F8FA;  /* neutral light panel (no blue) */
  --cream:       #F3F4F6;  /* neutral soft tint (review box) */
  --silver:      #AEBAC9;  /* silver line */

  /* --- Type --- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Layout --- */
  --wrap: 1180px;
  --header-h: 86px;
  --radius: 10px;
  --shadow: 0 12px 34px rgba(14, 59, 99, 0.10);
  --shadow-lg: 0 26px 64px rgba(14, 59, 99, 0.18);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(180deg,
      #EDF1F6 0%,
      #FFFFFF 11%,
      #D7E0EA 27%,
      #F7FAFD 46%,
      #CBD5E1 64%,
      #FBFCFE 82%,
      #DEE5EE 100%);
  background-attachment: fixed;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Small-caps spaced label */
.overline {
  font-family: var(--font-body); font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; color: var(--royal);
}
/* Thin metallic rule (gold core, fades out) */
.rule { width: 74px; height: 2px; border: 0; margin: 18px auto; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-hi) 50%, var(--gold-line) 80%, transparent); }
.rule--start { margin-left: 0; }

/* ---------- Buttons (glossy metal) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .78em 1.7em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
/* moving shine sweep — main wide glint */
.btn-gold::after, .btn-silver::after {
  content: ""; position: absolute; top: -20%; left: -70%; width: 45%; height: 140%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); pointer-events: none; transition: left .6s ease;
}
.btn-gold:hover::after, .btn-silver:hover::after { left: 130%; }
/* second, thinner glint that trails the first */
.btn-gold::before, .btn-silver::before {
  content: ""; position: absolute; top: -20%; left: -70%; width: 16%; height: 140%; z-index: 1;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); pointer-events: none; transition: left .6s ease .14s;
}
.btn-gold:hover::before, .btn-silver:hover::before { left: 132%; }
.btn-gold {
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.72) 46%, rgba(255,255,255,.18) 53%, rgba(255,255,255,0) 66%),
    linear-gradient(180deg, #E6B54B 0%, #B27A22 42%, #90601A 58%, #664010 100%);
  color: #4A3205; border-color: #5E3A05;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -2px 4px rgba(120,80,10,.30), 0 8px 20px rgba(8,29,52,.42);
}
.btn-gold:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-2px); box-shadow: inset 0 1.5px 0 #fff, inset 0 -2px 4px rgba(120,80,10,.30), 0 12px 28px rgba(8,29,52,.5); }
.btn-silver {
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.98) 46%, rgba(255,255,255,.35) 53%, rgba(255,255,255,0) 66%),
    linear-gradient(180deg, #FFFFFF 0%, #D3DCE7 42%, #AEB9C8 58%, #7E8DA0 100%);
  color: var(--navy); border-color: #7C8A9C;
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -2px 4px rgba(60,80,110,.22), 0 8px 20px rgba(8,29,52,.32);
}
.btn-silver:hover { filter: brightness(1.04); transform: translateY(-2px); box-shadow: inset 0 1.5px 0 #fff, inset 0 -2px 4px rgba(60,80,110,.22), 0 12px 28px rgba(8,29,52,.4); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gold-line); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* ============================================================
   GLOBAL HEADER  (glossy navy)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--blue-grad); color: #fff;
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 2px 0 rgba(203,162,74,.25), 0 6px 20px rgba(10,42,77,.25);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 56px; height: 56px; flex: none; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.brand__name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  background: linear-gradient(180deg, #FBEAA6 0%, #EDC85F 44%, #C99A33 78%, #A87C1E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand__name span {
  background: linear-gradient(180deg, #FBEAA6 0%, #EDC85F 44%, #C99A33 78%, #A87C1E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__link {
  color: #e8eef6; font-weight: 500; padding: 10px 14px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); font-size: .97rem;
}
.nav__link:hover { background: rgba(255,255,255,.10); color: #fff; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__toggle { background: none; border: none; font: inherit; color: #e8eef6; cursor: pointer; }
.dropdown__caret { transition: transform var(--transition); font-size: .7em; }
.dropdown[aria-expanded="true"] .dropdown__caret { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 252px;
  background: var(--card-grad); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition);
  border: 1px solid var(--line); border-top: 2px solid var(--gold-line);
}
.dropdown[aria-expanded="true"] .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.dropdown__menu a:hover { background: #eef0f4; }
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.flag-img { display:inline-block; height:auto; border-radius:3px; box-shadow:0 1px 5px rgba(0,0,0,.4); vertical-align:middle; }
.tag--live { background: linear-gradient(180deg,#FBFCFE,#D6DEE8); color: var(--navy); box-shadow: inset 0 1px 0 #fff; }
.tag--soon { background: var(--gold-grad); color: var(--gold-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; border-radius: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: var(--transition); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO  (bright white with silver sheen + glossy medallion)
   ============================================================ */
.hero { background: var(--blue-grad); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--blue-sheen); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(203,162,74,.45); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding: 70px 24px 88px; text-align: center; max-width: 820px; }
.hero__seal { width: 196px; height: auto; margin: 0 auto 20px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.45)); }
.hero__eyebrow { display: inline-block; margin-bottom: 16px; color: var(--gold-hi); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: 6px; color: #fff; }
.hero h1 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(1.02rem, 2vw, 1.22rem); color: #d3deeb; max-width: 600px; margin: 18px auto 30px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__flags { display: flex; gap: 10px; justify-content: center; margin-top: 34px; font-size: 1.45rem; color: #cdd9e6; letter-spacing: .12em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section--paper { background: transparent; }
.section--tint { background: transparent; }
.section--navy { background: var(--blue-grad); position: relative; }
.section--navy::before { content: ""; position: absolute; inset: 0; background: var(--blue-sheen); pointer-events: none; }
.section--navy .value__num { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--navy .value h4 { color: #fff; }
.section--navy .value p { color: #c7d4e3; }
.section--navy .section__head h2 { color: #fff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 12px 0 0; }
.section__head p { color: var(--ink-soft); font-size: 1.06rem; margin: 14px 0 0; }

/* Subject cards — glass with silver frame + metal-ring icon */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card-grad); border-radius: 14px; padding: 34px 30px;
  box-shadow: inset 0 1px 0 #fff, var(--shadow); border: 1px solid var(--line);
  transition: var(--transition); position: relative; text-align: center;
}
.card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--silver-line); border-radius: 9px; pointer-events: none; opacity: .55; }
.card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 #fff, var(--shadow-lg); border-color: var(--gold-line); }
.card__icon {
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 18px; color: var(--navy);
  background: var(--silver-grad); border: 1px solid var(--silver-line);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 3px rgba(255,255,255,.5), 0 4px 10px rgba(14,59,99,.14);
}
.card__icon svg { width: 30px; height: 30px; }
.card__icon--emblem { background: none; border: none; box-shadow: none; width: 80px; height: 80px; }
.card__icon--emblem img { width: 80px; height: 80px; display: block; filter: drop-shadow(0 3px 8px rgba(14,59,99,.28)); }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0 0 18px; font-size: .96rem; }
.card__foot { display: flex; align-items: center; justify-content: center; gap: 12px; }
.card__foot a { font-weight: 600; color: var(--royal); }

/* Values strip — book-style stat row */
.values { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.value__num { font-family: var(--font-display); color: var(--navy); font-size: 2.9rem; font-weight: 700; line-height: 1; }
.value .rule { margin: 12px auto; }
.value h4 { color: var(--navy); margin: 0 0 4px; font-size: 1.05rem; }
.value p { color: var(--ink-soft); margin: 0; font-size: .92rem; }

/* Passport CTA band — the glossy blue showpiece, gold+silver framed */
.band {
  background: var(--blue-grad); color: #fff; border-radius: 16px; padding: 58px 40px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--shadow-lg);
  border: 1px solid var(--navy-deep);
}
.band::before { content: ""; position: absolute; inset: 0; background: var(--blue-sheen); pointer-events: none; }
.band::after { content: ""; position: absolute; inset: 13px; border: 1px solid var(--gold-line); border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.band .overline { color: var(--gold-hi); position: relative; }
.band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 12px; position: relative; }
.band p { color: #d9e5f2; max-width: 540px; margin: 12px auto 26px; position: relative; }
.band .btn { position: relative; }

/* ============================================================
   FOOTER  (glossy navy)
   ============================================================ */
.site-footer { background: var(--blue-grad); color: #c7d4e3; padding: 62px 0 28px; border-top: 1px solid var(--gold-line); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }

/* RESTORED 2026-07-16 — this block was DESTROYED by the 07-12 accessibility
   append landing mid-file. See host styles.css for the full note. */
.site-footer a { color: #c7d4e3; transition: var(--transition); }
.site-footer a:hover { color: var(--gold-hi); }

.footer-brand__lock { display:flex; align-items:center; gap:12px; text-decoration:none; }
.footer-brand__mark { width:46px; height:46px; flex:none; object-fit:contain; filter:drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.footer-brand .brand__name { font-size: 1.15rem; }
.footer-brand p { margin-top: 12px; font-size: .9rem; color: #9fb2c8; max-width: 280px; }

.newsletter p { font-size: .9rem; color: #9fb2c8; margin-bottom: 14px; }
.newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.newsletter__form input {
  flex: 1 1 170px; padding: 11px 13px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.09);
  color: #fff; font: inherit;
}
.newsletter__form input::placeholder { color: #90a4ba; }
.newsletter__form input:focus { outline: 2px solid var(--gold-hi); border-color: transparent; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8ba0b8; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom nav a { color: #8ba0b8; }
.footer-bottom nav a:hover { color: var(--gold-hi); }

/* Coming-soon capture modal */
.soon-modal { position:fixed; inset:0; z-index:300; display:none; }
.soon-modal[aria-hidden="false"] { display:block; }
.soon-modal__backdrop { position:absolute; inset:0; background:rgba(6,26,46,.62); }
.soon-modal__card { position:relative; z-index:1; max-width:440px; margin:12vh auto 0; background:#fff; border-radius:16px; padding:32px 30px; box-shadow:var(--shadow-lg); border-top:5px solid var(--gold); }
.soon-modal__x { position:absolute; top:12px; right:14px; border:0; background:none; font-size:1.6rem; line-height:1; color:var(--ink-soft); cursor:pointer; }
.soon-modal__eyebrow { font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--bronze); font-weight:700; }
.soon-modal__title { margin:8px 0 8px; font-size:1.3rem; color:var(--navy); }
.soon-modal__text { color:var(--ink-soft); font-size:.95rem; margin:0 0 18px; }
.soon-modal__form { display:flex; gap:8px; flex-wrap:wrap; }
.soon-modal__form input { flex:1 1 190px; padding:12px 14px; border:1.5px solid #d6dde6; border-radius:10px; font:inherit; color:var(--ink); }
.soon-modal__form input:focus { outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(14,59,99,.12); }
.soon-modal__done { color:var(--navy); font-weight:700; margin:6px 0 0; }
body.modal-open { overflow:hidden; }

/* ---------- Legal / policy pages ---------- */
.legal-hero .wrap { padding:48px 24px 34px; text-align:center; max-width:760px; }
.legal-hero h1 { color:#fff; }
.legal-hero p { color:#d3deeb; margin-top:10px; }
.legal { max-width:820px; margin:0 auto; }
.legal .updated { color:var(--bronze); font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.legal h2 { margin:30px 0 8px; font-size:1.35rem; }
.legal h3 { margin:18px 0 6px; font-size:1.05rem; color:var(--navy); font-family:var(--font-body); }
.legal p, .legal li { color:var(--ink-soft); font-size:1rem; line-height:1.75; }
.legal ul { padding-left:1.2em; margin:6px 0 14px; }
.legal a { color:var(--royal); text-decoration:underline; }
.legal .note { background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:14px 16px; font-size:.92rem; color:var(--ink-soft); }

/* ---------- Accessibility ---------- */
.skip-link {
  position:absolute; left:8px; top:-48px; z-index:200;
  background:var(--gold-bright); color:var(--navy-deep); font-weight:600;
  padding:10px 16px; border-radius:8px; transition:top .2s ease;
}
.skip-link:focus { top:8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .filter:focus-visible {
  outline:3px solid var(--gold-bright); outline-offset:2px; border-radius:6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ============================================================
   RESPONSIVE — mobile & tablet  (added 2026-08)
   The global stylesheet had no mobile breakpoints; this layer
   collapses the header into a hamburger menu and prevents the
   horizontal overflow that made pages look un-optimised.
   ============================================================ */
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  html, body { overflow-x: clip; max-width: 100%; }
  .wrap { padding: 0 18px; }

  /* Header: smaller brand, reveal hamburger */
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1.02rem; letter-spacing: .06em; }
  .hamburger { display: block; }

  /* Collapse nav into a full-width dropdown panel */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: linear-gradient(160deg,#16487F,#0E3B63 60%,#081D34);
    border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 14px 26px rgba(10,42,77,.4);
    padding: 8px 18px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__link { padding: 13px 12px; font-size: 1.04rem; border-radius: 10px; }
  .nav__actions { width: 100%; margin-top: 10px; }
  .nav__actions .btn { width: 100%; justify-content: center; }

  /* Dropdowns become inline accordions on mobile */
  .dropdown { position: static; width: 100%; }
  .dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: 0; border: none; border-top: 0;
    background: rgba(255,255,255,.06); padding: 4px; margin: 4px 0 6px; display: none;
  }
  .dropdown[aria-expanded="true"] .dropdown__menu { display: block; }
  .dropdown__menu a { color: #eaf1f8; }
  .dropdown__menu a:hover { background: rgba(255,255,255,.12); }

  /* Footer: collapse 4-column grid so it stops overflowing */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .newsletter__form { display: flex; flex-wrap: wrap; gap: 8px; }
  .newsletter__form input { min-width: 0; flex: 1 1 100%; }
  .newsletter__form .btn { width: 100%; }
  .footer-bottom { justify-content: flex-start; }

  /* Hero breathing room on phones */
  .hero .wrap { padding: 46px 20px 56px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 15px; }
  .hero .wrap { padding: 36px 16px 44px; }
  .brand__name { font-size: .95rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
