/* ======== 1. Variables & Global Styles ======== */
:root {
    /* -- NEW: ELEGANT DARK GREEN THEME -- */
    --bg-dark-green: #1F3A23;     /* Main background */
    --bg-content-box: #2A4B2F;   /* Lighter green for cards/sections */
    --text-primary: #E0EFE3;     /* Off-white, soft text */
    --text-secondary: #AECAB1;   /* Muted gray-green for paragraphs */
    --accent-green: #76C753;     /* Bright, fresh green for CTAs */
    --border-color: #3D5F44;     /* Subtle border for separation */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15); /* For modal only */
    
    --border-radius: 8px;
    --border-radius-pill: 50px;

    /* -- NEW: Smooth transitions (removes lag) -- */
    --transition-fast: all 0.2s ease-out;
    --transition-smooth: all 0.3s ease-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16.5px;
    scroll-padding-top: 80px; 
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-secondary); /* Default text is secondary */
    background-color: var(--bg-dark-green);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary); /* Headings are primary bright text */
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; max-width: 70ch; } /* Limit line length for readability */
a { text-decoration: none; color: var(--accent-green); transition: var(--transition-fast); }
a:hover { filter: brightness(1.2); }
img { max-width: 100%; height: auto; border-radius: var(--border-radius); display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* ======== 2. Buttons (NEW PRO STYLES) ======== */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn:focus,
.btn:active {
    outline: none;
    box-shadow: none;
}

/* Primary Button: Bright Green Fill */
.btn-primary {
    background-color: var(--accent-green);
    color: var(--bg-dark-green);
    border-color: var(--accent-green);
    font-weight: 700;
}
.btn-primary:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    transform: scale(1.05); 
}

/* Secondary Button: Outline Style */
.btn-secondary {
    background-color: transparent;
    color: var(--accent-green);
    border-color: var(--accent-green);
}
.btn-secondary:hover {
    background-color: var(--accent-green);
    color: var(--bg-dark-green);
    font-weight: 700;
}

/* Tertiary Button: Simple Link */
.btn-tertiary {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-green);
    padding: 0;
    background: transparent;
}
.btn-tertiary:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* ======== 3. Header & Navigation (DARK THEME) ======== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    background: rgba(31, 58, 35, 0.85); /* Dark transparent background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#main-header.scrolled {
    background: rgba(31, 58, 35, 0.85);
    padding: 0.5rem 0;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; }
.logo img { height: 100px; border-radius: 0; }
.logo-text { /* Fallback */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links li a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

/* Nav Contact button (white outline) */
#main-header .btn-secondary {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
#main-header .btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-dark-green);
}
.nav-links li .btn {
    padding: 0.50rem 2.2rem; /* <-- REDUCED PADDING */
}

.nav-links li .btn::after {
    /* Removes the green underline from the button */
    display: none;
}

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }

/* ======== 4. Hero Section ======== */
#hero {
    height: 98vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    padding: 0;
    background-image: url('./pictures/b.jpeg');
    background-size: cover;
    background-position: center;
    /* REMOVED: background-attachment: fixed; -- This caused the lag */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for better text contrast */
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.25rem; color: var(--text-primary); opacity: 0.9; margin-bottom: 2.5rem; }
.hero-content .btn { margin: 0 0.5rem; }

/* Hero "Book Visit" btn (white outline) */
#hero .btn-secondary {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
#hero .btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-dark-green);
}

/* ======== 5. Welcome & Stats Section ======== */
#welcome {
    padding-top: 6rem;
    padding-bottom: 6rem;
    text-align: center;
}

#stats {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 0;
    margin-bottom: 5rem;
}

.stat-item h3 { font-size: 2.8rem; color: var(--accent-green); margin-bottom: 0.5rem; }
.stat-item p { font-family: var(--font-heading); font-weight: 600; color: var(--text-primary); margin-bottom: 0; }

.welcome-content { max-width: 900px; margin: 0 auto 5rem; }
.welcome-content h2 { margin-bottom: 1.5rem; }
.welcome-content p { margin-left: auto; margin-right: auto; }

