:root {
    /* Palette */
    --gold: #C5A059;
    --gold-dim: #8E7036;
    --charcoal: #121212;
    --grey-dark: #1E1E1E;
    --grey-mid: #555555;
    --grey-light: #F4F4F4;
    --white: #FFFFFF;
    
    /* Spacing */
    --container: 1200px;
    --pad-section: 100px;
    --pad-section-mobile: 60px;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

/* Utility Classes */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: var(--pad-section) 0; }
.bg-grey { background: var(--grey-light); }
.bg-white { background: var(--white); }
.bg-paper { background: #FAFAFA; }
.bg-darker { background: #0a0a0a; color: var(--white); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-white-dim { color: rgba(255,255,255,0.7); }

/* Typography */
.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--gold);
    display: block;
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-heading { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 30px; line-height: 1.1; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 20px 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.brand-text { font-weight: 800; font-size: 1.2rem; display: block; line-height: 1; letter-spacing: -0.5px; }
.brand-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }

/* Desktop Nav Links */
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: 0.9rem; margin-left: 30px; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }
.btn-primary {
    background: var(--charcoal); color: var(--gold) !important; padding: 10px 24px; border-radius: 2px;
}
.btn-primary:hover { background: var(--gold); color: var(--white) !important; }

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--charcoal); }

