/* ============================================================
   Sandhills Senior Benefit Services — shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg:        #FFFCF4;
  --bg-alt:    #F6EFDA;
  --ink:       #263129;
  --ink-soft:  #566153;
  --teal:      #2E7565;
  --teal-deep: #1F4B43;
  --teal-tint: #E9F5EF;
  --sage:      #A6C9A0;
  --gold:      #E0A83B;
  --gold-deep: #B37F1F;
  --line:      #E4D9B8;
  --white:     #FFFEFA;

  --sans:  'Source Sans 3', 'Segoe UI', Arial, Helvetica, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }

.section-label {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--sage);
  margin: 0 0 0.4em;
}

/* ---------- Header / Nav ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-deep);
  text-decoration: none;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--sage);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.96rem;
  font-weight: 500;
}

nav.links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.links a:hover,
nav.links a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--teal-deep);
}
.btn-primary:hover { background: #EBB958; }

.btn-ghost {
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-ghost:hover { background: var(--teal-tint); }

.btn-on-dark {
  background: var(--gold);
  color: var(--teal-deep);
}
.btn-on-dark:hover { background: #EBB958; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  border-radius: 6px;
  overflow: hidden;
  background: var(--teal-deep);
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-teal { background: var(--teal-deep); color: #F2EFE4; }
.section-teal h2, .section-teal h3 { color: #FBF6E8; }
.section-teal p { color: #CBD6CD; }
.section-teal .section-label { color: #E4B95C; }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---------- Steps (sequence) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  border-top: 2px solid var(--teal);
  padding-top: 18px;
}

.step .num {
  font-family: var(--sans);
  font-size: 2.1rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
}

.step p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Cards / values row ---------- */

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-row .item h3 { margin-bottom: 0.4em; }
.value-row .item p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Bio block ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.bio-photo {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--teal-tint);
}
.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: left;
  padding: 56px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--teal-deep);
  color: #C9D4CB;
  padding: 48px 0 32px;
  font-size: 0.94rem;
}

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

footer.site h3 {
  color: #F2EFE4;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 0.8em;
}

footer.site a {
  color: #C9D4CB;
  text-decoration: none;
}
footer.site a:hover { color: var(--gold); }

footer.site .fine {
  border-top: 1px solid #2B5049;
  padding-top: 20px;
  color: #8FA398;
  font-size: 0.86rem;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-child { border-bottom: none; }

.contact-line .label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  min-width: 84px;
}

.contact-line a {
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--teal-deep);
  text-decoration: none;
}
.contact-line a:hover { color: var(--gold-deep); }

/* ---------- Quote form ---------- */

.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
  max-width: 640px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #C9BFA3;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.honeypot { position: absolute; left: -9999px; }

.form-note {
  background: var(--teal-tint);
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 0.94rem;
  color: var(--teal-deep);
  margin-bottom: 28px;
}

.success-box {
  display: none;
  background: var(--teal-tint);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.success-box.show { display: block; }

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

.trust-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 24px;
}
.trust-strip strong { color: var(--teal-deep); }

/* ---------- Info cards (topic teasers) ---------- */

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}

.info-card .tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.info-card p { font-size: 0.98rem; color: var(--ink-soft); }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-deep);
  text-decoration: none;
  margin-top: 4px;
}
.learn-more:hover { color: var(--teal-deep); }
.learn-more .arrow { transition: transform 0.15s ease; }
.learn-more:hover .arrow { transform: translateX(3px); }

/* ---------- Sub-page hero (topic pages) ---------- */

.subhero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.subhero .lede { margin-top: 12px; }

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

.detail-card {
  border-top: 2px solid var(--teal);
  padding-top: 16px;
}
.detail-card h3 { margin-bottom: 0.4em; }
.detail-card p { font-size: 0.96rem; color: var(--ink-soft); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.timeline .item { border-left: 3px solid var(--gold); padding-left: 18px; }
.timeline .item h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.timeline .item p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Photo bands ---------- */

.photo-frame {
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-16-9 { aspect-ratio: 16 / 9; }
.photo-21-9 { aspect-ratio: 21 / 9; }

.photo-caption {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-soft);
}



a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
  .steps { grid-template-columns: 1fr 1fr; }
  .value-row { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .topic-cards { grid-template-columns: 1fr; }
  .detail-cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  nav.links { gap: 18px; font-size: 0.9rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

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