/* ═══════════════════════════════════════════════════════════════
   HELVEN STUDIO - Responsive Stylesheet
   Mobile-first responsive breakpoints
   ═══════════════════════════════════════════════════════════════ */

/* ─── TABLET (max-width: 1024px) ─── */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --gap: 30px;
        --card-padding: 30px;
    }

    /* Header */
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100vh;
        background: var(--secondary);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        opacity: 0;
        z-index: 1000;
        padding: 100px 32px 40px;
    }

    .header__nav.active {
        transform: translateX(0);
        opacity: 1;
    }

    .header__menu {
        flex-direction: column;
        gap: 8px;
    }

    .header__link {
        display: block;
        padding: 14px 20px;
        font-size: 17px;
        border-radius: var(--radius-sm);
    }

    .header__link:hover {
        background-color: var(--bg-light);
    }

    .header__link--cta {
        text-align: center;
        margin-left: 0;
        margin-top: 16px;
    }

    /* Mobile menu toggle animation */
    .header__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Mobile overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        overflow: visible;
        min-height: auto;
        padding-top: 100px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
        align-items: center;
    }

    .hero__content {
        padding-bottom: 40px;
        padding-top: 16px;
        padding-left: 0;
        position: relative;
        z-index: 3;
        grid-column: 1;
    }

    .hero__badge {
        position: relative;
        z-index: 3;
        margin-top: -24px;
    }

    .hero__image {
        position: relative;
        left: auto;
        bottom: auto;
        order: -1;
        margin-bottom: -40px;
        z-index: 1;
        min-height: auto;
        height: auto;
        width: 100%;
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        margin: 0 auto 32px;
    }

    .hero__cta-group {
        justify-content: center;
    }

    .hero__photo-wrapper {
        max-width: 400px;
        margin: 0 auto;
        height: auto;
        width: 100%;
    }

    .hero__photo {
        height: auto;
        width: 100%;
        max-width: 100%;
        max-height: none;
        object-position: center;
        margin-bottom: -40px;
    }

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

    /* About */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        max-width: 400px;
        margin: 0 auto;
    }

    .section-title--left {
        text-align: center;
    }

    .about__content .section-tag {
        text-align: center;
        display: block;
    }

    .about__text {
        text-align: center;
    }

    .about__highlights {
        justify-content: center;
    }

    /* Case Studies */
    .case-study {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-study--vertical {
        grid-template-columns: 1fr;
    }

    .case-study--vertical .case-study__image {
        max-width: 200px;
        margin: 0 auto;
    }

    .case-study--right .case-study__content {
        order: 1;
    }

    .case-study--right .case-study__image {
        order: 2;
    }

    .case-study__metrics {
        flex-wrap: wrap;
        gap: 16px;
    }

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

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

    /* Consulting Results */
    .consulting-results__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Booking */
    .booking__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer__top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ─── MOBILE LARGE (max-width: 768px) ─── */
@media (max-width: 768px) {
    :root {
        --h1-size: 36px;
        --h2-size: 28px;
        --h3-size: 24px;
        --body-size: 16px;
        --section-padding: 60px;
        --gap: 20px;
        --card-padding: 24px;
    }

    .section-title {
        font-size: var(--h2-size);
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 0;
    }

    .hero__image {
        margin-bottom: -45px;
    }

    .hero__badge {
        margin-top: -28px;
    }

    .hero__title {
        font-size: var(--h1-size);
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: center;
    }

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

    .hero__stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .hero__stat {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hero__stat-number {
        font-size: 28px;
    }

    .hero__scroll-indicator {
        display: none;
    }

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

    /* Clients */
    .clients__track {
        gap: 40px;
        animation-duration: 25s;
    }

    .client-logo {
        padding: 8px 14px;
    }

    .client-logo img {
        height: 32px;
        min-width: 50px;
        max-width: 120px;
    }

    /* CTA Mid */
    .cta-mid__title {
        font-size: 28px;
    }

    .cta-mid__text {
        font-size: 17px;
    }

    /* About */
    .about__image::after {
        display: none;
    }

    .about__highlights {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about__highlight {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Case Studies */
    .case-study__title {
        font-size: 22px;
    }

    .case-study__image--grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Screenshots scale naturally on mobile */
    .case-study__image img {
        width: 100%;
        height: auto;
    }

    .case-study__metric {
        min-width: 80px;
        padding: 12px 16px;
    }

    .case-study__metric-value {
        font-size: 20px;
    }

    /* Consulting results - 2 columns compact on mobile */
    .consulting-results__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    /* Stats */
    .stats-showcase__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card img {
        height: auto;
    }

    .stat-card__value {
        font-size: 22px;
    }

    /* Booking */
    .booking__checklist li {
        font-size: 15px;
    }

    /* Footer */
    .footer__top {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

/* ─── MOBILE SMALL (max-width: 480px) ─── */
@media (max-width: 480px) {
    :root {
        --h1-size: 30px;
        --h2-size: 24px;
        --h3-size: 20px;
        --section-padding: 48px;
        --card-padding: 20px;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .btn--large {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
    }

    .hero__image {
        margin-bottom: -40px;
    }

    .hero__badge {
        margin-top: -24px;
        font-size: 12px;
        padding: 6px 14px;
    }

    .hero__photo-wrapper {
        max-width: 340px;
    }

    /* Services */
    .service-card__icon {
        width: 52px;
        height: 52px;
    }

    .service-card__title {
        font-size: 18px;
    }

    /* Stats */
    .stats-showcase__grid {
        grid-template-columns: 1fr;
    }

    .stat-card img {
        height: auto;
    }

    /* Consulting results - tighter on small screens */
    .consulting-results__grid {
        gap: 8px;
    }

    /* Booking */
    .booking__form {
        padding: 20px;
    }

    .booking__form-title {
        font-size: 20px;
    }

    /* Case Studies */
    .case-study {
        margin-bottom: 48px;
        gap: 20px;
    }

    .case-study__metrics {
        flex-direction: column;
    }

    .case-study__metric {
        width: 100%;
    }

    .case-study__image img {
        width: 100%;
        height: auto;
    }

    .case-study__text {
        font-size: 14px;
    }
}
