/**
 * A11yConsultants - Main Stylesheet
 * High Contrast Color Scheme - WCAG AAA Compliant
 */

:root {
    /* High Contrast Color Scheme - WCAG AAA Compliant */
    --primary: #1e3a5f;          /* Deep navy - 12:1 contrast with white */
    --primary-light: #2d5a8a;    /* Lighter navy */
    --primary-dark: #0f1d2f;     /* Near black navy */
    --accent: #c2410c;           /* Burnt orange - 4.6:1 with white (AA) */
    --accent-light: #ea580c;     /* Bright orange */
    --accent-hover: #9a3412;     /* Darker orange for hover */
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --charcoal: #0f172a;         /* Near black - 18:1 contrast */
    --text-dark: #111827;        /* Body text - 19:1 contrast */
    --text-muted: #374151;       /* Muted text - 10:1 contrast */
    --success-green: #166534;    /* Dark green - 7:1 contrast */
    --border-color: #cbd5e1;
}

* {
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--off-white);
    min-height: 100vh;
    color: var(--text-dark);
}

/* ==========================================================================
   Skip Link for Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

.navbar-brand .navbar-item {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-brand .navbar-item span {
    color: var(--accent);
}

.navbar-item {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
}

.navbar-item:hover,
.navbar-item.is-active {
    color: var(--primary) !important;
    background: transparent !important;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-item:hover::after,
.navbar-item.is-active::after {
    width: 60%;
}

.navbar-burger span {
    background-color: var(--primary);
    height: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button.is-primary {
    background: var(--primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 1.25rem 2rem;
    height: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.button.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
    background: var(--primary-dark);
    color: var(--white);
}

.button.is-accent {
    background: var(--accent);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 1.25rem 2rem;
    height: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 65, 12, 0.3);
}

.button.is-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.4);
    background: var(--accent-hover);
    color: var(--white);
}

.button.is-outlined.is-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: none;
}

.button.is-outlined.is-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.title, h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--text-dark);
}

.title.is-accent {
    color: var(--accent);
}

.title.is-primary-color {
    color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero.is-custom {
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.hero.is-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(194, 65, 12, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 90, 138, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.hero.is-custom .title,
.hero.is-custom .subtitle {
    color: var(--white);
}

.hero.is-custom .subtitle {
    opacity: 1;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
    background: var(--white);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.card-content {
    padding: 2rem;
}

.card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.card .icon-circle.is-accent {
    background: var(--accent);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 5rem 1.5rem;
}

.section.is-dark {
    background: var(--charcoal);
    color: var(--white);
}

.section.is-dark .title {
    color: var(--white);
}

.section.is-teal {
    background: var(--primary);
    color: var(--white);
}

.section.is-teal .title {
    color: var(--white);
}

/* Section Headings */
.section-heading {
    margin-bottom: 3rem;
}

.section-heading .subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: calc(0.5rem + 5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--charcoal);
    padding: 4rem 1.5rem 2rem;
    color: var(--light-gray);
}

.footer .title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer a {
    color: var(--light-gray);
    transition: color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.footer a:hover {
    color: var(--white);
    text-decoration-color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 3rem;
    padding-top: 2rem;
}

/* ==========================================================================
   Accessibility Badge
   ========================================================================== */

.a11y-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================================================
   Focus States for Accessibility
   ========================================================================== */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stat-number {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.input, .textarea, .select select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.input::placeholder, .textarea::placeholder {
    color: var(--text-muted);
}

.label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-body {
        padding: 3rem 1.5rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

