/* HTN Insurance, htninsurance.com
   Built by YSS Web Studio. Plain CSS, no build step.
   Contrast ratios in the comments are measured against the background each
   token is used on (WCAG AA needs 4.5:1 for body text, 3:1 for large text
   and focus outlines). */

:root {
  --ink:        #14231f;  /* body text, 14.7:1 on paper */
  --muted:      #4a5a55;  /* secondary text, 6.6:1 on paper, 5.8:1 on sand */
  --pine:       #1d4a3f;  /* brand, headings, dark band; paper on pine 9.0:1 */
  --pine-deep:  #173b33;
  --paper:      #f7f3ea;  /* page background */
  --sand:       #ece4d3;  /* FAQ band, cards */
  --line:       #d9cfba;
  --copper:     #a8481f;  /* call buttons, white on copper 5.8:1; as text on paper 5.3:1 */
  --copper-deep:#8c3a17;
  --peach:      #f2c39f;  /* accent on dark, 7.6:1 on pine-deep */
  --mist:       #c9d8d2;  /* body text on pine, 6.8:1 */
  --white:      #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-sm: 0.9375rem;
  --t-0:  1.0625rem;
  --t-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --t-2:  clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --t-3:  clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --t-4:  clamp(2.1rem, 1.5rem + 3vw, 3.6rem);

  --wrap: 1140px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section: clamp(3.75rem, 2.5rem + 5vw, 7rem);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: var(--t-4); }
h2 { font-size: var(--t-3); }
h3 { font-size: var(--t-2); font-variation-settings: "opsz" 36; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.site-footer :focus-visible,
.mobile-bar :focus-visible { outline-color: var(--peach); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--pine);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.eyebrow {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.lede { font-size: var(--t-1); color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-deep); color: var(--white); }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--pine); }
.btn-light:hover { background: var(--white); color: var(--pine); }
.btn-small { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.975rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 234, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(247, 243, 234, 0.82); backdrop-filter: blur(8px); }
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--pine);
  margin-right: auto;
}
.brand-mark { width: 2.4rem; height: 2.4rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name span { font-weight: 500; color: var(--muted); }
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0;
}
.site-nav a:hover { color: var(--copper); }
.site-nav, .header-call { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 5vw, 6rem) 0 clamp(5rem, 4rem + 4vw, 8rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.hero h1 { max-width: 15em; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.1rem;
}
.hero-email { color: var(--muted); font-size: var(--t-sm); }
.hero-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  color: var(--pine);
  opacity: 0.22;
}

.ready-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  box-shadow: 0 18px 40px -24px rgba(23, 59, 51, 0.35);
  align-self: start;
}
.ready-flag {
  display: inline-block;
  background: var(--pine);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.ready-card h2 { font-size: var(--t-2); margin-bottom: 1rem; }
.ready-list {
  list-style: none;
  counter-reset: ready;
  margin: 0 0 1.1rem;
  padding: 0;
}
.ready-list li {
  counter-increment: ready;
  position: relative;
  padding: 0.7rem 0 0.7rem 2.6rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}
.ready-list li:first-child { border-top: 0; }
.ready-list li::before {
  content: counter(ready);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--pine);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.ready-list span { color: var(--ink); font-weight: 600; }
.ready-note { font-size: var(--t-sm); color: var(--muted); }

/* Sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--pine-deep); color: var(--mist); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .eyebrow { color: var(--peach); }

/* Cards */
.cards { display: grid; gap: 1.25rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  display: flex;
  flex-direction: column;
}
.card-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); }
.card .card-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--pine);
  font-weight: 600;
}
.card p:nth-last-child(2) { margin-bottom: 1.25rem; }
.independent {
  margin-top: 2rem;
  max-width: 44rem;
  font-size: var(--t-1);
  color: var(--muted);
}
.independent strong { color: var(--ink); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 4.2rem;
  border-top: 1px solid rgba(201, 216, 210, 0.3);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--peach);
}
.steps h3 { font-size: var(--t-1); font-variation-settings: "opsz" 24; margin-bottom: 0.5rem; }

/* About */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-photo { width: min(180px, 50vw); margin-left: 8px; }
.about-photo img,
.monogram {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.monogram {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(242, 195, 159, 0.35), transparent 60%),
    var(--pine);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 8px var(--sand);
}
.about-copy > p { max-width: 38rem; }
.facts {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 600; color: var(--pine); }
.facts dd { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.25rem 1.1rem 1.25rem;
  font-weight: 600;
  font-size: var(--t-1);
  color: var(--ink);
  position: relative;
  border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--pine); }
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--muted); max-width: 44rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
.contact-place { color: var(--muted); }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--pine);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(201, 216, 210, 0.2);
}
.contact-list li:first-child { border-top: 0; }
.contact-label {
  width: 3.5rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--peach);
}
.contact-list a {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--t-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list a:hover { text-decoration: underline; color: var(--white); }
.contact-list :focus-visible { outline-color: var(--peach); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 3rem 0 6.5rem;
  font-size: var(--t-sm);
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--peach); }
.site-footer p { margin-bottom: 0.4rem; }
.footer-row { display: grid; gap: 1.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); }
.copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 216, 210, 0.2);
}

/* Sticky call bar, phones only */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--pine-deep);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.35);
}
.mobile-bar .btn { min-height: 2.9rem; }

/* Plain text pages: privacy, 404 */
.page { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 var(--section); }
.prose { max-width: 42rem; }
.prose h1 { font-size: var(--t-3); }
.prose h2 { font-size: var(--t-2); margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: var(--t-sm); }

/* Wider screens */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:last-child { grid-column: 1 / -1; }
  .footer-row { grid-template-columns: 1fr auto; }
  .footer-links { text-align: right; }
}

@media (min-width: 900px) {
  .site-nav, .header-call { display: flex; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card:last-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .about-grid { grid-template-columns: 260px 1fr; gap: 4rem; }
  .about-photo { width: 100%; margin-left: 0; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

@media print {
  .site-header, .mobile-bar, .hero-lines { display: none; }
  body { background: #fff; }
}
