:root {
    --primary: #386641;
    /* Eco green */
    --primary-light: #4c8a57;
    --secondary: #bcdaab;
    --text-dark: #1a1a1a;
    /* Charcoal */
    --text-light: #5e5e5e;
    --bg-color: #fcfcfc;
    /* Off-white */
    --bg-card: #ffffff;
    --border-subtle: #eaeaea;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Layout Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 102, 65, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 102, 65, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-dark);
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 42px;
    display: flex;
    align-items: center;
}

header.scrolled .top-bar {
    height: 0;
    opacity: 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-info {
    display: flex;
    gap: 2rem;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.top-social {
    display: flex;
    gap: 1.25rem;
}

.top-social a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.top-social a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid transparent;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 5%;
    transition: var(--transition);
}

header.scrolled .nav-container {
    padding: 0.85rem 5%;
}

.logo {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Mega Dropdown */
.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border-radius: var(--radius-md);
    width: max-content;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 100;
    border: 1px solid var(--border-subtle);
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-content {
    display: flex;
}

.mega-menu-section {
    padding-right: 3rem;
    min-width: 220px;
}

.mega-menu-section.border-left {
    padding-left: 3rem;
    border-left: 1px solid var(--border-subtle);
}

.mega-menu-section h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mega-menu-list a {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.mega-menu-list a span {
    font-size: 0.95rem;
}

.mega-menu-list a small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.2rem;
}

.mega-menu-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.mega-menu-promo {
    padding-left: 3rem;
    border-left: 1px solid var(--border-subtle);
    max-width: 300px;
}

.promo-card {
    background: #fdfdfd;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.promo-card img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.promo-content {
    padding: 1.25rem;
}

.promo-content h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.promo-content p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.promo-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-link:hover {
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #f0f5ed 0%, #fcfcfc 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Cinematic Hero Slider Overlay */
.hero.cinematic-hero {
    background: #111;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    /* initial scale for ken burns */
}

.bg-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: kenburns 12s ease-out forwards;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.content-light h1,
.content-light p {
    color: #fff;
}

.content-light p {
    opacity: 0.9;
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-indicators.modern-indicators {
    left: 5%;
    right: auto;
    bottom: 3rem;
}

.slider-indicators .indicator {
    width: 30px;
    height: 3px;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.slider-indicators.modern-indicators .indicator {
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-indicators .indicator.active,
.slider-indicators.modern-indicators .indicator.active {
    background-color: #fff;
    width: 45px;
}

.badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(56, 102, 65, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-white-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-white-outline:hover {
    background-color: #fff;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cards */
.card-product {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    height: 250px;
    width: 100%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card-product:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Feature Cards (Why Choose Us) */
.feature-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(56, 102, 65, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Masonry Gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: rgba(56, 102, 65, 0.1);
    font-family: serif;
    line-height: 1;
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eee;
    object-fit: cover;
}

.client-details h4 {
    margin: 0;
    font-size: 1rem;
}

.client-details span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 6rem 5%;
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 5%;
}

.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer-about {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-heading {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #999;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.875rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-card);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-img-wrap {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
        /* Hide top bar on mobile to save space */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-out;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }

    .hero .badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-img-wrap {
        position: relative;
        width: 100%;
        height: 40vh;
        margin-top: 2rem;
        justify-content: center;
    }

    .mega-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 1rem 0 0 1rem;
        flex-direction: column;
        display: none;
    }

    .mega-menu-content {
        flex-direction: column;
        gap: 2rem;
    }

    .mega-menu-section.border-left {
        border-left: none;
        padding-left: 0;
    }

    .has-dropdown.active .mega-menu {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .masonry-grid {
        column-count: 2;
    }

    .hero-content {
        padding-top: 5rem;
    }


    .cta-section {
        padding: 4rem 1.5rem;
        margin: var(--spacing-md) 1rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .floating-wa {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}