:root {
    --black: #0a0a0a;
    --red: #a30808;
    --grey: #bab3b3;
    --parchment: #fdfaf6;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--parchment);
    color: var(--black);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: #444; }

/* Layout & Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 80px 0; }
.bg-white { background-color: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header p { font-size: 1.1rem; color: var(--grey); max-width: 600px; margin: 0 auto; }
.mt-20 { margin-top: 20px; }
.p-0 { padding: 0 !important; overflow: hidden; }
.align-center { align-items: center; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Navigation */
header {
    background-color: var(--grey);
    color: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #a89f9f;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; gap: 10px; color: var(--black); }
.logo-img { height: 48px; width: auto; display: block; mix-blend-mode: multiply; }
.logo-img-inverted { height: 48px; width: auto; display: block; }
nav a {
    color: var(--black);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}
nav a:hover { color: var(--red); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary { background-color: var(--red); color: var(--white); }
.btn-primary:hover { background-color: #800606; }
.btn-secondary { background-color: transparent; color: var(--black); border: 2px solid var(--black); }
.btn-secondary:hover { background-color: var(--black); color: var(--white); }
.center-btn { text-align: center; margin-top: 40px; }

/* Hero Section */
#hero {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 10, 10, 0.85)), var(--black);
    color: var(--white);
}

#hero h1 { color: var(--white); }
#hero p { color: var(--grey); font-size: 1.1rem; }
#hero h2 { color: var(--red); font-weight: 400; }
.hero-btn-secondary { color: var(--white); border-color: var(--white); }
.hero-btn-secondary:hover { background-color: var(--white); color: var(--black); }
.hero-actions { margin-top: 30px; display: flex; gap: 15px; justify-content: center; }

/* Image Styling */
.responsive-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.shadow-img { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* Cards & Elements */
.card, .partner-card, .insight-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.card:hover, .partner-card:hover, .insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--grey);
}

.card-icon { font-size: 2rem; color: var(--red); margin-bottom: 15px; }

/* Highlight Box */
.highlight-box {
    background-color: var(--black);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
}
.highlight-box h3 { color: var(--white); margin-bottom: 15px; }
.highlight-box ul { list-style-position: inside; color: var(--grey); line-height: 1.8; }

/* Partner Specific */
.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}
.partner-card-title { flex: 1; }
.partner-card-title h3 { margin-bottom: 4px; }
.partner-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: var(--white);
}
.partner-type { font-size: 0.85rem; color: var(--red); font-weight: bold; margin-bottom: 0; text-transform: uppercase; }
.blurb { font-style: italic; font-size: 0.95rem; }

/* Markets Specific */
.market-card { text-align: center; }
.flag { font-size: 3rem; display: block; margin-bottom: 10px; }
.check-list { list-style: none; text-align: left; margin-top: 15px; font-size: 0.9rem; }
.check-list li::before { content: "✓"; color: var(--red); font-weight: bold; margin-right: 8px; }

/* Insights Specific */
.card-top-img { width: 100%; height: 200px; object-fit: cover; display: block; border-bottom: 1px solid #eaeaea; }
.insight-content { padding: 25px; }
.insight-content h3 { font-size: 1.25rem; }
.read-more { color: var(--red); font-weight: bold; text-decoration: none; display: inline-block; margin-top: 10px; }
.read-more:hover { text-decoration: underline; }

/* Case Studies */
.stat-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-top: 4px solid var(--red);
}
.stat-card h2 { font-size: 3.5rem; color: var(--black); margin-bottom: 5px; }

/* Contact Section */
.calendly-placeholder {
    background-color: var(--parchment);
    padding: 30px;
    border: 1px dashed var(--grey);
    text-align: center;
    border-radius: 8px;
}

/* Contact CTA box */
.contact-cta-box {
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 12px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-cta-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.contact-cta-box p {
    color: #555;
    line-height: 1.65;
}

/* Footer */
footer {
    background-color: #bab3b3;
    color: #aaa;
    text-align: center;
    padding: 40px 0 30px;
    font-size: 0.9rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
}

/* Floating Buttons */
.fab {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    cursor: pointer;
    border: none;
}

.whatsapp-fab { right: 30px; background-color: #25D366; }
.faq-fab { right: 100px; background-color: var(--black); }

/* Modals */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: var(--white); margin: 10% auto; padding: 30px; border: 1px solid var(--grey); width: 90%; max-width: 500px; border-radius: 8px; }
.close-btn, .close-faq-btn { color: var(--grey); float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-btn:hover, .close-faq-btn:hover { color: var(--black); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid var(--grey); border-radius: 4px; font-family: var(--font-main); }
.chat-window { background-color: var(--parchment); padding: 15px; height: 200px; overflow-y: auto; border: 1px solid var(--grey); border-radius: 4px; }

/* Admin footer link */
.admin-link {
    display: inline-block;
    margin-top: 12px;
    color: #888;
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.admin-link:hover { opacity: 1; color: var(--red); }

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--black);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animated X state */
.hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 1.9rem; line-height: 1.25; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    /* Show hamburger, hide nav-btn on mobile */
    .hamburger { display: flex; }
    .nav-btn { display: none; }

    /* Mobile nav — hidden by default, slides down when open */
    #main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--grey);
        border-top: 1px solid #a89f9f;
        padding: 12px 0 16px;
        z-index: 999;
    }

    #main-nav.nav-open { display: flex; }

    #main-nav a {
        margin: 0;
        padding: 12px 24px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    #main-nav a:last-child { border-bottom: none; }

    /* Ensure header is position context for the dropdown */
    header { position: sticky; }
    .nav-container { position: relative; }

    #hero { padding: 80px 0; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
}
