/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .container {
        width: min(var(--container), calc(100% - 40px));
    }

    .main-nav {
        gap: 22px;
    }

    .nav-cta {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr .8fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(54px, 8vw, 88px);
    }

    .hero-visual {
        min-height: 470px;
    }

    .hero-card {
        width: min(100%, 360px);
    }

    .orbit-one {
        width: 420px;
        height: 420px;
    }

    .orbit-two {
        width: 500px;
    }

    .intro-grid {
        gap: 50px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .container {
        width: min(100% - 32px, 680px);
    }

    .section {
        padding: 90px 0;
    }


    /* HEADER */

    .nav-container {
        min-height: 72px;
    }

    .brand-name {
        font-size: 14px;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;
        padding: 12px;

        background: var(--surface);

        border: 1px solid var(--border);

        box-shadow: 0 20px 60px rgba(0,0,0,.12);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition: var(--transition);
    }

    .main-nav.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: 15px 12px;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }


    /* HERO */

    .hero {
        min-height: auto;
        padding-top: 145px;
        padding-bottom: 100px;
    }

    .hero-container {
        display: block;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 82px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
        margin-top: 65px;
    }

    .hero-card {
        width: min(100%, 330px);
    }

    .orbit-one {
        width: 380px;
        height: 380px;
    }

    .orbit-two {
        width: 420px;
        height: 240px;
    }

    .floating-label-one {
        right: 0;
    }

    .floating-label-two {
        left: 0;
    }

    .hero-bottom {
        bottom: 20px;
    }


    /* INTRO */

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-content h2 {
        font-size: clamp(38px, 11vw, 60px);
    }


    /* SERVICES */

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .service-row {
        grid-template-columns: 35px 1fr 35px;
        gap: 12px;
        padding: 27px 0;
    }

    .service-main {
        display: block;
    }

    .service-main h3 {
        font-size: 24px;
    }

    .service-main p {
        margin-top: 10px;
        font-size: 12px;
    }


    /* WORK */

    .work-heading {
        display: block;
    }

    .work-heading .text-link {
        margin-top: 25px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card-large {
        grid-row: auto;
    }

    .work-image,
    .work-card-large .work-image {
        min-height: 390px;
    }


    /* STATEMENT */

    .statement-box {
        min-height: 500px;
    }

    .statement-box h2 {
        font-size: clamp(48px, 15vw, 80px);
    }


    /* FOOTER */

    .footer-top {
        grid-template-columns: 1fr;
        gap: 55px;
        padding-bottom: 50px;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 24px);
    }

    .nav-actions {
        gap: 6px;
    }

    .language-btn,
    .theme-btn {
        width: 34px;
        height: 34px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    .brand-name {
        font-size: 13px;
    }

    .hero {
        padding-top: 125px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-card {
        width: 290px;
    }

    .orbit-one {
        width: 330px;
        height: 330px;
    }

    .orbit-two {
        width: 350px;
    }

    .floating-label {
        font-size: 8px;
    }

    .service-row {
        grid-template-columns: 28px 1fr 30px;
    }

    .service-number {
        font-size: 8px;
    }

    .service-main h3 {
        font-size: 21px;
    }

    .service-arrow {
        width: 30px;
        height: 30px;
    }

    .work-image,
    .work-card-large .work-image {
        min-height: 320px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   SERVICES RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .page-hero {
        padding: 140px 0 80px;
    }

    .page-hero-top {
        margin-bottom: 50px;
    }

    .page-hero-content h1 {
        font-size: clamp(48px, 11vw, 78px);
    }

    .service-detail {
        grid-template-columns: 50px 1fr;
        gap: 20px;
        padding: 70px 0;
    }

    .service-detail-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-item:nth-child(2) {
        border-right: none;
    }

    .process-item:nth-child(3),
    .process-item:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .cta-box {
        padding: 70px 45px;
    }
}


@media (max-width: 600px) {

    .page-hero {
        padding: 120px 0 65px;
    }

    .page-hero-top {
        margin-bottom: 40px;
    }

    .page-hero-content h1 {
        font-size: 50px;
    }

    .page-hero-content p {
        margin-top: 30px;
        font-size: 16px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 60px 0;
    }

    .service-detail-number {
        padding: 0;
    }

    .service-detail-heading h2 {
        font-size: 43px;
    }

    .service-detail-heading p {
        font-size: 15px;
    }

    .process-section {
        padding: 100px 0;
    }

    /* Scoped to Services process section only */
    .process-section .section-heading {
        margin-bottom: 55px;
    }

    .process-section .section-heading h2 {
        font-size: 48px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-item,
    .process-item:not(:first-child) {
        min-height: auto;
        padding: 30px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .process-item:last-child {
        border-bottom: none;
    }

    .process-item h3 {
        margin-top: 35px;
    }

    .cta-section {
        padding-bottom: 90px;
    }

    .cta-box {
        padding: 55px 25px;
    }

    .cta-box h2 {
        font-size: 50px;
    }
}