/* --- css/globals.css --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body, html {
    height: 100%;
    line-height: 1.7;
    font-family: 'DM Sans', sans-serif;
    color: #3A3532;
    background-color: #FCFAF5;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
header {
    background: rgb(89, 144, 86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: #451a1a; }

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #8C4A32;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Standard Sections */
section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
section h2 { font-size: 2.8rem; color: #4A6B4A; margin-bottom: 40px; text-align: center; }
section h2::after {
    content: ''; display: block; width: 60px; height: 3px;
    background-color: #8C4A32; margin: 15px auto 0;
}

.full-width-section { max-width: 100% !important; }
.content-wrapper { max-width: 1200px; margin: 0 auto; }
.narrow-wrapper { max-width: 800px; margin: 0 auto; }

/* Split Sections */
.split-section { display: flex; align-items: center; gap: 70px; }
.split-section .split-content, .split-section .split-image { flex: 1; }
.split-section .split-content h2 { text-align: left; }
.split-section .split-content h2::after { margin: 15px 0 0 0; }
.split-section .split-content p { font-size: 1.1rem; color: #5A5552; line-height: 1.8; margin-bottom: 15px; }
.split-section .split-image img {
    width: 100%; height: auto; border-radius: 2px;
    box-shadow: -20px 20px 0px #F4EFE6, -20px 20px 0px 1px #EAE1D3;
}

/* Core Parallax */
.parallax, .parallax-section, .parallax-footer {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.parallax-section { max-width: 100% !important; padding: 120px 5%; }
.parallax-section .content-wrapper { max-width: 1200px; margin: 0 auto; }
.parallax-section h2, .parallax-footer h2 {
    color: #FCFAF5; font-size: 2.8rem; margin-bottom: 40px; text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.parallax-section h2::after, .parallax-footer h2::after {
    content: ''; display: block; width: 60px; height: 3px;
    background-color: #EAE1D3; margin: 15px auto 0;
}

/* UI Cards */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.card {
    background: #FCFAF5; padding: 35px 25px; border: 1px solid #EAE1D3;
    border-top: 4px solid #8C4A32; border-radius: 4px; transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); text-align: left; display: block; min-height: auto;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(140, 74, 50, 0.1); }
.card h3 { color: #3A3532; margin-bottom: 15px; font-size: 1.5rem; }

/* Organic UI Cards */
#why-us .card, #testimonials .card {
    padding: 60px 45px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 350px; border: 1px solid rgba(140, 74, 50, 0.15); border-top: 1px solid rgba(140, 74, 50, 0.15);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); text-align: center;
}
#why-us .card:hover, #testimonials .card:hover {
    transform: translateY(-8px); box-shadow: 0 15px 40px rgba(140, 74, 50, 0.12);
    border-color: #8C4A32; background: #ffffff; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Organic Grid 5-Wide Desktop */
#why-us .wide-wrapper { max-width: 1600px !important; width: 95%; }
.why-5-grid {
    display: grid !important; grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important; align-items: stretch !important;
}
#why-us .card {
    padding: 30px 15px !important; min-height: 380px !important;
    display: flex !important; flex-direction: column !important;
    justify-content: center !important; align-items: center !important;
}
#why-us .card h3 { font-size: 1.15rem !important; line-height: 1.3; margin-bottom: 12px; }
#why-us .card p { font-size: 0.85rem !important; line-height: 1.5; margin: 0; }

#testimonials .card p { font-size: 0.95rem; line-height: 1.7; margin: 0; }
#testimonials .card p:first-of-type { font-style: italic; color: #5A5552; margin-bottom: 15px; }

/* Blog Cards */
.blog-card {
    position: relative; border-radius: 4px; overflow: hidden; height: 380px; cursor: pointer;
    border-top: 4px solid #8C4A32; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(58, 53, 50, 0.95) 0%, rgba(58, 53, 50, 0.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 25px; transition: background 0.4s ease;
}
.blog-overlay h3 { color: #FCFAF5; margin-bottom: 0; font-size: 1.6rem; transform: translateY(10px); transition: transform 0.4s ease, margin-bottom 0.4s ease; }
.blog-overlay p { font-size: 1rem; color: #EAE1D3; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease; }
.blog-card:hover img { transform: scale(1.08); }
.blog-card:hover .blog-overlay { background: linear-gradient(to top, rgba(58, 53, 50, 0.98) 0%, rgba(58, 53, 50, 0.6) 100%); }
.blog-card:hover .blog-overlay h3 { transform: translateY(0); margin-bottom: 12px; }
.blog-card:hover .blog-overlay p { max-height: 120px; opacity: 1; }

.blog-4-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 25px !important; }
.blog-4-grid .blog-card { height: 420px !important; }

/* FAQ */
.faq-item {
    background: #FCFAF5; margin-bottom: 20px; border: 1px solid #EAE1D3;
    border-radius: 40px 8px 40px 8px; transition: all 0.5s ease; overflow: hidden;
}
.faq-item:hover { border-color: #8C4A32; box-shadow: 0 10px 25px rgba(140, 74, 50, 0.06); border-radius: 8px 40px 8px 40px; }
.faq-question { padding: 25px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; color: #3A3532; transition: 0.3s; }
.faq-question:hover { color: #8C4A32; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; color: #5A5552; }

/* Contact Section */
.contact-parallax {
    background-image: linear-gradient(rgba(58, 53, 50, 0.9), rgba(58, 53, 50, 0.95)), url('/images/background/group.jpeg');
    color: #EAE1D3; text-align: center; padding: 100px 5% 50px;
}
.contact-form { max-width: 500px; margin: 40px auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    padding: 15px; border: 1px solid #9A9592; background-color: rgba(255, 255, 255, 0.1);
    color: #FCFAF5; font-family: 'DM Sans', sans-serif; border-radius: 4px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #EAE1D3; opacity: 0.7; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #8C4A32; background-color: rgba(255, 255, 255, 0.2); }
.contact-form button {
    padding: 15px 20px; background-color: #8C4A32; color: #FCFAF5; border: none;
    border-radius: 4px; cursor: pointer; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.contact-form button:hover { background-color: #4A6B4A; }
#formStatus { margin-top: 15px; font-weight: bold; }

/* Waves */
section, .parallax-section, .parallax-footer { position: relative; }
.section-wave { position: absolute; left: 0; right: 0; height: 85px; pointer-events: none; z-index: 10; }
.section-wave.bottom { bottom: -1px; }
.section-wave.top { top: -1px; transform: rotate(180deg); }
.section-wave svg { width: 100%; height: 100%; display: block; }

/* Dot Nav */
.dot-nav {
    position: fixed !important; top: 50% !important; right: 20px !important;
    left: auto !important; transform: translateY(-50%) !important;
    display: flex !important; flex-direction: column !important; gap: 15px !important;
    z-index: 999999 !important; pointer-events: auto !important; opacity: 1 !important;
    width: auto !important; margin: 0 !important;
}
.dot {
    width: 14px !important; height: 14px !important; background: rgba(140, 74, 50, 0.4) !important;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50% !important; transition: all 0.3s ease !important;
    animation: morphDot 4s linear infinite alternate !important; display: block !important; cursor: pointer !important;
}
@keyframes morphDot { to { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } }
.dot.active, .dot:hover { background: #4A6B4A !important; transform: scale(1.6) !important; }

/* =========================================
   FIX: FLOATING HERO WAVE (APPLIED GLOBALLY)
========================================= */
.hero-parallax, .page-header {
    position: relative !important;
    min-height: 100svh;
}

.hero-parallax .section-wave,
.page-header .section-wave {
    position: absolute !important;
    bottom: -1px !important;
    top: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}

/* =========================================
   MOBILE RESPONSIVENESS (WITH ALL FIXES)
========================================= */
@media (max-width: 900px) {

    /* DISABLE Parallax globally on mobile */
    .parallax, .parallax-section, .parallax-footer, .contact-parallax, .hero-parallax, .page-header {
        background-attachment: scroll !important;
    }

    /* RESTRICT height ONLY for Hero banners so content sections aren't cut off */
    .hero-parallax, .page-header {
        height: 100svh !important;
        min-height: 100svh !important;
        overflow: hidden !important; 
    }

    /* ALLOW normal scrolling/growing for Why-Us and other sections */
    .parallax-section:not(.hero-parallax):not(.page-header) {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Bruteforce hero waves on phones */
    .hero-parallax .section-wave, .page-header .section-wave {
        bottom: -2px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    /* ==============================================
       VERTICAL COLUMN FIX: WHY-US .why-5-grid
       ============================================== */
    #why-us {
        overflow-x: hidden !important; 
        padding: 60px 5% !important; /* Restores normal padding */
    }

    /* Stack all 5 cards vertically */
    .why-5-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 1 column layout */
        gap: 25px !important;
        align-items: center !important;
    }

    /* Allow the cards to fill the screen width naturally */
    #why-us .card {
        width: 100% !important; 
        min-height: auto !important;
        padding: 40px 25px !important;
        margin: 0 auto !important;
    }

    /* Remaining Mobile Grids */
    .blog-4-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .dot-nav { right: 10px !important; transform: scale(0.8) translateY(-50%) !important; }
    .hamburger { display: flex; }

    .nav-links {
        display: flex; flex-direction: column; position: fixed; top: 0; right: 0; left: auto;
        width: 260px; height: 100vh; background-color: #FCFAF5; border-left: 1px solid #EAE1D3;
        padding: 90px 0 20px; text-align: center; opacity: 0; transform: translateX(100%);
        pointer-events: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -15px 0 30px rgba(0, 0, 0, 0.08); z-index: 999;
    }
    .nav-links.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
    .nav-links a { display: block; padding: 20px 0; border-bottom: 1px solid #EAE1D3; width: 80%; margin: 0 auto; }
    .nav-links li:last-child a { border-bottom: none; }

    section, .parallax-section, .contact-parallax { padding: 60px 5% !important; }
    section h2, .parallax-footer h2 { font-size: 2.2rem !important; margin-bottom: 25px; }

    .split-section { flex-direction: column; gap: 40px; }
    .content-grid { gap: 20px; }
    .split-section .split-content h2 { text-align: center; }
    .split-section .split-content h2::after { margin: 15px auto 0; }
    .split-section .split-content p { font-size: 1rem; }
}

@media (max-width: 600px) {
    .blog-4-grid { grid-template-columns: 1fr !important; }
}

/* =========================================
   FIX: CONDENSED MOBILE FOOTER
========================================= */
@media (max-width: 900px) {
    /* 1. Reduce overall padding inside the footer block */
    .site-footer {
        padding: 40px 5% 15px !important; 
    }
    
    /* 2. Shrink the huge gaps between Brand, Links, and Contact columns */
    .site-footer .footer-top {
        gap: 25px !important; 
        flex-direction: column; /* Ensures they stack perfectly */
    }

    /* 3. Tighten the space under the headings */
    .site-footer h3, 
    .site-footer h4 {
        margin-bottom: 8px !important; 
        font-size: 1.25rem !important; 
    }

    /* 4. Compact the paragraphs and links */
    .site-footer p, 
    .site-footer .footer-links a {
        margin-bottom: 5px !important; 
        line-height: 1.4 !important; /* Removes excess breathing room between lines */
        font-size: 0.95rem !important; 
    }

    /* 5. Pull the copyright line closer to the content */
    .site-footer .footer-bottom {
        margin-top: 25px !important;
        padding-top: 15px !important;
    }
    /* =========================================
       FIX: HUGE SPACE IN CONTACT SECTION 
    ========================================= */
    
    /* 1. Reduce the default flex gap between the two stacked columns */
    #contact .split-section {
        gap: 10px !important; 
    }

    /* 2. Override the 65px inline margin that was meant for desktop alignment */
    #contact .split-content:nth-child(2) > div:first-child {
        margin-top: 20px !important; 
    }
}