/* ====================================
   CSS Variables - Design System
   ==================================== */

:root {
    /* Primary Colors */
    --forest-green: #2D5016;
    --earth-brown: #6B4423;
    --moss-green: #4A7C59;

    /* Secondary Colors */
    --light-sage: #8FA998;
    --sand-beige: #E8DCC4;
    --sunset-orange: #D97D3A;
    --sunset-orange-hover: #C06A2A;

    /* Neutral Colors */
    --off-white: #FAF8F3;
    --charcoal: #3A3A3A;
    --light-gray: #E5E5E5;
    --white: #FFFFFF;

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    /* Spacing */
    --section-padding-desktop: 80px;
    --section-padding-tablet: 60px;
    --section-padding-mobile: 40px;

    --container-padding-desktop: 40px;
    --container-padding-tablet: 32px;
    --container-padding-mobile: 20px;

    /* Container */
    --container-max-width: 1200px;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ====================================
   Reset & Base Styles
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--off-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sunset-orange);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

a:hover {
    text-decoration: underline;
    color: var(--sunset-orange-hover);
}

/* ====================================
   Typography
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 48px;
    color: var(--forest-green);
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 36px;
    color: var(--forest-green);
    font-weight: 700;
}

h3 {
    font-size: 28px;
    color: var(--earth-brown);
    font-weight: 600;
}

h4 {
    font-size: 22px;
    color: var(--earth-brown);
    font-weight: 600;
}

/* ====================================
   Layout Utilities
   ==================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-desktop);
}

.section-padding {
    padding: var(--section-padding-desktop) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ====================================
   Buttons
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--sunset-orange);
    color: var(--off-white);
    box-shadow: 0 2px 8px rgba(217, 125, 58, 0.3);
}

.btn-primary:hover {
    background: var(--sunset-orange-hover);
    box-shadow: 0 4px 12px rgba(217, 125, 58, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background: var(--moss-green);
    color: var(--off-white);
}

.btn-secondary:hover {
    background: #3A6C49;
    text-decoration: none;
}

.btn-cta {
    background: var(--sunset-orange);
    color: var(--off-white);
    padding: 12px 24px;
    border-radius: 6px;
}

.btn-cta:hover {
    background: var(--sunset-orange-hover);
    text-decoration: none;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ====================================
   Navigation Bar
   ==================================== */

.navbar {
    background: var(--forest-green);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo h1 {
    color: var(--off-white);
    font-size: 24px;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--off-white);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-sage);
    border-bottom-color: var(--light-sage);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--off-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ====================================
   Hero Section with Carousel
   ==================================== */

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Carousel Container */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    color: var(--white);
    font-size: 56px;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--off-white);
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
    pointer-events: auto;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--white);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-base);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* ====================================
   Service Cards
   ==================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    text-align: left;
}

.service-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--forest-green);
    font-size: 28px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--charcoal);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--charcoal);
    line-height: 1.8;
}

.card-link {
    color: var(--sunset-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    text-decoration: underline;
}

.arrow {
    transition: var(--transition-fast);
}

.card-link:hover .arrow {
    transform: translateX(4px);
}

/* ====================================
   Why Us Section
   ==================================== */

.why-us {
    background: var(--sand-beige);
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/IMG_3599.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

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

.feature-card {
    text-align: left;
    padding: 32px 20px;
}

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

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

.feature-card p {
    font-size: 15px;
    color: var(--charcoal);
}

/* ====================================
   Statistics Section
   ==================================== */

.statistics {
    background: var(--forest-green);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ====================================
   Gallery Section
   ==================================== */

.gallery-preview {
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ====================================
   Contact CTA Section
   ==================================== */

.contact-cta {
    background: var(--forest-green);
    color: var(--white);
    text-align: center;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

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

/* ====================================
   Footer
   ==================================== */

.footer {
    background: var(--forest-green);
    color: var(--off-white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    color: var(--off-white);
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--sunset-orange);
    text-decoration: none;
}

.footer-col h4 {
    color: var(--off-white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--off-white);
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-sage);
    text-decoration: none;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-contact a {
    color: var(--off-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.footer-legal a {
    color: var(--off-white);
    opacity: 0.8;
}

.footer-legal span {
    opacity: 0.5;
}

/* ====================================
   Responsive Design
   ==================================== */

/* Tablet (640px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--container-padding-tablet);
    }

    .section-padding {
        padding: var(--section-padding-tablet) 0;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .hero-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        gap: 60px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--container-padding-mobile);
    }

    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    /* Navigation - Mobile */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--forest-green);
        flex-direction: column;
        padding: 40px 20px;
        gap: 24px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Carousel Navigation - Mobile */
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-nav {
        padding: 0 10px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Statistics */
    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* Tablet Navigation (768px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
        font-size: 15px;
    }
}
