/* DSG Exterior Cleaning - Complete Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #1e3a5f;
    --gold: #d4af37;
    --accent: #2563eb;
    --dark: #0f172a;
    --gray: #475569;
    --light-gray: #f8fafc;
    --white: #ffffff;
}

body {
    /* Updated: emoji-safe font fallback for Edge/Windows */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Ensure headings inherit the emoji-safe stack too */
h1, h2, h3, h4, h5, h6 { font-family: inherit; }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

.cta-btn {
    background: var(--gold);
    color: var(--navy);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.cta-btn:hover {
    background: #c5a028;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

/* ============================================
   NAV DROPDOWN (Services) - FIXED for Edge
   - No “gap” between button and menu (prevents flicker)
   - No focus-within stickiness on desktop
   - Mobile opens only with .open
   ============================================ */

.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-caret {
  font-size: 12px;
  margin-left: 6px;
  opacity: 0.9;
}

/* Menu panel */
.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;              /* IMPORTANT: no gap */
  left: 0;
  min-width: 320px;
  max-height: 70vh;
  overflow: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  padding: 10px;
  z-index: 2000;
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 10px;       /* Visual spacing */
}

/* IMPORTANT: hover-bridge so the 10px visual spacing doesn't break hover */
@media (min-width: 768px) {
  .nav-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;           /* covers the “visual gap” */
    left: 0;
    right: 0;
    height: 10px;
  }
}

/* Desktop: open ONLY on hover (prevents Edge sticky focus) */
@media (min-width: 768px) {
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Dropdown links */
.nav-dropdown .dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.2;
}

.nav-dropdown .dropdown-menu li a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--navy);
}

/* Titles + divider */
.nav-dropdown .dropdown-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  padding: 10px 12px 6px;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 8px 8px;
}

/* Mobile: dropdown inline inside slide-out menu */
@media (max-width: 767px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 6px 0 0;
    max-height: none;
    min-width: 0;
    margin-top: 0;
  }

  .nav-dropdown .dropdown-menu { display: none !important; }
  .nav-dropdown.open .dropdown-menu { display: block !important; }

  .nav-dropdown .dropdown-menu li a {
    padding: 10px 0;
    border-radius: 0;
  }
}

/* Hero */
.hero {
    /* HERO IMAGE + your existing navy overlay (keeps your style) */
    background:
        linear-gradient(rgba(30,58,95,0.82), rgba(45,90,123,0.82)),
        url('hero-house-washing.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(212,175,55,0.1)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,133.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 18px 36px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

.btn-hero-primary:hover {
    background: #c5a028;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 18px 36px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--navy);
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
}

.trust-item {
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Why Choose Us */
.why-choose {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* Services */
.services-section {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--light-gray);
    padding: 32px 24px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212,175,55,0.2);
}

.service-card.highlighted {
    background: linear-gradient(135deg, var(--navy) 0%, #2d5a7b 100%);
    color: white;
}

.service-card.highlighted h3,
.service-card.highlighted p {
    color: white;
}

.service-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-cta {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.service-cta:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Bundles */
.bundles-section {
    background: var(--light-gray);
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10; /* Higher than pricing-note */
}

.bundle-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.bundle-card.featured {
    border: 3px solid var(--gold);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bundle-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.bundle-includes {
    margin: 20px 0;
}

.bundle-includes p {
    font-size: 15px;
    color: var(--gray);
    margin: 8px 0;
    padding-left: 8px;
}

.bundle-savings {
    background: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

.btn-bundle {
    display: block;
    background: var(--navy);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-bundle:hover {
    background: #2d5a7b;
    transform: translateY(-2px);
}

.pricing-note {
    background: #fef3c7;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.pricing-note p {
    font-size: 15px;
    color: var(--dark);
    margin: 0;
}

.pricing-note a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

/* Reviews */
.reviews-section {
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 32px;
}

.review-card {
    background: var(--light-gray);
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.review-stars {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    margin-bottom: 8px;
}

.review-author strong {
    display: block;
    font-size: 16px;
    color: var(--navy);
    font-weight: 700;
}

.review-author span {
    font-size: 13px;
    color: var(--gray);
}

.review-service {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.review-note {
    text-align: center;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
}

.review-note em {
    font-size: 13px;
    color: #92400e;
}

/* Veterans Highlight */
.veterans-highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.veterans-content h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
}

.veterans-offer {
    font-size: 20px;
    margin-bottom: 24px;
}

.btn-veterans {
    display: inline-block;
    background: white;
    color: #1e3a8a;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-veterans:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.veterans-fine-print {
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.9;
}

/* Service Area */
.service-area-section {
    background: var(--light-gray);
    padding: 80px 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 0; /* Remove any negative margin */
}

.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.county-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.county-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.towns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.towns-list span {
    background: var(--light-gray);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
}

/* Final CTA */
.final-cta {
    background: var(--navy);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative; /* Changed from absolute or fixed */
    z-index: 1; /* Keep it low so it doesn't overlap */
    margin-top: 60px; /* Add spacing from previous section */
}

.final-cta h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

.btn-cta-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 18px 36px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

.btn-cta-primary:hover {
    background: #c5a028;
    transform: translateY(-3px);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 18px 36px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--navy);
}

/* Utility Classes */
.text-center { text-align: center; }

.btn-primary-large {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary-large:hover {
    background: #2d5a7b;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.footer-description {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 767px) {
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center; /* keeps buttons centered */
    }

    .btn-hero-primary, .btn-hero-secondary,
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        max-width: 420px;
        box-sizing: border-box;
        text-align: center;
        line-height: 1.2;      /* prevents “split” look */
        white-space: normal;   /* allows clean wrap if needed */
        padding-left: 16px;    /* keeps text from feeling cramped */
        padding-right: 16px;
    }

    .cta-box .btn-cta-primary {
        display: inline-block;
        width: 100%;
        max-width: 420px;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* If the arrow is dropping alone, this keeps last word + arrow together */
    .btn-cta-primary {
        word-break: normal;
    }

    .bundle-card.featured {
        transform: scale(1);
    }
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1e3a5f;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Desktop - hide hamburger */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Desktop - show full nav links */
@media (min-width: 768px) {
    .nav-links {
        display: flex !important;
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        gap: 32px;
        padding: 0;
        box-shadow: none;
        overflow: visible;
    }

    .mobile-overlay {
        display: none !important;
    }
}

/* Mobile - show hamburger and slide-out menu */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .nav-container {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100dvh;
        -webkit-overflow-scrolling: touch;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        overscroll-behavior: contain;
        padding-bottom: 40px;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
    }

    .nav-links.active {
        left: 0;
        display: flex;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 0 0 20px 0;
        list-style: none;
    }

    .nav-links li a {
        font-size: 18px;
        padding: 12px 0;
        display: block;
        color: #1e3a5f;
    }

    .cta-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}
