/* ============ 7th Generation — shared styles ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f8fa;
  font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  color: #14263c;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: #123a63; }
a:hover { color: #c8102e; }
img { max-width: 100%; }

/* ---------- Buttons & links ---------- */
.btn-red {
  background: #c8102e; color: #ffffff; text-decoration: none; font-weight: 700;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s;
}
.btn-red:hover { background: #a30d26; color: #ffffff; }
.btn-ghost {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #ffffff;
  text-decoration: none; font-weight: 700; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #ffffff; }
.btn-outline-navy {
  background: #ffffff; border: 1.5px solid #123a63; color: #123a63; text-decoration: none;
  font-weight: 700; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.btn-outline-navy:hover { background: #123a63; color: #ffffff; }
.link-footer { color: #9fb4cc; text-decoration: none; }
.link-footer:hover { color: #ffffff; }
.link-crumb { color: #9fb4cc; text-decoration: none; }
.link-crumb:hover { color: #ffffff; }
.link-claim { color: #ffffff; text-decoration: none; }
.link-claim:hover { color: #ff5a5f; }
.link-more { color: #123a63; text-decoration: none; }
.link-more:hover { color: #c8102e; }
.card-service {
  transition: box-shadow .15s, transform .15s;
  box-shadow: 0 1px 2px rgba(13,28,46,.04), 0 8px 20px -6px rgba(13,28,46,.10);
}
.card-service:hover { box-shadow: 0 14px 32px -6px rgba(13,28,46,.16); transform: translateY(-2px); color: #14263c; }
.btn-text-short { display: none; }

/* ---------- Utility bar ---------- */
.utility { background: #0d1c2e; color: #ffffff; font-size: 14px; }
.utility-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
}
.u-group { display: flex; align-items: center; gap: 20px; }
.utility .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; display: inline-block;
  box-shadow: 0 0 0 0 rgba(62,207,110,.6);
  animation: dot-pulse 2.4s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(62,207,110,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(62,207,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); }
}
@media (prefers-reduced-motion: reduce) {
  .utility .dot { animation: none; }
}
.utility a { color: #ffffff; font-weight: 700; text-decoration: none; }
.utility a:hover { color: #ff5a5f; }

/* ---------- Header ---------- */
.site-header { background: #ffffff; border-bottom: 1px solid #e4e8ee; position: sticky; top: 0; z-index: 50; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 4px 24px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #14263c; flex-shrink: 0; }
.brand:hover { color: #14263c; }
.site-nav {
  display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px;
  flex-wrap: wrap; justify-content: center;
}
.site-nav a { text-decoration: none; color: #14263c; }
.site-nav a:hover { color: #c8102e; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 15px; color: #14263c;
  display: flex; align-items: center; gap: 5px;
}
.nav-dropdown-toggle:hover { color: #c8102e; }
.nav-dropdown-caret { font-size: 11px; transition: transform .15s; }
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: #ffffff; border: 1px solid #e4e8ee; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13,28,46,.14); padding: 8px; min-width: 230px;
  flex-direction: column; gap: 2px; z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  color: #14263c; text-decoration: none; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: #eef4fb; color: #c8102e; }
.header-ctas { display: flex; align-items: center; gap: 12px; }
.call-stack { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.15; white-space: nowrap; }
.btn-cta { font-size: 15px; padding: 12px 22px; white-space: nowrap; }
.nav-toggle { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-media { order: -1; }
  .hero-ctas { flex-wrap: nowrap !important; gap: 10px !important; }
  .hero-ctas a { flex: 1 1 0; padding: 14px 10px !important; font-size: 15px !important; white-space: nowrap; }
  .btn-text-full { display: none; }
  .btn-text-short { display: inline; }
  .hero-checks { gap: 8px 14px !important; font-size: 12.5px !important; flex-wrap: nowrap !important; justify-content: center; }
  .hero-text { text-align: center; }
  .hero-ctas { justify-content: center; }
}
@media (max-width: 1100px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; flex-direction: column; align-items: stretch;
    padding: 4px 24px 12px; gap: 0; font-size: 16px;
    border-bottom: 1px solid #e4e8ee; box-shadow: 0 16px 32px rgba(13,28,46,.14);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 13px 2px; border-bottom: 1px solid #eef1f5; }
  .site-nav > a:last-child { border-bottom: none; }
  .nav-dropdown { border-bottom: 1px solid #eef1f5; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 2px; font-size: 16px; }
  .nav-dropdown-menu {
    display: none; position: static; transform: none; box-shadow: none; border: none;
    border-radius: 0; padding: 0 0 10px 14px; min-width: 0; background: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { padding: 10px 2px; font-size: 15px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid #d5dce5; border-radius: 8px; cursor: pointer; flex-shrink: 0;
  }
  .nav-toggle span { display: block; height: 2px; background: #14263c; border-radius: 1px; }
}
@media (max-width: 760px) {
  .u-hide-sm { display: none; }
  .call-stack { display: none; }
  .header-inner { padding: 4px 16px; gap: 12px; }
  .btn-cta { font-size: 14px; padding: 10px 14px; }
}
@media (max-width: 600px) {
  /* Header must fit ~320px: swap Schedule button for a phone button */
  .btn-cta { display: none; }
  .btn-phone-sm { display: flex; width: 44px; height: 44px; font-size: 19px; flex-shrink: 0; }
  .header-ctas { gap: 10px; }
}
@media (max-width: 640px) {
  .hero-badge {
    left: 12px !important; right: 12px; bottom: -18px !important;
    padding: 12px 16px !important;
  }
  /* Center just the brand logos when the strip stacks on mobile */
  .brand-logos { width: 100%; justify-content: center; }
}

/* ============ Estimate / contact form ============ */
.estimate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.estimate-form .field-full { grid-column: 1 / -1; }
.form-control {
  width: 100%;
  border: 1.5px solid #d5dce5; border-radius: 8px;
  padding: 13px 16px; font-size: 16px;
  font-family: 'Barlow', sans-serif; color: #0d1c2e; background: #ffffff;
}
.form-control::placeholder { color: #8794a5; }
.form-control:focus {
  outline: none; border-color: #123a63;
  box-shadow: 0 0 0 3px rgba(18, 58, 99, .12);
}
textarea.form-control { resize: vertical; }
select.form-control {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2214%22 height=%2214%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%234b5b70%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><polyline points=%226 9 12 15 18 9%22/></svg>');
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
select.form-control:invalid { color: #8794a5; }
/* City / State / ZIP row */
.field-csz { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) {
  .estimate-form { grid-template-columns: 1fr; }
  .field-csz { grid-template-columns: 1fr 1fr; }
  .field-csz .field-city { grid-column: 1 / -1; }
}
