/* =========================================================
   TECNICHKOS HOMEPAGE V5B
   Scope: DE-CH homepage only.

   Loaded AFTER responsive-v4.css.
   No navigation JavaScript.
========================================================= */


/* =========================================================
   HEADER
========================================================= */

.home-v5b .header {
    width:100%;
}

.home-v5b .header .nav {
    position:relative;
}


/* =========================================================
   HERO - DESKTOP
========================================================= */

.home-v5b .hero {
    padding:0 !important;
}

.home-v5b .hero-grid {
    min-height:
        min(
            820px,
            calc(100svh - 76px)
        );

    padding:
        clamp(64px, 7vw, 92px)
        0;

    gap:
        clamp(42px, 5vw, 72px);
}

.home-v5b .hero-content {
    min-width:0;
}

.home-v5b .hero h1 {
    text-wrap:balance;
}

.home-v5b .hero-description {
    max-width:630px;
}

.home-v5b .hero-image {
    min-width:0;
}

.home-v5b .hero-image img {
    display:block;
}


/* =========================================================
   GENERAL HOMEPAGE RHYTHM
========================================================= */

.home-v5b .section {
    padding-top:
        clamp(76px, 8vw, 116px);

    padding-bottom:
        clamp(76px, 8vw, 116px);
}

.home-v5b .section-title {
    margin-bottom:
        clamp(30px, 4vw, 48px);
}

.home-v5b .section-title h2 {
    text-wrap:balance;
}

.home-v5b .cards {
    gap:
        clamp(14px, 2vw, 24px);
}


/* =========================================================
   HOVER - ONLY REAL MOUSE / TRACKPAD DEVICES
========================================================= */

