/* ============================================================
   SprayBay — Design System
   Palette: deep navy / aqua / warm white
   Type: Sora (display) + Inter (body) via Google Fonts
   ============================================================ */

:root {
  --navy-900: #081527;
  --navy-800: #0b1f3a;
  --navy-700: #12305a;
  --navy-100: #e8eef7;
  --aqua-500: #22c8b7;
  --aqua-400: #3fdccb;
  --aqua-100: #d8f7f3;
  --ink: #1a2433;
  --ink-soft: #4a5768;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e3e6ec;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(8, 21, 39, 0.08);
  --shadow-md: 0 8px 28px rgba(8, 21, 39, 0.12);
  --shadow-lg: 0 20px 60px rgba(8, 21, 39, 0.18);
  --font-display: "Sora", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--ink-soft); }

a { color: var(--navy-700); text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-500);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy-800);
}

.brand svg { width: 34px; height: 34px; }

.brand .bay { color: var(--aqua-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-links a:hover { color: var(--aqua-500); }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--aqua-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover { border-color: var(--aqua-400); color: var(--aqua-400); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy-800); margin: 5px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(34, 200, 183, 0.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(63, 220, 203, 0.12), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero .wrap {
  padding-top: 96px;
  padding-bottom: 110px;
  position: relative;
  z-index: 2;
}

.hero h1 { color: var(--white); max-width: 720px; }

.hero h1 em {
  font-style: normal;
  color: var(--aqua-400);
}

.hero p.lede {
  margin-top: 22px;
  max-width: 600px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-ctas { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-bays {
  position: absolute;
  right: -40px;
  bottom: -10px;
  width: 480px;
  opacity: 0.16;
  z-index: 1;
}

/* ---------- Trust strip ---------- */
.strip {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.strip span::before {
  content: "✓";
  color: var(--aqua-400);
  margin-right: 8px;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--aqua-100);
  border-radius: 12px;
  margin-bottom: 18px;
}

.card .icon svg { width: 24px; height: 24px; stroke: var(--aqua-500); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--aqua-100);
  -webkit-text-stroke: 1.5px var(--aqua-500);
  display: block;
  margin-bottom: 12px;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.98rem; }

/* ---------- Quote band ---------- */
.band {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(34, 200, 183, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 84px 0;
}

.band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.94);
}

.band cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  color: var(--aqua-400);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-800);
  list-style: none;
  position: relative;
  padding-right: 56px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--aqua-500);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { padding: 0 26px 24px; font-size: 1rem; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  border-radius: 22px;
  padding: 70px 60px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 { color: var(--white); max-width: 480px; }
.cta-panel p { color: rgba(255, 255, 255, 0.8); margin-top: 12px; max-width: 460px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field label .opt { color: var(--ink-soft); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--aqua-500);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Blog ---------- */
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card .thumb {
  height: 160px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  position: relative;
  overflow: hidden;
}

.post-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 20%, rgba(34, 200, 183, 0.35), transparent 60%);
}

.post-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.post-card .meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 600;
}

.post-card h3 { margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--aqua-500); }
.post-card p { font-size: 0.95rem; flex: 1; }

.post-card .read {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--aqua-500);
}

/* ---------- Article ---------- */
.article-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 80px 0 60px;
}

.article-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }

.article-hero .meta { margin-top: 18px; color: var(--aqua-400); font-weight: 600; font-size: 0.92rem; }

.article { padding: 64px 0 90px; }

.article h2 { margin: 44px 0 16px; font-size: 1.6rem; }
.article h3 { margin: 32px 0 12px; }
.article p { margin-bottom: 18px; font-size: 1.05rem; }
.article ul, .article ol { margin: 0 0 18px 24px; color: var(--ink-soft); font-size: 1.05rem; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }

.article .callout {
  background: var(--aqua-100);
  border-left: 4px solid var(--aqua-500);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 28px 0;
}

.article .callout p { margin: 0; color: var(--navy-800); font-size: 1rem; }

.article-cta {
  margin-top: 56px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  border-radius: 18px;
  padding: 44px;
  color: var(--white);
  text-align: center;
}

.article-cta h2 { color: var(--white); margin: 0 0 10px; font-size: 1.5rem; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 36px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.site-footer .brand { color: var(--white); margin-bottom: 14px; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: var(--aqua-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-panel { padding: 44px 30px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero-bays { display: none; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}