/* Hero */
.hero { height: 100vh; position: relative; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%); }
.hero-title { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; margin-bottom: 25px; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle { max-width: 650px; font-size: 1.25rem; opacity: 0.9; margin-bottom: 50px; font-weight: 300; }
.hero-stats { display: flex; gap: 60px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 25px; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.stat-desc { font-size: 0.85rem; opacity: 0.8; }

/* Grid Split (About) */
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.image-block { position: relative; }
.image-block img { width: 100%; border-radius: 2px; box-shadow: 20px 20px 0 var(--gold); }
.floating-card {
    position: absolute; bottom: -30px; right: -30px; background: var(--white); padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); font-weight: 700; max-width: 220px; border-left: 4px solid var(--gold);
}
.capabilities-row { margin-top: 30px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }

/* Expertise - Dark Cards */
.section-dark { background: var(--charcoal); color: var(--white); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card {
    background: rgba(255,255,255,0.03); padding: 40px 30px; border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s, border-color 0.4s;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.card-header h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--white); }
.card-line { width: 40px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.card-list { list-style: none; }
.card-list li { margin-bottom: 10px; font-size: 0.95rem; opacity: 0.7; padding-left: 15px; position: relative; }
.card-list li::before { content: "›"; color: var(--gold); position: absolute; left: 0; font-weight: bold; }

/* Insights / Publications */
.header-row-split { display: flex; justify-content: space-between; margin-bottom: 60px; flex-wrap: wrap; gap: 30px; }
.col-intro { max-width: 600px; }
.insights-grid {
    display: grid;
    /* Adjusted minmax for better mobile fit */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 50px;
}
.insight-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 380px; position: relative; transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-top: 3px solid transparent;
}
.insight-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-top-color: var(--gold); }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.meta-date { color: var(--gold); font-weight: 700; }
.meta-tag { background: #f4f4f4; padding: 4px 10px; border-radius: 2px; font-size: 0.7rem; color: #555; font-weight: 600; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; line-height: 1.3; color: var(--charcoal); margin-bottom: 15px; }
.card-excerpt { font-size: 1rem; color: #666; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.card-footer { border-top: 1px solid #eee; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.source-label { font-size: 0.8rem; font-style: italic; color: #999; }
.btn-text { text-decoration: none; color: var(--charcoal); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }

/* Leadership */
.leadership-wrapper {
    display: grid; grid-template-columns: 400px 1fr; gap: 0; background: var(--white);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}
.leader-image img { width: 100%; height: 100%; object-fit: cover; }
.leader-content { padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.leader-name { font-size: 3rem; margin-bottom: 25px; }
.credentials-list { list-style: none; margin-bottom: 30px; border-left: 2px solid var(--gold); padding-left: 25px; }
.credentials-list li { margin-bottom: 10px; font-size: 1rem; color: var(--grey-mid); }
.leader-bio { font-size: 1.1rem; color: var(--charcoal); line-height: 1.8; }

/* Contact Form */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.text-muted { color: rgba(255, 255, 255, 0.6); margin-bottom: 40px; }
.info-grid { display: flex; flex-direction: column; gap: 40px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; }
.icon-gold { font-size: 1.5rem; color: var(--gold); line-height: 1; }
.name-highlight { font-weight: 700; color: var(--white); margin-bottom: 5px; font-family: 'Manrope', sans-serif; }
.link-white { display: block; color: rgba(255, 255, 255, 0.9); text-decoration: none; margin-bottom: 5px; }
.link-gold { color: var(--gold); text-decoration: none; font-size: 0.9rem; }

.contact-form-block { background: rgba(255, 255, 255, 0.03); padding: 50px; border: 1px solid rgba(255, 255, 255, 0.1); }
.form-group { position: relative; margin-bottom: 30px; }
.form-input {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0; color: var(--white); font-size: 1rem; font-family: 'Manrope', sans-serif; outline: none; transition: 0.3s;
}
.form-input:focus { border-bottom-color: var(--gold); }
.form-label {
    position: absolute; top: 10px; left: 0; color: rgba(255, 255, 255, 0.5); font-size: 1rem; pointer-events: none; transition: 0.3s ease all;
}
.form-input:focus ~ .form-label, .form-input:not(:placeholder-shown) ~ .form-label { top: -20px; font-size: 0.75rem; color: var(--gold); }
select.form-input option { background: #1a1a1a; color: white; }
.submit-btn {
    background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 15px 40px;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; width: 100%;
}
.submit-btn:hover { background: var(--gold); color: var(--charcoal); }

.footer-dark { background: #050505; color: #555; padding: 40px 0; border-top: 1px solid #111; text-align: center; font-size: 0.8rem; }
.scroll-reveal, .fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.active { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE QUERIES
   ========================================= */

@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .leadership-wrapper { grid-template-columns: 1fr; }
    .leader-image { height: 400px; }
    .leader-content { padding: 50px; }
}

@media (max-width: 900px) {
    /* Layout Breaks */
    .grid-split, .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    
    /* Navigation: Slide Out Menu */
    .mobile-toggle { display: block; z-index: 1100; position: relative; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }
    .nav-links.active { right: 0; } /* Class added by JS */
    .nav-links a { margin: 0 0 25px 0; font-size: 1.2rem; }
    
    /* Section Padding */
    .section-padding { padding: var(--pad-section-mobile) 0; }
    
    /* Hero */
    .hero { text-align: center; justify-content: center; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; margin: 0 auto 30px auto; }
    .hero-stats { justify-content: center; }
    
    /* Adjust Cards */
    .insights-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
}

@media (max-width: 600px) {
    /* Typography sizing */
    .section-heading { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    
    /* Elements */
    .floating-card { 
        position: relative; 
        bottom: 0; right: 0; 
        max-width: 100%; 
        margin-top: -30px; 
        margin-left: 20px; 
        z-index: 10;
    }
    .image-block img { box-shadow: 10px 10px 0 var(--gold); }
    
    /* Contact */
    .contact-form-block { padding: 30px 20px; }
    .leader-image { height: 300px; }
    .leader-content { padding: 30px 20px; }
    .leader-name { font-size: 2rem; }
    
    /* Team */
    .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
    .team-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
    .team-card:hover { transform: translateY(-5px); }
    .team-image { height: 250px; overflow: hidden; }
    .team-image img { width: 100%; height: 100%; object-fit: cover; }
    .team-content { padding: 1.5rem; }
    .team-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--charcoal); }
    .team-position { color: var(--gold); font-weight: 500; margin-bottom: 1rem; }
    .team-bio { color: var(--grey-mid); line-height: 1.6; }
    
    /* Navbar spacing */
    .navbar { padding: 15px 0; }
}

/* Pagination */
.page-btn { 
    border: 1px solid #DDD; 
    background: white; 
    padding: 8px 12px; 
    margin: 0 2px; 
    cursor: pointer; 
    border-radius: 4px; 
    transition: 0.3s;
}
.page-btn:hover, .page-btn.active { 
    background: var(--gold); 
    color: white; 
    border-color: var(--gold); 
}

/* ============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #121212 0%, #1E1E1E 100%);
    color: white;
    padding: 1.5rem;
    border-top: 3px solid #C5A059;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #C5A059;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #DDD;
}

.cookie-link {
    color: #C5A059;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: fit-content;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background-color: #C5A059;
    color: white;
}

.cookie-accept:hover {
    background-color: #d4af6a;
    transform: translateY(-2px);
}

.cookie-reject {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-manage {
    background-color: transparent;
    color: #C5A059;
    border: 2px solid #C5A059;
}

.cookie-manage:hover {
    background-color: rgba(197, 160, 89, 0.1);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #EEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    color: #121212;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.modal-close:hover {
    color: #121212;
}

.cookie-modal-body {
    padding: 1.5rem;
    flex: 1;
}

.cookie-modal-body p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.cookie-checkbox-label:hover {
    background: #f5f5f5;
}

.cookie-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: #C5A059;
}

.cookie-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-text strong {
    color: #121212;
    margin-bottom: 0.25rem;
}

.checkbox-text small {
    color: #999;
    font-size: 0.85rem;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #EEE;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn {
    padding: 0.6rem 1.2rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #DDD;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #C5A059;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
    }

    .cookie-text {
        font-size: 0.85rem;
    }

    .cookie-modal-content {
        max-width: 95%;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-link {
        font-size: 0.8rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C5A059 0%, #8E7036 100%);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #8E7036 0%, #C5A059 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(197, 160, 89, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}