@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');
:root {
  --brand-blue: #004A8F;
  --brand-blue-light: #3DAAF2;
  --brand-text: #111111;
  --brand-bg: #f5f5f7;
  --accent-teal: #78fcfe;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--brand-bg);
  color: var(--brand-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

header {
  padding: 10px 32px 10px 16px;
  background: #ffffff;
  border-bottom: 2px solid var(--accent-teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.logo-icon {
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.logo-wordmark {
  height: 40px;
  aspect-ratio: 324 / 41;
  max-width: 100%;
  display: block;
  margin-left: 12px;
  transform: translateY(4px);
}
.logo-combined {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
}
@media (min-width: 430px) {
  .logo-combined {
    height: 45px;
    max-width: 230px;
  }
}
@media (min-width: 768px) {
  .logo-combined {
    height: 55px;
    max-width: none;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #333333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* Hamburger to X animation */
.nav-toggle--active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle--active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle--active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-phone {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #ffffff;
  border: 1px solid var(--accent-teal);
  box-shadow: 0 2px 6px rgba(120, 252, 254, 0.3);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.header-phone:hover {
  background: var(--brand-blue-light);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(120, 252, 254, 0.7), 0 4px 10px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}
.header-phone-icon {
  display: inline-flex;
  line-height: 1;
}

.header-phone-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

/* Chat button - matches phone button styling */
.header-chat-btn {
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(120, 252, 254, 0.3);
  cursor: pointer;
}

.header-chat-icon {
  display: inline-flex;
  line-height: 1;
}

.header-chat-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

nav a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
}

.primary-nav > a {
  padding: 8px 8px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.primary-nav > a:hover {
  background: var(--brand-blue-light);
  color: #ffffff;
  box-shadow: inset 0 2px 0 0 var(--accent-teal), inset 2px 0 0 0 var(--accent-teal), inset -2px 0 0 0 var(--accent-teal), inset 0 -2px 0 0 var(--accent-teal);
}

nav a:hover { color: var(--brand-blue-light); }

/* Dropdown styles */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover > a {
  background: var(--brand-blue-light);
  color: #ffffff;
  box-shadow: inset 0 2px 0 0 var(--accent-teal), inset 2px 0 0 0 var(--accent-teal), inset -2px 0 0 0 var(--accent-teal);
}

.nav-item:hover > a::after {
  border-top-color: #ffffff;
}

.nav-item > a::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--brand-blue);
  border: 2px solid var(--accent-teal);
  border-radius: 12px 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-top: 0;
  z-index: 100;
  overflow: hidden;
}

/* Connected tab effect for Insurance */
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-item:first-child > a {
  position: relative;
}

.nav-item:first-child:hover > a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 2px;
  right: 2px;
  height: 4px;
  background: var(--brand-blue-light);
  z-index: 101;
}

/* Insurance dropdown - two columns */
.dropdown--insurance {
  display: flex;
  min-width: 420px;
}

.dropdown-col {
  padding: 16px 20px;
  min-width: 200px;
  cursor: pointer;
}

.dropdown-col--personal {
  background: var(--brand-blue-light);
}

.dropdown-col--commercial {
  background: var(--brand-blue);
  border-left: 2px solid var(--accent-teal);
}

.dropdown-col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  cursor: default;
}

.dropdown-col a {
  display: block;
  padding: 8px 12px;
  margin: 0 -12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s ease, padding-left 0.15s ease;
  cursor: pointer;
  border-radius: 6px;
}

.dropdown-col a:hover {
  background: rgba(255, 255, 255, 0.15);
  padding-left: 16px;
  color: #ffffff;
}

/* About dropdown - single column */
.dropdown--about {
  min-width: 180px;
  background: var(--brand-blue-light);
}

.dropdown--about a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  margin: 0;
  transition: background 0.15s ease, padding-left 0.15s ease;
  cursor: pointer;
}

.dropdown--about a:hover {
  background: rgba(255, 255, 255, 0.15);
  padding-left: 24px;
  color: #ffffff;
}

.header-cta {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--accent-teal);
  background: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.header-cta:hover {
  background: var(--brand-blue-light);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(120, 252, 254, 0.7), 0 4px 10px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

main {
  padding: 0 32px 72px;
  max-width: 1120px;
  margin: 0 auto;
}

main.quote-main {
  max-width: none;
  padding: 0;
}

.hero {
  background: linear-gradient(to bottom right, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  color: #ffffff;
  padding: 56px 0 56px;
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
  position: relative;
}

/* LOC = Line of Coverage (product pages like Condo, Home, Auto, etc.) */
.hero--loc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

/* Landing pages - hero fades to white, no extra white gradient overlay */
.hero--landing::after {
  display: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-copy {
  flex: 1 1 260px;
  min-width: 260px;
}

.hero-media {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 420px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #dfe7f3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.content-section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
}

#coverages {
  background: #ffffff;
  padding: 40px 32px;
  margin: 0 calc(50% - 50vw) 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

#coverages::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, var(--brand-blue), #ffffff);
}

/* Landing page sections - no gradient pseudo-elements */
#personal-lines,
#commercial-lines,
#about-links {
  background: #ffffff;
  padding: 40px 32px;
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
  position: relative;
}

#personal-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, var(--brand-blue), #ffffff);
}

.coverages-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

#coverages h2 {
  text-align: center;
  margin-bottom: 16px;
}

.coverages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  width: 100%;
  justify-items: stretch;
  justify-content: center;
}

.coverage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: #f7f9fc;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
}

