/* =====================================================
   M/S SHRI RADHE ASSOCIATES - Responsive Stylesheet
   ===================================================== */

/* =====================================================
   EXTRA LARGE SCREENS (1400px+)
   ===================================================== */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.5rem;
    }
    .hero-visual {
        height: 520px;
    }
}

/* =====================================================
   LARGE SCREENS (992px - 1199px)
   ===================================================== */
@media (min-width: 992px) and (max-width: 1199px) {
    .sra-navbar .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-visual {
        height: 380px;
    }
}

/* =====================================================
   MEDIUM SCREENS - TABLETS (768px - 991px)
   ===================================================== */
@media (max-width: 991px) {
    :root {
        --section-py: 4rem;
    }

    /* Navbar Mobile */
    .navbar-collapse {
        background: var(--color-white);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        padding: var(--space-4) var(--space-5);
        margin-top: var(--space-3);
    }

    .navbar-cta {
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid var(--color-border-light);
    }

    .sra-navbar .nav-link {
        padding: 0.7rem var(--space-3);
        border-radius: var(--radius-md);
    }

    .sra-navbar .nav-link:hover {
        background: var(--color-blue-pale);
    }

    .sra-navbar .nav-link::after {
        display: none;
    }

    .sra-navbar .gap-1 {
        gap: 0 !important;
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
        text-align: center;
    }

    .hero-description {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
        margin-top: var(--space-8);
    }

    /* Timeline */
    .planning-timeline::before {
        left: 28px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-node {
        margin-left: 0;
    }

    /* Process steps */
    .process-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .process-step {
        display: flex;
        align-items: flex-start;
        gap: var(--space-5);
        text-align: left;
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--color-border-light);
        min-width: auto;
    }

    .process-step::after {
        display: none;
    }

    .process-node {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        margin: 0;
    }

    .process-step-content {
        flex: 1;
    }

    /* About */
    .about-badge {
        right: 0;
        bottom: -10px;
    }

    /* Contact info */
    .contact-info-card {
        margin-top: var(--space-6);
    }

    /* Footer */
    .footer-top {
        padding: var(--space-10) 0 var(--space-6);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* =====================================================
   SMALL SCREENS - MOBILE (576px - 767px)
   ===================================================== */
@media (max-width: 767px) {
    :root {
        --section-py: 3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: var(--fs-base);
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: var(--fs-base);
    }

    .hero-visual {
        height: 220px;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }

    /* Trust strip */
    .trust-card {
        flex-direction: column;
        align-items: flex-start;
    }

    /* About features */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Cookie banner */
    .cookie-banner-inner {
        flex-direction: column;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Cookie modal */
    .cookie-modal {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .cookie-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-modal-header {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    /* Floating buttons */
    .floating-contacts {
        bottom: 80px;
        right: 16px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .back-to-top {
        right: 16px;
        bottom: 24px;
        width: 40px;
        height: 40px;
    }

    /* Contact form */
    .contact-form-card {
        padding: var(--space-6) var(--space-5);
    }

    /* Horizon tabs */
    .horizon-tabs {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .horizon-tab {
        border-radius: var(--radius-md);
    }

    /* Process steps */
    .process-node {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* Visualizer options */
    .viz-options {
        gap: var(--space-2);
    }

    .viz-option {
        font-size: var(--fs-xs);
        padding: 0.4rem 0.8rem;
    }

    /* Page header */
    .page-header {
        padding: 3.5rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* =====================================================
   EXTRA SMALL - PHONES (< 576px)
   ===================================================== */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .sra-btn-primary,
    .hero-cta .sra-btn-white {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .sra-btn-primary,
    .sra-btn-outline,
    .sra-btn-gold,
    .sra-btn-white {
        font-size: var(--fs-xs);
        padding: 0.65rem 1.25rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-legal-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }

    .contact-form-card {
        padding: var(--space-5) var(--space-4);
    }

    .why-card {
        padding: var(--space-6) var(--space-5);
    }

    .disclaimer-content {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .sra-navbar,
    .floating-contacts,
    .back-to-top,
    .cookie-banner,
    .cookie-modal-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: #000;
    }

    a::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #555;
    }

    .hero-section,
    .bg-navy {
        background: #0a2342 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .anim-fade-up,
    .anim-fade-left,
    .anim-fade-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================
   DARK MODE (respect system preference)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    /* Intentionally not implementing full dark mode to maintain 
       brand consistency for a financial services website.
       The navy/white design is intentional.
       TODO: Consider implementing user-controlled dark mode toggle. */
}

/* =====================================================
   HIGH CONTRAST MODE
   ===================================================== */
@media (forced-colors: active) {
    .sra-btn-primary,
    .sra-btn-gold,
    .sra-btn-white {
        border: 2px solid ButtonText;
    }

    .service-card,
    .why-card,
    .goal-card {
        border: 1px solid ButtonText;
    }
}

/* =====================================================
   FOCUS VISIBLE (enhanced for keyboard users)
   ===================================================== */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}
