@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ===== COLOR SWATCHES ===== */
.color-row {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 24px !important;
  justify-items: center;
  max-width: 640px;
  margin: 40px auto 0;
}
@media (max-width: 768px) {
  .color-row { grid-template-columns: repeat(5, 1fr) !important; gap: 12px !important; }
}

/* ===== URGENCY BAR ===== */
.urgency-bar {
  background: #111;
  color: white;
  text-align: center;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 990;
}
.urgency-bar .countdown-timer {
  font-size: 18px;
  font-weight: 800;
  color: #22c55e;
  letter-spacing: .05em;
}
/* Push main content below urgency bar on all pages */
body:has(.urgency-bar) main { padding-top: 112px !important; }
@media (max-width: 420px) {
  .urgency-bar { font-size: 12px; padding: 10px 8px; }
  .urgency-bar .countdown-timer { font-size: 14px; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: #334155; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== BRAND COLORS ===== */
:root {
  --brand-dark: #1A4D6F;
  --brand-mid: #29709A;
  --brand-accent: #61B1B7;
}

/* ===== NAV ===== */
.mobile-call-link { display: none; }

.nav-link {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-mid); }
.dropdown-item {
  display: block;
  padding: 10px 18px;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: #f8fafc; color: var(--brand-mid); }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #94a3b8;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: var(--brand-mid); color: white; }
.footer-link {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--brand-accent); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-mid);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: white; }
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-teal:hover { background: var(--brand-mid); }

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section-alt { background: #f8fafc; }
.container { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: rgba(41,112,154,.1);
  color: var(--brand-mid);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: #64748b;
  max-width: 640px;
  line-height: 1.7;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.65) 0%, rgba(15,23,42,.55) 50%, rgba(15,23,42,.70) 100%);
  transition: opacity 0.6s ease;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 780px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(97,177,183,.2);
  border: 1px solid rgba(97,177,183,.4);
  color: var(--brand-pale);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span { color: var(--brand-accent); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.stars { color: #fbbf24; font-size: 16px; letter-spacing: 2px; }

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.product-card-img { width: 100%; height: 220px; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.product-card-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-mid);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}
.product-card-link:hover { gap: 10px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  padding: 48px 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ===== CERTIFICATION CARDS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}
.cert-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}
.cert-img:hover { filter: none; }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: #1e293b; font-size: 15px; }
.review-text { color: #475569; font-size: 14px; line-height: 1.65; }

.review-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.review-ba-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.review-ba-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.review-ba-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.review-ba-label--after {
  background: rgba(34,197,94,.75);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  background: white;
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
  transition: background 0.15s;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover { background: #f8fafc; }
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 400px;
  padding: 0 22px 18px;
}
.faq-icon { transition: transform 0.3s; flex-shrink: 0; }
.faq-icon.open { transform: rotate(180deg); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  color: white;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,20,38,.55);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; color: #1e293b; margin-bottom: 6px; font-size: 14px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus { border-color: var(--brand-mid); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ===== TECH SECTION ===== */
.tech-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.tech-badge img { height: 20px; width: auto; }

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
}
.feature-title { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.feature-text { font-size: 14px; color: #64748b; line-height: 1.6; }

.badge-break { display: inline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: calc(100vh - 112px); }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-ba-item img { height: 140px; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(15,23,42,.72) 0%, rgba(15,23,42,.62) 50%, rgba(15,23,42,.77) 100%) !important; }
  .badge-break { display: block; }
  .hero-title { font-size: 20px; }
  .hero-stars { font-size: 18px !important; letter-spacing: 2px !important; }
  .hero-trust span:last-child { font-size: 12px !important; }
  .product-card-body > div { gap: 18px !important; }
  .desktop-nav { display: none !important; }
  .mobile-nav-btn { display: flex !important; }
  .mobile-call-link { display: flex; }
  .mobile-call-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1A4D6F;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr !important; }
  .section { padding: 56px 20px; }
  .page-hero { padding: 100px 20px 60px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== INTEGRATION LOGOS ===== */
.integration-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.integration-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #334155;
}
.checklist li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: var(--brand-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== SERVICE AREA CARDS ===== */
.area-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-left: 4px solid var(--brand-mid);
}
.area-card h3 { font-size: 16px; font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; }
.area-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.area-list li { font-size: 14px; color: #64748b; padding: 2px 0; }

/* ===== HERO CROSSFADE ===== */
.hero {
  transition: background-image 0s;
}
.hero-fade-out { opacity: 0; }
.hero-fade-in  { opacity: 1; }

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 90px; /* above the mobile CTA bar */
  right: 16px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: white;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .scroll-top-btn { display: flex; }
}

/* ===== MOBILE FOOTER CTA BAR ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
.mobile-cta-bar a,
.mobile-cta-bar button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  box-sizing: border-box;
}
.mobile-cta-call {
  background: var(--brand-dark);
  color: white;
}
.mobile-cta-form {
  background: #22c55e;
  color: #000;
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 74px; }

  /* Push GHL chat widget above mobile CTA bar */
  #chat-widget-container,
  .chat-widget-container,
  [id*="chat-widget"],
  [class*="chat-widget"] {
    bottom: 84px !important;
  }
}

/* ===== POPUP MODAL ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.popup-overlay.open { display: flex; }
.popup-box {
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}
.popup-close:hover { color: #1e293b; }