.coverage-card:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(120, 252, 254, 0.7), 0 4px 12px rgba(120, 252, 254, 0.4);
  transform: translateY(-2px);
}

.coverage-card:hover .coverage-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.coverage-icon {
  flex: 0 0 auto;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverage-icon svg {
  width: 40px;
  height: 40px;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Fill-based icons: apply fill only, no stroke */
.coverage-icon svg,
.coverage-icon svg * {
  fill: var(--brand-blue) !important;
  stroke: none !important;
}

/* Hover: fill-based icons turn accent teal */
.coverage-card:hover .coverage-icon svg,
.coverage-card:hover .coverage-icon svg * {
  fill: var(--accent-teal) !important;
  stroke: none !important;
}

/* Stroke-based icons (fill="none" on root): apply stroke only, no fill */
.coverage-icon svg[fill="none"],
.coverage-icon svg[fill="none"] * {
  fill: none !important;
  stroke: var(--brand-blue) !important;
}

.coverage-card:hover .coverage-icon svg[fill="none"],
.coverage-card:hover .coverage-icon svg[fill="none"] * {
  fill: none !important;
  stroke: var(--accent-teal) !important;
}
.coverage-divider {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-blue);
  margin: 8px 0 4px;
  font-weight: 600;
}

.coverage-divider::before,
.coverage-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brand-blue-light);
}

/* Nav header and close button - hidden by default (desktop) */
.nav-close,
.nav-header {
  display: none;
}

/* Coverages expand button - hidden on desktop */
.coverages-expand-btn {
  display: none;
}

/* Carriers expand button - hidden on desktop */
.carriers-expand-btn {
  display: none;
}

/* Reviews Gradient Section */
.reviews-section {
  margin: 32px calc(50% - 50vw) 0;
  width: 100vw;
  background: linear-gradient(to bottom right, var(--brand-blue) 0%, var(--brand-blue) 55%, var(--accent-teal) 100%);
  color: #ffffff;
  padding: 48px 0 0;
  position: relative;
}

/* No top margin when reviews directly follows coverages (homepage only) */
#coverages + .reviews-section {
  margin-top: 0;
}

/* Gradient fade from white into reviews section */
.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
  pointer-events: none;
}

.reviews-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

/* Gradient transition to carrier section */
.reviews-section::after {
  content: '';
  display: block;
  width: 100%;
  height: 14px;
  background: linear-gradient(to bottom, transparent, var(--brand-bg));
}

.reviews-heading {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.reviews-slider {
  width: 100%;
  max-width: 1120px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 220px;
  align-items: start;
}

.review-slide {
  display: none;
  background: rgba(6, 18, 38, 0.55);
  border-radius: 16px;
  padding: 20px 20px 18px;
  border: 2px solid var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(120, 252, 254, 0.4), 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
}

.review-slide.active {
  display: flex;
  flex-direction: column;
}

.review-slide:hover {
  box-shadow: 0 0 0 2px rgba(120, 252, 254, 0.8), 0 0 20px rgba(120, 252, 254, 0.5), 0 12px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-teal);
  flex-shrink: 0;
}

.review-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.review-photo--placeholder svg {
  width: 24px;
  height: 24px;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author {
  font-size: 14px;
  font-weight: 600;
}

.review-rating {
  color: #ffd76a;
  font-size: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-expand {
  background: none;
  border: none;
  color: var(--accent-teal);
  font-size: 13px;
  cursor: pointer;
  padding: 12px 16px;
  margin: 4px -16px -12px;
  text-align: left;
  font-weight: 500;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.review-expand:hover {
  text-decoration: underline;
}

.reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reviews-google-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-teal);
  color: #ffffff;
}

.reviews-google-link svg {
  width: 18px;
  height: 18px;
}

.carriers-section {
  margin-top: 32px;
  padding-bottom: 48px;
}

/* Chat Section */
.chat-section {
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
  background: linear-gradient(to bottom left, var(--brand-blue) 0%, var(--brand-blue) 55%, var(--accent-teal) 100%);
  color: #ffffff;
  padding: 48px 0 56px;
  position: relative;
}

/* Remove main's bottom padding when chat-section is the last child */
main:has(.chat-section:last-child) {
  padding-bottom: 0;
}

/* Background to navy gradient at top of chat */
.chat-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, var(--brand-bg), var(--brand-blue));
  z-index: 1;
}

.chat-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.chat-inner h2 {
  border: none;
  padding: 0;
  margin-bottom: 12px;
  font-size: 32px;
}

.chat-inner > p {
  font-size: 16px;
  margin-bottom: 28px;
  opacity: 0.95;
}

.chat-launch-btn {
  font-size: 16px;
  padding: 14px 28px;
  cursor: pointer;
}

#about {
  position: relative;
  margin-top: 0;
  padding-top: 48px;
}

.carriers-heading {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 16px;
}

.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.carrier-item {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 1px solid #e2e2e7;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.carrier-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 1px rgba(61, 170, 242, 0.4), 0 4px 16px rgba(0, 74, 143, 0.15);
}

