/* ============================================
   ALEX LAWN CARE - STYLESHEET
   Compatible with Bootstrap 5
============================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* ── ROOT VARIABLES ── */
:root {
    --green-dark:   #1a4d1a;
    --green-main:   #2d6a2d;
    --green-light:  #4caf50;
    --green-soft:   #e8f5e9;
    --accent:       #f9a825;
    --text-dark:    #1c1c1c;
    --text-muted:   #666;
    --white:        #ffffff;
    --shadow-sm:    0 4px 15px rgba(0,0,0,0.08);
    --shadow-md:    0 12px 30px rgba(0,0,0,0.15);
    --shadow-lg:    0 20px 50px rgba(0,0,0,0.2);
    --radius:       12px;
    --transition:   0.3s ease;
}

/* ── BASE & OVERFLOW FIX ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* Fix Bootstrap row negative margins */
.row {
    --bs-gutter-x: 1.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

section {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── NAVBAR ── */
.navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.4rem 0;
    transition: all var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--green-main) !important;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--green-main) !important;
    background: var(--green-soft);
}

/* ── NAVBAR LOGO ── */
.navbar-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: #1a4d1a;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-llc {
    font-family: 'Bebas Neue', sans-serif;
    color: #f9a825;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.btn-call {
    background: #2d6a2d;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.btn-call:hover {
    background: #1a4d1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45,106,45,0.4);
}

/* ── HERO SECTION ── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 6s ease-in-out forwards;
}

@keyframes kenBurns {
    0%   { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 40, 10, 0.85) 0%,
        rgba(10, 40, 10, 0.6) 50%,
        rgba(10, 40, 10, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(249,168,37,0.15);
    border: 1px solid rgba(249,168,37,0.4);
    color: #f9a825;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    background: var(--accent);
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249,168,37,0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: #f57f17;
    transform: translateY(-3px);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* Truck */
.hero-truck {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5));
    opacity: 0;
    transform: translateX(150px) scale(0.85);
}

.hero-truck.truck-entered {
    animation: truckEnter 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes truckEnter {
    0%   { opacity: 0; transform: translateX(150px) scale(0.85); }
    40%  { opacity: 1; }
    75%  { transform: translateX(-12px) scale(1.01); }
    90%  { transform: translateX(5px) scale(0.99); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-truck.truck-idle {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: truckFloat 4s ease-in-out infinite;
}

@keyframes truckFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.slider-dot.active {
    background: #f9a825;
    transform: scale(1.4);
}

/* ── SECTION BASE ── */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--green-dark);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

.section-header {
    position: relative;
    padding-bottom: 1.5rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-main), var(--accent));
    border-radius: 2px;
}

/* ── SERVICE CARDS OVERLAY ── */
.service-card-overlay {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-overlay:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-overlay:hover .service-card-img {
    transform: scale(1.1);
}

.service-card-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,40,10,0.95) 0%, rgba(10,40,10,0.5) 50%, rgba(10,40,10,0.1) 100%);
    display: flex;
    align-items: flex-end;
    transition: background 0.4s ease;
}

.service-card-overlay:hover .service-card-overlay-content {
    background: linear-gradient(to top, rgba(10,40,10,0.97) 0%, rgba(10,40,10,0.75) 60%, rgba(10,40,10,0.3) 100%);
}

.service-card-inner {
    padding: 1.5rem;
    width: 100%;
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    transition: margin 0.3s ease;
}

.service-card-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #f9a825;
    border-radius: 2px;
    margin-top: 0.4rem;
    transition: width 0.3s ease;
}

.service-card-overlay:hover .service-card-title { margin-bottom: 0.5rem; }
.service-card-overlay:hover .service-card-title::after { width: 70px; }

.service-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.3s ease;
}

.service-card-btn {
    display: inline-block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: #f9a825;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.service-card-overlay:hover .service-card-desc {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 0.75rem;
}

.service-card-overlay:hover .service-card-btn {
    max-height: 40px;
    opacity: 1;
}

