@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #1E5631; 
    --primary-hover: #287242; 
    --accent-color: #D4AF37; 
    --bg-color: #F8FAF8; 
    --text-color: #2C362F; 
    --text-muted: #5A6960;
    
    /* Clean Premium Glassmorphism */
    --glass-bg-light: rgba(255, 255, 255, 0.92);
    --glass-bg-dark: rgba(15, 35, 20, 0.85);
    --glass-border-light: rgba(255, 255, 255, 1);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(15px);
    --glass-shadow: 0 15px 35px rgba(30, 86, 49, 0.08);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 50px;
    transition: var(--transition);
    background: rgba(10, 30, 15, 0.4); /* Rich glass background by default */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
    padding: 15px 50px;
    background: rgba(10, 30, 15, 0.95); /* Deep dark forest green */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Subtle gold border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff; 
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header.scrolled .logo a {
    color: #ffffff; 
    text-shadow: none;
}

.logo span {
    color: var(--accent-color);
    transition: var(--transition);
}

.site-header.scrolled .logo span {
    color: var(--accent-color); /* Keep it gold */
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    color: #ffffff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); 
    transition: var(--transition);
}

.site-header.scrolled .nav-links li a {
    color: rgba(255, 255, 255, 0.9); 
    text-shadow: none;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.site-header.scrolled .nav-links li a::after {
    background-color: var(--accent-color); /* Gold underline */
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.site-header.scrolled .nav-links li a:hover,
.site-header.scrolled .nav-links li a.active {
    color: var(--accent-color);
}

/* Dropdown Menu Styles */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(10, 30, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li.dropdown .dropdown-menu li {
    margin-bottom: 0;
}

.nav-links li.dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    text-shadow: none;
    font-weight: 500;
}

.nav-links li.dropdown .dropdown-menu li a::after {
    display: none; /* Hide the underline effect inside dropdown */
}

.nav-links li.dropdown .dropdown-menu li a:hover {
    color: var(--accent-color);
    background: rgba(255,255,255,0.05);
    padding-left: 30px;
}

.btn-header {
    background: var(--accent-color);
    color: #1A1A1A; /* Dark text on gold for premium look */
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn-header:hover {
    background: #ffffff;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 20px rgba(30, 86, 49, 0.2);
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    animation: btnPulse 3s infinite;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 86, 49, 0.4), 0 0 20px rgba(212, 175, 55, 0.4);
}

@keyframes btnPulse {
    0% { box-shadow: 0 10px 20px rgba(30, 86, 49, 0.2); }
    50% { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5); }
    100% { box-shadow: 0 10px 20px rgba(30, 86, 49, 0.2); }
}

/* Hero Split Layout */
.hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 50px 50px;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    text-align: left;
}

.hero-left h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    letter-spacing: -1px;
}

.hero-left p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    font-weight: 400;
    max-width: 600px;
}

/* Offer Card */
.offer-card {
    background: rgba(10, 30, 15, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    text-align: center;
    max-width: 450px;
    margin-left: auto;
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border-color: var(--accent-color);
}

.offer-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.offer-price {
    padding: 25px 20px 10px;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.offer-price span {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    line-height: 1;
    margin-top: 5px;
    font-family: inherit;
}

.offer-image-container {
    padding: 10px 30px 20px;
}

.offer-image-container img {
    width: 100%;
    border: 4px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.offer-card:hover .offer-image-container img {
    transform: scale(1.05);
}

.offer-footer {
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Parallax Framework */
.parallax-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-overlay-light {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 250, 248, 0.65); /* Washed out to make cards pop */
    z-index: 1;
}

.parallax-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 30, 15, 0.75); /* Dark enough for white text */
    z-index: 1;
}

.section-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* Typography Enhancements */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.section-title.dark h2 {
    color: #ffffff;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.section-title.dark p {
    color: rgba(255,255,255,0.8);
}

/* Feature Cards (Clean Glassmorphism) */
.feature-card {
    flex: 1;
    min-width: 300px;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(30, 86, 49, 0.12);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-block;
}

.feature-card:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Distance Cards */
.distance-card {
    text-align: center;
    padding: 35px 20px;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border-light);
}

.distance-card.dark-card {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

.distance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.distance-card.dark-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--accent-color);
}

.distance-card img {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: var(--transition);
}

.distance-card.dark-card img {
    border-color: rgba(255,255,255,0.1);
}

.distance-card:hover img {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Master Plan & Gallery */
.content-box {
    flex: 1;
    min-width: 350px;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border-light);
    transition: var(--transition);
}