.carrier-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  /* Coverages 2-column grid */
  .coverages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Coverages expand/collapse for tablet/mobile */
  .coverage-card--mobile-hidden {
    display: none;
  }

  .coverages-grid.expanded .coverage-card--mobile-hidden {
    display: flex;
  }

  .coverages-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--brand-blue-light);
    border-radius: 999px;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .coverages-expand-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
  }

  .coverages-expand-icon {
    transition: transform 0.3s ease;
  }

  .coverages-expand-btn.expanded .coverages-expand-icon {
    transform: rotate(180deg);
  }

  /* Carriers expand/collapse for tablet/mobile */
  .carrier-item--hide-on-mobile {
    display: none;
  }

  .carriers-grid.expanded .carrier-item--hide-on-mobile {
    display: flex;
  }

  .carriers-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .carriers-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carriers-section .carriers-heading {
    align-self: flex-start;
  }

  .carriers-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--brand-blue-light);
    border-radius: 999px;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .carriers-expand-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
  }

  .carriers-expand-icon {
    transition: transform 0.3s ease;
  }

  .carriers-expand-btn.expanded .carriers-expand-icon {
    transform: rotate(180deg);
  }
}

@media (min-width: 1025px) {
  .coverages-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .coverage-card--bottom-left {
    grid-column: 2;
  }
  .coverage-card--bottom-right {
    grid-column: 3;
  }
}

.coverage-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  text-align: center;
}

.coverage-subtitle {
  font-size: 12px;
  color: #555555;
  text-align: center;
}

h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

p.lead {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

h2 {
  border-left: 4px solid var(--brand-blue-light);
  padding-left: 10px;
}

.btn-primary, .btn-secondary {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--accent-teal);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-blue-light);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(120, 252, 254, 0.7), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: #fff;
  color: #111;
  border-color: #d0d0d7;
}

.btn-secondary:hover {
  background: var(--brand-blue-light);
  color: #fff;
  border-color: var(--brand-blue-light);
}

.pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-blue-light);
  margin-bottom: 8px;
}

footer {
  margin-top: 0;
  padding: 48px 32px 24px;
  background: #050e1f;
  border-top: 2px solid var(--accent-teal);
  font-size: 13px;
  color: #f3f5ff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.footer-brand-logo-wrapper {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo {
  height: 120px;
  display: block;
}

.footer-brand-wordmark {
  height: 32px;
  aspect-ratio: 324 / 41;
  filter: brightness(0) invert(1);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 14px;
}

.footer-col p {
  margin: 4px 0;
  line-height: 1.6;
}

