/* Website Rescue — rebuilt stylesheet
   Palette carried over from the existing Webflow theme:
   navy  #0b1c2e   (background)
   cream #f5f0e8   (body text, 15.18:1 on navy)
   Every text/background pair below is checked at AA (4.5:1) or better.
   The one bug this file exists to prevent: an h1 rule carrying
   color #2d3338 (Webflow's default) onto the navy background = 1.35:1. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy:        #0b1c2e;
  --navy-raised: #12283f;
  --cream:       #f5f0e8;
  --cream-dim:   #b9c4d1;   /* 8.1:1 on navy */
  --accent:      #4ea1ff;   /* 6.9:1 on navy */
  --accent-dk:   #1c6fd0;
  --ink:         #0b1c2e;
  --ink-dim:     #4a5a6b;   /* 7.4:1 on cream */
  --line:        #1e3752;
  --max:         1080px;
  --narrow:      720px;
}

html { scroll-behavior: smooth; }

body.body {
  margin: 0;
  background-color: var(--navy);
  color: var(--cream);
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The bug that started this. Colour is set here on every heading, not
   inherited, so a bare <h1> can never fall back to a dark-on-dark default. */
h1, h2, h3, h4, h5, h6 { color: var(--cream); font-weight: 700; margin: 0 0 .5em; }

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.1; letter-spacing: -.01em; max-width: 18ch; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; margin-bottom: .6em; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { margin: 0 0 1.15em; }
a { color: var(--accent); }
a:hover { color: #8cc4ff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #04101d; padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { color: var(--cream); font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--cream-dim); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--cream); }
.nav-cta { background: var(--accent); color: #04101d !important; padding: 9px 16px; border-radius: 3px; font-weight: 700; }
.nav-cta:hover { background: #6cb4ff; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--cream); max-width: 60ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: 3px; border: 2px solid transparent;
  font-size: 1rem; text-align: center;
}
.btn-primary { background: var(--accent); color: #04101d; }
.btn-primary:hover { background: #6cb4ff; color: #04101d; }
.btn-ghost { border-color: var(--cream-dim); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--navy-raised); }
.section-intro { color: var(--cream-dim); max-width: 62ch; margin-bottom: 2.5rem; }

.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card { background: var(--navy); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--cream-dim); margin: 0; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step-num {
  display: block; width: 42px; height: 42px; line-height: 42px; text-align: center;
  background: var(--accent); color: #04101d; font-weight: 700; font-size: 1.2rem;
  border-radius: 50%; margin-bottom: 14px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--cream-dim); margin: 0; }

/* ---------- audience ---------- */
.audience-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.audience { border-top: 2px solid var(--line); padding-top: 20px; }
.audience h3 { color: var(--accent); }
.audience p { color: var(--cream-dim); margin: 0; }

/* ---------- faq ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: .3em; }
.faq-item p { color: var(--cream-dim); margin: 0; }

/* ---------- cta ---------- */
.cta-section { border-top: 1px solid var(--line); background: var(--navy-raised); }
.cta-inner { text-align: center; }
.cta-inner .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.copyright, .footer-links { margin: 0; color: var(--cream-dim); font-size: .9rem; }
.footer-links a { color: var(--cream-dim); }

/* ---------- form ---------- */
.form-page { padding: clamp(48px, 7vw, 84px) 0; }
.callout-note {
  background: var(--navy-raised); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 16px 20px; margin: 0 0 28px; color: var(--cream-dim); max-width: 640px;
}
.callout-note strong { color: var(--cream); }
.cta-fine { color: var(--cream-dim); font-size: .95rem; margin-top: 1.2em; }
.sub-head { color: var(--accent); margin-top: 2.2em; }
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1rem; }
.price-card {
  background: var(--navy); border: 1px solid var(--line); padding: 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.price-label { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--cream-dim); }
.price-value { font-size: 3rem; line-height: 1.05; font-weight: 700; color: var(--cream); }
.price-note { color: var(--cream-dim); font-size: .92rem; }
.tick-list { list-style: none; margin: 0; padding: 0; max-width: 64ch; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: .7em; color: var(--cream-dim); }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tick-list strong { color: var(--cream); }
.form-card { background: var(--navy-raised); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); max-width: 620px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--cream); }
.field .hint { display: block; font-weight: 400; color: var(--cream-dim); font-size: .9rem; margin-top: 3px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit;
  background: var(--navy); color: var(--cream);
  border: 1px solid #34506e; border-radius: 3px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
::placeholder { color: #8fa3ba; opacity: 1; }

.form-status { padding: 14px 16px; border-radius: 3px; margin-bottom: 20px; font-weight: 700; }
.form-status[hidden] { display: none; }
.status-ok   { background: #10361f; color: #a8e6bd; border: 1px solid #2d7a48; }
.status-error{ background: #3d1518; color: #f3b0b5; border: 1px solid #8c3a40; }
.required-note { color: var(--cream-dim); font-size: .9rem; }

@media (max-width: 620px) {
  body.body { font-size: 17px; }
  .header-inner { padding: 14px 24px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
