:root {
  --ink: #17211d;
  --muted: #5f6c66;
  --line: #d8dfdc;
  --paper: #f7f8f5;
  --white: #ffffff;
  --tile: #a6452c;
  --tile-dark: #742f22;
  --moss: #426b55;
  --sky: #d9edf1;
  --gold: #d8a64b;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Iowan Old Style", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--tile);
  color: var(--white);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover,
.card a:hover,
.link-cloud a:hover {
  color: var(--tile);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.button-strong {
  background: var(--tile);
  border-color: var(--tile);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-full {
  width: 100%;
}

.hero,
.page-hero,
.quote-layout,
.section,
.cta-band,
.center-page,
.guide-article,
.legal-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.hero-copy {
  min-width: 0;
}

.hero-lead,
.lead {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: #33413b;
  max-width: 760px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.hero-points,
.check-list,
.plain-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.check-list li,
.plain-steps li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.35rem;
  color: #35453e;
}

.hero-points li::before,
.check-list li::before,
.plain-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-media,
.content-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.hero-media img,
.content-image img,
.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--tile-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.section.compact {
  padding-top: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-head a {
  color: var(--tile-dark);
  font-weight: 800;
}

.symptom-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.symptom-grid article,
.card,
.info-panel,
.lead-form,
.guide-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.symptom-grid article {
  padding: 1rem;
}

.symptom-grid strong,
.symptom-grid span {
  display: block;
}

.symptom-grid span,
.card p,
.info-panel p,
.form-note {
  color: var(--muted);
}

.card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 1.05rem;
}

.card-kicker {
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-action {
  margin-top: auto;
  color: var(--tile-dark);
  font-weight: 800;
}

.split,
.quote-layout,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.page-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
  align-items: center;
}

.page-hero img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.quote-layout {
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.quote-intro {
  position: sticky;
  top: 98px;
}

.lead-form {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: var(--shadow);
}

.form-head h2 {
  font-size: 1.65rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.field label {
  font-weight: 850;
}

.field label span,
.field small {
  color: var(--tile-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 0.72rem 0.78rem;
  border: 1px solid #bfc9c5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.consent-box {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  margin: 0.75rem 0 1rem;
  color: #34433e;
}

.consent-box input {
  min-height: auto;
  margin-top: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0.2rem 0 0;
  color: #8c1f14;
  font-weight: 800;
}

.form-error-global {
  padding: 0.75rem;
  background: #fff2ee;
  border-radius: 8px;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.link-cloud.vertical {
  display: grid;
}

.link-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0.45rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.link-cloud small {
  margin-left: 0.35rem;
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.cta-band p,
.cta-band .eyebrow {
  color: #dce7e1;
}

.breadcrumbs {
  width: min(1180px, calc(100% - 2rem));
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--tile-dark);
  font-weight: 800;
}

.guide-article,
.legal-page,
.center-page {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.guide-article {
  max-width: 860px;
}

.guide-note,
.info-panel {
  padding: 1rem;
}

.center-page {
  min-height: 58vh;
  display: grid;
  place-content: center;
  text-align: center;
}

.center-page p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  margin-top: 1.5rem;
  background: #17211d;
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.78fr) minmax(180px, 0.48fr);
  gap: clamp(1.4rem, 4vw, 2.4rem);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}

.footer-panel h2 {
  max-width: 560px;
  color: var(--white);
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.footer-panel p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-cta {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
}

.footer-heading {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-links,
.legal-links {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .footer-cta,
.site-footer .footer-cta:hover {
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .page-hero,
  .quote-layout,
  .split,
  .cta-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quote-intro {
    position: static;
  }

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

  .footer-inner {
    gap: 1.3rem;
  }
}

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

  .site-header {
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    padding: 0.75rem 0.8rem;
    gap: 0.6rem;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.6rem, 8vw, 2.15rem);
    overflow-wrap: break-word;
  }

  p,
  li,
  a {
    overflow-wrap: break-word;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .brand {
    overflow: hidden;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    width: 118px;
    min-height: 40px;
    padding: 0.48rem 0.55rem;
    font-size: 0.78rem;
    white-space: normal;
  }

  .hero,
  .page-hero,
  .quote-layout,
  .section,
  .cta-band,
  .center-page,
  .guide-article,
  .legal-page {
    width: min(100% - 1rem, 1180px);
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .symptom-grid,
  .card-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .card {
    min-height: auto;
  }

  .lead-form {
    padding: 0.95rem;
  }

  .quote-layout .quote-intro {
    display: contents;
  }

  .quote-layout .quote-intro > .eyebrow {
    order: 1;
  }

  .quote-layout .quote-intro > h1 {
    order: 2;
  }

  .quote-layout .quote-intro > p {
    order: 3;
  }

  .quote-layout .quote-intro > .check-list {
    order: 4;
  }

  .quote-layout > .lead-form {
    order: 5;
  }

  .quote-layout .quote-intro > .content-image,
  .quote-layout .quote-intro > .info-panel {
    order: 6;
  }
}
