:root {
  --navy: #0f2a44;
  --navy-deep: #0a1d30;
  --accent: #1f8fd6;
  --accent-dark: #156fa8;
  --ink: #1d2630;
  --muted: #5b6774;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 22ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 28ch; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 32px; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; overflow-wrap: anywhere; }
.btn-light:hover { background: var(--bg-soft); border-color: var(--bg-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.nav nav { display: flex; align-items: center; gap: 1.5rem; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* Hero */
.hero {
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 60%, #17406a 100%);
  color: #dbe6f1;
  padding: 6rem 0 5rem;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #7cc4f2; }
.lede { font-size: 1.15rem; max-width: 60ch; color: #c3d3e3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Symptoms */
.symptoms { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.symptoms-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .symptoms-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; } }
.symptom-list { list-style: none; padding: 0; margin: 0; }
.symptom-list li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.symptom-list li:first-child { border-top: 1px solid var(--line); }
.symptom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Benefits */
.benefits { padding: 5rem 0; }
.benefit-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
.benefit p { color: var(--muted); margin: 0; }

/* Services */
.services { padding: 5rem 0; background: var(--bg-soft); }
.card-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,42,68,0.08); }
.card-num { display: block; font-weight: 600; color: var(--accent); font-size: 0.85rem; margin-bottom: 0.75rem; }
.card p { color: var(--muted); margin: 0; }

/* Approach */
.approach { padding: 5rem 0; }
.approach h2 { margin-bottom: 0; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.phases { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .phases { grid-template-columns: 1fr 1fr; } }
.phase {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
}
.phase:nth-child(2) { border-top-color: var(--navy); }
.phase-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; gap: 1rem; }
.phase-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.phase-timing { font-size: 0.85rem; color: var(--muted); background: var(--bg-soft); padding: 0.2rem 0.7rem; border-radius: 999px; }
.phase ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.phase li { margin-bottom: 0.6rem; }

/* Contact */
.contact { background: var(--navy); color: #c3d3e3; padding: 5rem 0; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { color: #fff; }
.contact p { max-width: 52ch; margin-bottom: 2rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #8aa0b6; padding: 1.5rem 0; font-size: 0.85rem; }
.site-footer p { margin: 0; }

/* Blog */
.narrow { max-width: 760px; }
.page-header { padding: 4rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-header .eyebrow a { color: inherit; text-decoration: none; }
.page-header h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); max-width: 26ch; }
.page-header h1:last-child { margin-bottom: 0; }
.blog-list { padding: 1.75rem 0 5rem; }
.post-summary { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.post-summary:first-child { padding-top: 0; }
.post-summary h2 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.post-summary .draft-badge { margin-bottom: 0.4rem; }
.post-summary h2 a { color: var(--navy); text-decoration: none; }
.post-summary h2 a:hover { color: var(--accent); }
.post-summary p { color: var(--muted); margin: 0; }
.empty { color: var(--muted); }

.prose { padding-top: 2.5rem; padding-bottom: 4rem; font-size: 1.075rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.post .prose { padding-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.25rem; color: var(--muted); }
.prose code { background: var(--bg-soft); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.92em; }
.prose pre { background: var(--navy-deep); color: #e3e8ee; padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Draft posts, shown only in development (APP_ENV=development) */
.draft-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #fdecc8; color: #7a4b00; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }
.draft-banner { background: #fdecc8; color: #7a4b00; text-align: center; padding: 0.6rem 1rem; font-size: 0.9rem; font-weight: 500; }
.draft-banner code { background: rgba(0,0,0,0.06); padding: 0.05rem 0.3rem; border-radius: 4px; }
