/* ═══════════════════════════════════════════════════════════
   SISIRO — Responsive Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Max 1400px ─────────────────────────────────────────── */
@media (max-width: 1400px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: var(--space-2xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── Max 1200px ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .navbar__nav {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar-sisiro {
        padding: 0 var(--space-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .timeline__content {
        width: 42%;
    }
}

/* ─── Max 992px ──────────────────────────────────────────── */
@media (max-width: 992px) {
    :root {
        --section-padding: clamp(3rem, 6vw, 5rem);
        --navbar-height: 70px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Timeline becomes vertical centered */
    .timeline__line {
        left: 30px;
    }

    .timeline__item,
    .timeline__item:nth-child(odd),
    .timeline__item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 70px;
    }

    .timeline__content {
        width: 100%;
    }

    .timeline__dot {
        left: 30px;
    }

    .hero__decor {
        display: none;
    }

    .experience-section {
        padding: var(--space-4xl) 0;
    }
}

/* ─── Max 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .hero {
        min-height: 600px;
    }

    .hero__content {
        padding: 0 var(--space-md);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .hero__cta-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero__cta-group .btn-luxury {
        width: 100%;
        max-width: 300px;
    }

    .hero__scroll-indicator {
        bottom: 20px;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-lg) var(--space-sm);
    }

    .stat-card__number {
        font-size: var(--text-4xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-luxury__row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }

    .page-hero {
        height: 40vh;
        min-height: 280px;
    }

    .page-hero__title {
        font-size: var(--text-4xl);
    }

    .ba-slider {
        max-width: 100%;
    }

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

    .btn-luxury--lg {
        padding: 16px 36px;
        font-size: var(--text-sm);
    }

    .package-card {
        padding: var(--space-xl);
    }

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

    .whatsapp-float {
        right: 16px;
        bottom: 70px;
        width: 48px;
        height: 48px;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }

    .navbar__mobile-menu {
        max-width: 100%;
    }
}

/* ─── Max 576px ──────────────────────────────────────────── */
@media (max-width: 576px) {
    html {
        font-size: 15px;
    }

    .container-luxury {
        padding: 0 var(--space-md);
    }

    .hero {
        min-height: 100svh;
    }

    h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .section-label {
        font-size: 10px;
    }

    .section-label::before,
    .section-label::after {
        width: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 4/5;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        padding: var(--space-lg);
    }

    .testimonial-card__text {
        font-size: var(--text-base);
    }

    .feature-card {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .gold-divider {
        max-width: 150px;
    }

    .faq-item__question {
        font-size: var(--text-base);
        padding: var(--space-md) 0;
    }

    .payment-container {
        padding: var(--space-lg) var(--space-sm);
    }

    .success-container {
        padding: var(--space-2xl) var(--space-sm);
    }

    .success-checkmark {
        width: 80px;
        height: 80px;
    }

    .map-container {
        height: 220px;
    }

    .course-card__image-wrapper {
        height: 180px;
    }

    /* Reduce animation intensity on mobile */
    .anim-float { animation-duration: 8s; }
    .anim-float-slow { animation-duration: 10s; }

    .grain-overlay {
        display: none;
    }
}

/* ─── Landscape phones ───────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: var(--space-4xl) 0;
    }

    .hero__scroll-indicator {
        display: none;
    }
}

/* ─── Touch device optimizations ─────────────────────────── */
@media (hover: none) {
    .service-card:hover .service-card__image,
    .gallery-item:hover .gallery-item__image,
    .course-card:hover .course-card__image,
    .insta-item:hover img {
        transform: none;
    }

    .service-card:hover,
    .package-card:hover,
    .course-card:hover,
    .stat-card:hover,
    .feature-card:hover {
        transform: none;
    }

    .gallery-item__overlay {
        opacity: 0;
    }

    .insta-item__overlay {
        opacity: 0;
    }

    .navbar__link::after {
        display: none;
    }
}

/* ─── High DPI / Retina ──────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .grain-overlay {
        opacity: 0.25;
    }
}

/* ─── Print Styles ───────────────────────────────────────── */
@media print {
    .navbar-sisiro,
    .scroll-progress,
    .back-to-top,
    .whatsapp-float,
    .hero__particles,
    .hero__decor,
    .grain-overlay,
    .preloader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
