/* ============================================================
   UniWebApps — Responsive Stylesheet
   Mobile-first breakpoints
   ============================================================ */


/* ============================================================
   1200px — large desktop tighten
   ============================================================ */
@media (max-width: 1200px) {
    :root {
        --uniwebapps-section-pad: 110px;
    }

    .uniwebapps-container {
        padding-inline: 32px;
    }

    .uniwebapps-tech__grid {
        --uniwebapps-tech-cols: 7;
        --uniwebapps-tech-gap: 10px;
        gap: 10px;
    }

    .uniwebapps-tech__cell {
        padding: 28px 12px;
    }
}


/* ============================================================
   1024px — tablet landscape / small desktop
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --uniwebapps-section-pad: 90px;
    }

    .uniwebapps-container {
        padding-inline: 24px;
    }

    /* HERO */
    .uniwebapps-hero__title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }

    .uniwebapps-stamp {
        width: 132px;
        height: 132px;
    }

    .uniwebapps-stamp__core {
        width: 52px;
        height: 52px;
    }

    /* PHILOSOPHY */
    .uniwebapps-philosophy__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .uniwebapps-philosophy__image-wrap {
        aspect-ratio: 16/10;
    }

    /* WORKS */
    .uniwebapps-works__head {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .uniwebapps-works__head-left {
        position: static;
    }

    /* SERVICES */
    .uniwebapps-services__head-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .uniwebapps-service-row {
        grid-template-columns: 200px 1fr 1.6fr;
        gap: 28px;
    }

    .uniwebapps-service-row__image {
        width: 200px;
        height: 130px;
    }

    .uniwebapps-service-row__title h3 {
        font-size: 1.5rem;
    }

    /* TESTIMONIALS */
    .uniwebapps-testimonial__body {
        padding: 48px 40px;
    }

    /* TECH */
    .uniwebapps-tech__grid {
        --uniwebapps-tech-cols: 5;
    }

    /* INSIGHTS */
    .uniwebapps-insights__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uniwebapps-insights__grid > .uniwebapps-post:nth-child(3) {
        grid-column: span 2;
        max-width: 50%;
    }

    /* FAQ */
    .uniwebapps-faq__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .uniwebapps-faq__head {
        position: static;
    }

    /* FOOTER */
    .uniwebapps-footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* ============================================================
   900px — tablet portrait, mobile menu kicks in
   ============================================================ */
@media (max-width: 900px) {
    :root {
        --uniwebapps-section-pad: 80px;
    }

    /* NAVIGATION — mobile drawer.
       Removing backdrop-filter on mobile is critical: it creates a
       containing block that traps the fixed menu inside the small pill. */
    .uniwebapps-nav {
        z-index: 200;
    }

    .uniwebapps-nav__inner {
        padding: 10px 10px 10px 20px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.96);
    }

    .uniwebapps-nav--scrolled .uniwebapps-nav__inner {
        background: rgba(255, 255, 255, 0.98);
    }

    .uniwebapps-nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.4s var(--uniwebapps-ease), transform 0.4s var(--uniwebapps-ease), visibility 0s linear 0.4s;
        z-index: 200;
        padding: 100px 24px 48px;
        overflow-y: auto;
    }

    .uniwebapps-nav__menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--uniwebapps-brand-blue) 0%, var(--uniwebapps-brand-pink) 50%, var(--uniwebapps-brand-orange) 100%);
        background-size: 200% 100%;
        animation: uniwebappsGradientShift 6s ease-in-out infinite;
    }

    .uniwebapps-nav__menu[data-uniwebapps-open="true"] {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.4s var(--uniwebapps-ease), transform 0.4s var(--uniwebapps-ease), visibility 0s;
    }

    .uniwebapps-nav__close {
        display: flex;
        position: absolute;
        top: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid var(--uniwebapps-border);
        background: var(--uniwebapps-surface);
        color: var(--uniwebapps-text);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s var(--uniwebapps-ease);
        z-index: 10;
    }

    .uniwebapps-nav__close:hover {
        background: var(--uniwebapps-dark);
        color: var(--uniwebapps-text-on-dark);
        border-color: var(--uniwebapps-dark);
        transform: rotate(90deg);
    }

    .uniwebapps-nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 440px;
        border-top: 1px solid var(--uniwebapps-border);
    }

    .uniwebapps-nav__list li {
        border-bottom: 1px solid var(--uniwebapps-border);
    }

    .uniwebapps-nav__link {
        display: block;
        text-align: center;
        font-size: 1.875rem;
        font-family: var(--uniwebapps-font-display);
        font-weight: 400;
        padding: 18px;
        color: var(--uniwebapps-text);
        letter-spacing: -0.01em;
        transition: color 0.3s var(--uniwebapps-ease);
    }

    .uniwebapps-nav__link:hover,
    .uniwebapps-nav__link:focus {
        background: linear-gradient(
            100deg,
            var(--uniwebapps-brand-blue) 0%,
            var(--uniwebapps-brand-pink) 50%,
            var(--uniwebapps-brand-orange) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .uniwebapps-nav__menu-cta {
        display: inline-flex;
        margin-top: 16px;
        padding: 16px 28px;
        font-size: 1rem;
    }

    .uniwebapps-nav__cta {
        display: none;
    }

    .uniwebapps-nav__toggle {
        display: flex;
        position: relative;
        z-index: 210;
    }

    /* When menu is open, hide the hamburger; close-button inside menu handles dismissal */
    .uniwebapps-nav__toggle[aria-expanded="true"] {
        opacity: 0;
        pointer-events: none;
    }

    /* HERO */
    .uniwebapps-hero {
        padding-top: 110px;
        height: 100vh;
        min-height: 640px;
    }

    .uniwebapps-hero__inner {
        padding-bottom: 24px;
    }

    .uniwebapps-hero__title {
        font-size: clamp(2.25rem, 8vw, 3.75rem);
        margin-bottom: 32px;
    }

    .uniwebapps-hero__bottom {
        gap: 20px;
        margin-bottom: 24px;
    }

    .uniwebapps-stamp {
        width: 116px;
        height: 116px;
    }

    .uniwebapps-stamp__core {
        width: 48px;
        height: 48px;
    }

    .uniwebapps-stamp__text {
        font-size: 9.5px;
    }

    .uniwebapps-marquee__item {
        font-size: 1.25rem;
    }

    /* PROCESS */
    .uniwebapps-process__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .uniwebapps-step {
        padding: 32px 28px;
    }

    .uniwebapps-step__number {
        margin-bottom: 40px;
    }

    /* TESTIMONIALS */
    .uniwebapps-testimonials__head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .uniwebapps-testimonial {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .uniwebapps-testimonial__visual {
        aspect-ratio: 16/10;
    }

    .uniwebapps-testimonial__body {
        padding: 40px 32px;
    }

    /* TECH */
    .uniwebapps-tech__grid {
        --uniwebapps-tech-cols: 4;
    }

    /* PRICING */
    .uniwebapps-pricing__grid {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .uniwebapps-plan {
        padding: 40px 32px;
    }

    /* INSIGHTS */
    .uniwebapps-insights__head {
        flex-direction: column;
        align-items: flex-start;
    }

    /* SERVICES */
    .uniwebapps-service-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 16px;
        margin-inline: -16px;
    }

    .uniwebapps-service-row:hover .uniwebapps-service-row__title h3 {
        transform: translateX(4px);
    }

    .uniwebapps-service-row__image {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }

    .uniwebapps-service-row__title h3 br {
        display: none;
    }

    .uniwebapps-service-row__title h3 span {
        display: inline;
    }
}


/* ============================================================
   640px — mobile
   ============================================================ */
@media (max-width: 640px) {
    :root {
        --uniwebapps-section-pad: 64px;
    }

    .uniwebapps-container {
        padding-inline: 20px;
    }

    .uniwebapps-section__head {
        margin-bottom: 48px;
    }

    /* NAV */
    .uniwebapps-nav {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .uniwebapps-nav__inner {
        padding: 8px 8px 8px 16px;
    }

    .uniwebapps-nav__logo {
        width: 36px;
    }

    /* HERO */
    /* HERO at small */
    .uniwebapps-hero {
        height: auto;
        min-height: 100vh;
    }

    .uniwebapps-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .uniwebapps-hero__trust {
        gap: 12px;
    }

    .uniwebapps-hero__trust-text {
        font-size: 0.8125rem;
    }

    .uniwebapps-stamp {
        width: 96px;
        height: 96px;
        align-self: flex-end;
    }

    .uniwebapps-stamp__text {
        font-size: 8.5px;
    }

    .uniwebapps-stamp__core {
        width: 38px;
        height: 38px;
    }

    .uniwebapps-marquee__item {
        font-size: 1.0625rem;
    }

    /* Footer at small */
    .uniwebapps-footer__email-large {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .uniwebapps-footer__social {
        width: 42px;
        height: 42px;
    }

    /* PHILOSOPHY */
    .uniwebapps-stats {
        padding: 36px 28px;
    }

    .uniwebapps-stats__number {
        font-size: 2.5rem;
    }

    /* WORKS */
    .uniwebapps-works__grid {
        grid-template-columns: 1fr;
    }

    /* PROCESS */
    .uniwebapps-process__grid {
        grid-template-columns: 1fr;
    }

    /* TESTIMONIALS */
    .uniwebapps-testimonial__body {
        padding: 32px 24px;
        gap: 18px;
    }

    .uniwebapps-carousel__btn {
        width: 44px;
        height: 44px;
    }

    /* TECH */
    .uniwebapps-tech__grid {
        --uniwebapps-tech-cols: 3;
        --uniwebapps-tech-gap: 8px;
        gap: 8px;
    }

    .uniwebapps-tech__cell {
        padding: 24px 8px;
        gap: 10px;
    }

    .uniwebapps-tech__cell svg {
        width: 32px;
        height: 32px;
    }

    .uniwebapps-tech__cell span {
        font-size: 0.75rem;
    }

    /* PRICING */
    .uniwebapps-plan {
        padding: 32px 24px;
    }

    .uniwebapps-plan__price-amount {
        font-size: 2.75rem;
    }

    /* INSIGHTS */
    .uniwebapps-insights__grid {
        grid-template-columns: 1fr;
    }

    .uniwebapps-insights__grid > .uniwebapps-post:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }

    /* CTA */
    .uniwebapps-cta {
        padding-block: 80px;
    }

    /* FOOTER */
    .uniwebapps-footer {
        padding-block: 60px 24px;
    }

    .uniwebapps-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .uniwebapps-footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        margin-bottom: 40px;
    }

    .uniwebapps-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* ============================================================
   480px — small mobile
   ============================================================ */
@media (max-width: 480px) {
    .uniwebapps-container {
        padding-inline: 16px;
    }

    .uniwebapps-hero__title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .uniwebapps-hero__subtitle {
        font-size: 1rem;
    }

    .uniwebapps-tech__grid {
        --uniwebapps-tech-cols: 2;
    }

    .uniwebapps-footer__cols {
        grid-template-columns: 1fr;
    }

    .uniwebapps-accordion__summary {
        font-size: 1rem;
        padding: 22px 0;
    }

    .uniwebapps-pricing__trust {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
}


/* ============================================================
   CONTACT PAGE — responsive
   ============================================================ */
@media (max-width: 1024px) {
    .uniwebapps-contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .uniwebapps-contact__info {
        position: static;
    }
}

@media (max-width: 900px) {
    .uniwebapps-hero--compact {
        padding-top: 140px;
        padding-bottom: 60px;
        height: auto;
        min-height: 0;
    }

    .uniwebapps-contact {
        padding-block: 60px;
    }

    .uniwebapps-contact__form {
        padding: 32px 24px;
    }

    .uniwebapps-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .uniwebapps-map__frame {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .uniwebapps-hero--compact {
        padding-top: 120px;
    }

    .uniwebapps-contact__form {
        padding: 28px 20px;
    }

    .uniwebapps-form__submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .uniwebapps-form__submit {
        width: 100%;
        justify-content: center;
    }

    .uniwebapps-map__frame {
        height: 320px;
    }
}


/* ============================================================
   INNER PAGES — responsive
   ============================================================ */
@media (max-width: 1024px) {
    .uniwebapps-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .uniwebapps-team__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .uniwebapps-checklist__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .uniwebapps-checklist__head {
        position: static;
    }
    .uniwebapps-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .uniwebapps-detail__grid {
        gap: 40px;
    }
    .uniwebapps-service-row {
        grid-template-columns: 200px 1fr 1.6fr 50px;
    }
}

@media (max-width: 900px) {
    .uniwebapps-detail__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .uniwebapps-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .uniwebapps-feature {
        padding: 28px 24px;
    }
    .uniwebapps-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .uniwebapps-related__grid {
        grid-template-columns: 1fr;
    }
    .uniwebapps-service-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .uniwebapps-service-row__arrow {
        grid-column: 1;
        justify-self: start;
        align-self: start;
    }
}

@media (max-width: 640px) {
    .uniwebapps-features__grid {
        grid-template-columns: 1fr;
    }
    .uniwebapps-team__grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .uniwebapps-nav,
    .uniwebapps-hero__mesh,
    .uniwebapps-stamp,
    .uniwebapps-cta,
    .uniwebapps-footer,
    .uniwebapps-carousel__nav,
    .uniwebapps-carousel__dots,
    .uniwebapps-btn {
        display: none !important;
    }

    .uniwebapps-section {
        padding-block: 32px;
        page-break-inside: avoid;
    }

    .uniwebapps-section--dark {
        background: white !important;
        color: black !important;
    }

    .uniwebapps-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
