/* Family Comes First Insurance — draft landing styles for call.fcfinsurance.com
   Mobile-first. No third-party optimizer or tag manager. */

:root {
  --navy: #152337;
  --ink: #10182a;
  --green: #2c6a4a;
  --ivory: #f8f4ee; /* hsl(40 44% 97%) */
  --gold: #d1a65c;  /* hsl(38 55% 62%) */
  --sage: #e4e9e1;
  --sand: #efe6d6;
  --surface: #ffffff;
  --line: #d9d1c4;
  --text: #1a2436;
  --text-muted: #3d4656;
  --ivory-text: hsl(40, 44%, 97%);
  --shadow: 0 1px 2px rgba(21, 35, 55, 0.06), 0 18px 40px -12px rgba(21, 35, 55, 0.22);
  --radius-btn: 10px;
  --radius-card: 16px;
  --header-h: 4.25rem;
  --sticky-h: 5.75rem;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --content: 71rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
    font-size: 1.1875rem;
  }
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-container {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .page-container {
    width: min(100% - 3rem, var(--content));
  }
}

/* Typography */
.font-display,
.type-h1,
.type-h2,
.type-h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

.type-h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.55rem);
}

.type-h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
}

.type-h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  letter-spacing: -0.015em;
}

.type-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.type-small {
  font-size: 0.98rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  color: var(--green);
}

