/* ============================================================
   IVA Info — Master Stylesheet
   www.iva-info.co.uk
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --navy:       #0B1F3A;
  --teal:       #0D9488;
  --teal-light: #14B8A6;
  --teal-pale:  #CCFBF1;
  --amber:      #F59E0B;
  --cream:      #FAFAF7;
  --white:      #FFFFFF;
  --gray-100:   #F3F4F6;
  --gray-400:   #9CA3AF;
  --gray-600:   #4B5563;
  --gray-800:   #1F2937;
  --shadow:     0 4px 24px rgba(11,31,58,.10);
  --shadow-lg:  0 12px 48px rgba(11,31,58,.18);
  /* short aliases used in compact pages */
  --n:   #0B1F3A;
  --t:   #0D9488;
  --tl:  #14B8A6;
  --tp:  #CCFBF1;
  --a:   #F59E0B;
  --cr:  #FAFAF7;
  --w:   #FFFFFF;
  --g4:  #9CA3AF;
  --g6:  #4B5563;
  --g8:  #1F2937;
  --sh:  0 4px 24px rgba(11,31,58,.10);
  --shl: 0 12px 48px rgba(11,31,58,.18);
  --c:   #FAFAF7;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.6;
}

/* ── HEADER / NAV ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(13,148,136,.12);
  box-shadow: 0 2px 16px rgba(11,31,58,.07);
}
.nav-inner, .ni {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
/* Logo — now uses logo-main.png image */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all .2s;
}
nav a:hover, nav a.active, nav a.act {
  background: var(--teal-pale);
  color: var(--teal);
}
.nav-cta, .nc {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
}
.nav-cta:hover, .nc:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}
.hamburger, .hb {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span, .hb span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb, .bc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--gray-400);
}
.breadcrumb a, .bc a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover, .bc a:hover { text-decoration: underline; }
.breadcrumb span, .bc span { margin: 0 6px; }

/* ── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D2D4A 100%);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 420px; height: 420px;
  border: 70px solid rgba(13,148,136,.09);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: -80px; bottom: -80px;
  width: 300px; height: 300px;
  border: 50px solid rgba(245,158,11,.07);
  border-radius: 50%;
}
.page-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.page-tag, .ptag, .at {
  display: inline-block;
  background: rgba(13,148,136,.15);
  color: var(--teal-light);
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(13,148,136,.25);
}
.page-hero h1, .ah h1, .ph h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.08;
}
.page-hero h1 em { color: var(--teal-light); font-style: normal; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.72); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* Article hero variant */
.ah {
  background: linear-gradient(135deg, var(--navy), #0D2D4A);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.ah::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border: 50px solid rgba(13,148,136,.1);
  border-radius: 50%;
}
.ahi { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.am { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.am div { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.6); font-size: 12px; }

/* Page hero — legal/generic (.ph) */
.ph {
  background: linear-gradient(135deg, var(--navy), #0D2D4A);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border: 50px solid rgba(13,148,136,.1);
  border-radius: 50%;
}
.phi { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

/* ── SECTION TAGS ──────────────────────────────────────────── */
.section-tag, .st {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── AD SLOTS ──────────────────────────────────────────────── */
.ad-slot, .adsl {
  background: rgba(13,148,136,.05);
  border: 2px dashed rgba(13,148,136,.2);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  margin: 32px 0;
}
.ad-label, .adlbl {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* ── INFO / WARNING BOXES ──────────────────────────────────── */
.hbox, .highlight-box {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 18px 0;
}
.hbox p, .highlight-box p { color: var(--gray-800); font-size: 14px; margin: 0; }
.wbox, .warning-box {
  background: #FEF3C7;
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 18px 0;
}
.wbox p, .warning-box p { color: #78350F; font-size: 14px; margin: 0; }
.tip-box {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--teal-pale);
  border-radius: 14px;
  border-left: 4px solid var(--teal);
}
.tip-box p { font-size: 13px; color: var(--gray-800); line-height: 1.7; margin: 0; }

/* ── COMPARISON TABLE ──────────────────────────────────────── */
.ctable, .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ctable th, .comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.ctable td, .comparison-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  border-bottom: 1px solid rgba(13,148,136,.08);
  background: var(--white);
}
.ctable tr:hover td, .comparison-table tr:hover td { background: var(--teal-pale); }

/* ── ARTICLE LAYOUT (FAQ detail pages) ────────────────────── */
.al, .article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}
.ab, .article-body { }
.ab h2, .article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(13,148,136,.12);
}
.ab h2:first-child, .article-body h2:first-child { margin-top: 0; }
.ab p, .article-body p { font-size: 15px; color: var(--gray-600); line-height: 1.85; margin-bottom: 14px; }
.ab ul, .article-body ul { margin: 0 0 14px 20px; }
.ab ul li, .article-body ul li { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 5px; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sb, .sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.sbox {
  background: var(--white);
  border-radius: 16px;
  padding: 22px;
  border: 1.5px solid rgba(13,148,136,.1);
}
.sbox h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sbox a {
  display: block;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: all .2s;
}
.sbox a:hover { background: var(--teal-pale); color: var(--teal); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-pale);
  color: var(--teal);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.back-btn:hover { background: var(--teal); color: var(--white); }
.rbox {
  background: linear-gradient(135deg, var(--navy), #0D2D4A);
  border-radius: 16px;
  padding: 22px;
}
.rbox h3 { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.rbox a {
  display: block;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s;
}
.rbox a:last-child { border-bottom: none; }
.rbox a:hover { color: var(--teal-light); }

/* ── BODY CONTENT WRAPPER (legal pages) ───────────────────── */
.body-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.body-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(13,148,136,.12);
}
.body-wrap h2:first-child { margin-top: 0; }
.body-wrap p { font-size: 15px; color: var(--gray-600); line-height: 1.85; margin-bottom: 14px; }
.body-wrap ul { margin: 0 0 14px 20px; }
.body-wrap ul li { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 5px; }
.body-wrap a { color: var(--teal); text-decoration: underline; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary, .btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover, .btn-teal:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-secondary, .btn-outline-w {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s;
}
.btn-secondary:hover, .btn-outline-w:hover { background: rgba(255,255,255,.1); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(13,148,136,.3);
  color: var(--teal);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .25s;
}
.btn-outline:hover { background: var(--teal-pale); }

/* ── CARDS / GRID UTILITIES ────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  background: var(--white);
  border: 1.5px solid rgba(13,148,136,.1);
  border-radius: 16px;
  padding: 28px;
  transition: all .3s;
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }

/* ── FAQ ACCORDION (used in faq.html and index.html) ───────── */
.faq-item {
  border: 1.5px solid rgba(13,148,136,.1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--white);
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--teal); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  gap: 12px;
  user-select: none;
}
.faq-arrow {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform .3s, background .2s;
  color: var(--teal);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--teal); color: var(--white); }
.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  border-top: 1px solid rgba(13,148,136,.08);
}
.faq-answer a { color: var(--teal); font-weight: 500; text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-top: 14px;
}
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--teal-light); }

/* Short footer variants (fbot / footer-bottom) */
.fbot, .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.fbot p, .footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
.fbot a, .footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.fbot a:hover, .footer-bottom a:hover { color: var(--teal-light); }
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Short flat footer (fb — used in oldest FAQ pages) */
.fb {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fb p { font-size: 12px; color: rgba(255,255,255,.4); }
.fb a { color: rgba(255,255,255,.45); text-decoration: none; }

/* FCA notice */
.fca-notice, .fca {
  background: rgba(245,158,11,.08);
  border-top: 1px solid rgba(245,158,11,.15);
  padding: 20px 24px;
}
.fca-notice-inner { max-width: 1200px; margin: 0 auto; }
.fca-notice p, .fca p { font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.7; }
.fca-notice strong, .fca strong { color: rgba(255,255,255,.6); }

/* ── HERO TABS (eligibility page) ──────────────────────────── */
.hero-tabs { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-tab {
  padding: 12px 26px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .2px;
}
.hero-tab.active { background: var(--teal); color: var(--white); box-shadow: 0 4px 16px rgba(13,148,136,.4); }
.hero-tab:not(.active) { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.22); }
.hero-tab:not(.active):hover { background: rgba(255,255,255,.2); }

/* ── PANEL TOGGLE ──────────────────────────────────────────── */
.panel { display: none; }
.panel.active { display: block; }

/* ── SLIDER / CALCULATOR ───────────────────────────────────── */
.calc-card {
  background: linear-gradient(145deg, #0B1F3A, #0D3550);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.calc-header { text-align: center; margin-bottom: 36px; }
.calc-header h2 { font-family: 'Playfair Display', serif; color: var(--white); font-size: clamp(22px,3vw,32px); margin-bottom: 8px; }
.calc-header p { color: rgba(255,255,255,.6); font-size: 14px; }
.presets { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.preset-lbl { color: rgba(255,255,255,.45); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; width: 100%; margin-bottom: -4px; }
.preset-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.preset-btn:hover, .preset-btn.act { background: rgba(13,148,136,.25); border-color: var(--teal); color: var(--teal-light); }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.slider-group { margin-bottom: 26px; }
.slider-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.slider-label span { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; }
.slider-val {
  background: rgba(13,148,136,.22);
  color: var(--teal-light);
  padding: 5px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  min-width: 88px;
  text-align: center;
  border: 1px solid rgba(13,148,136,.3);
}
.range-wrap { position: relative; height: 8px; background: rgba(255,255,255,.1); border-radius: 99px; }
.range-fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(to right, var(--teal), var(--teal-light)); border-radius: 99px; pointer-events: none; }
/* Range inputs — scoped to donut calculator only */
.range-wrap input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 8px; -webkit-appearance: none; background: transparent; border-radius: 99px; outline: none; cursor: pointer; }
.range-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(13,148,136,.5), 0 0 0 3px var(--teal); border: none; transition: transform .15s; margin-top: -7px; }
.range-wrap input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.range-wrap input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--teal); border: none; }
.range-limits { display: flex; justify-content: space-between; margin-top: 8px; }
.range-limits span { font-size: 11px; color: rgba(255,255,255,.3); }
.results-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.res-title { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; padding: 16px 0; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.donut { position: relative; width: 96px; height: 96px; min-width: 96px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 14; }
.donut-fg { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: butt; transition: stroke-dasharray .7s ease; }
.donut-red { fill: none; stroke: #EF4444; stroke-width: 14; stroke-linecap: butt; transition: stroke-dasharray .7s ease, stroke-dashoffset .7s ease; }
.donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.donut-pct { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 900; color: var(--white); line-height: 1; }
.donut-lbl { font-size: 9px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.legend { flex: 1; }
.legend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: rgba(255,255,255,.6); }
.ldot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ldot.teal { background: var(--teal); }
.ldot.red { background: #EF4444; }
.res-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.res-row:last-of-type { border-bottom: none; }
.res-lbl { color: rgba(255,255,255,.55); font-size: 13px; }
.res-val { font-weight: 700; font-size: 13px; color: var(--white); }
.res-val.big { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--teal-light); }
.res-val.green { color: #4ADE80; font-size: 16px; }
.calc-disclaimer { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.22); border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.calc-disclaimer p { color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.7; margin: 0; }
.calc-cta { width: 100%; margin-top: 14px; padding: 14px; background: var(--teal); color: var(--white); border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .25s; box-shadow: 0 4px 16px rgba(13,148,136,.35); }
.calc-cta:hover { background: var(--teal-light); transform: translateY(-2px); }

/* ── ELIGIBILITY CHECKER ───────────────────────────────────── */
.checker-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checker-form { background: linear-gradient(145deg, #0B1F3A, #0D2D4A); border-radius: 24px; padding: 40px; }
.checker-form h2 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 24px; margin-bottom: 8px; }
.checker-form > p { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 30px; }
.q-group { margin-bottom: 22px; }
.q-label { display: block; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.q-label em { color: var(--teal-light); font-style: normal; font-size: 12px; display: block; margin-top: 3px; font-weight: 400; }
.radio-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-opt input { display: none; }
.radio-opt label { padding: 8px 16px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.18); color: rgba(255,255,255,.68); font-size: 13px; cursor: pointer; transition: all .2s; }
.radio-opt input:checked + label { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 600; }
.radio-opt label:hover { border-color: var(--teal-light); color: var(--teal-light); }
.check-btn { width: 100%; padding: 15px; background: var(--teal); color: var(--white); border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .25s; margin-top: 6px; box-shadow: 0 4px 20px rgba(13,148,136,.4); }
.check-btn:hover { background: var(--teal-light); transform: translateY(-2px); }
.result-box { display: none; margin-top: 22px; padding: 22px; border-radius: 14px; }
.result-box.eligible { background: rgba(74,222,128,.1); border: 1.5px solid rgba(74,222,128,.3); }
.result-box.maybe { background: rgba(245,158,11,.1); border: 1.5px solid rgba(245,158,11,.3); }
.result-box.explore { background: rgba(99,102,241,.1); border: 1.5px solid rgba(99,102,241,.3); }
.result-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.result-box.eligible h3 { color: #4ADE80; }
.result-box.maybe h3 { color: var(--amber); }
.result-box.explore h3 { color: #818CF8; }
.result-box p { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.75; }
.result-box a { color: var(--teal-light); }
.checker-info h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.checker-info > p { font-size: 15px; color: var(--gray-600); margin-bottom: 28px; line-height: 1.8; }
.criteria-list { display: flex; flex-direction: column; gap: 12px; }
.criterion { background: var(--white); border: 1.5px solid rgba(13,148,136,.12); border-radius: 14px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; transition: all .3s; }
.criterion:hover { border-color: var(--teal); transform: translateX(4px); }
.crit-icon { font-size: 22px; min-width: 32px; }
.crit-text strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.crit-text span { font-size: 13px; color: var(--gray-600); }

/* ── SITEMAP PAGE ──────────────────────────────────────────── */
.sitemap-block { margin-bottom: 52px; }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid rgba(13,148,136,.13); }
.section-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.section-icon.teal { background: var(--teal-pale); }
.section-icon.navy { background: rgba(11,31,58,.07); }
.section-icon.amber { background: rgba(245,158,11,.1); }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); }
.section-header p { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.sm-card { background: var(--white); border: 1.5px solid rgba(13,148,136,.1); border-radius: 14px; padding: 18px 22px; display: flex; align-items: flex-start; gap: 14px; text-decoration: none; transition: all .25s; }
.sm-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.sm-card-icon { font-size: 22px; min-width: 28px; margin-top: 1px; }
.sm-card-body { flex: 1; }
.sm-card-body strong { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 3px; transition: color .2s; }
.sm-card:hover .sm-card-body strong { color: var(--teal); }
.sm-card-body span { font-size: 12px; color: var(--gray-400); line-height: 1.5; }
.sm-card-arrow { color: var(--gray-400); font-size: 16px; align-self: center; transition: all .2s; }
.sm-card:hover .sm-card-arrow { color: var(--teal); transform: translateX(3px); }
.faq-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.faq-link { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid rgba(13,148,136,.08); border-radius: 10px; padding: 13px 16px; text-decoration: none; transition: all .2s; }
.faq-link:hover { border-color: var(--teal); background: var(--teal-pale); }
.faq-link .faq-num { width: 24px; height: 24px; min-width: 24px; background: var(--teal-pale); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--teal); }
.faq-link:hover .faq-num { background: var(--teal); color: var(--white); }
.faq-link span { font-size: 13px; color: var(--gray-600); flex: 1; font-weight: 500; }
.faq-link:hover span { color: var(--navy); }
.faq-link .arr { color: var(--gray-400); font-size: 14px; transition: all .2s; }
.faq-link:hover .arr { color: var(--teal); transform: translateX(2px); }
.solution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sol-card { background: var(--white); border: 1.5px solid rgba(13,148,136,.1); border-radius: 14px; padding: 20px 22px; display: flex; gap: 14px; text-decoration: none; align-items: flex-start; transition: all .25s; position: relative; overflow: hidden; }
.sol-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--teal-pale), transparent); opacity: 0; transition: opacity .25s; }
.sol-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.sol-card:hover::before { opacity: 1; }
.sol-card-icon { font-size: 28px; min-width: 36px; position: relative; }
.sol-card-body { position: relative; }
.sol-card-body strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sol-card-body span { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.sol-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 3px 9px; border-radius: 6px; margin-top: 8px; text-transform: uppercase; }
.sol-badge.formal { background: rgba(239,68,68,.08); color: #B91C1C; }
.sol-badge.informal { background: rgba(245,158,11,.1); color: #92400E; }
.sol-badge.scotland { background: rgba(99,102,241,.1); color: #4338CA; }
.xml-cta { background: linear-gradient(135deg, var(--navy), #0D2D4A); border-radius: 20px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.xml-cta-text h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 20px; margin-bottom: 6px; }
.xml-cta-text p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 520px; line-height: 1.7; }
.xml-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 404 PAGE ──────────────────────────────────────────────── */
.big-num {
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .calc-body { grid-template-columns: 1fr; }
  .checker-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }
  .hamburger, .hb { display: block; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .al, .article-layout { grid-template-columns: 1fr; }
  .sb, .sidebar { position: static; }
  .xml-cta { flex-direction: column; }
}
@media (max-width: 720px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cards-grid, .faq-list-grid, .solution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  .calc-card { padding: 28px 20px; }
}
