/* =========================================
    RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --gold: #c6a15b; 
    --gold-hover: #d4b373;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-speed: 0.4s;
}

body.dark {
    --bg-primary: #0f1112;
    --bg-secondary: #1b1f21;
    --text-primary: #f0ebe4;
    --text-secondary: #bcb4a8;
    --card-bg: rgba(20, 22, 24, 0.7);
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    --border-light: #2f3336;
    --glass-bg: rgba(20, 22, 24, 0.65);
}

body.light {
    --bg-primary: #faf7f2;
    --bg-secondary: #ffffff;
    --text-primary: #1e1e1e;
    --text-secondary: #4a4a4a;
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    --border-light: #e0d6cc;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --gold: #b38b3f; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gold-text {
    color: var(--gold);
    letter-spacing: 0.05em;
}

.section-title { font-size: 3.5rem; }
.section-subtitle { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 3px; }

/* =========================================
    UTILITIES & COMPONENTS
========================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(198, 161, 91, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.8);
}

.btn-gold {
    background: rgba(198, 161, 91, 0.05);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
    background: var(--gold);
    color: #0f1112;
    box-shadow: 0 8px 25px rgba(198, 161, 91, 0.4);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Responsive Grid Utilities */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.about-grid { grid-template-columns: 1.2fr 1fr; align-items: center; margin: 60px 0; }
.contact-grid { gap: 60px; }

.grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* =========================================
    NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 20px; left: 5%; right: 5%;
    width: 90%;
    z-index: 1000;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
    transition: transform 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    top: 10px;
    padding: 0.8rem 2.5rem;
    background: var(--bg-primary); 
}

.logo {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--gold); }

.nav-actions { display: flex; gap: 1.5rem; align-items: center; }
.nav-actions i { font-size: 1.2rem; cursor: pointer; transition: color 0.3s; }
.nav-actions i:hover { color: var(--gold); }
.mobile-toggle { display: none; font-size: 1.5rem; }

/* =========================================
    PAGE STRUCTURE & SECTIONS
========================================= */
.page { padding-top: 120px; padding-bottom: 60px; position: relative; }
.page-content { max-width: 1400px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1518730595015-38b43bd7cb0b?q=80&w=2000');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
    HERO & SLIDERS
========================================= */
.hero-slider {
    height: 80vh;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.05);
    transition: opacity 1.5s ease, transform 5s linear;
}

.slide.active { opacity: 1; transform: scale(1); }
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.slider-nav { position: absolute; bottom: 30px; right: 30px; display: flex; gap: 15px; z-index: 20; }
.slider-arrow {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; cursor: pointer; backdrop-filter: blur(8px);
    transition: all var(--transition-speed);
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: #111; transform: scale(1.1); }

.hero-title { font-size: 5rem; margin: 20px 0 10px; line-height: 1.1; }
.hero-card { max-width: 700px; margin: 40px 0; background: transparent; border: none; padding: 0; box-shadow: none; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 80px 0; padding: 50px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.stat-item { text-align: center; border-right: 1px solid var(--border-light); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 4.5rem; font-family: 'Cormorant Garamond', serif; color: var(--gold); line-height: 1; margin-bottom: 10px; display: block; }

/* =========================================
    SERVICES
========================================= */
.service-card { transition: transform var(--transition-speed), border-color var(--transition-speed); border: 1px solid var(--border-light); }
.service-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.service-img { filter: grayscale(30%); transition: filter 0.5s ease; }
.service-card:hover .service-img { filter: grayscale(0%); }

.sub-service-list { list-style: none; padding: 0; margin: 0 0 25px 0; border-top: 1px solid var(--border-light); padding-top: 15px; }
.sub-service-list li { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sub-service-list li i { font-size: 0.8rem; width: 15px; }

/* =========================================
    PROJECTS & LIGHTBOX
========================================= */
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 30px; }
.filter-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin: 30px 0 0 0; }
.filter-btn { background: transparent; border: 1px solid var(--border-light); padding: 10px 28px; border-radius: 40px; color: var(--text-primary); cursor: pointer; transition: all 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--gold); border-color: var(--gold); color: #0f1112; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.project { padding: 0; overflow: hidden; cursor: pointer; }
.project img { width: 100%; height: 350px; object-fit: cover; transition: transform 0.6s ease; }
.project:hover img { transform: scale(1.08); }
.project-info { padding: 25px; background: linear-gradient(to top, var(--bg-secondary), transparent); position: absolute; bottom: 0; width: 100%; }

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; cursor: zoom-out; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.4s ease; }
.lightbox.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 2rem; cursor: pointer; }

/* =========================================
    TEAM SECTION
========================================= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-member { text-align: center; }
.team-img-wrapper { width: 100%; height: 400px; border-radius: 20px; overflow: hidden; margin-bottom: 20px; position: relative; }
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease, transform 0.5s ease; }
.team-member:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* =========================================
    TESTIMONIALS
========================================= */
.testimonial-slider { padding: 40px 0; }
.testimonial-card { text-align: center; padding: 40px; }
.client-img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; border: 2px solid var(--gold); }

/* =========================================
    FORMS, MODALS & FOOTER
========================================= */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); z-index: 2000; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-speed); }
.modal.active { display: flex; opacity: 1; }
.modal-content { background: var(--bg-secondary); padding: 3.5rem; border-radius: 24px; max-width: 500px; width: 90%; border: 1px solid var(--gold); position: relative; transform: translateY(20px); transition: transform 0.4s; }
.modal.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 25px; background: none; border: none; color: var(--text-primary); font-size: 1.8rem; cursor: pointer; }