.footer-address-col p {
  font-size: 15px;
  line-height: 1.7;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-apps-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-social-section {
  margin-top: 24px;
}

.footer-social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(120, 252, 254, 0.2);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.footer-app-link {
  display: inline-flex;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.footer-app-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.footer-app-link img {
  display: block;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-app-download-title {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

.footer-app-download-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #9ca3c7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

footer a {
  color: #e2e6ff;
  text-decoration: none;
}

footer a:hover {
  color: #3DAAF2;
}

@media (max-width: 1024px) {
  /* Drop to tablet header layout */
  header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .header-left {
    justify-content: center;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo-icon {
    height: 60px;
  }

  .logo-wordmark {
    height: 32px;
  }

  .header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .header-phone {
    display: inline-flex;
    font-size: 14px;
    padding: 10px 16px;
  }

  .header-cta {
    font-size: 14px;
    padding: 10px 16px;
    min-width: 140px;
    justify-content: center;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand-blue);
    flex-direction: column;
    padding: 10px 16px 12px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    border-radius: 0 0 24px 24px;
    border-bottom: 3px solid var(--accent-teal);
  }

  .primary-nav.nav-open {
    display: flex;
  }

  /* Close button hidden on tablet */
  .nav-close {
    display: none;
  }

  /* Nav header hidden on tablet (only for mobile full-screen) */
  .nav-header {
    display: none;
  }

  .primary-nav .nav-item {
    display: flex;
    flex-direction: column;
  }

  .primary-nav .nav-item > a {
    padding: 12px 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    justify-content: space-between;
    font-size: 15px;
    color: #ffffff;
    transition: color 0.2s ease;
  }

  .primary-nav .nav-item > a:hover {
    color: var(--accent-teal);
  }

  .primary-nav .nav-item > a::after {
    transition: transform 0.3s ease;
    border-top-color: #ffffff;
  }

  .primary-nav .nav-item > a:hover::after {
    border-top-color: var(--accent-teal);
  }

  .primary-nav .nav-item.menu-open > a::after {
    transform: rotate(180deg);
  }

  .primary-nav .nav-item:hover > a {
    background: transparent;
    box-shadow: none;
  }

  .primary-nav .nav-item:hover > a::before {
    display: none;
  }

  /* Hide desktop dropdowns on tablet/mobile */
  .primary-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .primary-nav .nav-item.menu-open .dropdown {
    display: flex;
    max-height: 1000px;
  }

  .primary-nav .dropdown--insurance {
    flex-direction: column;
    min-width: 0;
  }

  .primary-nav .dropdown-col {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    margin: 6px 0;
    padding: 14px 16px;
    min-width: 0;
  }

  .primary-nav .dropdown-col--commercial {
    border-left: none;
  }

  .primary-nav .dropdown-col-title {
    font-size: 11px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue-light);
  }

  .primary-nav .dropdown-col a {
    padding: 10px 10px;
    margin: 2px 0;
    font-size: 15px;
    color: var(--brand-blue);
    border-radius: 8px;
  }

  .primary-nav .dropdown-col a:hover {
    background: rgba(0, 74, 143, 0.08);
    padding-left: 14px;
    color: var(--brand-blue);
  }

  .primary-nav .dropdown--about {
    background: #ffffff;
    border-radius: 12px;
    margin: 6px 0;
    min-width: 0;
    padding: 8px 0;
  }

  .primary-nav .dropdown--about a {
    padding: 10px 16px;
    font-size: 15px;
    color: var(--brand-blue);
  }

  .primary-nav .dropdown--about a:hover {
    background: rgba(0, 74, 143, 0.08);
    padding-left: 20px;
    color: var(--brand-blue);
  }

  .primary-nav > a {
    margin: 0;
    padding: 12px 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    box-shadow: none;
    font-size: 15px;
    transition: color 0.2s ease;
  }

  .primary-nav > a:hover {
    background: transparent;
    box-shadow: none;
    color: var(--accent-teal);
  }

  .primary-nav a:last-child,
  .primary-nav .nav-item:last-of-type > a {
    border-bottom: none;
  }

  /* Hero layout for tablet */
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-media {
    flex: 1 1 260px;
    min-width: 260px;
    max-width: none;
    width: 100vw;
    margin: 15px calc(50% - 50vw) 0;
    margin-bottom: 0;
  }

  .hero-slider {
    border-radius: 0;
  }

  /* Remove hero bottom padding and gradient on tablet */
  .hero {
    padding: 20px 0 0;
    margin-bottom: 0;
  }

  .hero-image {
    border-radius: 0;
  }

  #coverages::before {
    display: none;
  }

  /* Teal accent line between hero and coverages on tablet */
  #coverages {
    border-top: 2px solid var(--accent-teal);
  }

  /* Footer - 3 columns with logo on top */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-brand-logo-wrapper {
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  .footer-brand-logo {
    height: 80px;
  }

  .footer-brand-wordmark {
    height: 32px;
  }
}

/* Nav/header styles now in 1024px breakpoint above */

@media (max-width: 768px) {
  /* Full-screen mobile menu */
  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 50%, var(--accent-teal) 100%);
    padding: 24px;
    gap: 0;
    box-shadow: none;
    border-radius: 0;
    z-index: 100;
    overflow-y: auto;
  }

  .nav-close {
    display: none; /* Use hamburger button for close instead */
  }

  /* Style hamburger button when menu is open */
  .nav-toggle--active {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 150;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    transform: none;
  }

  .nav-toggle--active:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .nav-toggle--active span {
    background: #ffffff;
  }

  /* Mobile nav header with logo and actions */
  .nav-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
  }

  .nav-logo-icon {
    height: 80px;
    width: auto;
  }

  .nav-logo-wordmark {
    height: 36px;
    aspect-ratio: 324 / 41;
    margin-top: 8px;
    filter: brightness(0) invert(1);
  }

  .nav-header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .nav-header-phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--accent-teal);
    border-radius: 999px;
    transition: background 0.2s ease;
  }

  .nav-header-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
  }

  .nav-header-cta {
    padding: 16px 36px;
    border-radius: 999px;
    font-size: 18px;
    border: none;
    background: var(--brand-blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: background 0.2s ease;
  }

  .nav-header-cta:hover {
    background: var(--brand-blue-light);
    color: #ffffff;
  }

  /* Larger nav items - no borders for cleaner look */
  .primary-nav .nav-item > a {
    padding: 18px 0;
    font-size: 20px;
    font-weight: 500;
    border-bottom: none;
    color: #ffffff;
  }

  .primary-nav .nav-item > a:hover {
    color: var(--accent-teal);
  }

  .primary-nav .nav-item > a::after {
    border-top-color: #ffffff;
    transition: transform 0.3s ease, border-top-color 0.2s ease;
  }

  .primary-nav .nav-item > a:hover::after {
    border-top-color: var(--accent-teal);
  }

  .primary-nav .nav-item.menu-open > a::after {
    transform: rotate(180deg);
  }

  .primary-nav .dropdown-col {
    padding: 16px 18px;
  }

  .primary-nav .dropdown-col a {
    padding: 14px 14px;
    font-size: 17px;
  }

  .primary-nav .dropdown-col-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Contact as regular nav item, no border */
  .primary-nav > a[href="#contact"] {
    margin-top: 0;
    padding: 18px 0;
    font-size: 20px;
    font-weight: 500;
    border-bottom: none;
    color: #ffffff;
  }

  .primary-nav > a[href="#contact"]:hover {
    color: var(--accent-teal);
  }

  /* Insurance arrow rotation handled by menu-open class */

  .carriers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
  }

  .carrier-item {
    padding: 8px;
    min-width: 0;
  }

  .reviews-slider {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Tablet breakpoint for reviews - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .reviews-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-inner {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand-logo-wrapper {
    margin-bottom: 8px;
  }

  .footer-brand-logo {
    height: 80px;
  }

  .footer-brand-wordmark {
    height: 32px;
  }

  .footer-app-download-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  main { padding: 0 16px 32px; }
  h1 { font-size: 32px; }

  .hero-layout {
    padding: 0 16px;
  }

  .chat-inner h2 {
    font-size: 26px;
  }

  #coverages {
    padding: 24px 16px;
  }
  .coverages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Hide low‑volume lines on very small screens so the list isn't overwhelming */
  .coverage-card--hide-on-small {
    display: none;
  }

  /* Tidy header layout on very small phones */
  header {
    padding: 10px 12px;
  }
  .logo-icon {
    height: 44px;
  }
  .logo-wordmark {
    height: 18px;
  }
  .header-right {
    gap: 8px;
  }
  .header-phone {
    font-size: 12px;
  }
  .header-cta {
    font-size: 12px;
  }

  .reviews-inner {
    padding: 0 16px;
    align-items: stretch;
    text-align: left;
  }
}

