/* coverage.css */

/* Anchor offset — pushes target below fixed nav + sticky pill bar */
#personal, #auto, #commercial, #health, #rv, #flood {
  scroll-margin-top: calc(var(--nav-h) + 52px);
}

.coverage-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(27,58,107,0.08);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.coverage-pills {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.coverage-pills::-webkit-scrollbar { display: none; }
.pill {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  color: var(--gray-mid);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.pill:hover {
  color: var(--navy);
  background: var(--sand);
  border-color: rgba(27,58,107,0.1);
}

/* Coverage section layouts — narrower image, wider text */
.cov-section-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}
.cov-section-grid--reverse {
  grid-template-columns: 1fr 320px;
  direction: rtl;
}
.cov-section-grid--reverse > * { direction: ltr; }

/* Image: smaller, padded inside a ruled box */
.cov-img-wrap {
  border: 1px solid rgba(27,58,107,0.15);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--white);
}
.section--sand .cov-img-wrap {
  background: var(--sand-dark);
}
.cov-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
/* Logo images (health, RV) — show full image without cropping */
.cov-img--logo {
  object-fit: contain;
  padding: 1rem;
  background: var(--white);
}

/* Coverage type items */
.cov-types {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.cov-type {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cov-type__icon {
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.section--sand .cov-type__icon { background: var(--white); }
.cov-type strong {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 0.2rem;
}
.cov-type p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
}

/* Health note */
.health-note {
  background: rgba(200,164,90,0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
}
.health-note p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--charcoal);
}
.health-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Flood callout */
.flood-callout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.flood-icon {
  font-size: 4rem;
  flex-shrink: 0;
  opacity: 0.8;
}
.flood-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.flood-fact {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.flood-fact strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.flood-fact p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0; }

@media (max-width: 900px) {
  .cov-section-grid,
  .cov-section-grid--reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .cov-img { height: 220px; }
  .flood-callout { flex-direction: column; gap: 1.5rem; }
  .flood-facts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cov-img { height: 180px; }
}