.key-benefits { display: flex; justify-content: space-around; text-align: center; gap: 2rem; margin-top: 4rem; }
.benefit-item { flex-basis: 30%; padding: 1.5rem; }
.benefit-item i { font-size: 3rem; color: var(--accent-green); margin-bottom: 1.5rem; }
.benefit-item h4 { font-size: 1.3rem; color: var(--text-primary); }
.benefit-item p { font-size: 0.95rem; margin-bottom: 0; }

/* ======== 6. Services Section (NEW DARK CARD DESIGN) ======== */
#services {
    background: var(--bg-content-box); /* Lighter green section */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-dark-green);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex; /* <-- ADD THIS */
    flex-direction: column; /* <-- ADD THIS */
}
.service-card:hover {
    border-color: var(--accent-green);
    transform: scale(1.03); /* Subtle, smooth hover */
}
.service-card .card-image img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; border-bottom: 1px solid var(--border-color); }
.service-card .card-content {
    padding: 2rem;
    display: flex; /* <-- ADD THIS */
    flex-direction: column; /* <-- ADD THIS */
    flex-grow: 1; /* <-- ADD THIS */
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* <-- ADD THIS */
}

/* ======== 7. Unique Services Section (Timeline) ======== */
#unique-services {
    /* Sits on main dark background */
}
.timeline { position: relative; max-width: 800px; margin: 2rem auto; padding: 2rem 0; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--border-color);
    border-radius: 4px;
}
.timeline-item { padding: 1rem 0; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; padding-right: 4rem; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 4rem; text-align: left; }
.timeline-node {
    position: absolute;
    top: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--accent-green);
    border: 4px solid var(--bg-dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark-green);
    font-size: 1.5rem;
    z-index: 10;
}
.timeline-item:nth-child(odd) .timeline-node { right: -25px; }
.timeline-item:nth-child(even) .timeline-node { left: -25px; }

.timeline-content {
    padding: 1.5rem 2rem;
    background: var(--bg-content-box);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition-fast);
}
.timeline-content:hover { border-color: var(--accent-green); }
.timeline-content h3 { margin-top: 0; }
.timeline-content p { margin-bottom: 0; font-size: 0.95rem; }
.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}
.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bg-content-box);
}
.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-content-box) transparent transparent;
}

/* ======== 8. Quality Section (No Lag) ======== */
#quality {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    color: var(--text-primary);
    background-image: url('https://via.placeholder.com/1920x600/2E7D32/ffffff?text=Add+Close-up+Leaf+Image');
    background-size: cover;
    background-position: center;
    /* REMOVED: background-attachment: fixed; -- This caused the lag */
}
.quality-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 58, 35, 0.85); /* Dark green overlay */
    z-index: 1;
}
.quality-content { position: relative; z-index: 2; max-width: 800px; }
.quality-content h2 { color: var(--text-primary); font-size: 2.5rem; }
.quality-content p { color: var(--text-primary); font-size: 1.1rem; margin-bottom: 0; opacity: 0.9; margin-left: auto; margin-right: auto; }

/* ======== 9. About Us Section ======== */
#about {
    background: var(--bg-content-box);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.about-flex-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-image { flex-basis: 40%; }
.about-image img { border-radius: 50%; border: 8px solid var(--bg-content-box); }
.about-content { flex-basis: 60%; }
.about-content .section-title { text-align: left; margin-bottom: 1rem; }
.about-content .section-title::after { margin: 0.5rem 0 0; }
.about-content h3 { font-size: 1.8rem; color: var(--accent-green); margin-bottom: 1rem; }
.about-content p { max-width: 100%; }

/* ======== 10. Footer & CTA ======== */
#footer {
    padding: 6rem 0 2rem;
    margin-top: 0;
    text-align: center; /* Center all footer content by default */
}

