/* =========================================================
   THUNDERBALL RESULTS — MASTER STYLESHEET
   Design tokens, layout, and component styles.
   ========================================================= */

:root{
  /* Color palette */
  --royal-blue: #12275C;
  --royal-blue-bright: #2A4FA0;
  --royal-blue-deep: #0A1938;
  --gold: #D4AF37;
  --gold-light: #F6C453;
  --orange: #FF6B35;
  --bg: #F5F6FB;
  --bg-white: #FFFFFF;
  --text-navy: #0F1730;
  --text-muted: #5B6478;
  --success: #1F9D55;
  --warning: #E08E1D;
  --danger: #D63A3A;
  --border: #E3E6F0;

  /* Type */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(18,39,92,0.06);
  --shadow-md: 0 12px 32px rgba(18,39,92,0.10);
  --shadow-lg: 0 24px 60px rgba(18,39,92,0.16);
  --header-h: 76px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text-navy);
  background: var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--royal-blue-deep); line-height:1.2; margin:0; }
p{ margin:0; }

.container{ width:100%; max-width:1240px; margin:0 auto; padding:0 24px; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--gold); color:var(--royal-blue-deep); padding:10px 16px; z-index:999; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:0.95rem;
  border:2px solid transparent; transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn:focus-visible{ outline:3px solid var(--gold-light); outline-offset:2px; }