.gold-rule {
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Header */
.site-header {
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand svg {
  width: 37px;
  height: 40px;
  flex-shrink: 0;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.1rem;
}

/* Buttons */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-call svg {
  flex-shrink: 0;
}

.btn-call--header {
  min-height: 3.5rem;
  gap: 0.55rem;
  padding: 0.4rem 1.15rem;
  font-size: 1.05rem;
  background: var(--navy);
  color: var(--ivory);
}

.btn-call--header:hover {
  background: var(--green);
}

.btn-call--header:active {
  background: var(--ink);
}

.btn-call.header-call {
  display: none;
}

@media (min-width: 768px) {
  .btn-call.header-call {
    display: inline-flex;
  }
}

.btn-call--solid {
  flex-direction: column;
  gap: 0.2rem;
  min-height: 6rem;
  width: 100%;
  max-width: 26rem;
  padding: 1rem 1.5rem;
  background: var(--navy);
  color: var(--ivory);
}

@media (min-width: 640px) {
  .btn-call--solid {
    padding-inline: 2.5rem;
  }
}

.btn-call--solid:hover {
  background: var(--green);
}

.btn-call--solid:active {
  background: var(--ink);
}

.btn-call--outline {
  flex-direction: column;
  gap: 0.2rem;
  min-height: 72px;
  width: 100%;
  max-width: 26rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--navy);
  background: var(--ivory);
  color: var(--navy);
}

.btn-call--outline:hover {
  background: var(--sage);
}

.btn-call--outline:active {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-call--on-dark {
  flex-direction: column;
  gap: 0.2rem;
  min-height: 6rem;
  width: 100%;
  max-width: 26rem;
  padding: 1rem 1.5rem;
  background: var(--ivory);
  color: var(--navy);
}

@media (min-width: 640px) {
  .btn-call--on-dark {
    padding-inline: 2.5rem;
  }
}

.btn-call--on-dark:hover {
  box-shadow: inset 0 0 0 2px var(--green);
}

.btn-call__label {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.btn-call__number {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.hours {
  margin: 0;
  font-weight: 600;
}

/* Sticky mobile Call Now */
.sticky-call {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(248, 244, 238, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(21, 35, 55, 0.12);
}

.sticky-call .btn-call {
  width: 100%;
  max-width: none;
  min-height: 3.5rem;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: var(--ivory);
  border: 0;
}

.sticky-call .btn-call:hover,
.sticky-call .btn-call:active {
  background: var(--green);
}

.sticky-call .btn-call__label {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .sticky-call {
    display: none;
  }
}

/* Sections */
.section {
  scroll-margin-top: 6rem;
  padding: 3.5rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 5.5rem 0;
  }
}

/* Hero */
.hero {
  padding-top: 2.5rem;
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding-block: 4.5rem;
  }
}

.hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.hero .type-h1 {
  margin-top: 1rem;
}

.hero .type-lead {
  margin-top: 1.15rem;
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__photo {
  margin: 0;
}

.hero__photo img,
.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  background: var(--sand);
}

.hero__photo .gold-rule {
  margin-top: 1.15rem;
}

/* Benefits */
.benefits {
  background: var(--sage);
}

.benefits .type-lead {
  margin-top: 1rem;
  max-width: 52ch;
}

.benefits__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
}

.card--gold {
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1.5rem 1.75rem;
}

@media (min-width: 640px) {
  .card--gold,
  .card--text {
    padding: 2rem;
  }
}

.card--text {
  padding: 1.5rem 1.5rem 1.75rem;
}

.card p,
.step p,
.point p {
  margin: 0.75rem 0 0;
}

/* How it works */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--image-first {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 4rem;
  }

  .split--image-first .split__copy {
    order: 2;
  }

  .split--image-first .split__media {
    order: 1;
  }
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-bottom: 2.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3.5rem;
  bottom: 0;
  left: 1.75rem;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* Family first */
.family-first {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.family-first .type-lead {
  margin-top: 1.15rem;
  max-width: 56ch;
}

.points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .points {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
}

.photo-frame {
  margin: 0;
}

/* States */
.states-panel {
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
  .states-panel {
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .states-panel {
    padding: 3.5rem;
  }
}

.states-panel .type-lead {
  margin-top: 1rem;
}

.state-list {
  margin: 2rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  columns: 2;
  column-gap: 1.5rem;
  line-height: 2;
  list-style: none;
}

@media (min-width: 640px) {
  .state-list {
    column-gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .state-list {
    columns: 4;
  }
}

.state-list li {
  break-inside: avoid;
}

/* FAQ */
.faq-list {
  margin-top: 2.5rem;
  border-top: 2px solid var(--navy);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding: 1rem 0.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--sage);
}

@media (min-width: 640px) {
  .faq-item summary {
    padding-inline: 1rem;
  }
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.15s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item p {
  max-width: 60ch;
  margin: 0;
  padding: 0 0.5rem 1.5rem;
}

@media (min-width: 640px) {
  .faq-item p {
    padding-inline: 1rem;
  }
}

/* Closing CTA */
.closing {
  background: var(--navy);
  color: var(--ivory-text);
}

.closing .type-h2 {
  color: var(--ivory-text);
  margin-top: 1.5rem;
}

.closing__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .closing__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.closing__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--ivory-text);
  padding: 3rem 0;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 3rem;
  }
}

.site-footer .brand {
  color: var(--ivory-text);
}

.site-footer .brand .mark-heart {
  fill: var(--gold);
}

.license {
  margin: 1rem 0 0;
}

.disclaimer {
  margin: 0;
  max-width: 68ch;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 244, 238, 0.25);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

.footer-links a {
  color: var(--ivory-text);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.footer-links a:hover {
  text-decoration-thickness: 2px;
}

/* Legal pages */
.legal {
  padding: 3.5rem 0 5rem;
}

.legal .type-h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal .updated {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

.legal .prose {
  max-width: 68ch;
  margin-top: 2rem;
}

.legal .prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
  line-height: 1.25;
}

.legal .prose p {
  margin: 0 0 1rem;
}

.legal .prose ul,
.legal .prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.legal .prose li {
  margin: 0 0 0.4rem;
}

.legal .prose a {
  color: var(--green);
  text-underline-offset: 3px;
}

.legal .prose a:hover {
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-call,
  .faq-item summary,
  .faq-item__icon {
    transition: none;
  }
}