input, textarea, select { width: 100%; padding: 16px; margin-bottom: 20px; background: var(--bg-primary); border: 1px solid var(--border-light); color: var(--text-primary); border-radius: 12px; font-family: 'Inter', sans-serif; transition: border-color 0.3s, box-shadow 0.3s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 10px rgba(198,161,91,0.2); }

footer { border-top: 1px solid var(--border-light); margin-top: 100px; padding: 60px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =========================================
    RESPONSIVE DESIGN (MOBILE & TABLET)
========================================= */
@media (max-width: 1024px) {
    .grid-3col, .project-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .stat-item:nth-child(2) { border-right: none; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: var(--glass-bg); backdrop-filter: blur(16px); flex-direction: column; padding: 2rem; border-radius: 20px; text-align: center; }
    .nav-links.show { display: flex; }
    .mobile-toggle { display: block; }
    .page-content { padding: 0 20px; }
    
    .hero-title { font-size: 3rem !important; }
    .section-title { font-size: 2.5rem; }
    
    .grid-2col, .grid-3col, .project-grid, .team-grid { grid-template-columns: 1fr; }
    
    .stats-grid { grid-template-columns: 1fr; border: none; padding: 0; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); padding-bottom: 30px; margin-bottom: 30px; }
    .stat-item:last-child { border-bottom: none; }
    
    .hero-slider { height: 60vh; }
    footer { flex-direction: column; gap: 30px; }
    .modal-content { padding: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem !important; }
    .section-title { font-size: 2.2rem; }
    .stat-number { font-size: 3.5rem; }
    .btn-gold { padding: 12px 24px; font-size: 0.8rem; }
}
/* =========================================
    NEW SECTIONS: Process, Sustainability & FAQ
========================================= */

.process-step {
    padding: 40px 30px;
    border-top: 4px solid transparent;
}

.process-step:hover {
    border-top: 4px solid var(--gold);
}

.sub-service-group {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.sub-service-group:last-child {
    border-bottom: none;
}

.faq-item h3 {
    cursor: pointer;
}

/* Optional: Add a transition for the FAQ icon to spin when opened */
.faq-item h3 i {
    transition: transform 0.3s ease;
}
.faq-item.open h3 i {
    transform: rotate(45deg);
}
/* FAQ Accordion Animations */
.faq-item p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0 !important; /* Overrides the inline margin from the HTML */
    transition: all 0.4s ease;
}

.faq-item.active p {
    max-height: 300px; /* Adjust if you have very long answers */
    opacity: 1;
    margin-top: 15px !important;
}

.faq-item h3 {
    cursor: pointer;
    user-select: none; /* Prevents text highlighting when clicking rapidly */
}

.faq-item h3 i {
    transition: transform 0.3s ease;
}

/* Rotates the '+' icon into an 'x' when open */
.faq-item.active h3 i {
    transform: rotate(45deg); 
}
/* =========================================
    NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 20px; 
    left: 5%; 
    right: 5%;
    width: 90%;
    z-index: 1000;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    top: 10px;
    padding: 0.8rem 2.5rem;
    background: var(--bg-primary); 
}

/* =========================================
    LOGO STRUCTURE & TYPOGRAPHY
========================================= */
.logo-container { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.logo-main { 
    display: flex; 
    align-items: flex-end; /* Aligns "Powered by" perfectly to the bottom of the logo text */
    gap: 8px; 
    margin-bottom: 2px;
}

.logo {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-decoration: none;
    line-height: 0.9; /* Keeps the text box tight for better alignment */
}

.logo-tag { 
    font-size: 0.65rem; 
    color: var(--text-secondary); 
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    padding-bottom: 1px; /* Micro-adjustment for baseline alignment */
}

.logo-sub { 
    font-size: 0.75rem; 
    color: var(--text-primary); 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    font-weight: 600; 
}

.logo-file { 
    font-size: 0.6rem; 
    color: var(--text-secondary); 
    letter-spacing: 1px; 
    opacity: 0.6; 
    margin-top: 2px; 
    font-family: monospace; /* Gives the file number a subtle technical look */
}

/* Rest of the nav links styling */
.nav-links {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--gold); }

.nav-actions { display: flex; gap: clamp(1rem, 2vw, 1.5rem); align-items: center; }
.nav-actions i { font-size: 1.2rem; cursor: pointer; transition: color 0.3s; }
.nav-actions i:hover { color: var(--gold); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* =========================================
    RESPONSIVE NAVBAR TWEAKS
========================================= */
@media (max-width: 1024px) {
    .navbar { width: 95%; left: 2.5%; right: 2.5%; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; border-radius: 20px; }
    .navbar.scrolled { padding: 0.8rem 1.5rem; }
    
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%;
        left: 0; 
        width: 100%; 
        background: var(--bg-secondary);
        flex-direction: column; 
        padding: 2rem; 
        border-radius: 20px; 
        text-align: center; 
        box-shadow: var(--shadow);
        border: 1px solid var(--border-light);
        z-index: 1001;
        margin-top: 15px;
        gap: 20px;
    }
    
    .nav-links.show { display: flex; }
    .mobile-toggle { display: block; }
}

@media (max-width: 480px) {
    /* This ensures the complex text stack shrinks cleanly on small phones */
    .logo-container { 
        transform: scale(0.85); 
        transform-origin: left center; 
    }
    .nav-actions { gap: 1rem; }
}