/* ==========================================================================
   Product Page Styles (Condo, Home, Auto, etc.)
   ========================================================================== */

/* Content sections */
.content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-section--alt {
  background: #ffffff;
  margin: 0 calc(50% - 50vw);
  padding: 68px 32px;
  width: 100vw;
}

.content-section--alt .content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-note {
  background: #fff;
  border-left: 4px solid var(--accent-teal);
  padding: 16px 20px;
  margin-top: 24px;
  border-radius: 0 8px 8px 0;
}

/* Coverage detail grid */
.coverage-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.coverage-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.coverage-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 74, 143, 0.15);
  border-color: var(--accent-teal);
}

.coverage-detail-card:hover .coverage-detail-icon {
  background: linear-gradient(135deg, var(--accent-teal), var(--brand-blue-light));
}

.coverage-detail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.coverage-detail-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: #fff;
}

.coverage-detail-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.coverage-detail-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Comparison table */
.comparison-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.comparison-col {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comparison-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3DAAF2;
  transition: border-color 0.2s ease;
}

.comparison-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-col li {
  padding: 8px 12px 8px 32px;
  position: relative;
  font-size: 15px;
  color: #444;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.comparison-col li::before {
  content: '\2713';
  position: absolute;
  left: 12px;
  color: var(--brand-blue-light);
  font-weight: 600;
  transition: color 0.15s ease;
}

/* FAQ Accordion */
.faq-list {
  margin-top: 24px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border-color: #fff;
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand-blue-light);
}

.faq-question:hover::after {
  color: var(--brand-blue-light);
}

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

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--brand-blue);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 24px 18px;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to top right, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  padding: 64px 24px;
  text-align: center;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
}

/* No bottom fade - clean teal line to footer */

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--brand-blue);
  border-color: #fff;
}

.cta-section .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}

.cta-section .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-section .btn-secondary:hover {
  background: #fff;
  color: var(--brand-blue);
}

/* Compact carriers grid for product pages */
.carriers-grid--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.carriers-grid--compact .carrier-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  aspect-ratio: auto;
}

.carriers-grid--compact .carrier-item img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

/* Product page responsive */
@media (max-width: 768px) {
  .coverage-detail-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 48px 20px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 16px;
  }
}

/* ==========================================================================
   Product Page Enhancements - Gradients and Visual Interest
   ========================================================================== */

/* Gradient background sections for visual interest */
.content-section--gradient {
  background: linear-gradient(135deg, rgba(0, 74, 143, 0.03) 0%, rgba(61, 170, 242, 0.06) 100%);
  margin: 0 calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
}

.content-section--gradient .content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-section--gradient-alt {
  background: linear-gradient(180deg, var(--brand-bg) 0%, rgba(120, 252, 254, 0.08) 50%, var(--brand-bg) 100%);
  margin: 0 calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
}

.content-section--gradient-alt .content-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* === Product Page Fixes === */

/* 1 & 2. Remove gaps around CTA section */
main:has(.cta-section:last-child) {
  padding-bottom: 0;
}

.content-section:has(+ .cta-section),
.content-section--alt:has(+ .cta-section) {
  margin-bottom: 0;
  padding-bottom: 48px;
}

/* 3. Blue gradient for FAQ section */
.content-section--gradient-blue {
  background: linear-gradient(to bottom left, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
  position: relative;
}

.content-section--gradient-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
}

.content-section--gradient-blue::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
}

.content-section--gradient-blue .content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-section--gradient-blue h2 {
  color: #fff;
  border-left-color: var(--accent-teal);
}

.content-section--gradient-blue .faq-item {
  background: rgba(255, 255, 255, 0.95);
}

.content-section--gradient-blue .faq-question {
  color: var(--brand-blue);
}

.content-section--gradient-blue .faq-answer p {
  color: #444;
}

