/* =====================================================
   SADGURU TRUST - Responsive CSS
   Mobile, Tablet, Laptop, Desktop
   ===================================================== */

/* ========== TABLET (768px - 1024px) ========== */

@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

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

    .hero-title {
        font-size: 2.8rem;
    }

    .about-grid,
    .mission-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .om-circle {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }

    .mission-values {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* ========== MOBILE (480px - 767px) ========== */

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }

    p {
        font-size: 0.95rem;
    }

    .container {
        width: 95%;
    }

    /* ===== NAVBAR ===== */
    .navbar {
        padding: 12px 0;
    }

    .nav-brand h2 {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(11, 11, 11, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 20px 0;
        border-bottom: 2px solid rgba(217, 119, 6, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* ===== HERO ===== */
    .hero {
        height: auto;
        min-height: 90vh;
        padding: 60px 20px;
        margin-top: 50px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-mantra {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 14px 32px;
    }

    /* ===== SECTION HEADER ===== */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* ===== ABOUT PREVIEW ===== */
    .about-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .about-list {
        margin: 20px 0;
    }

    .about-list li {
        padding: 10px 0;
        font-size: 0.95rem;
        gap: 10px;
    }

    .om-circle {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    /* ===== GURU PARAMPARA ===== */
    .guru-lineage {
        gap: 25px;
    }

    .guru-card {
        padding: 25px 20px;
    }

    .guru-card h3 {
        font-size: 1.4rem;
    }

    .guru-title {
        font-size: 0.95rem;
    }

    .lineage-arrow {
        font-size: 1.5rem;
    }

    .lineage-philosophy {
        margin-top: 40px;
        padding: 20px;
    }

    .lineage-philosophy p {
        font-size: 1rem;
    }

    /* ===== SERVICES ===== */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .services-cta p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* ===== MISSION ===== */
    .mission-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .mission-list li {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .mission-values {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 40px;
    }

    .value-card {
        padding: 20px;
    }

    .value-card h4 {
        font-size: 1.1rem;
    }

    /* ===== TESTIMONIALS ===== */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    /* ===== CTA ===== */
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.85rem;
    }
}

/* ========== SMALL MOBILE (320px - 479px) ========== */

@media (max-width: 479px) {
    html {
        font-size: 13px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .container {
        width: 95%;
    }

    section {
        padding: 40px 0;
    }

    .nav-brand h2 {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 80vh;
        padding: 40px 15px;
    }

    .hero-mantra {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .guru-card {
        padding: 20px 15px;
    }

    .om-circle {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .value-card {
        padding: 15px;
    }

    .mission-values {
        gap: 10px;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .link-arrow {
        display: block;
        margin-top: 15px;
    }
}

/* ========== LANDSCAPE MODE ========== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }
}

/* ========== PRINT STYLES ========== */

@media print {
    nav,
    .navbar,
    .btn,
    .cta-buttons,
    .hero-buttons {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* ========== ACCESSIBILITY ========== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #F5F5F5;
        --surface: #FFFFFF;
        --text-primary: #0B0B0B;
        --text-secondary: #333333;
    }
}

/* ========== RETINA DISPLAY ========== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .om-circle {
        box-shadow: 0 0 30px rgba(217, 119, 6, 0.3);
    }
}