.content-box h2 {
    color: var(--primary-color);
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(30, 86, 49, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

/* Premium Footer */
.site-footer {
    background: #0A1B10; /* Very dark forest green */
    border-top: 4px solid var(--accent-color); /* Premium gold line */
    padding: 80px 50px 0;
    margin-top: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1.05rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-col ul li i {
    color: var(--accent-color) !important; /* Force gold icons in contact info */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); /* Gold glow */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Hide mobile CTA by default */
.mobile-nav-cta {
    display: none;
}


/* Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1100;
    }
    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: #fff;
        border-radius: 3px;
        transition: var(--transition);
    }
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 30, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 120px 40px;
        gap: 25px;
        transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1050;
        text-align: center;
        overflow-y: auto;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li.dropdown.mobile-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: relative;
        display: block;
        background: rgba(255,255,255,0.05);
        margin-top: 10px;
        box-shadow: none;
        border: none;
    }
    .nav-links li a {
        font-size: 1.3rem;
        text-shadow: none;
    }

    /* Header CTA area — hide button in header bar on mobile */
    .btn-header {
        display: none;
    }

    /* Mobile Nav CTA styling */
    .mobile-nav-cta {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .btn-mobile-enquire {
        display: inline-block;
        background: linear-gradient(135px, var(--accent-color), #f1c40f);
        color: var(--primary-color) !important;
        padding: 15px 40px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
        animation: pulse-gold 2s infinite;
        text-decoration: none;
    }

    @keyframes pulse-gold {
        0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
        100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    }

    /* Hero grid → single column stack */
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    .hero-left { text-align: center; }
    .hero-left h1 { font-size: 2.5rem; }
    .hero-left p { font-size: 1.1rem; margin-left: auto; margin-right: auto; }
    .hero-right { display: flex; justify-content: center; }
    .offer-card { max-width: 320px; margin: 0 auto; }
    .hero-section { padding: 100px 20px 40px; min-height: auto !important; }

    /* Section padding */
    .parallax-section { padding: 60px 15px; }
    .section-title h2 { font-size: 2.2rem; }
    .section-title p { font-size: 1rem; }

    /* Feature cards stack */
    .feature-card { min-width: 100% !important; }

    /* Content boxes stack */
    .content-box { min-width: 100% !important; }
}

@media (max-width: 768px) {
    .site-header { padding: 12px 15px; }
    .site-header.scrolled { padding: 10px 15px; }

    .hero-left h1 { font-size: 2rem; }
    .offer-price span { font-size: 3rem; }

    /* Footer → stack all columns */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .site-footer { padding: 40px 20px 0; }

    /* Gallery → single column */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    /* General section padding reduction */
    section[style*="padding: 100px 50px"] {
        padding: 60px 20px !important;
    }

    /* Distance image cards */
    .distance-image-card .dist-img-wrap { height: 200px; }
    .distance-image-card .dist-content h3 { font-size: 1.2rem; }

    /* Contact page flex → stack */
    .section-container > div[style*="display: flex"][style*="gap: 80px"] {
        flex-direction: column !important;
        gap: 40px !important;
    }
    .section-container > div[style*="display: flex"][style*="gap: 50px"] {
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Input grid → single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-left h1 { font-size: 1.8rem; }
    .hero-left p { font-size: 1rem; }
    .offer-card { max-width: 280px; }
    .offer-price span { font-size: 2.5rem; }
    .btn-header { padding: 8px 16px; font-size: 0.8rem; }
    .logo a { font-size: 1.4rem !important; }
    .section-title h2 { font-size: 1.8rem; }
    .nav-links li a { font-size: 1.2rem; }
    .nav-links { padding: 100px 30px; gap: 20px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; border-radius: 50%; }
}

/* Ensure hidden on desktop */
@media (min-width: 993px) {
    .menu-toggle { display: none; }
}

/* ========================================
   MOBILE CLASS-BASED OVERRIDES
   These use classes added to PHP elements
   to reliably override inline styles
   ======================================== */
@media (max-width: 992px) {
    /* Sections with 100px 50px padding → reduce */
    .mobile-stack-section {
        padding: 60px 20px !important;
    }

    /* Flex containers that should stack vertically */
    .mobile-stack-flex {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 30px !important;
    }

    /* Flex children with min-width constraints */
    .mobile-flex-child {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Gallery page grid → 2 columns on tablet */
    .gallery-page-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Video iframe border-radius */
    .video-embed-wrapper {
        border-radius: 15px !important;
        border-width: 5px !important;
    }
}

@media (max-width: 600px) {
    /* Gallery and distance grids → single column on phone */
    .gallery-page-grid {
        grid-template-columns: 1fr !important;
    }

    /* Reduce New Tech box padding */
    .mobile-stack-flex {
        padding: 25px 15px !important;
    }

    /* Parallax header text scale down */
    .page-hero-title {
        font-size: 2.2rem !important;
    }
}