/* LOC Reviews - Reviews slider embedded in product pages */
.reviews-loc {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.reviews-loc .reviews-heading {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  text-align: left;
}

.reviews-slider--loc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.reviews-slider--loc .review-slide {
  display: none;
  background: rgba(6, 18, 38, 0.55);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.reviews-slider--loc .review-slide.active {
  display: flex;
}

.reviews-slider--loc .review-slide:hover {
  box-shadow: 0 0 0 2px rgba(120, 252, 254, 0.8), 0 0 20px rgba(120, 252, 254, 0.5);
  transform: translateY(-2px);
}

.reviews-slider--loc .review-rating {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.reviews-slider--loc .review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviews-slider--loc .review-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent-teal);
}

.reviews-slider--loc .review-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.reviews-slider--loc .review-photo--placeholder svg {
  width: 24px;
  height: 24px;
}

.reviews-slider--loc .review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-slider--loc .review-author {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.reviews-slider--loc .review-rating {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
}

.reviews-slider--loc .review-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-loc .reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reviews-loc .reviews-google-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-teal);
}

.reviews-loc .reviews-google-link svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .reviews-slider--loc {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-slider--loc .review-slide:nth-child(3) {
    display: none;
  }
}

@media (max-width: 600px) {
  .reviews-slider--loc {
    grid-template-columns: 1fr;
  }

  .reviews-slider--loc .review-slide:nth-child(2),
  .reviews-slider--loc .review-slide:nth-child(3) {
    display: none;
  }

  .reviews-slider--loc .review-slide.active:first-child {
    display: flex;
  }
}

/* Reviews on light/white backgrounds */
.content-section .reviews-loc,
#about-links .reviews-loc,
#personal-lines .reviews-loc {
  border-top: 1px solid #e0e0e0;
}

.content-section .reviews-loc .reviews-heading,
#about-links .reviews-loc .reviews-heading,
#personal-lines .reviews-loc .reviews-heading {
  color: var(--brand-blue);
}

.content-section .reviews-slider--loc .review-slide,
#about-links .reviews-slider--loc .review-slide,
#personal-lines .reviews-slider--loc .review-slide {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: var(--text-body);
}

.content-section .reviews-slider--loc .review-slide:hover,
#about-links .reviews-slider--loc .review-slide:hover,
#personal-lines .reviews-slider--loc .review-slide:hover {
  box-shadow: 0 0 0 2px var(--brand-blue-light), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-section .reviews-slider--loc .review-author,
#about-links .reviews-slider--loc .review-author,
#personal-lines .reviews-slider--loc .review-author {
  color: var(--brand-blue);
}

.content-section .reviews-slider--loc .review-photo,
#about-links .reviews-slider--loc .review-photo,
#personal-lines .reviews-slider--loc .review-photo {
  border-color: var(--brand-blue-light);
}

.content-section .reviews-slider--loc .review-photo--placeholder,
#about-links .reviews-slider--loc .review-photo--placeholder,
#personal-lines .reviews-slider--loc .review-photo--placeholder {
  background: #e0e0e0;
  color: #999;
}

.content-section .reviews-loc .reviews-google-link,
#about-links .reviews-loc .reviews-google-link,
#personal-lines .reviews-loc .reviews-google-link {
  color: var(--brand-blue);
  border-color: var(--brand-blue-light);
}

.content-section .reviews-loc .reviews-google-link:hover,
#about-links .reviews-loc .reviews-google-link:hover,
#personal-lines .reviews-loc .reviews-google-link:hover {
  background: rgba(0, 74, 143, 0.08);
  border-color: var(--brand-blue);
}

/* 4. Spacing after hero */
.hero + .content-section,
.hero + .content-section--alt,
.hero + .content-section--gradient,
.hero + .content-section--gradient-blue {
  padding-top: 56px;
}

/* Full-width carriers section */
.carriers-section-full {
  margin: 0 calc(50% - 50vw);
  padding: 56px 32px;
  width: 100vw;
  background: #fff;
}

/* Space between heading and grid */
.carriers-section-full .carriers-grid-full,
.carriers-section-inner .carriers-grid-full {
  margin-top: 32px;
}

.carriers-section-full--gradient {
  background: linear-gradient(to top left, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  position: relative;
}

.carriers-section-full--gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
}

.carriers-section-full--gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
}

/* Comparison cards on gradient background */
.carriers-section-full--gradient h2 {
  color: #fff;
  border-left-color: var(--accent-teal);
}

.carriers-section-full--gradient > .content-inner > p {
  color: rgba(255, 255, 255, 0.9);
}

.carriers-section-full--gradient .content-note {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--accent-teal);
  border-radius: 8px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.carriers-section-full--gradient .content-note strong {
  color: #fff;
}

.carriers-section-full--gradient .content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.carriers-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.carriers-section-full h2,
.carriers-section-inner h2 {
  text-align: left;
}

.carriers-section-full .carriers-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  border-left: 4px solid var(--brand-blue-light);
  padding-left: 16px;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: normal;
}

.carriers-section-full--gradient .carriers-heading {
  color: #fff;
  opacity: 0.9;
}

.carriers-grid-full {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 180px));
  justify-content: center;
  gap: 16px;
}

.carriers-grid-full .carrier-item {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 1px solid #e2e2e7;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.carriers-grid-full .carrier-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 1px rgba(61, 170, 242, 0.4), 0 4px 16px rgba(0, 74, 143, 0.15);
}

.carriers-grid-full .carrier-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Comparison cards with flood sections */
.comparison-table--with-flood {
  gap: 32px;
}

.comparison-table--with-flood .comparison-col {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}

