/* ============================================================================
   RESPONSIVE DESIGN - Mobile First
   ============================================================================ */

/* Extra Small (xs): < 576px */
@media (max-width: 575.98px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 400px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 12px;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .footer {
        text-align: center;
    }

    .footer .col-md-6 {
        margin-bottom: 1rem;
    }

    .footer .text-md-end {
        text-align: center !important;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 12px;
        width: 100%;
    }

    section {
        padding: 2rem 0;
    }
}

/* Small (sm): 576px - 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.35rem;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Medium (md): 768px - 991px */
@media (min-width: 768px) {
    .text-md-end {
        text-align: right !important;
    }

    h1 {
        font-size: 3rem;
    }

    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: 3rem;
        text-align: left;
    }

    .hero .row {
        align-items: center;
    }

    .footer .text-md-end {
        text-align: right;
    }
}

/* Large (lg): 992px - 1199px */
@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .lead {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 20px;
    }

    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Extra Large (xl): >= 1200px */
@media (min-width: 1200px) {
    h1 {
        font-size: 4rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero {
        min-height: 700px;
    }

    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* ============================================================================
   ORIENTATION
   ============================================================================ */

@media (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
}

@media (orientation: portrait) {
    .hero {
        min-height: 600px;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    body {
        background-color: white;
        color: black;
    }

    .site-header,
    .footer,
    .header-cta-btn-wrapper,
    .mobile-menu-trigger {
        display: none !important;
    }

    a {
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p {
        page-break-inside: avoid;
    }
}

/* ============================================================================
   HIGH CONTRAST MODE
   ============================================================================ */

@media (prefers-contrast: more) {
    :root {
        --primary-color: #000000;
        --text-dark: #000000;
        --text-light: #333333;
        --accent-color: #0000ff;
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   DARK MODE (optional)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --text-dark: #f0f0f0;
        --text-light: #b0b0b0;
        --border-light: #333333;
    }

    body {
        background-color: #0f0f0f;
        color: var(--text-dark);
    }

    .form-control {
        background-color: #1a1a1a;
        border-color: var(--border-light);
        color: var(--text-dark);
    }
}
