/*
Theme Name:  SHMN Divi Child
Theme URI:   https://seniorhealthmn.com
Description: Divi child theme for Senior Health MN — brand colors matched to North Central Insurance (#347746), Fraunces + Public Sans typography, senior-friendly sizing.
Author:      Senior Health MN
Template:    Divi
Version:     1.0.0
*/

/* ============================================================
   DIVI OVERRIDES — applied to Divi's own modules
   ============================================================ */

:root {
  --pine: #1f4630;
  --green: #347746;
  --green-deep: #286038;
  --blue: #2f7fa8;
  --blue-soft: #e2f0f7;
  --paper: #fbf9f3;
}

#main-content, body #page-container { background: var(--paper); }

body, .et_pb_text, .et_pb_blurb_description {
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 18px; line-height: 1.65; color: #1e2d27;
}

h1, h2, h3, h4, .et_pb_module_header, .et_pb_slide_title {
  font-family: "Fraunces", Georgia, serif !important;
  color: var(--pine) !important; letter-spacing: -0.01em;
}

/* Buttons: green pill, blue variant via .shmn-btn-blue class on the module */
body .et_pb_button {
  background: var(--green); color: #fff !important; border: 2px solid var(--green);
  border-radius: 999px; font-weight: 800; padding: 12px 26px !important;
  box-shadow: 0 10px 24px rgba(52,119,70,0.24);
}
body .et_pb_button:hover { background: var(--green-deep); border-color: var(--green-deep); }
body .shmn-btn-blue .et_pb_button { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 24px rgba(47,127,168,0.35); }
body .shmn-btn-blue .et_pb_button:hover { background: #276b8e; }

/* Header/footer accents */
#main-header { box-shadow: 0 1px 0 #dce6dd; }
#top-header { background: var(--pine) !important; }
#main-footer, #et-footer-nav { background: #152f21 !important; }

/* Section helper classes — add in each Divi section's "CSS Class" field */
.shmn-soft { background: #ecf3ec !important; }
.shmn-dark { background: var(--pine) !important; }
.shmn-card .et_pb_blurb, .shmn-card {
  background: #fff; border: 1px solid #dce6dd; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31,70,48,0.06); padding: 28px;
}
.shmn-cta {
  background: linear-gradient(140deg, var(--green), var(--pine)) !important;
  border-radius: 28px; color: #fff;
}
.shmn-cta h2 { color: #fff !important; }

/* ============================================================
   FULL SHMN DESIGN SYSTEM (same CSS as the static build)
   Classes below are used when rebuilding static markup inside
   Code modules or for closely matching custom layouts.
   ============================================================ */

/* ============================================================
   Senior Health MN — site stylesheet
   Palette: pine #1f4630 · meadow green #347746 · lake blue #2F7FA8
   Type: Fraunces (display) · Public Sans (body)
   ============================================================ */

:root {
  --pine: #1f4630;
  --pine-deep: #152f21;
  --green: #347746;
  --green-deep: #286038;
  --gold: #2f7fa8;
  --gold-soft: #e2f0f7;
  --gold-ink: #1c5573;
  --paper: #fbf9f3;
  --sage: #ecf3ec;
  --ink: #1e2d27;
  --muted: #5a6b63;
  --line: #dce6dd;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(31,70,48, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Public Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: var(--green-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  color: var(--pine);
  letter-spacing: -0.01em;
  line-height: 1.12;
  font-weight: 560;
}
h1 { font-size: clamp(40px, 5.2vw, 64px); margin: 16px 0 18px; }
h2 { font-size: clamp(29px, 3.6vw, 42px); margin: 8px 0 16px; }
h3 { font-size: 23px; margin: 0 0 10px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------- top bar ---------- */
.topbar { background: var(--pine); color: #e8f1ec; font-size: 15px; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px 20px; padding-top: 9px; padding-bottom: 9px;
}
.topbar a { color: #9fd3ea; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--pine); }
.logo-img { height: 58px; width: auto; display: block; }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.logo-mark {
  width: 50px; height: 50px; border-radius: 13px; flex: none;
  background: linear-gradient(150deg, var(--green), var(--pine));
  color: #dff0f8; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 21px;
  box-shadow: 0 10px 22px rgba(52,119,70,0.28);
}
.logo-name { font-family: "Fraunces", Georgia, serif; font-weight: 640; font-size: 21px; line-height: 1.1; }
.logo-name small { display: block; font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; cursor: pointer; padding: 10px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--white);
}
.nav-toggle-label span { display: block; width: 24px; height: 3px; background: var(--pine); border-radius: 2px; margin: 4px 0; }

.navlinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.navlinks a {
  color: var(--pine); font-weight: 700; font-size: 15.5px; text-decoration: none;
  padding: 4px 0; border-bottom: 2.5px solid transparent;
}
.navlinks a:hover { border-bottom-color: var(--gold); }
.navlinks a.active { border-bottom-color: var(--green); }

.btn {
  display: inline-block; background: var(--green); color: var(--white) !important;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 17px;
  text-decoration: none; border: 2px solid var(--green);
  box-shadow: 0 10px 24px rgba(52,119,70,0.24);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn.secondary { background: var(--white); color: var(--green-deep) !important; box-shadow: none; }
.btn.secondary:hover { background: var(--sage); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--white) !important; box-shadow: 0 10px 24px rgba(47,127,168,0.35); }
.btn.gold:hover { background: #276b8e; }
.navlinks .btn { padding: 11px 20px; font-size: 15.5px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(680px 340px at 88% -10%, rgba(47,127,168,0.14), transparent 65%),
    linear-gradient(160deg, var(--sage) 0%, var(--paper) 55%);
  border-bottom: 1px solid var(--line);
  padding: 78px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--gold-soft); color: var(--gold-ink);
  border: 1px solid #bcd9e8; border-radius: 999px; padding: 7px 15px;
  font-weight: 800; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
}
.lead { font-size: 21px; color: #40544c; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 8px; }
.hero-phone { margin-top: 20px; font-size: 18px; font-weight: 700; color: var(--pine); }
.hero-phone a { font-family: "Fraunces", Georgia, serif; font-size: 26px; color: var(--green-deep); text-decoration: none; }
.hero-phone a:hover { text-decoration: underline; }

/* signature: Medicare parts ledger */
.parts-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 26px;
  padding: 26px 26px 14px; box-shadow: var(--shadow);
}
.parts-card h2 { font-size: 24px; margin: 0 0 6px; }
.parts-card > p { margin-top: 0; color: var(--muted); font-size: 16px; }
.part-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #eef4ee; }
.part-letter {
  flex: none; width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 28px;
  background: var(--sage); color: var(--green-deep);
}
.part-row:nth-child(even) .part-letter { background: var(--gold-soft); color: var(--gold-ink); }
.part-row strong { display: block; color: var(--pine); font-size: 17px; }
.part-row p { margin: 2px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.5; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.soft { background: var(--sage); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--pine); color: #dcebe2; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.kicker {
  color: var(--green); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 13.5px;
}
.section.dark .kicker { color: #9fd3ea; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 10px 28px rgba(31,70,48,0.06);
}
.card p { color: #46584f; }
.card a { font-weight: 700; }
.card.accent { border-top: 5px solid var(--green); }
.card .step {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 22px;
  background: var(--sage); color: var(--green-deep); margin-bottom: 16px;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 11px 0 11px 36px; border-bottom: 1px solid #eef4ee; font-weight: 600; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  width: 23px; height: 23px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--green), var(--pine));
  color: var(--white); border-radius: 28px; padding: 46px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); margin: 0 0 10px; }
.cta-band p { margin: 0; color: #d4e8dc; max-width: 560px; }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--sage), var(--paper)); border-bottom: 1px solid var(--line); padding: 62px 0 54px; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 54px); }
.page-hero p { font-size: 20px; color: #40544c; max-width: 720px; }

.content { max-width: 860px; }
.content h2 { margin-top: 46px; }
.content h2:first-child { margin-top: 0; }
.content ul li { margin-bottom: 8px; }

.letter-head { display: flex; align-items: center; gap: 16px; margin-top: 46px; }
.letter-head .part-letter { width: 50px; height: 50px; font-size: 26px; }
.letter-head h2 { margin: 0; }

/* FAQ accordion */
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 20px; color: var(--pine);
  position: relative; padding-right: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--sage); color: var(--green-deep);
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; background: var(--gold-soft); color: var(--gold-ink); }
.faq-item .faq-body { padding: 0 24px 20px; color: #46584f; }

/* location cards */
.loc-card h3 { display: flex; align-items: baseline; gap: 8px; }
.loc-card h3::before { content: "✦"; color: var(--gold); font-size: 15px; }

/* blog cards */
.blog-card { display: flex; flex-direction: column; }
.blog-card .tag {
  align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green-deep); background: var(--sage);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.blog-card p { flex: 1; }

/* contact */
.contact-big { font-size: 19px; }
.contact-big a { font-family: "Fraunces", Georgia, serif; font-size: 24px; }

/* ---------- footer ---------- */
.footer { background: var(--pine-deep); color: #c9dcd2; padding: 54px 0 26px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--white); font-size: 19px; }
.footer a { color: #eaf4ee; }
.footer a:hover { color: #9fd3ea; }
.footer .foot-links a { display: block; padding: 4px 0; text-decoration: none; }
.footer .foot-links a:hover { text-decoration: underline; }
.disclaimer {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14);
  color: #9db8ac; font-size: 13.5px; line-height: 1.6;
}
.disclaimer p { margin: 0 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 44px; }
  .hero-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .nav-toggle-label { display: block; margin-left: auto; }
  .navlinks {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 10px 0 16px;
  }
  .navlinks a { padding: 12px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .navlinks .btn { margin-top: 10px; text-align: center; }
  .nav-toggle:checked ~ .navlinks { display: flex; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; }
  .section { padding: 56px 0; }
}
