/* =========================================================
   ARKK DIGITAL — RESPONSIVE REFINEMENTS
   Global viewport and responsive safeguards
   ========================================================= */

/* ---------- 1. Responsive typography ---------- */

.text-display {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.text-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

/* ---------- 2. Responsive visibility ---------- */

.hide-mobile {
    display: initial;
}

.hide-desktop {
    display: none;
}

/* ---------- 3. Overflow safeguards ---------- */

body {
    overflow-x: hidden;
}

.container,
.container-wide {
    min-width: 0;
}

.grid > *,
.flex > * {
    min-width: 0;
}

/* ---------- 4. Tablet refinements ---------- */

@media (max-width: 1024px) {
    .text-display {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }
}

/* ---------- 5. Mobile refinements ---------- */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: initial !important;
    }

    .text-display {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .text-lead {
        font-size: var(--font-size-base);
    }

    .text-left-mobile {
        text-align: left;
    }

    .text-center-mobile {
        text-align: center;
    }

    .flex-mobile-column {
        flex-direction: column;
    }

    .flex-mobile-column > * {
        width: 100%;
    }

    .mobile-full-width {
        width: 100%;
    }
}

/* ---------- 6. Small mobile refinements ---------- */

@media (max-width: 480px) {
    .text-display {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .mobile-stack {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-stack > * {
        width: 100%;
    }
}

/* ---------- 7. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Mobile: ergonomic, thumb-friendly interactions */
@media(max-width:768px){.btn,.service-link,.nav-toggle,.primary-navigation a{min-height:48px}.hero-actions{gap:.75rem}.hero-actions .btn{width:100%;padding:1rem 1.25rem}.service-card,.approach-step{padding:clamp(1.25rem,5vw,1.75rem)}.service-link{padding-block:.85rem;align-self:flex-start}.contact-form .btn{min-height:52px}.footer-nav a{padding:.5rem 0}}
@media(max-width:480px){.hero-title-accent{padding-bottom:.24em!important}.hero-section{padding-bottom:calc(4rem + env(safe-area-inset-bottom))}}


/* Phase 4: consistent touch ergonomics on mobile */
@media(max-width:768px){
 .nav-toggle{width:48px;height:48px;min-width:48px;min-height:48px}
 .contact-form .form-control{min-height:48px}
 .contact-form select.form-control{min-height:48px}
}

/* Touch devices: avoid hover-only motion/glare activation */
@media(hover:none){
 .btn:hover,.service-card:hover,.nav-build:hover{transform:none}
 .btn:hover::before,.service-card:hover::before,.approach-step:hover::before,.contact-form:hover::before{animation:none;opacity:0}
}