@media (hover:hover) and (pointer:fine) {

    .home-v5b .card {
        transition:
            transform .22s ease,
            box-shadow .22s ease,
            border-color .22s ease;
    }

    .home-v5b .card:hover {
        transform:
            translateY(-4px);
    }

    .home-v5b .hero-buttons .btn:hover {
        transform:
            translateY(-2px);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:1024px) {

    .home-v5b .hero-grid {
        min-height:auto;

        padding:
            64px 0 72px;

        gap:42px;
    }

    .home-v5b .hero h1 {
        font-size:
            clamp(
                52px,
                7.4vw,
                74px
            ) !important;
    }

    .home-v5b .hero-description {
        margin:
            25px 0;

        font-size:
            18px;
    }
}


/* =========================================================
   MOBILE / TABLET PORTRAIT
========================================================= */

@media (max-width:900px) {

    /*
     * V4 previously adds padding-top to .hero.
     * Homepage V5B intentionally removes it.
     */

    .home-v5b .hero {
        padding-top:0 !important;
    }

    .home-v5b .hero-grid {
        min-height:0 !important;

        grid-template-columns:
            minmax(0,1fr)
            !important;

        padding:
            44px 0 58px;

        gap:38px;
    }

    .home-v5b .hero-content {
        max-width:720px;
    }

    .home-v5b .hero-image {
        width:100%;
        min-height:0 !important;
        margin:0 auto;
    }

    .home-v5b .hero-image img {
        width:100%;
        height:auto;
    }

    .home-v5b .section {
        padding-top:72px;
        padding-bottom:72px;
    }
}


/* =========================================================
   PHONE
========================================================= */

@media (max-width:580px) {

    :root {
        --tk-home-mobile-gap:14px;
    }


    /* -----------------------------------------------------
       MOBILE HEADER
    ----------------------------------------------------- */

    .home-v5b .header .nav {
        min-height:66px;

        gap:8px;
    }

    .home-v5b .logo {
        gap:7px;
        min-width:0;
    }

    .home-v5b .logo-icon {
        width:32px;
        height:32px;

        flex:
            0 0 32px;
    }

    .home-v5b .logo-text {
        font-size:13px;
        white-space:nowrap;
    }

    .home-v5b .nav-right {
        gap:5px;
    }

    .home-v5b .language-button {
        min-width:42px;
        min-height:44px;

        padding:
            8px 7px;
    }

    .home-v5b .desktop-quote {
        min-height:44px;

        padding:
            0 11px;

        border-radius:9px;

        font-size:12px;

        white-space:nowrap;
    }

    .home-v5b .mobile-menu {
        width:44px;
        height:44px;

        min-width:44px;
        min-height:44px;

        flex:
            0 0 44px;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .home-v5b .hero-grid {
        padding:
            31px 0 48px;

        gap:30px;
    }

    .home-v5b .eyebrow {
        margin-bottom:10px;

        font-size:10px;

        letter-spacing:.15em;
    }

    .home-v5b .hero h1 {
        margin:0;

        font-size:
            clamp(
                40px,
                11.7vw,
                50px
            ) !important;

        line-height:.91;

        letter-spacing:-.052em;

        text-wrap:balance;
    }

    .home-v5b .hero-description {
        max-width:100%;

        margin:
            20px 0 22px;

        font-size:
            16px !important;

        line-height:1.55;
    }

    /*
     * Two CTAs remain visible without creating
     * another full row of vertical height.
     */

    .home-v5b .hero-buttons {
        display:grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap:9px;
    }

    .home-v5b .hero-buttons .btn {
        width:100%;

        min-width:0;
        min-height:48px;

        padding:
            0 10px;

        font-size:12.5px;

        line-height:1.15;

        text-align:center;
    }


    /* -----------------------------------------------------
       HERO IMAGE
    ----------------------------------------------------- */

    .home-v5b .hero-image {
        width:100%;

        min-height:0 !important;

        overflow:hidden;

        border-radius:18px;

        isolation:isolate;
    }

    .home-v5b .hero-image img {
        width:100%;
        height:auto;

        min-height:0;

        object-fit:cover;
    }

    /*
     * Floating technology badges are attractive on larger
     * screens but make the phone hero too busy.
     */

    .home-v5b .hero-image .floating {
        display:none;
    }


    /* -----------------------------------------------------
       SECTIONS
    ----------------------------------------------------- */

    .home-v5b .section {
        padding-top:60px;
        padding-bottom:60px;
    }

    .home-v5b .section-title {
        margin-bottom:26px;
    }

    .home-v5b .section-title .eyebrow {
        margin-bottom:9px;
    }

    .home-v5b .section-title h2 {
        margin:0;

        font-size:
            clamp(
                31px,
                9vw,
                40px
            );

        line-height:1;

        letter-spacing:-.04em;

        text-wrap:balance;
    }

    .home-v5b .cards {
        grid-template-columns:
            minmax(0,1fr)
            !important;

        gap:13px;
    }

    .home-v5b .card {
        width:100%;
        min-width:0;

        border-radius:16px;
    }

    .home-v5b .card h3 {
        text-wrap:balance;
    }

    .home-v5b .cms-photo-section {
        overflow:hidden;
    }


    /* -----------------------------------------------------
       BUTTON SAFETY
    ----------------------------------------------------- */

    .home-v5b main .btn {
        max-width:100%;
    }
}


/* =========================================================
   SMALL PHONE: 360-390PX CLASS
========================================================= */

@media (max-width:390px) {

    /*
     * Preserve the Quote CTA and hamburger even on
     * very narrow Android/iPhone displays.
     */

    .home-v5b .logo-text {
        display:none;
    }

    .home-v5b .header .nav {
        gap:6px;
    }

    .home-v5b .desktop-quote {
        padding:
            0 9px;

        font-size:11.5px;
    }

    .home-v5b .hero-grid {
        padding-top:28px;
    }

    .home-v5b .hero h1 {
        font-size:
            clamp(
                39px,
                11.8vw,
                46px
            ) !important;
    }

    .home-v5b .hero-buttons {
        gap:7px;
    }

    .home-v5b .hero-buttons .btn {
        padding:
            0 7px;

        font-size:12px;
    }
}


/* =========================================================
   EXTRA NARROW SAFETY
========================================================= */

@media (max-width:340px) {

    .home-v5b .hero-buttons {
        grid-template-columns:
            minmax(0,1fr);
    }
}


/* =========================================================
   LANDSCAPE PHONE
========================================================= */

@media
(max-width:900px)
and
(orientation:landscape)
and
(max-height:520px) {

    .home-v5b .hero-grid {
        padding:
            30px 0 44px;

        gap:28px;
    }

    .home-v5b .hero h1 {
        font-size:
            clamp(
                40px,
                7vw,
                58px
            ) !important;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion:reduce) {

    .home-v5b .card,
    .home-v5b .btn {
        transition:none !important;
        transform:none !important;
    }
}
