/* ============================================================
   Willow Insurance Services — "Heritage Editorial" design system
   Warm ivory canvas · deep forest green · antique gold · serif display.
   Traditional, premium, established — a trusted family agency since 1982.
   (Class names match the shared markup; this is a pure restyle.)
   ============================================================ */

:root {
  --forest:      #1f4736;   /* deep evergreen — primary brand */
  --forest-dark: #163528;
  --forest-700:  #2c5d47;
  --forest-500:  #3a755b;
  --gold:        #b08328;   /* antique gold — accent / links */
  --gold-dark:   #8f6a1d;
  --gold-soft:   #d8c187;
  --ink:         #26241d;   /* warm near-black */
  --muted:       #6c6657;
  --line:        #e2d9c6;   /* warm hairline */
  --line-soft:   #ece4d4;
  --bg:          #fbf8f1;   /* ivory paper */
  --bg-alt:      #f3ecdc;   /* deeper sand for alt sections */
  --bg-card:     #ffffff;
  --cream:       #f6efe0;   /* text on dark */
  --white:       #ffffff;
  --danger:      #a8412c;
  --radius:      4px;
  --radius-sm:   3px;
  --shadow:      0 1px 2px rgba(38,36,29,.05), 0 18px 40px -24px rgba(38,36,29,.30);
  --shadow-sm:   0 1px 2px rgba(38,36,29,.06);
  --maxw:        1140px;
  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, legend {
  font-family: var(--ff-head); color: var(--forest); line-height: 1.14;
  margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--forest); }
img { max-width: 100%; display: block; }
strong { font-weight: 800; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 28px; }
.container--narrow { max-width: 760px; }

.icon { width: 1.4em; height: 1.4em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; color:#fff; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,241,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; color: var(--forest); }
.brand-logo { display: block; height: 54px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 10px 13px; border-radius: 3px; color: var(--ink);
  font-weight: 700; font-size: .9rem; white-space: nowrap; letter-spacing: .01em;
}
.primary-nav a:hover { background: var(--bg-alt); color: var(--forest); }
.primary-nav a[aria-current="page"] { color: var(--gold-dark); box-shadow: inset 0 -2px 0 var(--gold); }

.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 234px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav,
.subnav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { padding: 9px 12px; border-radius: 3px; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--forest);
  background: transparent; padding: 9px 18px; border: 1px solid var(--line);
  border-radius: 999px; white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--gold-dark); }
