@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d3b28;
    /* Dark Green from logo */
    --primary-light: #165c3e;
    --accent-color: #c5a059;
    /* Gold */
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --background-light: #ffffff;
    --background-off-white: #f9fafb;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ... existing nav styles ... */
/* Standardize nav items alignment */
.nav-links>li {
    position: relative;
    padding: 1.5rem 0;
}



.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block !important;
    /* Override flex */
    padding: 0.8rem 1.5rem !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--background-off-white);
    color: var(--primary-color) !important;
    padding-left: 2rem !important;
    /* Slide effect */
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(13, 59, 40, 0.7), rgba(13, 59, 40, 0.5)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-top: 80px;
    /* Offset for fixed header */
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Services Preview */
.services-preview {
    background-color: var(--background-off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.service-info {
    padding: 2rem;
}

.service-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Why Choose Us */
.why-us {
    background-color: var(--primary-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    margin-top: 80px;
    /* Offset for fixed header */
    padding: 6rem 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

/* Contact Strip */
.cta-strip {
    background: var(--accent-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-strip h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #082418;
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info img {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-links h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Embedded Service Form */
.service-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    border-top: 4px solid var(--accent-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
    /* Visual adjustment */
}

/* Content Sidebar Grid */
.content-sidebar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Responsive */
@media (max-width: 900px) {
    .content-sidebar-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Scoped responsiveness for specific pages */
    .responsive-page .section-padding {
        padding: 2.5rem 0;
        /* Reduced from 5rem or 3rem */
    }

    .responsive-page .container {
        padding: 0 1rem;
    }

    /* Global responsive adjustments */
    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--background-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }

    /* Mobile Menu Improvements */
    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 0.5rem;
        max-height: 200px;
        /* Fixed height for scrollbar */
        overflow-y: auto;
        border-left: 2px solid var(--accent-color);
        margin-left: 1rem;
    }

    .nav-links .dropdown-item {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
        border: none;
    }

    /* Scrollbar Styling for Dropdown */
    .nav-links .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-links .dropdown-menu::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .nav-links .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Keep hero sizing adjustment only for responsive pages if desired, or global? 
       User said service pages "keep as before". Service pages used to have large fonts/spacing. 
       I will scope hero changes too just in case. */
    .responsive-page .hero-content h1 {
        font-size: 2.5rem;
    }

    .responsive-page .hero-content p {
        font-size: 1rem;
    }

    .responsive-page .hero-content .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .responsive-page .hero-content .btn-outline {
        background-color: rgba(0, 0, 0, 0.5);
        /* Semi-transparent background for visibility */
        border-color: #fff;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col-grid,
    .three-col-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {

    /* Scoped adjustments */
    .responsive-page .hero {
        margin-top: 60px;
        height: auto;
        min-height: 70vh;
        /* Reduced height */
        padding: 3rem 0;
    }

    .responsive-page .hero-content h1 {
        font-size: 2rem;
    }

    .responsive-page .section-padding {
        padding: 2rem 0;
        /* Further reduced */
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-links {
        top: 60px;
        /* Match new header height if needed, keeping 80px for now */
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}