/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    --primary-color: #2C5F2D; /* Forest Green */
    --primary-dark: #1E4620;
    --secondary-color: #F4A261; /* Saffron Gold */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f8f5; /* Slight green tint */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 12px 32px rgba(0,0,0,0.06);
    --shadow-lg: 0 24px 48px rgba(0,0,0,0.09);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

/* Section Headings */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-title .highlight {
    color: var(--primary-color);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition-slow);
    background-color: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.logo-text .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-bg);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-fast);
}

.navbar:not(.scrolled):not(.inner-nav) .nav-links a,
.navbar:not(.scrolled):not(.inner-nav) .logo-text,
.navbar:not(.scrolled):not(.inner-nav) #mobile-menu-toggle {
    color: var(--dark-bg); /* Always dark on light background */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

#mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-bg);
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

/* ==========================================================================
   Hero Split Section
   ========================================================================== */
.hero-split {
    display: flex;
    min-height: 100vh;
    padding-top: 120px; /* Accounts for navbar */
    background-color: var(--light-bg);
    overflow: hidden;
    position: relative;
}

.hero-split-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    z-index: 2;
}

.hero-split-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-split-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-image-mask {
    position: absolute;
    top: 5%;
    right: 5%;
    bottom: 5%;
    left: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-parallax {
    width: 120%;
    height: 120%;
    object-fit: cover;
    transform: translate(-10%, -10%);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
    width: 100%;
    transition: var(--transition-slow);
}

.about-img-wrap:hover img {
    transform: scale(1.05);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 30px;
    border-radius: 50%;
    text-align: center;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 8px solid #fff;
}

.about-experience .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.about-experience .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features-list {
    margin-top: 30px;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

/* ==========================================================================
   Services/Products Section
   ========================================================================== */
.bg-light {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-desc {
    color: #aaa;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #aaa;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-bottom {
    background-color: #111;
    padding: 25px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
}

.footer-legal a {
    color: #888;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: #fff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.gs-reveal-up, .process-panel {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gs-reveal-up.is-visible, .process-panel.is-visible, .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Inner Pages (About, Contact, Products)
   ========================================================================== */
.page-header {
    padding: 150px 0 80px;
    background-color: var(--dark-bg);
    color: #fff;
    text-align: center;
    position: relative;
    background-image: linear-gradient(rgba(26,26,26,0.8), rgba(26,26,26,0.8)), url('https://images.unsplash.com/photo-1558024920-b41e1887dc32?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Advanced Custom Layouts (Overhaul)
   ========================================================================== */

/* Stats Counter */
.stats-section {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    display: block;
}

/* Process Section (Vertical Grid) */
.process-section-wrapper {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-header h2 {
    font-size: 3rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.process-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.process-panel:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.panel-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(44, 95, 45, 0.05);
    line-height: 1;
    position: absolute;
    top: -10px;
    right: 20px;
}

.process-panel h3 {
    font-size: 1.5rem;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.process-panel p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.panel-img {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: auto; /* Aligns to bottom */
}

.panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.process-panel:hover .panel-img img {
    transform: scale(1.1);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition-slow);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

.navbar.scrolled, .navbar.inner-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.bento-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.bento-content h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.bento-content p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Grid Spans */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-text {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: left;
}
.bento-text h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.bento-text p {
    color: rgba(255,255,255,0.9);
}

/* CTA Parallax */
.cta-parallax {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.cta-bg-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.cta-parallax-img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    transform: translateY(-20%);
}

.cta-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 70, 32, 0.85); /* Dark green overlay */
    z-index: -1;
}

.cta-content h2 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding: 80px 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-slow);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    #mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-experience {
        right: 10px;
        bottom: 10px;
        width: 120px;
        height: 120px;
        padding: 20px;
    }
    
    .about-experience .years {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Nav & Headers */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Hero Fixes */
    .hero-split {
        flex-direction: column;
        height: auto;
        padding-top: 120px;
    }
    .hero-split-left, .hero-split-right {
        width: 100%;
    }
    .hero-split-left {
        padding: 40px 20px 20px 20px;
    }
    .hero-split-right {
        height: 400px;
        padding: 0 20px 40px 20px;
    }
    .hero-image-mask {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Stats & Counters */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-item h3[style] { /* Targets the + and % signs */
        font-size: 2.5rem !important;
    }
    .stat-label {
        font-size: 0.9rem;
    }
    
    .process-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Bento Grid Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large, .bento-tall, .bento-small, .bento-text {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 250px;
        height: auto;
    }
    .bento-text {
        padding: 30px 20px;
    }
}
