/* ============================================
   BROLLO KENYA - Executive Core Stylesheet
   Brand Identity: Navy (#0A1D3C), Red (#E63946), Black (#1A1A1A), White (#FFFFFF)
   Bevel System: Inspired by logo's dimensional quality
   ============================================ */

/* ---------- CSS VARIABLES - BRAND IDENTITY ---------- */
:root {
    /* PRIMARY BRAND COLORS - Direct from logo */
    --brand-navy: #0000FF;
    --brand-red: #E63946;
    --brand-black: #1A1A1A;
    --brand-white: #FFFFFF;
    
    /* BRAND EXTENSIONS - For depth and dimension */
    --navy-deep: #051124;
    --navy-mid: #1E3A5F;
    --navy-light: #2C4A6E;
    --red-deep: #C41E2C;
    --red-mid: #E63946;
    --red-light: #FF6B7A;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
     
    /* BEVEL SYSTEM - Logo-inspired dimensional effects */
    --bevel-light: rgba(255, 255, 255, 0.9);
    --bevel-shadow: rgba(0, 0, 0, 0.25);
    --bevel-emboss: inset 0 1px 3px var(--bevel-light), inset 0 -1px 2px var(--bevel-shadow);
    --bevel-deboss: inset 0 2px 4px var(--bevel-shadow), inset 0 -1px 2px var(--bevel-light);
    --bevel-soft: 0 4px 6px rgba(26, 43, 76, 0.05), 0 1px 3px rgba(26, 43, 76, 0.1);
    --bevel-medium: 0 10px 15px rgba(26, 43, 76, 0.1), 0 4px 6px rgba(26, 43, 76, 0.05);
    --bevel-hard: 0 20px 25px rgba(26, 43, 76, 0.15), 0 10px 10px rgba(26, 43, 76, 0.05);
    
    /* TYPOGRAPHY */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.875rem;  /* 30px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 3rem;      /* 48px */
    --font-size-5xl: 3.75rem;   /* 60px */
    
    /* SPACING */
    --spacing-3xs: 0.125rem;    /* 2px */
    --spacing-2xs: 0.25rem;     /* 4px */
    --spacing-xs: 0.5rem;       /* 8px */
    --spacing-sm: 1rem;         /* 16px */
    --spacing-md: 1.5rem;       /* 24px */
    --spacing-lg: 2rem;         /* 32px */
    --spacing-xl: 3rem;         /* 48px */
    --spacing-2xl: 4rem;        /* 64px */
    --spacing-3xl: 6rem;        /* 96px */
    
    /* LAYOUT */
    --container-width: 1280px;
    --container-padding: var(--spacing-md);
    --nav-height: 80px;
    --nav-top-height: 40px;
    
    /* BORDERS */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 24px;
    --border-radius-full: 9999px;
    
    /* TRANSITIONS */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--brand-white);
    overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-black);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

a {
    color: var(--brand-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-red);
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ---------- BEVEL UTILITIES ---------- */
.bevel-emboss {
    box-shadow: var(--bevel-emboss);
}

.bevel-deboss {
    box-shadow: var(--bevel-deboss);
}

.bevel-soft {
    box-shadow: var(--bevel-soft);
}

.bevel-medium {
    box-shadow: var(--bevel-medium);
}

.bevel-hard {
    box-shadow: var(--bevel-hard);
}

/* ---------- BUTTON SYSTEM ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: 1;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn--block {
    width: 100%;
    display: flex;
}

/* Primary Button - Navy with bevel */
.btn--primary {
    background: linear-gradient(145deg, var(--brand-navy), var(--navy-deep));
    color: var(--brand-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--bevel-emboss);
}

.btn--primary:hover {
    background: linear-gradient(145deg, var(--navy-mid), var(--brand-navy));
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: var(--bevel-hard);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--bevel-deboss);
}

/* Secondary Button - Red accent */
.btn--secondary {
    background: linear-gradient(145deg, var(--brand-red), var(--red-deep));
    color: var(--brand-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--bevel-emboss);
}

.btn--secondary:hover {
    background: linear-gradient(145deg, var(--red-light), var(--brand-red));
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: var(--bevel-hard);
}

/* Outline Button - Navy border */
.btn--outline {
    background: transparent;
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--brand-navy);
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: var(--bevel-medium);
}

/* Outline Light - For dark backgrounds */
.btn--outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--brand-white);
    box-shadow: none;
}

.btn--outline-light:hover {
    background: var(--brand-white);
    color: var(--brand-navy);
    border-color: var(--brand-white);
    transform: translateY(-2px);
}

/* Text Button - For subtle CTAs */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--brand-navy);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-text:hover {
    color: var(--brand-red);
    gap: var(--spacing-sm);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-text:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-icon {
    font-size: var(--font-size-lg);
    line-height: 1;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ---------- SECTION STYLES ---------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-header--left {
    text-align: left;
    margin-left: 0;
}

.section-eyebrow {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
    color: var(--brand-red);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    line-height: 1.6;
}

.section-action {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ---------- FORMS ---------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--brand-black);
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--brand-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-disclaimer {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.9);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 500px;
    max-width: 90%;
    background: var(--brand-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--bevel-hard);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    background: transparent;
    border-radius: var(--border-radius-full);
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--brand-red);
    color: var(--brand-white);
    border-color: var(--brand-red);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .btn--large {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
    }
}