/* New Integrated CTA */
.footer-cta {
    margin-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5rem;
}
.footer-cta h2 { font-size: 2.5rem; color: var(--text-primary); }
.footer-cta p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-secondary); }
.btn-large { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* Main Footer Content */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: left; /* Re-align for columns */
}
.footer-col { flex-basis: 22%; min-width: 200px; }
.footer-col h3 { font-size: 1.8rem; color: var(--text-primary); }
.footer-col h4 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 1.5rem; position: relative; }
.footer-col h4::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent-green);
    position: absolute;
    left: 0;
    bottom: -5px;
}
.footer-col p, .footer-col ul li a, .footer-col p a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}
.footer-col ul li a:hover, .footer-col p a:hover {
    color: var(--text-primary);
}
.footer-col p > i {
    margin-right: 0.75rem;
    color: var(--accent-green);
    width: 20px;
    text-align: center;
    display: inline-block; /* <-- ADD THIS */
}

.social-links { 
    display: flex;
    gap: 1rem; 
    margin-top: 1.5rem; 
}
.social-links a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.social-links a:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--bg-dark-green);
    transform: scale(1.1);
}

.footer-bottom { 
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color); 
    padding-top: 2rem; 
}
.footer-bottom p { margin-bottom: 0; font-size: 0.9rem; }
.footer-bottom .fa-heart { color: #e25555; }

/* ======== 11. Contact Modal (DARK MODE) ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-content-box);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-content h3 { font-size: 1.8rem; color: var(--text-primary); }
.modal-btn { display: block; width: 100%; margin: 1rem 0; font-size: 1.1rem; }
.modal-btn i { margin-right: 0.75rem; }
/* Modal secondary button */
.modal-content .btn-secondary {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.modal-content .btn-secondary:hover {
    background: var(--accent-green);
    color: var(--bg-dark-green);
}

/* ======== 12. Responsiveness ======== */

/* --- Tablet (max-width: 992px) --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .about-flex-container { flex-direction: column; text-align: center; }
    .about-image { max-width: 300px; }
    .about-content .section-title { text-align: center; }
    .about-content .section-title::after { margin-left: auto; margin-right: auto; }
    .about-content p { margin-left: auto; margin-right: auto; }

    /* --- ROBUST FOOTER FIX (TABLET) --- */
    .footer-content {
        gap: 2rem;
        justify-content: center;
        text-align: center;
    }
    .footer-col {
        flex-basis: 45%;
        min-width: 250px;
    }
    .footer-col h4::after { margin: 0.5rem auto 0; }
    .social-links { justify-content: center; }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    section { padding: 4rem 0; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0; /* <-- Ensure this is 0 */
        max-height: 0;
        overflow: hidden;
        background: transparent;
        transition: all 0.4s ease-out;
    }
    .nav-links.active {
        max-height: 500px;
        background: var(--bg-content-box); /* <-- ADD THIS */
        padding: 1rem 0; /* <-- ADD THIS */
        border-bottom: 1px solid var(--border-color); /* <-- ADD THIS */
    }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { display: block; padding: 1rem 1.5rem; }
    .nav-links li a::after { display: none; }
    .nav-links .btn { margin: 0.5rem 1.5rem; }
    .nav-toggle { display: flex; z-index: 10; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .logo img {
        height: 65px; /* Makes logo smaller on mobile */
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-content .btn { display: block; margin: 1rem auto; width: 80%; }
    
    #stats { flex-direction: column; gap: 3rem; margin-bottom: 3rem; }
    .key-benefits { flex-direction: column; gap: 3rem; }
    .service-grid { grid-template-columns: 1fr; }
    
    /* --- Timeline Responsiveness (FIXED) --- */
    .timeline::before { left: 25px; transform: translateX(0); }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;                 
        text-align: left;       
        padding-left: 4.5rem;   
        padding-right: 1rem;     
    }
    .timeline-node,
    .timeline-item:nth-child(odd) .timeline-node,
    .timeline-item:nth-child(even) .timeline-node {
        left: 0;                
        right: auto;            
        top: 1.5rem;
        transform: translateX(0);
    }
    .timeline-content::after,
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;           
        right: auto;           
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--bg-content-box) transparent transparent;
    }

    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-col { flex-basis: 100%; width: 100%; }
    .footer-col h4::after {
        display: none; /* This hides the dash on mobile */
    }
}