/* ==========================================================================
   RENTAS YEKA - Responsive Styles v3
   Updated for: hero-split, about-split, bento-grid, services-numbered,
   cta-banner, footer__top, properties-grid, testimonials-grid
   ========================================================================== */

/* ---------- Large Desktop (max-width: 1200px) ---------- */
@media (max-width: 1200px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Tablet (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3.5rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

    /* Header tablet */
    .header--dark:not(.scrolled) .header__inner {
        padding-right: var(--space-xl);
    }

    .header.scrolled .header__inner {
        padding-left: var(--space-2xl);
        padding-right: var(--space-2xl);
    }

    /* Hero split → stacked */
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-split__left {
        padding: calc(var(--header-height) + var(--space-3xl)) var(--space-2xl) var(--space-2xl);
        order: 2;
    }

    .hero-split__right {
        order: 1;
        height: 50vh;
        position: relative;
    }

    .hero-split__content {
        max-width: 100%;
    }

    /* About split → stacked */
    .about-split {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-split__image {
        height: 400px;
    }

    .about-split__experience {
        bottom: -10px;
        right: var(--space-xl);
    }

    /* Bento grid → 2 columns */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-item--tall {
        grid-row: span 2;
    }

    .bento-item--wide {
        grid-column: span 1;
    }

    /* Properties → 2 columns */
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials → 2 columns */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Service numbered */
    .service-num {
        grid-template-columns: 60px 1fr 48px;
    }

    .service-num__number {
        font-size: var(--text-3xl);
    }
}

/* ---------- Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --header-height: 70px;
    }

    .section {
        padding: var(--space-3xl) var(--space-lg);
    }

    /* Header Mobile */
    .header--dark {
        background: rgba(13, 13, 13, 0.95);
    }

    .header--dark:not(.scrolled) .header__inner {
        padding-right: var(--space-xl);
    }

    .header__inner {
        justify-content: space-between;
        gap: 0;
    }

    .header.scrolled .header__inner {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
        justify-content: space-between;
    }

    .header__logo {
        max-width: 50px;
        opacity: 1;
    }

    .header__menu-toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-dark);
        flex-direction: column;
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s var(--easing-smooth);
        z-index: 999;
        align-items: flex-start;
    }

    .header__nav.active {
        right: 0;
    }

    .header--dark .header__nav a {
        display: block;
        width: 100%;
        padding: var(--space-lg) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.7);
    }

    .header--dark .header__nav a::after {
        display: none;
    }

    .header__lang {
        margin-top: var(--space-xl);
        padding-top: var(--space-xl);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Hero Split Mobile */
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-split__left {
        padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-xl);
        order: 2;
    }

    .hero-split__right {
        order: 1;
        height: 45vh;
    }

    .hero-split__title {
        font-size: var(--text-3xl);
    }

    .hero-split__text {
        font-size: var(--text-sm);
    }

    .hero-split__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-split__actions .btn {
        text-align: center;
    }

    .hero-split__stats {
        gap: var(--space-xl);
    }

    .hero-stat strong {
        font-size: var(--text-2xl);
    }

    /* About Mobile */
    .about-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-split__image {
        height: 300px;
    }

    .about-split__experience {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-flex;
        gap: var(--space-sm);
        align-items: center;
        margin-top: var(--space-md);
        padding: var(--space-md) var(--space-lg);
    }

    .about-split__experience strong {
        font-size: var(--text-2xl);
    }

    /* Services Numbered Mobile */
    .service-num {
        grid-template-columns: 50px 1fr;
        gap: var(--space-md);
    }

    .service-num__icon {
        display: none;
    }

    .service-num__number {
        font-size: var(--text-2xl);
    }

    .service-num__content h3 {
        font-size: var(--text-lg);
    }

    .service-num__content p {
        font-size: var(--text-xs);
    }

    /* Bento Grid Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .bento-item--wide,
    .bento-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Properties Mobile */
    .properties-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial:last-child {
        max-width: 100%;
    }

    /* CTA Banner Mobile */
    .cta-banner {
        min-height: 400px;
        padding: var(--space-3xl) var(--space-lg);
    }

    .cta-banner__content h2 {
        font-size: var(--text-2xl);
    }

    .cta-banner__content p {
        font-size: var(--text-base);
    }

    .cta-banner__logo {
        height: 50px;
    }

    .cta-banner__actions {
        flex-direction: column;
        align-items: center;
    }

    /* Footer Mobile */
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__bottom {
        text-align: center;
    }

    /* Modal Mobile */
    .modal__content {
        width: 95%;
        margin: 15px auto;
        padding: var(--space-md);
    }

    .modal__image {
        max-height: calc(100vh - 260px);
    }

    .modal__nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .modal__nav--prev {
        left: 5px;
    }

    .modal__nav--next {
        right: 5px;
    }

    .modal__title {
        font-size: var(--text-lg);
    }

    .thumbnail {
        width: 55px;
        height: 42px;
    }

    /* Buttons Mobile */
    .btn {
        padding: 14px 30px;
        font-size: var(--text-xs);
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* ---------- Small Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
    :root {
        --text-6xl: 2rem;
        --text-4xl: 1.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-split__stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .hero-stat strong {
        font-size: var(--text-xl);
    }

    .property-card__carousel {
        height: 200px;
    }

    .bento-grid {
        grid-auto-rows: 180px;
    }

    .about-split__image {
        height: 240px;
    }

    .service-num {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-lg) 0;
    }

    .service-num__number {
        font-size: var(--text-lg);
        color: var(--color-gold);
    }
}