/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767px) {
    /* Hero adjustments */
    .hero {
        min-height: 70vh;
    }

    .hero--short {
        min-height: 45vh;
    }

    .hero--shorter {
        min-height: 40vh;
    }

    .hero__content {
        padding-bottom: var(--space-8);
    }

    .hero__title {
        font-size: var(--text-3xl);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero__subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }

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

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

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

    .stats__divider {
        display: none;
    }

    /* Service sections */
    .service-detail__image {
        order: -1;
    }

    /* Team cards */
    .team-card {
        flex-direction: column;
    }

    .team-card__image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    /* Timeline vertical */
    .timeline {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline__line {
        width: 2px;
        height: 100%;
        left: 20px;
        top: 0;
    }

    .timeline__step {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-5);
        text-align: left;
    }
}

/* ---- Tablet (768px - 1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero__title {
        font-size: var(--text-4xl);
    }

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

    .stats__divider:nth-child(even) {
        display: none;
    }

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

    .team-card {
        max-width: 600px;
        margin-inline: auto;
    }
}

/* ---- Desktop (1024px+) ---- */
@media (min-width: 1024px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Extra Small (≤ 480px) ---- */
@media (max-width: 480px) {
    /* Tighter section padding */
    :root {
        --section-pad-x: 1rem;
    }

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

    .hero__title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

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

    .hero__badge {
        margin-bottom: var(--space-3);
    }

    /* Service cards single column */
    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    /* Stats 2-col compact */
    .stat__number {
        font-size: var(--text-2xl);
    }

    /* Section headers */
    .section-label {
        font-size: var(--text-xs);
    }

    /* Mobile nav links smaller */
    .mobile-menu__link {
        font-size: var(--text-2xl);
    }

    /* Service detail compact */
    .service-detail__number {
        font-size: 3rem;
    }

    .service-detail__title {
        font-size: var(--text-2xl);
    }

    .service-detail__image img {
        min-height: 200px;
    }

    /* Service nav: smaller link padding */
    .service-nav__link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    /* Timeline compact */
    .timeline__step {
        gap: var(--space-3);
    }

    /* Card body compact */
    .card__body {
        padding: var(--space-4);
    }

    .card__title {
        font-size: var(--text-lg);
    }

    /* Footer compact */
    .footer__main {
        padding: var(--space-8) 0 var(--space-6);
    }

    /* CTA section */
    .cta__contact-icon {
        width: 36px;
        height: 36px;
    }

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

    .map-container {
        height: 200px;
    }

    /* Header padding */
    .site-header {
        padding: var(--space-3) 0;
    }

    .site-header.header--scrolled {
        padding: var(--space-2) 0;
    }

    .header__logo-icon {
        width: 34px;
        height: 34px;
    }

    .header__logo-text span:first-child {
        font-size: var(--text-sm);
    }
}

/* ---- Very Small (≤ 360px) ---- */
@media (max-width: 360px) {
    .hero {
        min-height: 60vh;
    }

    .hero__title {
        font-size: 1.5rem;
    }

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

    .header__logo-text span:last-child {
        display: none;
    }
}

/* ---- Wide Desktop (1440px+) ---- */
@media (min-width: 1440px) {
    .container {
        padding-inline: var(--space-10);
    }
}
