/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary: #1e3a8a;
    /* Deep Navy Blue */
    --primary-dark: #1e293b;
    --accent: #22c55e;
    /* Fresh Green for Gardening/Success */
    --accent-hover: #16a34a;
    --text: #334155;
    /* Slate 700 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg: #f8fafc;
    /* Very light slate bg */
    --white: #ffffff;

    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 5rem 0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1e40af;
    /* slightly lighter navy */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
    background-color: var(--accent);
    color: var(--white);
    border: none;
}

.btn-full:hover {
    background-color: var(--accent-hover);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--accent);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 140px;
    /* Increased top padding for better spacing */
    padding-bottom: 100px;
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.7)), url('hero-logo.png.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: white;
    overflow: hidden;
    position: relative;
    min-height: 80vh;
    /* Ensure it takes up most of the screen */
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Centered layout since image is background */
    gap: 2rem;
    align-items: center;
    text-align: center;
    max-width: 800px;
    /* Limit width for readability */
    margin: 0 auto;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    /* Light slate for readability on dark */
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    color: var(--accent);
}

.stat-label {
    color: #cbd5e1;
}

/* Hide original image container since it's now background */
.hero-image-container {
    display: none;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    padding: var(--section-padding);
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-list {
    margin-top: 1.5rem;
}

.service-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text);
}

/* =========================================
   ABOUT / FEATURES
   ========================================= */
.about {
    padding: var(--section-padding);
    background: #0f172a;
    /* Dark Navy Background */
    color: white;
}

.about-content h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #94a3b8;
    /* Slate 400 */
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg);
    transition: background 0.3s;
}

.contact-item:hover {
    background: #e2e8f0;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.contact-item .value {
    font-weight: 600;
    color: var(--primary);
}

/* Form */
.contact-form {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: white;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    text-align: center;
}

.footer-brand h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        /* Reduce side padding on mobile */
        --section-padding: 3rem 0;
        /* Reduce vertical spacing */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        /* Adjust for smaller navbar if needed */
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: 1.5rem;
        text-align: center;
        /* Center links */
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
        /* Ensure above menu */
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--primary);
        position: absolute;
        transition: 0.3s;
    }

    .mobile-menu-btn span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-btn span:nth-child(2) {
        top: 9px;
    }

    .mobile-menu-btn span:nth-child(3) {
        top: 18px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    /* Fix Grid Overflow on small screens */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        /* Force 1 column */
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* Hero override styles are in index.html, this is fallback/reset */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}