/* ------------------------------------------------------------------
   Headsup Lifestyle – stylesheet
   Light, minimal, navy accent. No external dependencies.
   ------------------------------------------------------------------ */

:root {
  --navy:        #1b3a6b;
  --navy-dark:   #142c50;
  --navy-soft:   #eef3fa;
  --ink:         #16233b;
  --ink-muted:   #5a6780;
  --line:        #e3e8f0;
  --bg:          #ffffff;
  --bg-soft:     #f7f9fc;
  --ok:          #17694c;
  --err:         #9b2c2c;

  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 1px 2px rgba(22, 35, 59, .05), 0 8px 24px rgba(22, 35, 59, .06);
  --wrap:        1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 650; }
.section__head p { margin-top: 14px; color: var(--ink-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}
.site-header__logo img { height: 56px; width: auto; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-muted); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); }
@media (max-width: 720px) {
  .site-header .wrap { min-height: 68px; justify-content: center; }
  .site-header__logo img { height: 42px; }
  .site-nav { display: none; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-soft) 0%, #ffffff 100%);
  padding: 78px 0 74px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 680;
  max-width: 17ch;
  margin: 0 auto;
}
.hero__lead {
  margin: 22px auto 0; max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-muted);
}
.hero__actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 26px; font-size: 15px; }
.hero__note--ok  { color: var(--ok); }
.hero__note--err { color: var(--err); }

/* ---------- range / category cards ---------- */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}
/* two-card row stays centred and does not stretch to full width */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
@media (max-width: 560px) { .cards--2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: #c7d4e6; transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--navy-soft); border-radius: 13px;
  color: var(--navy);
}
.card__icon svg { width: 26px; height: 26px; display: block; }
.card h3 { font-size: 18px; font-weight: 650; }
.card p { margin-top: 9px; font-size: 15px; color: var(--ink-muted); }

/* ---------- two-column intro ---------- */
.split {
  display: grid; gap: 44px; align-items: start;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 650; }
.split p { color: var(--ink-muted); }
.split p + p { margin-top: 16px; }

/* ---------- value list ---------- */
.values {
  display: grid; gap: 18px 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}
.value h3 { font-size: 16px; font-weight: 650; }
.value p { margin-top: 6px; font-size: 15px; color: var(--ink-muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--ink-muted);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--navy); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; padding: 20px; }
.modal.is-open { display: flex; align-items: center; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 33, 61, .55); }
.modal__panel {
  position: relative; width: 100%; max-width: 780px; max-height: 84vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); padding: 36px 34px;
  box-shadow: 0 20px 60px rgba(20, 33, 61, .28);
}
@media (max-width: 620px) { .modal__panel { padding: 26px 20px; } }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink-muted);
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__panel h2 { font-size: 22px; font-weight: 650; }
.modal__panel h3 { font-size: 18px; font-weight: 650; margin-top: 30px; }
.modal__panel p { margin-top: 10px; font-size: 14.5px; color: var(--ink-muted); }
.modal__panel dl { margin: 12px 0 0; font-size: 14.5px; }
.modal__panel dt { font-weight: 600; color: var(--ink); }
.modal__panel dd { margin: 0 0 8px; color: var(--ink-muted); }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; z-index: 100; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 34px; }
  .hero { padding: 54px 0 56px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer nav { flex-wrap: wrap; gap: 16px; }
}
