/* CLIPPED TO PERFECTION - PROFESSIONAL LANDSCAPING WEBSITE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a5f;
    --accent-blue: #4a90e2;
    --primary-green: #2d7a3e;
    --accent-green: #5cb85c;
    --dark-bg: #1e3a5f;
    --dark-overlay: rgba(30, 58, 95, 0.85);
    --light-gray: #f8f9fa;
    --border-gray: #ccc;
    --white: #fff;
    --text-dark: #242424;
}

body {
    font-family: 'Muli', -apple-system, sans-serif;
    color: #242424;
    line-height: 1.6;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* TOP BAR - Blue with address */
.top-bar {
    background: var(--primary-blue);
    border: 0;
    padding: 15px 0;
    margin: 0;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left p {
    color: var(--white);
    font-size: 14px;
    margin: 0;
}

.top-bar-left strong,
.top-bar-left a {
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
}

.top-bar-center {
    text-align: center;
    color: var(--white);
    font-size: 14px;
}

.top-bar-right {
    text-align: right;
}

.top-bar-right p {
    color: var(--white);
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.top-bar-right .call-now {
    font-size: 18px;
}

.top-bar-right a {
    color: var(--accent-green);
    font-weight: bold;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: var(--white);
}

/* HEADER - Blue navigation */
.header {
    background: rgba(45, 122, 62, 0.4) !important;
    box-shadow: 0 3px 11px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    margin: 0;
    border: 0;
    z-index: 1000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 86px;
    width: auto;
    min-width: 200px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    padding: 15px 15px;
    display: block;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-green);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.header-homeadvisor {
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.header-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.btn-header {
    background: #1e3a5f;
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-header:hover {
    background: #2d4a6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

/* HERO SECTION - Full width with background */
.hero {
    background: url('../images/hero-bg.webp') center top/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 425px 65px 250px;
    margin-top: -150px;
    padding-top: 575px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-no-overlay::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-family: 'Muli', sans-serif;
    font-size: 62px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero p {
    font-size: 24px;
    color: var(--white);
    font-weight: bold;
    text-shadow: 2px 2px 2px #000;
    margin-bottom: 20px;
}

.hero-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
}

.hero-btn {
    background: var(--dark-bg);
    color: var(--white);
    padding: 12px 26px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: var(--light-gray);
}

/* SECTIONS */
.section {
    padding: 100px 65px;
}

.section-gray {
    background: #f1f1f1;
}

.section-dark {
    background: url('../images/home3.webp') center/cover;
    position: relative;
    color: var(--white);
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.section-dark .container {
    position: relative;
    z-index: 2;
}

.section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.section h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.section h2 a:hover {
    text-decoration: underline;
}

.section p {
    text-align: center;
    margin-bottom: 30px;
}

/* SERVICE GRID */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.service-item {
    text-align: center;
}

.service-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.service-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-image:hover img {
    transform: scale(1.1);
}

.service-item h4 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 22px;
}

.service-item p {
    text-align: center;
}

/* WHY CHOOSE US GRID */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.why-item {
    text-align: center;
}

.why-item h4 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--accent-green);
}

/* SERVICE AREA MAP */
.map-section {
    padding: 100px 65px;
    background: url('../images/home4.webp') center/cover;
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.map-section .container {
    position: relative;
    z-index: 2;
}

.map-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.map-section p {
    color: var(--white);
    margin-bottom: 40px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.review-item {
    text-align: left;
}

.stars {
    color: #ffac33;
    font-size: 24px;
    margin-bottom: 15px;
}

.review-text {
    line-height: 1.5;
    margin-bottom: 15px;
}

.reviewer {
    font-weight: bold;
}

/* CTA SECTION */
.cta-box {
    background: #f1f1f1;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 60px 0;
}

.cta-box p {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-cta {
    background: var(--accent-green);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

.btn-cta:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 184, 92, 0.4);
}

/* FOOTER */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 100px 65px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer p,
.footer li {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-green);
}

.footer ul {
    list-style: none;
}

.payment-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 50px;
    height: 32px;
    background: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--primary-blue);
}

.hours-list p {
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

/* FLOATING CONTACT BUTTON WITH POPUP */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(92, 184, 92, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(92, 184, 92, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(92, 184, 92, 0.6);
    }
}

.floating-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
}

.contact-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 280px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s;
    border-top: 4px solid var(--accent-green);
}

.floating-contact.active .contact-popup {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.contact-popup h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.contact-popup a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    background: var(--accent-blue);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    margin: 10px 0;
    font-weight: 600;
}

.contact-popup a i {
    font-size: 20px;
}

.contact-popup a:hover {
    background: var(--primary-blue);
    transform: translateX(5px);
}

.contact-popup a.call-btn {
    background: var(--accent-green);
}

.contact-popup a.call-btn:hover {
    background: var(--primary-green);
}

.contact-popup a.email-btn {
    background: var(--accent-blue);
}

.contact-popup a.email-btn:hover {
    background: var(--primary-blue);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .hero {
        padding: 100px 20px;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .service-grid,
    .why-grid,
    .reviews-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 60px 20px 30px !important;
    }
    
    .footer-content > div {
        text-align: center;
    }
    
    .footer h3 {
        text-align: center;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav a {
        text-align: center;
    }
    
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .floating-btn i {
        font-size: 30px;
    }
}

/* PAGE HEADER - For internal pages */
.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d7a3e 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
}

/* Override main nav styles for dropdown */
.main-nav .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-green);
    min-width: 280px;
    max-width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
    flex-direction: column;
}

