/* Insure USA, Inc. | homepage */

.section { padding: clamp(64px, 7vw, 120px) 0; }
.section-title { font-size: clamp(2rem, 1.2rem + 1.9vw, 3rem); color: var(--navy-900); max-width: 24ch; margin-bottom: 16px; }
.section-intro { font-size: 1.125rem; max-width: 42em; margin-bottom: clamp(36px, 3.5vw, 56px); }

/* ---------------- HERO ---------------- */
.hero { background: var(--white); padding: clamp(36px, 4.5vw, 84px) 0 clamp(48px, 5vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 5vw, 96px); align-items: stretch; }
.hero h1 {
  font-size: clamp(2.35rem, 1.4rem + 2.3vw, 3.7rem); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--navy-900); max-width: 21ch; margin-bottom: 18px;
}
.hero-lede { font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.6; max-width: 38em; margin-bottom: clamp(22px, 2.4vw, 34px); }

.starter fieldset { border: 0; margin-bottom: 22px; }
.starter legend { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile span {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px;
  border: 1.5px solid #C3CAD6; border-radius: var(--r); background: var(--white);
  font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--ink);
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.tile svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--navy-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile input:hover + span { border-color: var(--navy-700); }
.tile input:focus-visible + span { outline: 3px solid #F2B43A; outline-offset: 2px; }
.tile input:checked + span { border-color: var(--navy-900); background: #EEF2FA; box-shadow: inset 0 0 0 1px var(--navy-900); }
.tile input:checked + span svg { stroke: var(--red); }

.starter-row { display: grid; grid-template-columns: minmax(0, 15rem) auto; grid-template-areas: "label label" "zip btn"; gap: 6px 12px; align-items: stretch; justify-content: start; }
.starter-row label { grid-area: label; font-weight: 700; font-size: 1rem; color: var(--ink); }
.starter-row input {
  grid-area: zip; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 1.5px solid #B9C1CF; border-radius: var(--r); font-size: 1.15rem; letter-spacing: .04em; background: var(--white);
}
.starter-row input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(34,60,117,.18); }
.starter-row .btn { grid-area: btn; min-height: 56px; padding-left: 32px; padding-right: 32px; }
.starter .fine { font-size: .92rem; color: var(--muted); margin-top: 14px; }
.starter .fine a { color: var(--navy-900); font-weight: 700; white-space: nowrap; }
.reviews-sub { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.starter .zip-error { display: none; color: var(--red-700); font-size: .92rem; font-weight: 600; margin-top: 8px; }
.starter .zip-error.show { display: block; }

.hero-media { position: relative; margin: 0; min-height: 440px; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 55% 50%; border-radius: var(--r-lg); }
.office-card {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 21rem;
  display: grid; gap: 3px; padding: 16px 20px;
  background: var(--white); border-radius: var(--r); box-shadow: 0 6px 24px rgba(8,22,52,.18);
  font-size: .95rem; color: var(--body); line-height: 1.4;
}
.office-card strong { color: var(--navy-900); font-size: 1.02rem; }
.office-card .open-status { color: var(--ink); font-weight: 600; }
.office-card a { color: var(--navy-900); font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.office-card a:hover { color: var(--red); }

/* ---------------- CARRIERS (scrolling logo strip) ---------------- */
.carriers { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 44px; }
.carriers-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.carriers-head h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.carriers-actions { display: flex; align-items: center; gap: 20px; }
.marquee-toggle {
  background: transparent; border: 1px solid #C9CEDA; border-radius: var(--r); padding: 5px 12px;
  font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.marquee-toggle:hover { color: var(--navy-900); border-color: var(--navy-700); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; gap: clamp(44px, 4vw, 80px); padding-right: clamp(44px, 4vw, 80px); }
.marquee-group a { display: flex; align-items: center; justify-content: center; height: 64px; }
.marquee-group img {
  height: 46px; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(1) contrast(1.1); opacity: .62; mix-blend-mode: multiply; transition: filter .15s, opacity .15s;
}
.marquee-group a:hover img, .marquee-group a:focus-visible img { filter: none; opacity: 1; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: 20px 48px; padding: 0 var(--gutter); flex-shrink: 1; }
  .marquee-group[aria-hidden="true"], .marquee-toggle { display: none; }
}

/* ---------------- WHY ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(28px, 3vw, 56px); }
.why-item { border-top: 2px solid var(--navy-900); padding-top: 22px; }
.why-item h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.why-item p { font-size: 1rem; }
.why-item a { color: var(--navy-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .why-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------- COVERAGE ---------------- */
.coverage { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cov-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(32px, 4vw, 80px); }
.cov-col h3 { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--navy-900); padding-bottom: 12px; border-bottom: 1px solid #CFCABD; margin-bottom: 14px; }
.cov-col h3 a:hover { color: var(--red); }
.cov-col > p { margin-bottom: 18px; }
.cov-col ul { columns: 2; column-gap: 24px; }
.cov-col li { break-inside: avoid; margin-bottom: 9px; line-height: 1.35; }
.cov-col li a { color: var(--navy-700); text-decoration: underline; text-decoration-color: rgba(34,60,117,.3); text-underline-offset: 3px; }
.cov-col li a:hover { color: var(--red); text-decoration-color: currentColor; }
@media (max-width: 1000px) { .cov-cols { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------------- OWNER ---------------- */
.owner { background: var(--navy-900); color: #D5DCEA; }
.owner-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.owner h2 { color: var(--white); font-size: clamp(2rem, 1.2rem + 1.9vw, 3rem); margin-bottom: 8px; }
.owner-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.owner-facts div { background: var(--navy-900); padding: 16px 18px; }
.owner-facts dt { font-size: .88rem; color: #9DA9C2; margin-bottom: 2px; }
.owner-facts dd { color: var(--white); font-weight: 700; }
.owner-facts a { color: var(--white); }
.letter { font-family: var(--serif); font-size: clamp(1.18rem, 1.05rem + .35vw, 1.4rem); line-height: 1.65; color: #E6EAF3; max-width: 36em; }
.letter p { margin-bottom: 18px; }
.letter .sig { font-style: italic; font-size: 1.45em; color: var(--white); margin: 6px 0 0; }
.letter .sig-title { font-family: var(--sans); font-size: .95rem; color: #9DA9C2; }
@media (max-width: 900px) { .owner-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------------- REVIEWS ---------------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 3.5vw, 52px); }
.reviews-head .section-title { margin-bottom: 0; }
.reviews-foot { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.reviews-grid { columns: 3 20rem; column-gap: clamp(32px, 3.5vw, 64px); }
.review { break-inside: avoid; display: block; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.stars { display: flex; gap: 2px; color: #E0A100; margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; }
/* the hero rating line reuses the .stars class name; keep it inline there */
.rating-line .stars { display: inline; margin: 0 4px 0 0; }
.review blockquote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); margin-bottom: 14px; }
.review cite { font-style: normal; font-size: .95rem; color: var(--muted); }
.review cite strong { color: var(--ink); }

/* ---------------- FAQ ---------------- */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq-list details { border-bottom: 1px solid #CFCABD; }
.faq-list details:first-child { border-top: 1px solid #CFCABD; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  padding: 22px 0; font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); font-weight: 400; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .answer { padding: 0 0 24px; max-width: 66ch; }
.faq-list .answer p + p { margin-top: 12px; }
.faq-list .answer a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------- VISIT ---------------- */
/* Same container and column split as the FAQ above it, so the map lines up with the questions instead of bleeding off the edge */
.visit { padding: clamp(64px, 7vw, 120px) 0; border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.visit-info address { font-style: normal; font-size: 1.1rem; color: var(--ink); margin-bottom: 18px; line-height: 1.55; }
.visit-info .hours { color: var(--body); margin-bottom: 22px; }
.visit-info .hours td { padding: 5px 24px 5px 0; border-bottom: 1px solid var(--line); }
.visit-info .open-status { font-weight: 700; color: var(--ink); margin-bottom: 16px; display: inline-flex; }
.visit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.visit-map { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 10; min-height: 320px; }
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: 20ch; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 10; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  /* Keep the ZIP field and button above the fold on a phone: 3x3 icon-over-label tiles, ZIP and button on one row */
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 2.05rem; line-height: 1.08; margin-bottom: 12px; max-width: none; }
  .hero .rating-line { margin-bottom: 12px; font-size: .95rem; }
  .hero-lede { font-size: 1rem; line-height: 1.55; margin-bottom: 18px; }
  .starter fieldset { margin-bottom: 16px; }
  .starter legend { margin-bottom: 10px; }
  .tiles { gap: 8px; }
  .tile span { flex-direction: column; justify-content: center; text-align: center; min-height: 72px; padding: 8px 4px; gap: 5px; font-size: .88rem; }
  .tile svg { width: 22px; height: 22px; }
  .starter-row { grid-template-columns: minmax(0, 1fr) auto; }
  .starter-row input { min-height: 52px; }
  .starter-row .btn { min-height: 52px; padding-left: 18px; padding-right: 18px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .office-card { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .marquee-group img { height: 38px; max-width: 130px; }
  .cov-col ul { columns: 2; }
}
