/* Term Life for Parents — warm, kitchen-table calm */

:root {
  --cream: #F7F3EC;
  --cream-deep: #EDE6DA;
  --paper: #FFFCF7;
  --charcoal: #2C3330;
  --charcoal-soft: #3D4A45;
  --muted: #6B756F;
  --sage: #7A9B7E;
  --sage-deep: #5C7A60;
  --sage-soft: #E8F0E9;
  --sky: #7A9BB0;
  --sky-soft: #E8F0F4;
  --border: #D9D2C6;
  --shadow: 0 8px 28px rgba(44, 51, 48, 0.08);
  --radius: 14px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --max: 1080px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--charcoal); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link svg { width: min(240px, 62vw); height: auto; }

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  cursor: pointer;
  font-family: inherit;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--charcoal-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sage-soft);
  color: var(--sage-deep);
}
.site-nav .nav-cta {
  background: var(--sage-deep);
  color: var(--cream) !important;
  margin-left: 0.35rem;
}
.site-nav .nav-cta:hover {
  background: var(--charcoal);
  color: var(--cream) !important;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
}

/* —— Layout —— */
main { flex: 1; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}
.section-tight { padding: 2.5rem 0; }
.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 0.85rem;
}
h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; }

.lead {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* —— Hero —— */
.hero {
  padding: 3.75rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(122, 155, 126, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(122, 155, 176, 0.12), transparent 50%),
    var(--cream);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.hero-card h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-card li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.hero-card li:first-child { border-top: none; padding-top: 0; }
.hero-card .mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* —— Buttons —— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--sage-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--charcoal);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--sage);
  background: var(--sage-soft);
  color: var(--sage-deep);
}

/* —— Cards / grids —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(44, 51, 48, 0.04);
}
.card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.card.sky .icon { background: var(--sky-soft); color: var(--sky); }

.band {
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid #c5d6c7;
}
.band-sky {
  background: var(--sky-soft);
  border-color: #c5d5de;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.35rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sage-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.term-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}
.pill {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}
.pill strong { color: var(--sage-deep); }

.quote-soft {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
  border-left: 3px solid var(--sage);
  padding-left: 1.15rem;
  margin: 1.5rem 0;
  max-width: 36rem;
}

/* —— Forms —— */
.form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.form .field { display: block; }
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--paper);
  color: var(--charcoal);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--charcoal);
  color: #C8CFCA;
  padding: 2.75rem 0 1.75rem;
  margin-top: 2rem;
}
.site-footer a { color: #E8F0E9; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .fadell {
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* —— Prose pages —— */
.prose { max-width: 42rem; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.45rem; }

.page-header {
  padding: 2.75rem 0 1.5rem;
}
.page-header .lead { margin-bottom: 0; }

.disclosure-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.disclosure-block h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 1rem 0 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
table.simple th,
table.simple td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.simple th {
  background: var(--cream-deep);
  font-weight: 600;
  font-size: 0.88rem;
}
table.simple tr:last-child td { border-bottom: none; }

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