.service-card-btn:hover { color: #ffca28; }

/* ── ABOUT SECTION ── */
.about-image {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* ── STATS ── */
.stat-card {
    background: var(--green-soft);
    border-radius: var(--radius);
    padding: 1.25rem 0.5rem;
    transition: all var(--transition);
}

.stat-card:hover {
    background: var(--green-main);
    transform: translateY(-5px);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label {
    color: var(--white);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green-main);
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: color var(--transition);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

/* ── GALLERY CAROUSEL ── */
.gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 2rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-carousel.dragging { cursor: grabbing; scroll-behavior: auto; }

.gallery-slide {
    flex: 0 0 340px;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.gallery-slide:hover { transform: translateY(-6px) scale(1.02); }

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.gallery-slide:hover img { transform: scale(1.08); }

.gallery-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,40,10,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-slide:hover .gallery-slide-overlay { background: rgba(10,40,10,0.5); }

.gallery-zoom-icon {
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.gallery-slide:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(249,168,37,0.9);
    color: #1a1a1a;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-nav:hover { background: #f9a825; transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

/* ── LIGHTBOX ── */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-close:hover { color: #f9a825; }

.lightbox-prev, .lightbox-next {
    background: rgba(249,168,37,0.8);
    border: none;
    color: #1a1a1a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lightbox-prev:hover, .lightbox-next:hover { background: #f9a825; transform: scale(1.1); }

.lightbox-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ── TESTIMONIALS ── */
#testimonials { background: var(--green-soft); }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    border-top: 4px solid var(--green-light);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent);
}

.quote-icon {
    font-size: 4rem;
    color: var(--green-light);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-main), var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-name { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.author-role { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ── CONTACT SECTION ── */
#contact {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    color: var(--white);
}

#contact .section-title { color: var(--white); }
#contact .section-subtitle { color: rgba(255,255,255,0.75); }
#contact .section-header::after { background: linear-gradient(90deg, var(--accent), var(--white)); }

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition);
}

.contact-info-card:hover { background: rgba(255,255,255,0.15); }

.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; }

.contact-info-content h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-info-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin: 0;
}

.contact-form-wrapper {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-wrapper .form-control,
/* ── Fix Select Color ── */
.contact-form-wrapper .form-select {
    color: #333 !important;
    background-color: #fff !important;
}

.contact-form-wrapper .form-select option {
    color: #333 !important;
    background-color: #fff !important;
}
.contact-form-wrapper .form-control::placeholder { color: rgba(255,255,255,0.5); }

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,168,37,0.2);
    color: var(--white);
}

.contact-form-wrapper .form-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* ── SERVICE AREA MAP ── */
#service-area { background: #f8f9fa; }

#map {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #e8f5e9;
}

.coverage-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #1a4d1a;
    letter-spacing: 1px;
}

.coverage-list { display: flex; flex-direction: column; gap: 1rem; }

.coverage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 4px solid #2d6a2d;
    transition: box-shadow 0.3s ease;
}

.coverage-item:hover { box-shadow: 0 4px 15px rgba(45,106,45,0.15); }
.coverage-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.coverage-item h6 { font-weight: 700; color: #1a4d1a; margin: 0 0 2px 0; font-size: 0.95rem; }
.coverage-item p { font-size: 0.8rem; color: #888; margin: 0; }

/* ── FOOTER ── */
footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

footer h5 { color: var(--white); font-weight: 700; margin-bottom: 1rem; }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: 1rem; }
.footer-text { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }

footer a, .footer-links a, .footer-contact a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.9rem;
}

footer a:hover { color: var(--accent); }

.footer-links li { margin-bottom: 0.5rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }

.footer-bottom {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ── UTILITIES ── */
.text-green { color: var(--green-main); }
.bg-green   { background-color: var(--green-main); }

.btn-green {
    background: var(--green-main);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-green:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ── SCROLL TO TOP ── */
#scrollTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--green-main);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 999;
}

#scrollTop:hover { background: var(--green-dark); transform: translateY(-3px); }
#scrollTop.show { display: flex; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .hero-truck { max-width: 85%; margin: 0 auto; }
    .hero-overlay {
        background: rgba(10, 40, 10, 0.75);
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 70px 0; }
    .hero-title      { font-size: 2.2rem; }
    .stat-number     { font-size: 1.4rem; }
    #map             { height: 320px; }
    .gallery-slide   { flex: 0 0 260px; height: 200px; }
    .lightbox-img    { max-width: 95vw; }
}

@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; }
    .btn-hero-primary,
    .btn-hero-outline { width: 100%; text-align: center; }
}
