﻿/* CSS Variables */
:root {
    --primary-color: #2E7D32;
    /* Eco Green */
    --primary-dark: #1B5E20;
    --secondary-color: #0D47A1;
    /* Industrial Blue */
    --accent-color: #FF6F00;
    /* Safety Orange */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-bg: #F3F4F6;
    --border-color: #E5E7EB;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-caption {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
    left: 30px;
}

.slider-arrow-right {
    right: 30px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    cursor: pointer; /* clickable affordance */
}

.scroll-indicator svg {
    opacity: 0.8;
}

.scroll-indicator:hover {
    transform: translateY(-4px);
    transition: transform 180ms ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--primary-color);
    background: linear-gradient(to right, #4CAF50, #81C784);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.vision-mission-grid {
    display: grid;
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.mission-card {
    border-left-color: var(--secondary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-light);
}

.service-card li {
    margin-bottom: 8px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.info-item {
    margin-bottom: 25px;
}

.info-item .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item .value {
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    margin: 0;
    font-size: 0.95rem;
}

.separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* FAQ (dl/dt/dd) styles - append to styles.css */

/* Container */
#faq .faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: block;
    padding: 0;
    border-radius: 12px;
    gap: 12px;
}

/* Each question (dt) */
#faq .faq-list dt {
    list-style: none;
    margin: 0 0 1px 0;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

/* Hover / focus */
#faq .faq-list dt:hover,
#faq .faq-list dt:focus {
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    transform: translateY(-2px);
}

/* Plus/minus icon (pure CSS) */
#faq .faq-list dt::after {
    content: '+';
    font-size: 20px;
    line-height: 1;
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Answer (dd) collapsed by default using max-height for animation */
#faq .faq-list dd {
    margin: 0;
    padding: 0 22px;
    background: transparent;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.32s ease, padding 0.32s ease;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

/* When question is active — use a class 'open' on dt to expand.
   Example JS: dt.classList.toggle('open') or on parent .open applied.
*/
#faq .faq-list dt.open {
    background: linear-gradient(90deg, rgba(46,125,50,0.06), rgba(13,71,161,0.02));
    border-color: rgba(46, 125, 50, 0.12);
    color: var(--text-dark);
}

#faq .faq-list dt.open::after {
    content: '−';
    color: var(--primary-color);
    transform: rotate(0deg);
}

/* Make the following sibling dd expand when dt has .open */
#faq .faq-list dt.open + dd {
    padding: 14px 22px 20px;
    max-height: 420px; /* large enough for typical answers */
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

/* Typography tweaks inside dd */
#faq .faq-list dd p,
#faq .faq-list dd > * {
    margin: 0 0 12px 0;
    color: var(--text-light);
    font-size: 1rem;
}

/* Small screens */
@media (max-width: 768px) {
    #faq .faq-list dt,
    #faq .faq-list dt.open + dd {
        padding-left: 16px;
        padding-right: 16px;
    }

    #faq .faq-list dt {
        font-size: 1rem;
        padding: 14px 16px;
    }

    #faq .faq-list dd {
        font-size: 0.97rem;
    }
}

/* Accessibility: focus-visible outline */
#faq .faq-list dt:focus-visible {
    outline: 3px solid rgba(46, 125, 50, 0.14);
    outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow-left {
        left: 15px;
    }

    .slider-arrow-right {
        right: 15px;
    }

    .slide-caption {
        font-size: 0.9rem;
        padding: 10px 20px;
        bottom: 80px;
    }

    .scroll-indicator {
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }
}

/* Testimonials Section (append to styles.css) */
#testimonials {
    background: linear-gradient(180deg, rgba(243,244,246,0.6) 0%, rgba(255,255,255,0.6) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Card */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(16,24,40,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16,24,40,0.08);
    border-color: rgba(46,125,50,0.08);
}

/* Quote */
.testimonial-quote {
    font-style: normal;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 18px;
    position: relative;
    padding-left: 8px;
    font-size: 1rem;
}

/* Decorative large quote mark */
.testimonial-quote::before {
    content: "“";
    font-size: 40px;
    line-height: 1;
    color: rgba(13,71,161,0.08);
    position: absolute;
    left: -8px;
    top: -10px;
    font-weight: 700;
}

/* Meta (avatar + name/role) */
.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(46,125,50,0.12);
    flex-shrink: 0;
}

.meta-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.98rem;
}

.meta-role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 3px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .testimonials-grid {
        gap: 18px;
    }

    .testimonial-card {
        padding: 20px;
        min-height: 200px;
    }

    .avatar {
        width: 48px;
        height: 48px;
        font-size: 0.95rem;
    }
}

/* WhatsApp floating button (image icon) - append to styles.css */
.whatsapp-button {
    position: fixed;
    right: 20px; /* offset from Tawk widget on desktop */
    bottom: 24px;
    z-index: 2200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.18);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    cursor: pointer;
    will-change: transform;
}

    .whatsapp-button img {
        width: 22px;
        height: 22px;
        display: block;
        flex-shrink: 0;
        object-fit: contain;
        /* If your SVG is monochrome and needs to become white, uncomment next line:
       filter: invert(1) brightness(1.0);
       Otherwise keep the SVG colored and leave filter off. */
    }

.whatsapp-label {
    display: inline-block;
    line-height: 1;
    color: #fff;
}

/* Hover / focus states */
.whatsapp-button:hover,
.whatsapp-button:focus {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(37, 211, 102, 0.22);
    outline: none;
}

.whatsapp-button:active {
    transform: translateY(-2px) scale(0.99);
}

/* Accessibility focus ring */
.whatsapp-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14), 0 10px 30px rgba(16,24,40,0.08);
    border-radius: 999px;
}

/* Small screens: reduce offset and hide label to save space */
@media (max-width: 480px) {
    .whatsapp-button {
        right: 14px;
        bottom: 18px;
        padding: 18px;
    }

    .whatsapp-label {
        display: none;
    }
}

/* Gallery Section */
#gallery .gallery-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

#gallery .filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

    #gallery .filter-btn.active,
    #gallery .filter-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: transparent;
        transform: translateY(-2px);
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.gallery-item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(16,24,40,0.04);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

    .gallery-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
    }

    .gallery-item figcaption {
        padding: 14px;
        color: var(--text-dark);
    }

    .gallery-item h4 {
        margin-bottom: 6px;
        font-size: 1.05rem;
        color: var(--secondary-color);
    }

    .gallery-item p {
        margin: 0;
        color: var(--text-light);
        font-size: 0.95rem;
    }

    /* hover */
    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(16,24,40,0.06);
    }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    padding: 20px;
}

    .lightbox[aria-hidden="false"] {
        display: flex;
    }

.lightbox-content {
    max-width: 1100px;
    width: 100%;
    background: transparent;
    text-align: left;
    color: var(--white);
}

.lightbox img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.lightbox-caption {
    margin-top: 12px;
    background: rgba(0,0,0,0.35);
    padding: 12px;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive tweaks */
@media (max-width:600px) {
    .gallery-item img {
        height: 140px;
    }

    .lightbox-content {
        max-width: 900px;
    }
}