/* ===================================
   RESPONSIVE.CSS — ELZADENT THEME
   Mobile-first breakpoint overrides
   Breakpoints:
     sm:  480px
     md:  768px
     lg:  1024px
     xl:  1280px
   =================================== */

/* ===================================
   LARGE DESKTOP (1280px+)
   =================================== */
@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   DESKTOP ADJUSTMENTS (1024px–1279px)
   =================================== */
@media (max-width: 1279px) {
    :root {
        --container-max: 1100px;
    }

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

    .footer-grid > *:first-child {
        grid-column: 1 / -1;
    }
}

/* ===================================
   TABLET LANDSCAPE (768px–1023px)
   =================================== */
@media (max-width: 1023px) {
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: var(--space-6);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-bottom: none;
    }

    /* Timeline */
    .timeline::before {
        left: 16px;
        transform: none;
    }

    .timeline-item {
        grid-template-columns: 32px 1fr;
        gap: var(--space-4);
    }

    .timeline-item__dot {
        grid-column: 1;
        margin-top: var(--space-5);
    }

    .timeline-item--left .timeline-item__content,
    .timeline-item--right .timeline-item__content {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }

    .timeline-item--left .timeline-item__spacer,
    .timeline-item--right .timeline-item__spacer {
        display: none;
    }
    :root {
        --header-height: 96px;
    }

    /* Header */
    .nav-primary {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* TranslatePress switcher in header — still visible on tablet */
    .header-actions .trp-language-switcher-container {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__credentials {
        justify-content: center;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* About Strip */
    .about-strip__inner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: var(--space-6);
    }

    .about-strip__links {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    /* Why Us */
    .why-us__grid {
        grid-template-columns: 1fr;
    }

    /* CTA Banner */
    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    /* About Main */
    .about-main__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about-photo-wrap {
        position: static;
        max-width: 320px;
        margin-inline: auto;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Appointment */
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-grid > *:first-child {
        grid-column: 1 / -1;
    }
}

/* ===================================
   TABLET PORTRAIT (480px–767px)
   =================================== */
@media (max-width: 767px) {
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide open-status in header on mobile (too cluttered) */
    .header-actions .open-status {
        display: none;
    }

    /* Compact header on mobile — more room for actions */
    .site-logo__img {
        height: 72px;
    }

    .header-actions {
        gap: var(--space-2);
    }

.header-actions .btn--sm {
        padding: 6px 10px;
        font-size: var(--fs-xs);
    }

    /* FAQ */
    .faq-question {
        padding: var(--space-4) var(--space-5);
    }

    .faq-answer__inner {
        padding: var(--space-3) var(--space-5) var(--space-5);
    }

    /* Swiper: hide arrow buttons, show pagination dots on mobile */
    .testimonials-swiper .swiper-button-prev,
    .testimonials-swiper .swiper-button-next {
        display: none;
    }

    .testimonials-swiper .swiper-pagination {
        display: block;
    }

    .testimonials-swiper {
        padding-bottom: 36px !important;
    }

:root {
        --space-20: 3.5rem;
        --space-24: 4rem;
        --space-16: 3rem;
    }

    /* Section spacing */
    .section {
        padding-block: var(--space-16);
    }

    .section--lg {
        padding-block: var(--space-20);
    }

    /* Container padding */
    .container {
        padding-inline: var(--space-5);
    }

    /* Section headers */
    .section-subtitle {
        margin-bottom: var(--space-8);
    }

    /* Hero */
    .hero {
        min-height: 50vh;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-cards {
        grid-template-columns: 1fr;
    }

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

    /* About strip */
    .about-strip__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-strip__photo {
        margin-inline: auto;
    }

    .about-strip__links {
        justify-content: center;
    }

    /* Appointment form */
    .appointment-form-card {
        padding: var(--space-6);
    }

    /* Price table */
    .pricelist-table th,
    .pricelist-table td {
        padding: var(--space-3) var(--space-4);
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    /* CTA */
    .cta-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* Error 404 */
    .error-404-page__code {
        font-size: 5rem;
    }
}

/* ===================================
   MOBILE (max 479px)
   =================================== */
@media (max-width: 479px) {
    /* Stats: single column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .stat-item:last-child {
        border-bottom: none !important;
    }

    /* Floating CTA: always show on mobile after 400px scroll */
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-cta .btn {
        padding: 14px var(--space-5);
        font-size: var(--fs-xs);
    }
    :root {
        --header-height: 80px;
    }

    .container {
        padding-inline: var(--space-4);
    }

    .hero {
        min-height: 40vh;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

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

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

    /* About strip */
    .about-strip__links {
        flex-direction: column;
        align-items: stretch;
    }

    .about-strip__links .btn {
        text-align: center;
        justify-content: center;
    }

    /* Mobile menu nav */
    .mobile-menu nav a {
        font-size: var(--fs-xl);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .site-header,
    .site-footer,
    .cta-banner,
    .mobile-menu-toggle,
    .hero__video,
    .hero__overlay,
    .floating-cta {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    a {
        text-decoration: underline;
    }

    .hero {
        background: white;
        min-height: auto;
        padding-block: var(--space-8);
    }
}

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

/* ===================================
   DARK MODE (future-proof)
   =================================== */
/* TranslatePress language switcher styling */
.trp-language-switcher-container {
    font-size: var(--fs-sm) !important;
}

.trp-language-switcher {
    font-family: var(--font-body) !important;
}

