/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  --navy:   #0B1F33;
  --blue:   #3A5A73;
  --accent: #4FA3D1;
  --pale:   #F4F6F8;
  --steel:  #A7B3BF;
  --white:  #FFFFFF;
  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(11,31,51,0.10);
  --max-w:  1100px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.6; font-size: 16px; }
img  { max-width: 100%; display: block; }
a    { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul   { list-style: none; }

/* ── UTILITIES ───────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-accent { color: var(--accent); }
.text-blue   { color: var(--blue); }
.text-steel  { color: var(--steel); }
.small { font-size: 0.875rem; }
.italic { font-style: italic; }
.bold { font-weight: 700; }
.caps { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── NAVIGATION ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 52px; width: 52px; object-fit: contain; }
.nav-logo-text {
  color: var(--white); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--steel); font-size: 0.875rem; padding: 8px 14px;
  border-radius: var(--radius); transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  font-weight: 600 !important; padding: 8px 18px !important;
}
.nav-cta:hover { background: #3d91bf !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy); color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.25; max-width: 780px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.1rem; color: #A8BDC9; max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.15s; text-decoration: none !important; line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: #3d91bf; border-color: #3d91bf; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: #0d2540; }
.btn-lg { font-size: 1.05rem; padding: 16px 36px; }
.btn-sm { font-size: 0.85rem; padding: 10px 20px; }

/* ── SECTION ─────────────────────────────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-pale { background: var(--pale); }
.section-navy { background: var(--navy); color: var(--white); }
.section-blue { background: var(--blue); color: var(--white); }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.section-intro { font-size: 1.05rem; color: var(--blue); max-width: 680px; }
.section-header { margin-bottom: 48px; }
.section-header-center { text-align: center; }
.section-header-center .section-label { display: block; }
.section-header-center .section-intro { margin: 0 auto; }

/* ── CARDS GRID ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card {
  background: var(--white); border: 1px solid #E2E8F0;
  border-radius: var(--radius); padding: 28px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.card-icon { font-size: 1.4rem; margin-bottom: 12px; color: var(--accent); }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p  { font-size: 0.9rem; color: var(--blue); line-height: 1.6; }

/* ── TWO-COLUMN SPLIT ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-3-2 { grid-template-columns: 3fr 2fr; }
.split h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.split p { font-size: 0.95rem; color: var(--blue); margin-bottom: 14px; }
.split p:last-child { margin-bottom: 0; }

/* ── CALLOUT BOX ─────────────────────────────────────────────────────────── */
.callout {
  background: var(--pale); border-left: 4px solid var(--navy);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout p { font-size: 0.95rem; color: var(--navy); }
.callout-accent { border-left-color: var(--accent); }

/* ── SCORE BADGE (assessment results) ───────────────────────────────────── */
.score-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid currentColor; font-weight: 700;
}
.score-badge .score-num { font-size: 2.4rem; line-height: 1; }
.score-badge .score-lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── DIM BARS ────────────────────────────────────────────────────────────── */
.dim-bar-row { margin-bottom: 18px; }
.dim-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.dim-bar-track { height: 12px; background: #E2E8F0; border-radius: 6px; overflow: hidden; }
.dim-bar-fill  { height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.8s ease; }
.dim-bar-floor .dim-bar-fill { background: #DC2626; }

/* ── FORM ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; font-family: var(--font); font-size: 0.95rem;
  border: 1.5px solid #CBD5E0; border-radius: var(--radius); background: var(--white);
  color: var(--navy); transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,163,209,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── ASSESSMENT ──────────────────────────────────────────────────────────── */
.assessment-header {
  background: var(--navy); color: var(--white);
  padding: 56px 24px 40px; text-align: center;
}
.assessment-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.assessment-header p  { color: #A8BDC9; max-width: 560px; margin: 0 auto; }
.assessment-meta { display: flex; gap: 24px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.assessment-meta span { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.assessment-meta span::before { content: "✓  "; }

.dim-section { margin-bottom: 40px; }
.dim-heading {
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: baseline; gap: 12px;
}
.dim-heading .dim-num { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.dim-heading .dim-name { font-size: 1rem; font-weight: 700; }
.dim-heading .dim-sub { font-size: 0.8rem; color: #A8BDC9; font-style: italic; margin-left: auto; }

.question-block {
  border: 1px solid #E2E8F0; border-top: none;
  padding: 24px 20px;
}
.question-block + .question-block { border-top: 1px solid #E2E8F0; }
.question-block:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.question-text { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; line-height: 1.5; }
.question-num  { color: var(--accent); margin-right: 4px; }

.answer-options { display: flex; flex-direction: column; gap: 8px; }
.answer-option { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.answer-option input[type="radio"] { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; width: 16px; height: 16px; }
.answer-score { font-size: 0.8rem; font-weight: 700; color: var(--accent); min-width: 16px; }
.answer-text  { font-size: 0.875rem; color: var(--blue); line-height: 1.5; }
.answer-option:hover .answer-text { color: var(--navy); }
.answer-option input:checked ~ .answer-text { color: var(--navy); font-weight: 500; }

.assessment-submit { text-align: center; margin: 40px 0 0; }
.assessment-error { color: #DC2626; font-size: 0.875rem; margin-top: 12px; display: none; }

/* ── RESULTS ─────────────────────────────────────────────────────────────── */
#results { display: none; }
.results-hero {
  background: var(--navy); color: var(--white);
  padding: 48px 24px; text-align: center;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.results-hero h2 { font-size: 1.4rem; margin-bottom: 24px; }
.results-score-row { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.results-band { text-align: left; }
.results-band .band-label { font-size: 1.6rem; font-weight: 700; }
.results-band .band-desc  { font-size: 0.9rem; color: #A8BDC9; max-width: 380px; margin-top: 8px; line-height: 1.6; }

.results-dims { margin-bottom: 32px; }
.results-dims h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 20px; }
.floor-note { background: #FEF3C7; border-left: 4px solid #D97706; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 20px; font-size: 0.875rem; color: #92400E; }

.results-cta { background: var(--pale); border-radius: var(--radius); padding: 32px; text-align: center; border: 1px solid #E2E8F0; }
.results-cta h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--navy); }
.results-cta p  { color: var(--blue); margin-bottom: 24px; font-size: 0.95rem; }
.results-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: var(--white); padding: 56px 24px 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo img { height: 32px; margin-bottom: 8px; }
.footer-tagline { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer-about { font-size: 0.85rem; color: var(--steel); line-height: 1.7; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--steel); font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: var(--steel); }

/* ── RESOURCE CARDS ──────────────────────────────────────────────────────── */
.resource-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; background: var(--white);
  border: 1px solid #E2E8F0; border-radius: var(--radius); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.resource-icon { font-size: 2rem; flex-shrink: 0; }
.resource-info h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.resource-info p  { font-size: 0.875rem; color: var(--blue); margin-bottom: 14px; line-height: 1.5; }

/* ── STAT ROW ────────────────────────────────────────────────────────────── */
.stat-row { display: flex; gap: 0; }
.stat { flex: 1; text-align: center; padding: 32px 24px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border-right: none; }
.stat-num  { font-size: 2.4rem; font-weight: 700; color: var(--accent); display: block; }
.stat-desc { font-size: 0.85rem; color: #A8BDC9; margin-top: 6px; }

/* ── CREDENTIAL BANNER ───────────────────────────────────────────────────── */
.credential { background: var(--blue); color: var(--white); padding: 32px 24px; text-align: center; }
.credential p { font-size: 0.95rem; color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto; line-height: 1.7; }
.credential strong { color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .split, .split-3-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 4px; border-bottom: 2px solid var(--accent); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 24px; }
  .section { padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .dim-heading { flex-wrap: wrap; }
  .dim-heading .dim-sub { display: none; }
  .results-score-row { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
