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

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --c-sky:     #87C9E4;
  --c-sky-lt:  #C5E8F4;
  --c-teal:    #3A9AC4;
  --c-teal-dk: #2B7A9E;
  --c-steel:   #4B7B94;
  --c-navy:    #1B3A5C;
  --c-ice:     #EDF7FC;
  --c-ice-dk:  #DCF0F8;
  --c-white:   #FFFFFF;
  --c-text:    #12293A;
  --c-muted:   #5A7F93;
  --c-border:  rgba(27, 73, 101, 0.12);
  --c-shadow:  rgba(27, 58, 92, 0.08);
  --c-star:    #F5B800;
  --c-yes:     #2D9B5A;
  --c-no:      #D44D4D;

  --f-display: 'Barlow Condensed', sans-serif;
  --f-heading: 'Barlow', sans-serif;
  --f-body:    'Inter', sans-serif;

  --max-w:      860px;
  --max-w-wide: 1160px;
  --radius:     6px;
  --ease:       200ms ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--c-teal-dk); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; border-radius: 2px; }
ul, ol { padding-left: 1.4rem; }

/* ── Containers ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-family: var(--f-display); font-weight: 700; }
h2 { font-family: var(--f-heading); font-weight: 600; font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-family: var(--f-heading); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-family: var(--f-heading); font-weight: 600; font-size: 0.95rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal);
  display: block;
  margin-bottom: 0.5rem;
}
.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-steel);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--c-navy);
  color: var(--c-white);
  border-color: var(--c-navy);
}
.btn--primary:hover {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: var(--c-white);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn--outline:hover {
  background: var(--c-navy);
  color: var(--c-white);
  text-decoration: none;
}
.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--c-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  color: var(--c-white);
  text-decoration: none;
}

/* ── Site header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(27, 58, 92, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-header .container--wide {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo__icon { width: 34px; height: 34px; flex-shrink: 0; }
.site-logo__text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.site-logo__text small {
  display: block;
  font-size: 0.58rem;
  font-family: var(--f-body);
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}
.site-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-family: var(--f-heading);
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--c-white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.site-nav a.active { font-weight: 600; }

/* Header CTA */
.header-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
  border-radius: 4px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 1px;
  transition: all var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--c-navy);
  padding: 1rem 1.5rem 2rem;
  z-index: 199;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.site-nav.is-open a {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
.header-cta-mobile {
  display: none;
  margin-top: 1.25rem;
  align-self: flex-start;
}
.site-nav.is-open .header-cta-mobile { display: inline-flex !important; }

@media (min-width: 768px) {
  .site-nav    { display: flex; }
  .header-cta  { display: flex; }
  .nav-toggle  { display: none; }
}

/* ── Section utilities ───────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }
.section--alt { background: var(--c-ice); }
.section--teal {
  background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-dk) 100%);
  color: var(--c-white);
}
.section--navy {
  background: var(--c-navy);
  color: var(--c-white);
}
.section__header { margin-bottom: 2.5rem; }
.section__header .eyebrow { color: var(--c-teal); }
.section--teal .section__header .eyebrow,
.section--navy .section__header .eyebrow { color: rgba(255,255,255,0.6); }

/* ── Wave dividers ──────────────────────────────────────────── */
.wave-divider {
  display: block;
  overflow: hidden;
  line-height: 0;
  height: 48px;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }

/* ── Penguin accent ─────────────────────────────────────────── */
.penguin-accent {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  opacity: 0.8;
}
.penguin-accent svg { width: 52px; height: auto; }

/* ── Callout block ──────────────────────────────────────────── */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-teal);
  background: var(--c-ice);
  font-size: 0.9rem;
  line-height: 1.7;
}
.callout--positive { border-left-color: var(--c-yes); }
.callout--negative { border-left-color: var(--c-no); }
.callout__title {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.callout--positive .callout__title { color: var(--c-yes); }
.callout--negative .callout__title { color: var(--c-no); }

/* ── Tag / badge ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--teal { background: var(--c-ice-dk); color: var(--c-teal-dk); }
.tag--yes  { background: #E8F5EE; color: var(--c-yes); }
.tag--no   { background: #FDECEA; color: var(--c-no); }

/* ── Site footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
  margin-top: 0;
}
.site-footer .container--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.footer-brand p {
  font-size: 0.83rem;
  margin-top: 0.875rem;
  line-height: 1.65;
  max-width: 290px;
  color: rgba(255,255,255,0.55);
}
.footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-nav-group h4 {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}
.footer-nav-group a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  padding: 0.22rem 0;
  text-decoration: none;
  transition: color var(--ease);
}
.footer-nav-group a:hover { color: var(--c-white); text-decoration: none; }
.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--c-white); }

@media (min-width: 600px) {
  .footer-nav-groups { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .site-footer .container--wide { grid-template-columns: 280px 1fr; }
  /* Footer-bottom container has only one child — force it back to single column */
  .site-footer > .container--wide + .container--wide { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Reduce motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