.comparison-col--ho6,
.comparison-col--master {
  border: 2px solid var(--accent-teal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Comparison card hover effects */
.comparison-col:hover {
  border-color: #78fcfe;
  box-shadow: 0 0 0 3px rgba(120, 252, 254, 0.3);
}

.comparison-col:hover h3 {
  border-color: #004A8F;
}

.comparison-col li:hover {
  background-color: rgba(0, 74, 143, 0.85);
  color: #fff;
}

.comparison-col li:hover::before {
  color: #78fcfe;
}

/* Reusable flood wave styles */
.flood-waves,
.comparison-wave {
  margin-top: auto;
  line-height: 0;
  margin-left: -24px;
  margin-right: -24px;
  position: relative;
  z-index: 1;
}

.flood-waves svg,
.comparison-wave svg {
  width: 100%;
  height: 32px;
  display: block;
}

.flood-section,
.comparison-flood {
  padding: 16px 24px 40px;
  margin: 0 -24px -24px;
  position: relative;
}

/* Two transparent layers to match the wave colors exactly */
.flood-section::before,
.flood-section::after,
.comparison-flood::before,
.comparison-flood::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.flood-section::before,
.comparison-flood::before {
  background: #78fcfe; /* Teal - same as back wave */
  opacity: 0.55;
}

.flood-section::after,
.comparison-flood::after {
  background: #3DAAF2; /* Light Blue - same as front wave */
  opacity: 0.55;
}

.flood-section-title,
.flood-section-text,
.flood-section h4,
.flood-section p,
.comparison-flood h4,
.comparison-flood p {
  position: relative;
  z-index: 1;
}

.flood-section-title,
.flood-section h4,
.comparison-flood h4 {
  font-size: 14px;
  font-weight: 600;
  color: #004A8F;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flood-section-title::before,
.flood-section h4::before,
.comparison-flood h4::before {
  content: '💧';
  font-size: 16px;
}

.flood-section-text,
.flood-section p,
.comparison-flood p {
  font-size: 14px;
  color: #003366;
  line-height: 1.5;
  margin: 0;
}

/* Product page responsive - carriers */
@media (max-width: 1024px) {
  .carriers-grid-full {
    grid-template-columns: repeat(5, minmax(0, 180px));
  }
}

@media (max-width: 768px) {
  .carriers-grid-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .carriers-section-full {
    padding: 32px 16px;
  }

  .content-section--gradient,
  .content-section--gradient-alt {
    padding: 32px 16px;
  }

  .comparison-table--with-flood {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .carriers-grid-full {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .carriers-grid-full .carrier-item {
    padding: 8px;
  }
}

/* ==========================================================================
   Reusable Product Page Section Classes
   ========================================================================== */

/* White section with proper padding */
.section-white {
  background: #ffffff;
  margin: 0 calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
}

.section-white .section-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Gradient A: Teal bottom-right → Navy top-left */
.section-gradient-a {
  background: linear-gradient(to top left, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
  position: relative;
}

.section-gradient-a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
}

.section-gradient-a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
}

/* Gradient B: Teal top-right → Navy bottom-left */
.section-gradient-b {
  background: linear-gradient(to bottom left, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 48px 32px;
  width: 100vw;
  position: relative;
}

.section-gradient-b::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
}

.section-gradient-b::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
}

/* CTA Section: Teal bottom-left → Navy top-right, top fade only */
.section-cta {
  background: linear-gradient(to top right, var(--accent-teal) 0%, var(--brand-blue) 40%, var(--brand-blue) 100%);
  color: #fff;
  margin: 0 calc(50% - 50vw);
  padding: 64px 32px;
  width: 100vw;
  text-align: center;
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
}

/* Section inner containers */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-inner--wide {
  max-width: 1120px;
}

/* Gradient section text overrides */
.section-gradient-a h2,
.section-gradient-b h2 {
  color: #fff;
  border-left-color: var(--accent-teal);
}

.section-gradient-a p,
.section-gradient-b p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   About Us Hero with Office Background
   ============================================ */
.hero--about {
  background-image: linear-gradient(135deg, rgba(0, 83, 129, 0.85), rgba(0, 74, 143, 0.9)), url('../images/strassman-insurance-office.jpg');
  background-size: cover;
  background-position: center;
}

/* ============================================
   Team Section Styles
   ============================================ */

.team-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  padding: 20px 24px 24px;
  text-align: center;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}

.team-title {
  font-size: 0.95rem;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-license {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.license-type {
  font-weight: 500;
}

.license-number {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.8rem;
  color: #666;
}

/* ============================================
   Map Section Styles
   ============================================ */

.map-section {
  margin-top: 48px;
  text-align: center;
}

.map-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-link {
  display: block;
  text-decoration: none;
}

.map-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.map-link:hover .map-container {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.map-container img {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 74, 143, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.map-link:hover .map-overlay {
  background: rgba(0, 74, 143, 0.7);
}

.map-overlay-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 24px;
  background: var(--accent-teal);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-link:hover .map-overlay-text {
  opacity: 1;
  transform: translateY(0);
}

.map-address {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.map-address strong {
  color: var(--navy);
}

/* ============================================
   Location Section Styles (About Us page)
   ============================================ */

.location-section {
  background: #fff;
  padding: 64px 24px;
}

.location-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .location-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.location-info h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin: 0 0 24px;
}

.location-address {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.location-address strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.location-contact {
  margin-bottom: 24px;
}

.location-contact p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.location-contact a {
  color: var(--brand-blue);
  text-decoration: none;
}

.location-contact a:hover {
  text-decoration: underline;
}

.location-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.location-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.location-map-link {
  display: block;
  position: relative;
}

.location-map-link img {
  display: block;
  width: 100%;
  height: auto;
}

.location-map-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  margin-top: -20px;
  background: #0097d5;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

.location-map-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #0097d5;
}

.location-map-label strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.location-map-label-rating {
  font-size: 0.8rem;
  color: #ffd700;
  letter-spacing: 1px;
}

.location-map-label-rating .star-partial {
  background: linear-gradient(90deg, #ffd700 70%, rgba(255, 255, 255, 0.4) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.location-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(120, 252, 254, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border 0.2s ease;
  border: 2px solid transparent;
}

.location-map-link:hover .location-map-overlay {
  background: rgba(120, 252, 254, 0.25);
  border-color: var(--accent-teal);
}

.location-map-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 24px;
  background: var(--brand-blue);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.location-map-link:hover .location-map-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Detail - About Us Page */
.hero-detail {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero-detail {
    font-size: 0.95rem;
  }
}

/* Team Intro Spacing */
.team-intro {
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
}

/* Contact Page Hero */
.hero--contact {
  background: linear-gradient(135deg, rgba(0, 74, 143, 0.9) 0%, rgba(0, 151, 213, 0.85) 100%),
              url('../images/phone-keyboard-coffee.webp') center/cover no-repeat;
  min-height: 280px;
  position: relative;
}

.hero--privacy {
  background: linear-gradient(135deg, rgba(0, 74, 143, 0.75) 0%, rgba(0, 151, 213, 0.7) 100%),
              url('../images/Dog-Glasses-Computer.webp') center 30%/cover no-repeat;
  min-height: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--terms {
  background: linear-gradient(135deg, rgba(0, 74, 143, 0.75) 0%, rgba(0, 151, 213, 0.7) 100%),
              url('../images/Dog-Tie-Computer.webp') center 55%/cover no-repeat;
  min-height: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--sitemap {
  background: linear-gradient(135deg, rgba(0, 74, 143, 0.75) 0%, rgba(0, 151, 213, 0.7) 100%),
              url('../images/Cat-Laptop-Black.webp') center/contain no-repeat;
  background-color: #ffffff;
  min-height: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--privacy .hero-layout,
.hero--terms .hero-layout,
.hero--sitemap .hero-layout {
  width: 100%;
}

/* Gradient fade from hero into white below */
.hero--contact::after,
.hero--privacy::after,
.hero--terms::after,
.hero--sitemap::after,
.hero--review::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, transparent, #f8fafc);
}

/* Contact Form Styles */
.contact-form-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.contact-form-inner h2 {
  text-align: center;
  margin-bottom: 8px;
}

.contact-form-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group .required {
  color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 3px rgba(0, 151, 213, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="file"] {
  padding: 10px;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: var(--brand-blue-light);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

/* Legal Content Pages (Privacy Policy, Terms) */
.legal-content {
  padding: 48px 0 64px;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-inner h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.35rem;
  color: var(--brand-blue);
}

.legal-inner h2:first-of-type {
  margin-top: 0;
}

.legal-inner h3 {
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--brand-text);
  font-weight: 600;
}

.legal-inner p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-inner ul {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.legal-inner li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-inner a {
  color: var(--brand-blue-light);
}

.legal-inner a:hover {
  text-decoration: underline;
}

/* Site Map Page */
.sitemap-content {
  padding: 48px 0 64px;
}

.sitemap-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.sitemap-section {
  margin-bottom: 40px;
}

.sitemap-section h2 {
  font-size: 1.35rem;
  color: var(--brand-blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-teal);
}

.sitemap-section h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 20px 0 12px;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-links li {
  padding: 4px 0;
}

.sitemap-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.sitemap-links a:hover {
  color: var(--brand-blue-light);
}

.sitemap-subsection {
  margin-left: 0;
  margin-bottom: 24px;
}

/* iMessage Section */
.imessage-section {
  background: #f8fafc;
}

.imessage-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.imessage-content h2 {
  margin-bottom: 16px;
}

.imessage-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.imessage-btn {
  display: inline-block;
  margin-top: 8px;
  transition: transform 0.2s, opacity 0.2s;
}

.imessage-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.imessage-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.imessage-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .imessage-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .imessage-image {
    order: -1;
  }
}

/* ==========================================================================
   Image Dimensions (prevents CLS)
   ========================================================================== */

/* iMessage button - aspect ratio 957:186 = 5.145 */
img[src*="iMessage-Dark"] {
  aspect-ratio: 957 / 186;
}

/* App Store badge - aspect ratio 120:40 = 3 */
img[src*="App-Store-Dark"] {
  aspect-ratio: 120 / 40;
}

/* Google Play badge - aspect ratio 180:53 = 3.4 */
img[src*="Google-Play-Store-Dark"] {
  aspect-ratio: 180 / 53;
}
