/* ========================================================================== 
   FOOTPRINTS MEDIA — RESPONSIVE STYLESHEET
   Loaded after style.css. This file only controls responsive layout and does
   not change the existing brand theme, 3D hero, glass navigation or styling.
   ========================================================================== */

/* Large desktop / smaller laptop ------------------------------------------------ */
@media (max-width: 1199px) {
    .container {
        width: min(94%, 1140px);
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-floating-cards {
        width: 260px;
    }

    .float-card-1 {
        right: 0;
    }

    .float-card-2 {
        left: -18px;
    }

    .grid-4-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-top.grid-4-cols {
        gap: var(--space-xl);
    }
}

/* Tablet landscape -------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --header-offset: 90px;
    }

    .container,
    .container-md,
    .container-sm {
        width: min(94%, var(--container));
    }

    .grid-2-cols,
    .about-grid,
    .about-hero-grid,
    .services-hero-grid,
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .grid-3-cols,
    .why-grid,
    .why-grid-services,
    .values-grid,
    .info-grid,
    .team-grid,
    .challenges-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4-cols,
    .approach-grid,
    .trust-items,
    .trust-grid,
    .certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid,
    .services-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xl);
    }

    .process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xl);
    }

    .process-timeline::before {
        display: none;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-floating-cards {
        width: 100%;
        height: 220px;
        margin-top: var(--space-lg);
    }

    .intro-visual,
    .about-image {
        padding-right: 0;
        margin-bottom: var(--space-2xl);
    }

    .contact-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-wrapper,
    .contact-info-panel {
        border-right: 0;
        border-bottom: 1px solid var(--clr-border-soft);
    }

    .hero h1,
    .hero-title {
        font-size: var(--fs-4xl);
    }
}

/* Tablet portrait / mobile navigation ------------------------------------------ */
@media (max-width: 768px) {
    :root {
        --header-offset: 84px;
    }

    .site-header {
        padding: var(--space-xs) 0;
    }

    .navbar,
    .header-container {
        height: 70px;
    }

    .desktop-nav,
    .nav-links,
    .header-actions>.btn {
        display: none;
    }

    .menu-btn,
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        z-index: calc(var(--z-header) - 1);
    }

    .mobile-menu-overlay.active,
    .mobile-menu-overlay[aria-hidden="false"] {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-inner {
        max-width: none;
        height: 100%;
        justify-content: center;
        padding: calc(var(--header-offset) + var(--space-lg)) var(--space-md) var(--space-2xl);
    }

    .mobile-nav-links {
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .mobile-nav-link {
        font-size: var(--fs-3xl);
        font-weight: 500;
    }

    .mobile-menu-footer {
        margin-top: auto;
    }

    .mobile-menu-email,
    .mobile-menu-phone {
        font-size: var(--fs-base);
    }

    .mobile-menu-toggle.active .hamburger-line:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .mobile-menu-toggle.active .hamburger-line:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .grid-3-cols,
    .grid-4-cols,
    .grid-5-cols,
    .why-grid,
    .why-grid-services,
    .values-grid,
    .info-grid,
    .team-grid,
    .challenges-grid,
    .approach-grid,
    .trust-items,
    .trust-grid,
    .certificate-grid,
    .services-grid,
    .services-grid-large,
    .process-grid,
    .mission-grid,
    .problem-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero-container {
        align-items: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-floating-cards,
    .float-card-1,
    .float-card-2 {
        display: none;
    }

    .hero-cta-group,
    .hero-buttons {
        justify-content: center;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding-left: calc(80px + var(--space-md));
    }

    .process-timeline::before {
        display: block;
        top: 0;
        bottom: 0;
        left: 39px;
        width: 2px;
        height: auto;
    }

    .process-step {
        min-height: 104px;
    }

    .process-step .step-number {
        position: absolute;
        top: 0;
        left: calc(-80px - var(--space-md));
        margin: 0;
        box-shadow: 0 0 0 8px var(--clr-surface);
    }

    .testimonial-slider-container {
        padding: var(--space-xl) 0;
    }

    .testimonial-text {
        font-size: var(--fs-2xl);
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .author-avatar {
        width: 52px;
        height: 52px;
    }

    .cta-shapes {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
    }

    .footer-col.brand-col {
        grid-column: auto;
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
        align-items: center;
    }

    .legal-links {
        justify-content: center;
    }

    .about-hero,
    .services-hero {
        min-height: 70vh;
        padding-top: 100px;
    }

    .contact-form-wrapper,
    .contact-form-panel,
    .contact-info-wrapper,
    .contact-info-panel {
        padding: 30px 25px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        gap: 25px;
    }

    .service-card,
    .service-box,
    .why-card,
    .approach-card,
    .mission-card,
    .value-card,
    .problem-card,
    .solution-card {
        padding: 30px 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Large mobile ------------------------------------------------------------------ */
@media (max-width: 560px) {
    :root {
        --header-offset: 76px;
        --section-py: clamp(4.25rem, 14vw, 5.5rem);
    }

    html {
        font-size: 15px;
    }

    .container,
    .container-md,
    .container-sm {
        width: 94%;
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .brand-logo svg {
        width: 34px;
        height: 34px;
    }

    .brand-text {
        font-size: var(--fs-base);
    }

    .hero-section {
        min-height: 100svh;
    }

    .hero h1,
    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-subtitle {
        font-size: var(--fs-base);
    }

    .hero-description,
    .hero p {
        font-size: var(--fs-lg);
    }

    .hero-cta-group,
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 340px;
    }

    .hero-cta-group .btn,
    .hero-buttons .btn {
        width: 100%;
    }

    .btn-large,
    .btn-lg {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--fs-base);
    }

    .section-header {
        padding: 42px 0 25px;
    }

    .section-title {
        margin-bottom: var(--space-md);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .stat-item {
        padding: var(--space-md);
    }

    .stat-number {
        font-size: var(--fs-3xl);
    }

    .process-timeline {
        padding-left: calc(60px + var(--space-md));
    }

    .process-timeline::before {
        left: 29px;
    }

    .process-step .step-number {
        left: calc(-60px - var(--space-md));
        width: 60px;
        height: 60px;
        font-size: var(--fs-xl);
    }

    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .testimonial-text {
        font-size: var(--fs-xl);
    }

    .testimonial-author {
        gap: var(--space-sm);
    }

    .service-card {
        padding: var(--space-lg) var(--space-md);
    }

    .service-card::after {
        display: none;
    }

    .feature-item {
        align-items: flex-start;
        font-size: var(--fs-base);
    }

    .feature-check {
        width: 28px;
        height: 28px;
    }

    .cta-title,
    .cta-box h2 {
        font-size: var(--fs-3xl);
    }

    .cta-text,
    .cta-box p {
        font-size: var(--fs-lg);
        margin-bottom: var(--space-lg);
    }

    .footer-bottom {
        align-items: center;
    }

    .scroll-indicator {
        display: none;
    }

    .back-top {
        right: 18px;
        bottom: 18px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Small mobile ------------------------------------------------------------------ */
@media (max-width: 360px) {

    .hero h1,
    .hero-title {
        font-size: 2.55rem;
    }

    .mobile-nav-link {
        font-size: var(--fs-2xl);
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .section-label {
        padding: 7px 13px;
        letter-spacing: .1em;
    }
}

/* Short viewports --------------------------------------------------------------- */
@media (max-height: 700px) and (min-width: 769px) {
    .hero-section {
        min-height: auto;
        padding-top: 150px;
        padding-bottom: 105px;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .mobile-nav-links {
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .mobile-nav-link {
        font-size: var(--fs-2xl);
    }
}

/* Touch and accessibility ------------------------------------------------------- */
@media (hover: none),
(pointer: coarse) {

    body,
    a,
    button {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    .service-card:hover,
    .glass-card:hover,
    .project-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-floating-cards,
    .scroll-line::after {
        animation: none !important;
    }
}