:root {
    --primary: #1a2e18;
    --accent: #b08d57;
    --text: #333;
    --white: #ffffff;
    --gutter: 25px;
}

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

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text); 
    line-height: 1.6; 
    background: var(--white); 
    overflow-x: hidden; 
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary); }

/* --- Layout Containers --- */
.container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 var(--gutter); 
}

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background: #faf9f6; }
.relative { position: relative; }

/* --- Navigation --- */
.navbar { 
    background: var(--white); 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: var(--primary); 
    text-decoration: none; 
    letter-spacing: 2px; 
}

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

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text); 
    font-weight: 600; 
    font-size: 13px; 
    text-transform: uppercase; 
}

/* --- Hamburger Menu Toggle --- */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    z-index: 1100; 
}

.menu-toggle span { 
    width: 25px; 
    height: 3px; 
    background: var(--primary); 
    transition: 0.3s ease; 
}

/* --- Grid System --- */
.grid-2, .grid-2-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* --- Hero & Components --- */
.hero { 
    height: 80vh; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
}

.hero-overlay { 
    background: rgba(0,0,0,0.4); 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 0 var(--gutter); 
}

.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: white; margin-bottom: 20px; line-height: 1.1; }

.pillar-card { 
    background: var(--white); 
    padding: 40px; 
    border-bottom: 4px solid var(--accent); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    height: 100%; 
}

.img-responsive { width: 100%; height: auto; border-radius: 8px; display: block; }

.floating-info-card { 
    position: absolute; 
    background: var(--primary); 
    color: white; 
    padding: 25px; 
    z-index: 2; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.card-bottom-right { bottom: -30px; right: -30px; }
.card-top-left { top: -30px; left: -30px; }

/* --- Responsive Master Reset --- */
@media (max-width: 991px) {
    /* Hamburger Visibility */
    .menu-toggle { display: flex !important; }

    /* Nav Slide Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1050;
        gap: 30px;
    }

    .nav-links.active { right: 0; }

    /* Hamburger Animation to X */
    .menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Edge Protection */
    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
        margin: 0 auto !important;
        overflow: hidden;
    }

    .grid-2, .grid-3, .grid-4, .grid-2-alt {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 40px !important;
    }

    .text-block, .text-box, .responsive-padding {
        padding: 0 !important;
        width: 100% !important;
    }

    .floating-info-card {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-top: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero h1 { font-size: 2.2rem !important; }
}

/* --- Reveal Logic --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Luxury Footer --- */
.footer {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    padding: 80px 0 40px;
    position: relative;
    border-top: 3px solid var(--accent);
}

.footer h4 {
    color: var(--accent) !important;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer p { color: rgba(255, 255, 255, 0.7) !important; font-size: 14px; line-height: 1.8; }
.footer a { color: rgba(255, 255, 255, 0.8) !important; text-decoration: none; transition: 0.3s ease; }
.footer a:hover { color: var(--accent) !important; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px;
}
/* --- GLOBAL BUTTON REPAIR --- */
.btn-primary {
    display: inline-block !important; /* Forces the button to respect padding and show up */
    background: var(--primary);
    color: #fff !important;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary) !important;
}

/* Ensure buttons in the dark CTA section are visible */
section[style*="background: var(--primary)"] .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary) !important;
}

@media (max-width: 991px) {
    .btn-primary {
        width: 100%; /* Full width buttons on mobile are easier to tap */
        text-align: center;
        max-width: 300px; /* Keep them from getting too wide */
    }
}
/* --- COMPACT LUXURY FOOTER --- */
.footer .container {
    max-width: 1000px; /* Reduced from 1200px to prevent horizontal stretching */
    margin: 0 auto;
}

.footer .grid-4 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Asymmetric grid for better flow */
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .footer .grid-4 {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
        gap: 30px;
    }
}