.header-phone:hover { background: var(--bg-alt); color: var(--forest); border-color: var(--gold-soft); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--ff-body); font-weight: 800; font-size: .98rem; letter-spacing: .01em;
  padding: 13px 28px; border-radius: 3px; border: 1.5px solid transparent;
  transition: .15s ease; text-align: center;
}
.btn--primary { background: var(--gold); color: var(--forest-dark); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-1px); }
/* Default ghost works on the LIGHT hero; dark sections override it below. */
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn--navy { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn--navy:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
/* Ghost on dark bands (forest CTA / page hero) flips to cream. */
.cta-band .btn--ghost, .page-hero .btn--ghost {
  color: var(--cream); border-color: rgba(246,239,224,.5);
}
.cta-band .btn--ghost:hover, .page-hero .btn--ghost:hover {
  background: rgba(246,239,224,.14); color: #fff; border-color: var(--gold-soft);
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; color: var(--ink);
  background:
    radial-gradient(60% 60% at 88% 0%, rgba(176,131,40,.10), transparent 70%),
    var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 54px; align-items: center; padding-top: 84px; padding-bottom: 88px;
}
.hero h1 { color: var(--forest); font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .76rem; font-weight: 800;
  color: var(--gold-dark); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block; }
.hero .eyebrow { color: var(--gold-dark); }
.hero-figure {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--line), 0 30px 50px -28px rgba(38,36,29,.5);
}
.hero-figure img { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------- sections */
.section { padding: 78px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head .lead { color: var(--muted); font-size: 1.12rem; }

.page-hero {
  position: relative;
  background:
    radial-gradient(70% 120% at 90% 0%, rgba(176,131,40,.18), transparent 60%),
    linear-gradient(160deg, var(--forest), var(--forest-dark));
  color: var(--cream); padding: 72px 0; overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero .lead { color: #e6dcc6; max-width: 62ch; margin: 0; font-size: 1.15rem; }
.page-hero--compact { padding: 56px 0; }

/* --------------------------------------------------------------- cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 13px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: .2s ease; color: var(--ink);
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); border-radius: 4px 0 0 4px; opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); color: var(--ink); }
.card:hover::before { opacity: 1; }
.card-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 4px;
  background: var(--bg-alt); color: var(--forest); border: 1px solid var(--line);
}
.card-icon .icon { width: 28px; height: 28px; }
.card h3 { margin: 0; color: var(--forest); }
.card p { color: var(--muted); margin: 0; font-size: .99rem; }
.card-link { margin-top: auto; font-weight: 800; color: var(--gold-dark); font-family: var(--ff-body); letter-spacing: .01em; }
.card:hover .card-link { color: var(--forest); }

/* --------------------------------------------------- feature / value rows */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.value { text-align: center; }
.value .card-icon { margin: 0 auto 16px; width: 60px; height: 60px; border-radius: 50%; background: var(--white); }
.value h3 { color: var(--forest); }
.value p { color: var(--muted); }

/* info lists (retirement) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.info-card h3 { display:flex; align-items:center; gap:10px; color: var(--forest); }
.info-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.info-card ul li { margin-bottom: .4rem; }

.cta-band {
  background:
    radial-gradient(80% 140% at 92% 0%, rgba(176,131,40,.2), transparent 55%),
    linear-gradient(160deg, var(--forest), var(--forest-dark));
  color:#fff; border-radius: 6px; padding: 52px 44px; text-align:center;
  border: 1px solid var(--forest-700);
}
.cta-band h2 { color:#fff; }
.cta-band p { color:#e6dcc6; max-width: 54ch; margin: 0 auto 26px; }

/* --------------------------------------------------------------- forms */
.quote-form { background: transparent; }
.form-section {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 28px;
  margin: 0 0 22px; background: var(--bg-card);
}
.form-section legend {
  font-family: var(--ff-head); font-weight: 600; color: var(--forest); font-size: 1.2rem;
  padding: 2px 10px; margin-left: -4px;
}
.grid-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.col-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.req { color: var(--danger); }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(58,117,91,.16);
}
.field textarea { resize: vertical; min-height: 84px; }
.options { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 2px; }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: .96rem; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--forest); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.error-msg { color: var(--danger); font-size: .85rem; }
.form-note { color: var(--muted); font-size: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-captcha { margin: 4px 0 20px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-required-note { margin: 0; color: var(--muted); font-size: .9rem; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 600; }
.alert--error { background: #f7e7e2; color: #8a3320; border: 1px solid #e3bdb1; }
.alert--success { background: #e6efe7; color: #235c41; border: 1px solid #bcd6c4; }

/* success page */
.success-wrap { text-align: center; padding: 84px 0; }
.success-mark { width: 76px; height: 76px; border-radius: 50%; background:#e6efe7; color:#235c41; display:grid; place-items:center; margin: 0 auto 24px; border: 1px solid #bcd6c4; }
.success-mark .icon { width: 40px; height: 40px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--forest-dark); color: #c8d3cb; margin-top: 0; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 42px; padding-top: 56px; padding-bottom: 44px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; font-family: var(--ff-head); font-weight: 600; }
.footer-logo { display: block; height: 56px; width: auto; margin-bottom: 16px; }
.footer-tag { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--gold-soft); font-weight: 700; }
.footer-note { font-size: .93rem; color: #aebcb2; max-width: 40ch; }
.footer-contact, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-contact li, .footer-links li { margin-bottom: 11px; }
.footer-contact a, .footer-links a { color: #c8d3cb; }
.footer-contact a:hover, .footer-links a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(246,239,224,.14); padding-top: 22px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #98a89e; }
.footer-bottom a { color: #98a89e; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ------------------------------------------------- content pages (prose) */
.prose { max-width: 72ch; }
.prose p, .prose li { color: #44402f; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2rem; }
.prose ul li { margin-bottom: .4rem; }

.split { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.split .media { max-width: 390px; margin: 0 auto; }
.split .media img { display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 8px var(--bg-card), 0 0 0 9px var(--line), 0 24px 44px -26px rgba(38,36,29,.5); }
.media-caption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 20px; font-style: italic; }
.stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.stat { flex: 1 1 160px; background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.stat b { display: block; font-family: var(--ff-head); font-size: 2rem; color: var(--forest); line-height: 1; font-weight: 600; }
.stat span { color: var(--muted); font-size: .9rem; }

/* coverage columns (Our Services / Child Care coverage) */
.coverage-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coverage-cols .info-card ul { list-style: none; padding-left: 0; }
.coverage-cols .info-card li { padding-left: 1.5rem; position: relative; }
.coverage-cols .info-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* staff directory cards */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.staff-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: .2s ease; }
.staff-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.staff-card h3 { margin: 0 0 2px; color: var(--forest); }
.staff-role { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.staff-contact { list-style: none; margin: 0; padding: 0; font-size: .93rem; display: grid; gap: 7px; }
.staff-contact li { display: flex; gap: 10px; align-items: baseline; }
.staff-contact .lbl { color: var(--gold-dark); flex: none; width: 78px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 38px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { width: 44px; height: 44px; flex: none; }
.contact-list .card-icon .icon { width: 22px; height: 22px; }
.contact-list .lbl { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); font-weight: 800; }
.contact-list .val { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.contact-map { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-map iframe, .contact-map img { width: 100%; min-height: 340px; border: 0; display: block; }
.map-directions { display: inline-block; padding: 12px 18px; font-weight: 700; font-family: var(--ff-body); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; padding-top: 60px; padding-bottom: 60px; }
  .hero-figure { order: -1; max-width: 470px; }
  .card-grid, .values, .info-grid, .coverage-cols { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .media { order: -1; max-width: 430px; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Hamburger nav: the menu has several items, so collapse on small laptops/tablets. */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 46px; height: 46px; background: var(--bg-alt);
    border: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--forest); border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-phone { display: none; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line);
    margin: 0; padding: 8px 0 16px; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease, visibility 0s .25s;
  }
  .primary-nav.open { max-height: calc(100vh - 78px); overflow: auto; visibility: visible; transition: max-height .3s ease; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav a { padding: 14px 28px; border-radius: 0; font-size: 1rem; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .has-sub > .sub-toggle::after { content: "\25BE"; float: right; color: var(--muted); }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; margin: 0; min-width: 0; background: var(--bg-alt);
    padding: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .subnav.open { max-height: 600px; }
  .subnav a { padding-left: 46px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding-inline: 22px; }
  .section { padding: 52px 0; }
  .page-hero, .page-hero--compact { padding: 44px 0; }
  .hero-inner { padding-top: 44px; padding-bottom: 44px; }
  h1 { font-size: 2.1rem; line-height: 1.12; }
  h2 { font-size: 1.55rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .16em; margin-bottom: 12px; }
  .hero .lead, .page-hero .lead { font-size: 1.06rem; }
  .section-head { margin-bottom: 34px; }
  .card-grid, .values, .info-grid, .coverage-cols, .grid-fields, .staff-grid { grid-template-columns: 1fr; }
  .card-grid { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-about { grid-column: auto; }
  .cta-band { padding: 36px 22px; }
  .form-section { padding: 18px 18px 22px; }
  .hero .lead { max-width: none; }
  .hero-cta { width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .hero .lead, .page-hero .lead { font-size: 1rem; }
  .brand-logo { height: 42px; }
  .hero-cta .btn, .cta-band .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { padding: 13px 22px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { justify-content: flex-start; }
  .stat { flex-basis: 100%; }
}