.dropdown:hover > .dropdown-menu {
    display: flex !important;
}

.dropdown-menu li {
    display: block;
    width: 100%;
    list-style: none;
}

.dropdown-menu a {
    padding: 12px 20px !important;
    font-size: 13px !important;
    text-transform: none !important;
    display: block !important;
    white-space: normal !important;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.15) !important;
    padding-left: 25px !important;
}

.dropdown-menu a::after {
    display: none !important;
}



/* ---------------------------
   MOBILE HAMBURGER NAV
---------------------------- */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
}

.nav-toggle:focus {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.nav-toggle-bars {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: #fff;
}

.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after  { top: 8px; }

@media (max-width: 968px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  
  /* Ensure header stays transparent on mobile */
  .header {
    background: rgba(45, 122, 62, 0.4) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
  }
  
  .header-content {
    position: relative;
  }

  .header-content {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .logo img { height: 60px; min-width: 0; }

  .main-nav {
    display: none;
    width: 100%;
    order: 10;
    background: rgba(45, 122, 62, 0.98);
    border-radius: 0;
    overflow: hidden;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  .header.header--open .main-nav { display: block; }

  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav a { 
    padding: 14px 16px; 
    text-align: left;
  }
  
  .main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav .dropdown-menu {
    position: static !important;
    max-width: none !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .main-nav .dropdown-menu a {
    padding-left: 32px !important;
  }
  
  .main-nav .dropdown.dropdown--open > .dropdown-menu {
    display: block !important;
    max-height: 1000px;
  }

  .dropdown.dropdown--open > .dropdown-menu { display: flex !important; }
}


/* ---------------------------
   SERVICE AREAS (MOBILE FIX)
---------------------------- */
.service-areas-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(45, 122, 62, 0.95) 100%);
  padding: 40px 50px;
  border-radius: 15px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 968px) {
  .service-areas-card { padding: 22px 18px; }
  .service-areas-grid { grid-template-columns: 1fr; }
  
  /* Remove gap between consecutive section-dark elements */
  .section-dark + .section-dark {
    margin-top: -100px;
  }
  
  /* Remove gap between map-section and section-gray */
  .map-section + .section.section-gray {
    margin-top: -100px !important;
    padding-top: 0px !important;
  }
  
  /* Reduce section padding on mobile */
  .section {
    padding: 60px 20px;
  }
  
  /* Fix hero to show behind transparent header on mobile */
  .hero {
    margin-top: -150px !important;
    padding-top: 350px !important;
    padding-bottom: 100px !important;
  }
  
  .hero h1 {
    font-size: 36px !important;
  }
  
  .hero p {
    font-size: 18px !important;
  }
}


/* ---------------------------
   REVIEWS (MOBILE FIX)
---------------------------- */
.reviews-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 968px) {
  .reviews-cards { grid-template-columns: 1fr; }
  
  /* Fix bio/team section on mobile */
  .section-dark > .container > div[style*="grid-template-columns"] {
    display: block !important;
  }
  
  .section-dark > .container > div > div {
    margin-bottom: 40px;
  }
  
  /* Center the circular team photo and constrain size */
  .section-dark > .container > div > div[style*="text-align: center"] {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
  }
  
  .section-dark > .container > div > div[style*="text-align: center"] > div {
    width: 280px !important;
    height: 280px !important;
    margin: 0 auto !important;
  }
  
  .section-dark h2 {
    font-size: 28px !important;
    text-align: center;
  }
  
  .section-dark p {
    font-size: 16px !important;
  }
  
  .section-dark a {
    display: block !important;
    text-align: center;
    margin: 0 auto !important;
    max-width: 250px;
  }
}


/* Safety net: prevent accidental horizontal page scroll on mobile */
html, body { overflow-x: hidden; }


@media (max-width: 968px) {
  .footer { padding: 60px 20px 30px; }
}


@media (max-width: 968px) {
  .hero { padding: 110px 20px; }
}

/* Hide "Get A Free Estimate" button in HEADER on mobile only */
@media (max-width: 968px) {
  .header .header-cta,
  .header .btn-header {
    display: none !important;
  }
}



/* TEAM BIO SECTION ON HOME PAGE */
@media (max-width: 968px) {
    .section > .container > div[style*="grid-template-columns: 400px"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .section > .container > div > div[style*="width: 350px"] {
        width: 250px !important;
        height: 250px !important;
    }
}

/* SMOOTH SCROLL FOR ANCHOR LINKS */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}


/* Success page mobile optimization */
@media (max-width: 968px) {
  /* Make success heading smaller on mobile to prevent wrapping */
  section[style*="home3.jpg"] h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    padding: 0 10px !important;
  }
  
  /* Ensure success card has proper padding on mobile */
  section[style*="home3.jpg"] .container > div {
    padding: 40px 20px !important;
  }
}
