:root {
  --ink: #17211c;
  --muted: #5b665f;
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --sage: #6d846e;
  --sage-dark: #314839;
  --gold: #c99342;
  --clay: #b3654a;
  --line: rgba(23, 33, 28, 0.14);
  --shadow: 0 24px 70px rgba(49, 72, 57, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand-logo {
  width: clamp(340px, 38vw, 520px);
  height: 110px;
  object-fit: contain;
  object-position: left center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 21px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-phone {
  color: var(--sage-dark);
}

.hero {
  position: relative;
  min-height: calc(100vh - 77px);
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 86px) clamp(18px, 4vw, 56px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
background:
  linear-gradient(
    90deg,
    rgba(13, 28, 24, 0.82) 0%,
    rgba(13, 28, 24, 0.48) 45%,
    rgba(13, 28, 24, 0.1) 100%
  ),
  url("assets/images/family-hero.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 38%;
  content: "";
  background: linear-gradient(0deg, var(--paper), rgba(251, 247, 239, 0));
}

.hero-content {
  max-width: 790px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
}

h3 {
  font-size: 26px;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(19px, 2vw, 23px);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #1f180d;
  background: var(--gold);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.quote-band,
.carrier-section,
.steps-section,
.coverage-section,
.agent-section,
.faq-section,
.final-cta {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-intro {
  max-width: 650px;
}

.section-intro p:not(.eyebrow),
.coverage-copy p,
.agent-section p {
  color: var(--muted);
}

.compact {
  margin: 0 auto 34px;
  text-align: center;
}

.quote-form {
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.consent {
  color: var(--sage-dark);
  font-size: 15px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.full-width,
.consent,
.form-button,
.form-message {
  margin-top: 16px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 14px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.consent input {
  min-height: 18px;
  margin-top: 2px;
}

.form-button {
  width: 100%;
  border: 0;
  font-size: 17px;
}

.form-message {
  min-height: 24px;
  color: var(--sage-dark);
  font-weight: 800;
}

.form-message.error {
  color: #9b3527;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.carrier-section {
  background: #fffdf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 28px auto 0;
}

.logo-grid div {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-grid img {
  display: block;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.carrier-note {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid article {
  min-height: 275px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps-grid span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--clay);
  font-weight: 900;
}

.steps-grid p,
.coverage-list span,
.site-footer p,
.agent-card span,
.faq-list p {
  color: var(--muted);
}

.coverage-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(34px, 6vw, 82px);
  background: #eaf0e7;
}

.text-link {
  color: var(--sage-dark);
  font-weight: 900;
}

.coverage-list {
  display: grid;
  gap: 14px;
}

.coverage-list div {
  display: grid;
  gap: 3px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid rgba(49, 72, 57, 0.15);
  border-radius: 8px;
}

.agent-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.agent-photo {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 33, 28, 0.05), rgba(23, 33, 28, 0.28)),
    url("assets/images/advisor-senior-couple.jpg") center / cover;
  box-shadow: var(--shadow);
}

.agent-card {
  display: grid;
  max-width: 380px;
  gap: 4px;
  margin-top: 24px;
  padding: 22px;
  background: var(--surface);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.agent-card a {
  color: var(--sage-dark);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  color: var(--sage-dark);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.final-cta {
  text-align: center;
  background: var(--sage-dark);
  color: #fff;
}

.final-cta h2 {
  max-width: 760px;
  margin: 0 auto 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 56px);
  background: #f1ecdf;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.site-footer a {
  display: block;
  color: var(--sage-dark);
  font-weight: 800;
  text-align: right;
}

.footer-logo {
  display: block;
  width: min(300px, 100%);
  max-height: 96px;
  margin-bottom: 12px;
  object-fit: contain;
  object-position: left center;
}

.disclaimer {
  grid-column: 1 / -1;
  max-width: 1100px;
  font-size: 13px;
  color: var(--muted);
}

.policy-hero {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 4vw, 56px) clamp(44px, 7vw, 82px);
  background: #eaf0e7;
}

.policy-hero h1 {
  max-width: 900px;
  color: var(--sage-dark);
}

.policy-hero p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
}

.policy-content {
  max-width: 900px;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 56px);
}

.policy-content h2 {
  margin-top: 38px;
  color: var(--sage-dark);
  font-size: clamp(26px, 3vw, 38px);
}

.policy-content p {
  color: var(--muted);
}

.policy-content a {
  color: var(--sage-dark);
  font-weight: 800;
}

.policy-note {
  margin-top: 38px;
  padding: 18px;
  border-left: 5px solid var(--gold);
  background: var(--surface);
}

.agents-hero,
.agent-bio-section,
.agents-info-grid,
.expectations-section,
.compliance-note {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.agents-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  background:
    linear-gradient(135deg, rgba(234, 240, 231, 0.96), rgba(251, 247, 239, 0.98)),
    radial-gradient(circle at top right, rgba(201, 147, 66, 0.16), transparent 40%);
  border-bottom: 1px solid var(--line);
}

.agents-hero h1 {
  max-width: 900px;
  color: var(--sage-dark);
}

.agents-hero p:not(.eyebrow),
.agent-bio-copy p,
.info-panel p,
.expectations-copy li,
.expectations-cta p,
.compliance-note p {
  color: var(--muted);
}

.agents-hero-copy {
  max-width: 760px;
}

.agents-hero-card {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agents-hero-card span {
  color: var(--clay);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.agents-hero-card strong {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  color: var(--ink);
}

.agent-bio-section.alt,
.expectations-section {
  background: #fffdf8;
}

.agent-bio-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agent-bio-card.reverse {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.agent-bio-card img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 8px;
  justify-self: center;
}

.agent-bio-card.reverse img {
  grid-column: 1;
}

.agent-bio-card.reverse .agent-bio-copy {
  grid-column: 2;
}

.agent-bio-copy h2,
.info-panel h2,
.expectations-copy h2,
.expectations-cta h2 {
  color: var(--sage-dark);
}

.agent-bio-copy h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

.agents-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: #eaf0e7;
}

.info-panel {
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(49, 72, 57, 0.15);
  border-radius: 8px;
}

.expectations-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.expect-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.expect-list li {
  position: relative;
  margin-top: 14px;
  padding-left: 22px;
}

.expect-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
  content: "•";
}

.expectations-cta {
  padding: clamp(24px, 4vw, 34px);
  background: var(--sage-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.expectations-cta h2,
.expectations-cta p,
.expectations-cta .eyebrow {
  color: #fff;
}

.button.secondary.dark {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.compliance-note {
  padding-top: 0;
}

.compliance-note p {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  background: var(--surface);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero {
    min-height: 720px;
  }

  .quote-band,
  .carrier-section,
  .coverage-section,
  .agent-section,
  .agents-hero,
  .agent-bio-card,
  .agent-bio-card.reverse,
  .agents-info-grid,
  .expectations-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-photo {
    min-height: 420px;
  }

  .agent-bio-card.reverse img,
  .agent-bio-card.reverse .agent-bio-copy {
    grid-column: auto;
  }

  .site-footer a {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 220px;
    height: 64px;
  }

  .brand strong,
  .site-nav {
    font-size: 15px;
  }

  .site-nav {
    gap: 12px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 680px;
    align-items: center;
  }

  .hero-media {
    background-position: 60% center;
  }

  h1 {
    font-size: 44px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Confirmation page button visibility fix */
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.confirmation-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.confirmation-actions .button.primary {
  color: #1f180d;
  background: var(--gold);
  border-color: transparent;
}

.confirmation-actions .button.secondary {
  background: #ffffff;
  color: var(--sage-dark);
  border: 1px solid rgba(16, 35, 29, 0.22);
}

.confirmation-actions .button.secondary:hover,
.confirmation-actions .button.secondary:focus {
  background: #f3eee3;
  color: var(--sage-dark);
}

@media (max-width: 560px) {
  .confirmation-actions .button {
    width: 100%;
  }
}
