/* Global Reset & Variables */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #464e51;
    --accent: #7e223b;
    --bg-light: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-grid {
    display: flex;
    align-items: center;
    position: relative; /* CRITICAL: Allows absolute centering inside this container */
    min-height: 80px; /* Ensures a consistent height for the header */
}

.header-left {
    display: flex;
    align-items: center;
    z-index: 2; /* Keeps logo on top */
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.brand-name {
    position: absolute; /* Pulls text out of the layout flow */
    left: 50%; /* Moves it to the halfway point of the screen */
    transform: translateX(-50%); /* Shifts it back by exactly half its own width */
    width: auto;
    white-space: nowrap; /* Prevents text from wrapping */
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-transform: uppercase;
    pointer-events: none; /* Allows clicks to pass through to the logo if they overlap */
}

/* Logo sizing */
.logo-box img {
    height: clamp(50px, 8vw, 75px);
    width: auto;
}

/* Hero & Section Styles */
.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 20px; color: var(--primary); }

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary { background: var(--primary); color: #f8fafc; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

/* Powered By Section */
.powered-by {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid #f1f5f9;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Adjusted for better side-by-side spacing */
    margin-top: 40px;
}

.logo-row img {
    height: clamp(45px, 10vw, 80px);
    width: auto;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: #7e223b;
    align-items: center; justify-content: center; padding: 20px;
}

.modal-content {
    background: white; padding: 40px; border-radius: 12px;
    width: 100%; max-width: 500px; position: relative;
}

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--text-muted); }


/* Footer */
.legal-footer {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.8;
}

.legal-footer p {
    margin: 5px 0;
}

.legal-footer strong {
    color: #f8fafc; /* Makes the company name and number slightly brighter */
}

/* MOBILE RESPONSIVE RULES */
@media (max-width: 768px) {
    /* Hide Brand Name on mobile */
    .brand-name { 
        display: none; 
    }

    .header-right {
        display: none; /* Not needed when the brand name is hidden on mobile */
    }

    /* Center Logo on mobile */
    .header-grid {
        justify-content: center;
    }

    .header-left {
        justify-content: center;
    }

    /* Force Logos to stay side-by-side on mobile */
    .logo-row {
        flex-direction: row; /* Overrides the previous column change */
        gap: 30px; /* Tighter gap for small screens */
    }

    .logo-row img {
        height: 45px; /* Fixed height for mobile clarity */
    }

    .btn { width: 100%; }

    .legal-footer {
        padding: 0 10px;
        font-size: 0.8rem;
    }
}