/* ============================================================
   AVLO WEBSITE — SHARED STYLES
   Brand: Teal #0d9488 | Gold #c9a96e | Navy #1b2433/#0f172a
   Fonts: DM Sans (body) | Barlow Semi Condensed (headings)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Barlow+Semi+Condensed:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #0d9488;
  --teal-light:#14b8a6;
  --teal-dim:  rgba(13,148,136,0.15);
  --gold:      #c9a96e;
  --gold-dim:  rgba(201,169,110,0.15);
  --navy:      #1b2433;
  --navy-deep: #0f172a;
  --cream:     #f2ebd9;
  --cream-dim: rgba(242,235,217,0.08);
  --white:     #ffffff;
  --muted:     rgba(242,235,217,0.55);
  --border:    rgba(242,235,217,0.12);

  /* Suitability colours */
  --hr-color:  #0d9488;
  --rec-color: #84cc16;
  --cla-color: #f59e0b;
  --nr-color:  #ef4444;
  --exc-color: #3b82f6;

  --radius:    22px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-h:     64px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }

img { display: block; max-width: 100%; }

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--cream); background: var(--cream-dim); }
.nav-links a.active { color: var(--teal-light); background: var(--teal-dim); }

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.45rem 1.1rem !important;
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: var(--radius-xs) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  color: var(--cream);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: var(--transition); }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; }
}

/* ── Page layout ──────────────────────────────────────────── */
main { padding-top: var(--nav-h); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }
section:first-of-type { padding-top: 5rem; }

/* ── Typography helpers ───────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow::before { content: '✦'; font-size: 0.7rem; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

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

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xs);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); color: var(--white); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--cream); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card-sm {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

/* ── Suitability pills ────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-hr  { background: rgba(13,148,136,0.15);  color: var(--hr-color);  border: 1px solid rgba(13,148,136,0.3); }
.pill-rec { background: rgba(132,204,22,0.15);  color: var(--rec-color); border: 1px solid rgba(132,204,22,0.3); }
.pill-cla { background: rgba(245,158,11,0.15);  color: var(--cla-color); border: 1px solid rgba(245,158,11,0.3); }
.pill-nr  { background: rgba(239,68,68,0.15);   color: var(--nr-color);  border: 1px solid rgba(239,68,68,0.3); }
.pill-exc { background: rgba(59,130,246,0.15);  color: var(--exc-color); border: 1px solid rgba(59,130,246,0.3); }

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-teal { background: var(--teal-dim); color: var(--teal-light); border: 1px solid rgba(13,148,136,0.3); }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(201,169,110,0.3); }

/* ── Section backgrounds ──────────────────────────────────── */
.bg-navy   { background: var(--navy); }
.bg-deep   { background: var(--navy-deep); }
.bg-subtle { background: rgba(255,255,255,0.02); }

/* ── Grid helpers ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--gold); }

.footer-tagline { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--muted); }
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Accessibility widget ─────────────────────────────────── */
.a11y-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 200;
}

.a11y-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.a11y-btn:hover, .a11y-btn:focus { color: var(--teal); border-color: var(--teal); }

.a11y-panel {
  display: none;
  position: absolute;
  bottom: 52px;
  left: 0;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.a11y-panel.open { display: block; }

.a11y-panel h4 {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--cream);
}
.a11y-row:last-child { border-bottom: none; }

.a11y-row button {
  background: var(--cream-dim);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.a11y-row button:hover { background: var(--teal-dim); border-color: var(--teal); color: var(--teal); }
.a11y-row button.active { background: var(--teal-dim); border-color: var(--teal); color: var(--teal-light); }

/* High contrast mode */
body.high-contrast {
  --navy: #000000;
  --navy-deep: #000000;
  --cream: #ffffff;
  --muted: rgba(255,255,255,0.8);
  --border: rgba(255,255,255,0.3);
}

/* Large text mode */
body.large-text { font-size: 19px; }

/* Animations paused */
body.no-animations *, body.no-animations *::before, body.no-animations *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Dyslexia-friendly font */
body.dyslexia, body.dyslexia h1, body.dyslexia h2, body.dyslexia h3,
body.dyslexia h4, body.dyslexia p, body.dyslexia li, body.dyslexia a {
  font-family: Georgia, serif !important;
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
}

/* Increased line height */
body.tall-lines p, body.tall-lines li { line-height: 2 !important; }

/* ── Animation utilities ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.55s ease;
}
.fade-in.visible { opacity: 1; }

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Prose ────────────────────────────────────────────────── */
.prose p { margin-bottom: 1rem; color: var(--muted); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--cream); font-weight: 600; }
