/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
    .nav-menu {
        gap: 0;
    }

    .nav-link {
        padding-inline: 9px;
        font-size: 15px;
    }

    .hero-container {
        grid-template-columns: 1fr 0.85fr;
        gap: 35px;
    }

    .hero-stat {
        padding-inline: 10px;
    }

    .hero-stat strong {
        font-size: 20px;
    }

    .hero-stat span {
        font-size: 12px;
    }

    .hero-stat small {
        font-size: 12px;
    }

    .hero-logo-surface {
        width: 250px;
        height: 250px;
    }

    .ring-one {
        width: 380px;
        height: 380px;
    }

    .ring-two {
        width: 480px;
        height: 480px;
    }

    .website-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        grid-template-columns: 55px 1fr 180px;
        gap: 25px;
        padding: 35px;
    }

    .contact-container {
        gap: 45px;
    }
}


/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 900px) {
    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.open span:first-child {
        transform: translateY(5.5px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:last-child {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 12px;
        border-radius: var(--radius-medium);
        background: var(--surface);
        box-shadow: var(--shadow-light);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 12px 15px;
    }

    .nav-link.active::after {
        left: auto;
        right: 15px;
        bottom: 50%;
        transform: translateY(50%);
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        margin-inline: auto;
    }

    .hero h1 {
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-stats {
        margin-inline: auto;
    }

    .hero-visual {
        min-height: 500px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-heading {
        max-width: 700px;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 250px;
    }

    .website-story {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-connector {
        height: 55px;
    }

    .story-connector span {
        transform: rotate(90deg);
    }

    .product-card {
        grid-template-columns: 50px 1fr;
    }

    .product-platforms {
        grid-column: 2;
        padding: 20px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .product-platforms>div {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .feedback-layout {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {
    :root {
        --section-padding: 85px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .navbar {
        padding: 13px 0;
    }

    .brand {
        font-size: 17px;
    }

    .brand img {
        width: 31px;
        height: 31px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: auto;
        padding-top: 125px;
        padding-bottom: 70px;
    }

    .hero h1 {
        font-size: clamp(40.8px, 12vw, 64px);
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .hero-badge {
        max-width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .hero-stat {
        padding: 15px;
        border-bottom: 1px solid var(--border);
    }

    .hero-stat:nth-child(2) {
        border-right: 0;
    }

    .hero-stat:nth-child(3),
    .hero-stat:nth-child(4) {
        border-bottom: 0;
    }

    .hero-stat:nth-child(4) {
        border-right: 0;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-logo-surface {
        width: 210px;
        height: 210px;
        padding: 24px;
    }

    .ring-one {
        width: 310px;
        height: 310px;
    }

    .ring-two {
        width: 390px;
        height: 390px;
    }

    .capability {
        padding: 10px 12px;
        gap: 6px;
        font-size: 12px;
    }

    .capability-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .capability-web {
        top: 12%;
        right: 0;
    }

    .capability-commerce {
        right: -3%;
        bottom: 13%;
    }

    .capability-android {
        left: -3%;
        bottom: 18%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: clamp(32px, 10vw, 48px);
    }

    .section-heading p {
        font-size: 16px;
        line-height: 1.7;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-main .about-lead {
        font-size: 19px;
    }

    .about-highlight {
        padding: 25px;
    }

    .service-card {
        min-height: 230px;
        padding: 25px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .website-heading h2 {
        font-size: clamp(33.6px, 10vw, 49.6px);
    }

    .website-story-intro,
    .website-story-solution {
        padding: 28px;
    }

    .website-story h3 {
        font-size: 22px;
    }

    .website-benefits {
        grid-template-columns: 1fr;
    }

    .website-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .website-cta h3 {
        font-size: 20px;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px;
    }

    .product-index {
        margin-bottom: 3px;
    }

    .product-content h3 {
        font-size: 34px;
    }

    .product-platforms {
        grid-column: 1;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        min-height: auto;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: 260px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feedback-form-wrap,
    .feedback-display,
    .contact-form-wrap {
        padding: 26px;
    }

    .feedback-empty {
        min-height: 240px;
        padding: 25px;
    }

    .faq-question {
        padding: 18px;
        font-size: 15px;
    }

    .faq-answer p {
        padding-inline: 18px;
    }

    .contact-info h2 {
        font-size: 40px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   FOOTER RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .footer-main {
        grid-template-columns: 1.4fr 1fr;
        gap: 50px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .footer {
        padding: 55px 0 25px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
        padding-bottom: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-social {
        align-self: flex-start;
    }

}