.btn-primary{ background: linear-gradient(135deg, var(--orange), #E0501C); color:#fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color:#fff; }
.section .btn-ghost{ background:transparent; border-color: var(--royal-blue-bright); color: var(--royal-blue-bright); }
.btn-ghost:hover{ transform:translateY(-2px); }
.btn.full{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:200; height:var(--header-h);
  border-bottom:1px solid var(--border);
  transition: box-shadow .25s ease;
}
/* Blur lives on a pseudo-element rather than .site-header itself, because
   backdrop-filter/filter on an ancestor turns it into the containing block
   for any position:fixed descendant (like the mobile nav), which would
   otherwise get trapped inside this 76px-tall header instead of the viewport. */
.site-header::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header.scrolled{ box-shadow: var(--shadow-sm); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:100%; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-text{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; color:var(--royal-blue-deep); display:flex; flex-direction:column; line-height:1.05; }
.brand-text em{ font-style:normal; color: var(--orange); }
.brand-text small{ font-family:var(--font-body); font-weight:500; font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); }

.main-nav ul{ display:flex; gap:6px; }
.nav-link{ padding:10px 14px; border-radius:999px; font-weight:600; font-size:0.92rem; color:var(--text-navy); transition: background .2s, color .2s; position:relative; }
.nav-link:hover{ background: rgba(18,39,92,0.06); }
.nav-link.active{ color:#fff; background: var(--royal-blue); }

.hamburger{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px; }
.hamburger span{ width:24px; height:2px; background:var(--royal-blue-deep); border-radius:2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden; padding: 64px 0 80px;
  background: radial-gradient(circle at 20% 20%, var(--royal-blue-bright), var(--royal-blue-deep) 60%);
  color:#fff;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-glow{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.35; }
.glow-a{ width:420px; height:420px; background:var(--gold); top:-140px; right:-100px; }
.glow-b{ width:320px; height:320px; background:var(--orange); bottom:-120px; left:-80px; }
.hero-lines{ position:absolute; inset:0; width:100%; height:100%; }
.hero-inner{ position:relative; z-index:1; display:grid; grid-template-columns: 1.15fr 0.85fr; gap:48px; align-items:center; }
.eyebrow{ font-family:var(--font-mono); letter-spacing:0.08em; text-transform:uppercase; font-size:0.78rem; color: var(--gold-light); margin-bottom:14px; }
.hero h1{ font-size: clamp(2.2rem, 4vw, 3.4rem); color:#fff; margin-bottom:18px; }
.hero-sub{ font-size:1.05rem; color: rgba(255,255,255,0.82); max-width:520px; margin-bottom:28px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:40px; }
.hero-stats{ display:flex; gap:32px; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; }
.stat-num{ font-family:var(--font-mono); font-size:1.6rem; font-weight:700; color:var(--gold-light); }
.stat-label{ font-size:0.82rem; color: rgba(255,255,255,0.7); }

.hero-rig{ display:flex; flex-direction:column; align-items:center; gap:18px; }
.rig-caption{ font-family:var(--font-mono); font-size:0.82rem; color: rgba(255,255,255,0.65); }

/* ---------- Lottery balls (signature element) ---------- */
.ball-row{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; align-items:center; }
.ball{
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; font-size:1.15rem; color:var(--royal-blue-deep);
  position:relative; box-shadow: inset -6px -6px 10px rgba(0,0,0,0.12), inset 4px 5px 8px rgba(255,255,255,0.7), 0 6px 14px rgba(0,0,0,0.25);
  opacity:0; transform: translateY(-40px) scale(0.6);
  animation: ballDrop .6s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: var(--d, 0s);
}
.ball-row.large .ball{ width:68px; height:68px; font-size:1.4rem; }
.ball-white{ background: radial-gradient(circle at 32% 28%, #ffffff, #dfe3ee 70%, #c7cbdc); }
.ball-gold{ background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 65%, #92751f); color:#3a2c04; }
.ball-empty{ opacity:0.55; animation:none; transform:none; }
.ball-plus{ font-family:var(--font-display); font-weight:700; font-size:1.4rem; color: rgba(255,255,255,0.7); align-self:center; }
.section .ball-plus{ color: var(--text-muted); }

@keyframes ballDrop{
  0%{ opacity:0; transform: translateY(-50px) scale(0.5) rotate(-20deg); }
  60%{ opacity:1; transform: translateY(6px) scale(1.05) rotate(6deg); }
  100%{ opacity:1; transform: translateY(0) scale(1) rotate(0); }
}

/* ---------- Sections generic ---------- */
.section{ padding: 84px 0; }
.section-alt{ background: var(--bg-white); }
.section-head{ max-width:640px; margin: 0 auto 44px; text-align:center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom:12px; }
.section-sub{ color: var(--text-muted); font-size:1rem; }
.section-head .eyebrow{ color: var(--orange); }

/* ---------- Result card ---------- */
.result-card{
  background:#fff; border-radius: var(--radius-lg); padding:36px; box-shadow: var(--shadow-md);
  display:flex; flex-direction:column; align-items:center; gap:24px; border:1px solid var(--border);
}
.result-meta{ display:flex; gap:32px; flex-wrap:wrap; justify-content:center; width:100%; }
.result-meta > div{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.meta-label{ font-size:0.75rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); }
.meta-value{ font-family:var(--font-mono); font-weight:700; color:var(--royal-blue-deep); }
.status-ok{ color:var(--success); }
.result-note{ text-align:center; color:var(--text-muted); font-size:0.92rem; }
.result-note a{ color:var(--royal-blue-bright); font-weight:600; }

/* ---------- Checker ---------- */
.checker-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:36px; align-items:start; }
.checker-form, .checker-result{ background:#fff; border-radius: var(--radius-lg); padding:32px; box-shadow: var(--shadow-sm); border:1px solid var(--border); }
.field-group{ margin-bottom:20px; }
.field-group label{ display:block; font-weight:600; margin-bottom:10px; font-size:0.92rem; }
.hint{ color:var(--text-muted); font-weight:400; }
.input-balls{ display:flex; gap:10px; flex-wrap:wrap; }
.ball-input{
  width:56px; height:56px; border-radius:50%; text-align:center; border:2px solid var(--border);
  font-family:var(--font-mono); font-weight:700; font-size:1.05rem; color:var(--royal-blue-deep);
  transition:border-color .2s, box-shadow .2s;
}
.ball-input:focus{ outline:none; border-color: var(--royal-blue-bright); box-shadow: 0 0 0 4px rgba(42,79,160,0.15); }
.ball-input.single{ border-color: var(--gold); }
.form-error{ color:var(--danger); font-size:0.88rem; margin-top:12px; min-height:1.2em; }
.form-success{ color:var(--success); font-size:0.92rem; margin-top:14px; }
.checker-result{ display:flex; align-items:center; justify-content:center; min-height:220px; }
.placeholder-text{ color:var(--text-muted); text-align:center; }
.checker-result-inner{ text-align:center; width:100%; }
.match-tier{ font-family:var(--font-display); font-size:1.4rem; color:var(--royal-blue-deep); margin-bottom:8px; }
.match-detail{ color:var(--text-muted); font-size:0.92rem; }
.match-badge{ display:inline-block; margin-top:14px; padding:8px 18px; border-radius:999px; font-weight:700; font-size:0.85rem; }
.match-badge.win{ background: rgba(31,157,85,0.12); color:var(--success); }
.match-badge.lose{ background: rgba(214,58,58,0.08); color:var(--danger); }

/* ---------- Archive ---------- */
.archive-controls{ display:flex; gap:14px; margin-bottom:28px; flex-wrap:wrap; }
.archive-controls input, .archive-controls select{
  padding:12px 16px; border-radius:999px; border:2px solid var(--border); font-family:inherit; font-size:0.92rem; background:#fff;
}
.archive-controls input{ flex:1; min-width:220px; }
.archive-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:20px; }
.archive-card{ background:#fff; border-radius: var(--radius-md); padding:22px; border:1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.archive-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.archive-date{ font-weight:700; color:var(--royal-blue-deep); margin-bottom:12px; }
.archive-balls{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.mini-ball{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:0.78rem; font-weight:700; }
.mini-ball.white{ background:#eef0f7; color:var(--royal-blue-deep); }
.mini-ball.gold{ background: var(--gold); color:#3a2c04; }
.archive-jackpot{ font-size:0.85rem; color:var(--text-muted); }
.pagination{ display:flex; gap:8px; justify-content:center; margin-top:32px; flex-wrap:wrap; }
.page-btn{ width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:#fff; font-weight:600; }
.page-btn.active{ background: var(--royal-blue); color:#fff; border-color:var(--royal-blue); }

/* ---------- Stats ---------- */
.stats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; margin-bottom:48px; }
.stat-card{ background:#fff; border-radius: var(--radius-md); padding:24px; border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card.wide{ grid-column: span 2; }
.stat-card h3{ font-size:1rem; margin-bottom:16px; }
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:700; font-size:0.85rem; background: var(--bg); border:1px solid var(--border); }
.counters{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; text-align:center; }
.counter{ background: linear-gradient(160deg, var(--royal-blue), var(--royal-blue-deep)); color:#fff; border-radius: var(--radius-md); padding:26px 16px; }
.counter-num{ display:block; font-family:var(--font-mono); font-size:2rem; font-weight:700; color:var(--gold-light); }
.counter span:last-child{ font-size:0.82rem; color: rgba(255,255,255,0.75); }

/* ---------- Hot & Cold ---------- */
.hotcold-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.hc-card{ background:#fff; border-radius: var(--radius-md); padding:24px; border:1px solid var(--border); box-shadow: var(--shadow-sm); border-top:4px solid var(--royal-blue-bright); }
.hc-card.hot{ border-top-color: var(--orange); }
.hc-card.cold{ border-top-color: var(--royal-blue-bright); }
.hc-card.overdue{ border-top-color: var(--warning); }
.hc-card.trending{ border-top-color: var(--success); }
.hc-card h3{ font-size:1.05rem; margin-bottom:6px; }
.hc-card p{ color:var(--text-muted); font-size:0.85rem; margin-bottom:14px; }

/* ---------- Prize table ---------- */
.table-wrap{ overflow-x:auto; background:#fff; border-radius: var(--radius-md); border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.prize-table{ width:100%; border-collapse:collapse; font-size:0.92rem; }
.prize-table th{ text-align:left; padding:16px 20px; background: var(--bg); font-family:var(--font-mono); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); }
.prize-table td{ padding:14px 20px; border-top:1px solid var(--border); }
.prize-table tbody tr{ transition: background .2s; }
.prize-table tbody tr:hover{ background: rgba(42,79,160,0.05); }

/* ---------- Odds ---------- */
.odds-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.odds-card{ background: linear-gradient(160deg,#fff,#F0F2FA); border:1px solid var(--border); border-radius: var(--radius-md); padding:32px; text-align:center; }
.odds-figure{ display:block; font-family:var(--font-mono); font-size:1.5rem; font-weight:700; color:var(--royal-blue-deep); margin-bottom:8px; }
.odds-label{ color:var(--text-muted); font-size:0.9rem; }

/* ---------- Steps ---------- */
.steps-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.step-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); padding:26px; box-shadow: var(--shadow-sm); }
.step-icon{ font-family:var(--font-display); font-size:1.6rem; color:var(--orange); }
.step-card h3{ font-size:1.05rem; margin:10px 0 8px; }
.step-card p{ color:var(--text-muted); font-size:0.9rem; }

/* ---------- Schedule / Countdown ---------- */
.schedule-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:32px; align-items:start; }
.schedule-timeline{ position:relative; padding-left:24px; border-left:3px solid var(--border); display:flex; flex-direction:column; gap:22px; }
.tl-item{ position:relative; }
.tl-item::before{ content:""; position:absolute; left:-31px; top:4px; width:14px; height:14px; border-radius:50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.2); }
.tl-day{ display:block; font-weight:700; color:var(--royal-blue-deep); }
.tl-time{ color:var(--text-muted); font-size:0.88rem; }
.countdown-box{ background: linear-gradient(160deg, var(--royal-blue), var(--royal-blue-deep)); color:#fff; border-radius: var(--radius-lg); padding:32px; text-align:center; }
.countdown{ display:flex; gap:14px; justify-content:center; margin:18px 0; }
.countdown div{ background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding:14px 10px; min-width:66px; }
.countdown span{ display:block; font-family:var(--font-mono); font-size:1.6rem; font-weight:700; color:var(--gold-light); }
.countdown small{ font-size:0.7rem; text-transform:uppercase; letter-spacing:0.06em; color: rgba(255,255,255,0.7); }
.countdown-note{ font-size:0.82rem; color: rgba(255,255,255,0.7); }

/* ---------- Generator ---------- */
.generator-box{ display:flex; flex-direction:column; align-items:center; gap:24px; }
.generator-actions{ display:flex; gap:14px; }

/* ---------- Lookup ---------- */
.lookup-box{ display:flex; gap:14px; max-width:560px; margin: 0 auto; }
.lookup-box input{ flex:1; padding:14px 18px; border-radius:999px; border:2px solid var(--border); font-size:0.95rem; }
.lookup-result{ max-width:560px; margin:24px auto 0; text-align:center; color:var(--text-muted); min-height:1.4em; }

/* ---------- Timeline history ---------- */
.history-timeline{ position:relative; padding-left:28px; border-left:3px solid var(--border); display:flex; flex-direction:column; gap:26px; max-width:720px; margin:0 auto; }
.history-item{ position:relative; }
.history-item::before{ content:""; position:absolute; left:-35px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--royal-blue-bright); }
.history-date{ font-weight:700; margin-bottom:6px; }
.history-balls{ display:flex; gap:6px; flex-wrap:wrap; }

/* Center the timeline content on desktop */
@media (min-width: 961px){
  .history-timeline{ border-left:none; padding-left:0; align-items:center; text-align:center; }
  .history-item::before{ display:none; }
  .history-balls{ justify-content:center; }
}

/* ---------- Tips / Facts / Grid cards ---------- */
.tips-grid{ display:grid; grid-template-columns: repeat(5,1fr); gap:16px; }
.tip-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); padding:20px; }
.tip-card h3{ font-size:0.98rem; margin-bottom:8px; }
.tip-card p{ color:var(--text-muted); font-size:0.85rem; }

.facts-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.fact-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); padding:24px; text-align:center; }
.fact-icon{ font-size:1.8rem; display:block; margin-bottom:12px; }
.fact-card p{ color:var(--text-muted); font-size:0.9rem; }

.grid-cards{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.mini-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); padding:20px; display:flex; align-items:center; gap:12px; font-weight:600; transition: transform .2s, box-shadow .2s; }
.mini-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.mini-card span{ font-size:1.3rem; }

/* ---------- FAQ ---------- */
.faq-controls{ max-width:720px; margin: 0 auto 32px; display:flex; flex-direction:column; gap:16px; align-items:center; }
.faq-controls input{ width:100%; padding:14px 18px; border-radius:999px; border:2px solid var(--border); font-size:0.95rem; }
.faq-filters{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.faq-filter{ padding:8px 16px; border-radius:999px; border:1px solid var(--border); background:#fff; font-size:0.85rem; font-weight:600; color:var(--text-muted); transition: background .2s, color .2s; }
.faq-filter.active, .faq-filter:hover{ background: var(--royal-blue); color:#fff; border-color:var(--royal-blue); }
.faq-columns{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.faq-item{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-md); margin-bottom:14px; overflow:hidden; }
.faq-q{ width:100%; text-align:left; padding:18px 20px; background:none; border:none; font-weight:600; font-size:0.95rem; display:flex; justify-content:space-between; gap:12px; align-items:center; color:var(--text-navy); }
.faq-q .icon{ transition: transform .25s ease; color: var(--orange); font-size:1.1rem; flex-shrink:0; }
.faq-item.open .faq-q .icon{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease, padding .3s ease; padding:0 20px; color:var(--text-muted); font-size:0.9rem; }
.faq-item.open .faq-a{ padding:0 20px 18px; }
.faq-empty{ text-align:center; color:var(--text-muted); margin-top:20px; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap:32px; margin-bottom:48px; }
.contact-form{ background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding:32px; box-shadow: var(--shadow-sm); }
.contact-form input, .contact-form textarea{ width:100%; padding:12px 16px; border-radius:var(--radius-sm); border:2px solid var(--border); font-family:inherit; font-size:0.92rem; resize:vertical; }
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color: var(--royal-blue-bright); }
.contact-side{ display:flex; flex-direction:column; gap:20px; }
.contact-info{ background: linear-gradient(160deg, var(--royal-blue), var(--royal-blue-deep)); color:#fff; border-radius: var(--radius-lg); padding:28px; }
.contact-info h3{ color:#fff; margin-bottom:8px; }
.contact-info p{ color: rgba(255,255,255,0.8); margin-bottom:6px; }
.social-icons{ display:flex; gap:10px; margin-top:14px; font-size:1.2rem; }
.map-placeholder{ flex:1; min-height:140px; border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, #E3E6F0, #E3E6F0 10px, #EDEFF6 10px, #EDEFF6 20px); display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-weight:600; }

.newsletter{ background: linear-gradient(120deg, var(--royal-blue-bright), var(--royal-blue-deep)); border-radius: var(--radius-lg); padding:36px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; color:#fff; }
.newsletter h3{ color:#fff; margin-bottom:6px; }
.newsletter p{ color: rgba(255,255,255,0.8); font-size:0.9rem; }
.newsletter-form{ display:flex; gap:10px; }
.newsletter-form input{ padding:12px 16px; border-radius:999px; border:none; min-width:220px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--royal-blue-deep); color: rgba(255,255,255,0.8); padding:64px 0 24px; }
.footer-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:32px; margin-bottom:36px; }
.footer-col h4{ color:#fff; font-size:0.95rem; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:0.88rem; color: rgba(255,255,255,0.7); transition:color .2s; }
.footer-col a:hover{ color: var(--gold-light); }
.footer-col-brand{ display:flex; flex-direction:column; gap:14px; }
.footer-logo{ display:inline-flex; align-items:center; gap:10px; width:fit-content; }
.footer-logo .brand-text{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; color:#fff; display:flex; flex-direction:column; line-height:1.05; }
.footer-logo .brand-text em{ font-style:normal; color: var(--gold-light); }
.footer-logo .brand-text small{ font-family:var(--font-body); font-weight:500; font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color: rgba(255,255,255,0.6); }
.footer-logo:hover .brand-text{ color: var(--gold-light); }
.footer-tagline{ font-size:0.85rem; color: rgba(255,255,255,0.65); line-height:1.5; max-width:260px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid rgba(255,255,255,0.12); font-size:0.85rem; flex-wrap:wrap; gap:14px; }
.footer-disclaimer{ text-align:center; font-size:0.75rem; color: rgba(255,255,255,0.4); max-width:800px; margin:20px auto 0; padding:0 24px; }

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; right:24px; bottom:24px; width:48px; height:48px; border-radius:50%;
  background: var(--royal-blue); color:#fff; border:none; font-size:1.2rem; box-shadow: var(--shadow-md);
  opacity:0; pointer-events:none; transform: translateY(10px); transition: opacity .25s, transform .25s;
  z-index:150;
}
.back-to-top.visible{ opacity:1; pointer-events:auto; transform:translateY(0); }
