/* ==========================================================
   FLOOREX – FRONT PAGE
   Minimal / clean / technical
   ========================================================== */


/* ==========================================================
   GLOBAL FRONT PAGE
   ========================================================== */

#main {
    overflow: hidden;
}

#main section {
    position: relative;
}

#main section > .container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

#main .content {
    position: relative;
}

#main .text {
    position: relative;
}

#main .media {
    position: relative;
}

#main .media img {
    display: block;

    width: 100%;
    height: auto;
}

#main .description {
    color: rgba(41, 41, 41, 0.72);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}

#main .description p {
    margin: 0 0 1.25em;

    font-size: 22px;
    line-height: 1.25;
}

#main .description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

#main h1,
#main h2,
#main h3 {
    margin-top: 0;

    color: #183329;
}

#main h1 {
    max-width: 850px;

    margin-bottom: 28px;

    font-size: 72px;
    font-weight: 500;
    line-height: 0.98;

    letter-spacing: -3.5px;
}

#main h2 {
    margin-bottom: 50px;
    font-size: 58px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-top: 75px;
}
.home #main h2 {
   
    margin-top: 0px;
}
#main h3 {
    margin-bottom: 14px;

    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;

    letter-spacing: -0.7px;
}





/* ==========================================================
   01 – HERO
   Full-width 50 / 50 split
   ========================================================== */

#hero {
    width: 100%;

    padding: 0;

    background: #fff;
}


/*
 * Hero intentionally ignores the normal page container.
 * Image starts exactly at 50% of viewport.
 */

#hero > .container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}

#hero .content {
    display: grid;

    grid-template-columns: 50% 50%;

    align-items: stretch;

    width: 100%;

    min-height: 650px;
}


/* ==========================================================
   HERO – TEXT SIDE
   ========================================================== */

#hero .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    max-width: 640px;

    margin-left: auto;

    padding:
        80px
        80px
        80px
        48px;

    z-index: 2;
}

#hero h1 {
    max-width: 570px;

    margin: 0;

    color: #183329;

    font-size: 68px;
    font-weight: 400;
    line-height: 0.98;

    letter-spacing: -3.5px;
}

#hero .description {
    max-width: 520px;

    margin-top: 28px;

    color: #292929;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

#hero .description p {
    margin: 0;

    font-size: 18px;
    line-height: 1.45;
}

#hero .buttons {
    margin-top: 32px;
}


/* ==========================================================
   HERO – IMAGE SIDE
   ========================================================== */

#hero .media {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 650px;

    overflow: hidden;

    background: #f3f4f1;

    border-radius: 0;
}

#hero .media img {
    position: absolute;

    top: 0;
    left: 0;

    display: block;

    width: 100%;
    height: 100%;

    min-height: 0;

    object-fit: cover;
    object-position: left;

    transition:
        transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

#hero .media:hover img {
    transform: scale(1.015);
}


/* ==========================================================
   02 – SERVICES
   ========================================================== */

#teenused {
    padding: 140px 0 150px;

    background: #f9f9f9;
}

#teenused .content > .text {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 55px;
}

#teenused .content > .text h2 {
    margin-bottom: 0;
}

#teenused .grid {
    display: grid;
    grid-template-columns: 1fr;

    border-top: 1px solid rgba(24, 51, 41, 0.16);
}

#teenused .item {
    position: relative;

    display: grid;

    grid-template-columns:
        90px
        minmax(280px, 0.9fr)
        minmax(280px, 1fr)
        170px;

    align-items: center;

    gap: 32px;

    min-height: 180px;

    padding: 32px 0;

    border-bottom: 1px solid rgba(24, 51, 41, 0.16);

    transition:
        padding-left 0.45s cubic-bezier(.22, 1, .36, 1),
        padding-right 0.45s cubic-bezier(.22, 1, .36, 1),
        background-color 0.35s ease;
}

#teenused .number {
    align-self: start;

    padding-top: 7px;

    color: #72c943;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.08em;
}

#teenused .item .text {
    align-self: center;
}

#teenused .item h3 {
    max-width: 430px;

    margin: 0;

    font-size: 35px;
    line-height: 1.12;
}

#teenused .item .description {
    max-width: 500px;

    margin-top: 25px;

    font-size: 15px;
    line-height: 1.65;
}

#teenused .item .description p {
    font-size: 15px;
    line-height: 1.65;
}


/* Service image */

#teenused .item .media {
    position: absolute;

    top: 50%;
    right: 160px;
    z-index: 4;

    width: 230px;
    height: 145px;

    overflow: hidden;

    border-radius: 4px;

    opacity: 0;

    transform:
        translateY(-44%)
        scale(0.96);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.55s cubic-bezier(.22, 1, .36, 1);
}

#teenused .item .media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Service link */

#teenused .item .link {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 14px;

    color: #183329;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
}

#teenused .item .link span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(24, 51, 41, 0.18);
    border-radius: 50%;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.4s cubic-bezier(.22, 1, .36, 1);
}


/* Service hover */

#teenused .item:hover {
    padding-left: 16px;
    padding-right: 16px;

    background: rgba(114, 201, 67, 0.035);
}

#teenused .item:hover .media {
    opacity: 1;

    transform:
        translateY(-50%)
        scale(1);
}

#teenused .item:hover .link span:last-child {
    color: #fff;

    background: #72c943;

    border-color: #72c943;

    transform: translateX(4px);
}


/* ==========================================================
   03 – LARGE WORK IMAGE
   ========================================================== */

#visuaal {
    padding: 0;

    background: #fff;
}

#visuaal > .container {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto;
}

#visuaal .media {
    height: 100vh;
    min-height: 580px;

    overflow: hidden;

    background: #f3f4f1;

    border-radius: 0;
}

#visuaal .media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================
   04 – ABOUT
   ========================================================== */

#meist {
    padding: 170px 0;

    background: #fff;
}

#meist .content {
    display: flex;
    grid-template-columns: minmax(0, 1fr)
        minmax(360px, 0.7fr);
    gap: 5%;
    align-items: start;
}

#meist .text {
    max-width: 720px;
}

#meist h2 {
    max-width: 700px;
    margin-bottom: 38px;
    font-size: 50px;
}

#meist .description {
    max-width: 650px;

    font-size: 17px;
    line-height: 1.8;
}

#meist .description p {
    font-size: 17px;
    line-height: 1.8;
}

#meist .media {
    margin-top: 70px;

    overflow: hidden;

    background: #f3f4f1;

    border-radius: 4px;
}

#meist .media img {
    aspect-ratio: 4 / 5;

    object-fit: cover;
}


/* ==========================================================
   05 – TESTIMONIALS
   ========================================================== */

#tagasiside {
    padding: 150px 0 140px;

    background: #f5f7f4;
}

#tagasiside .content {
    max-width: 1050px;
}

#tagasiside .content > .text h2 {
    margin-bottom: 75px;

    color: #72c943;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* Slider */

#tagasiside .slider {
    position: relative;
}

#tagasiside .item {
    max-width: 980px;
}

#tagasiside blockquote {
    position: relative;

    margin: 0;
    padding: 0;

    color: #183329;

    font-size: 54px;
    font-weight: 400;
    line-height: 1.18;

    letter-spacing: -2px;
}

#tagasiside blockquote p {
    margin: 0;
}

#tagasiside .author {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 52px;

    font-size: 14px;
    line-height: 1.4;
}

#tagasiside .author strong {
    color: #183329;

    font-weight: 600;
}

#tagasiside .author span {
    color: rgba(41, 41, 41, 0.55);
}

#tagasiside .author span::before {
    content: "—";

    margin-right: 12px;
}


/* Controls */

#tagasiside .controls {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 70px;
}

#tagasiside .controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    color: #183329;
    background: transparent;

    border: 1px solid rgba(24, 51, 41, 0.20);
    border-radius: 50%;

    font-size: 17px;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.35s cubic-bezier(.22, 1, .36, 1);
}

#tagasiside .controls button:hover {
    color: #fff;

    background: #183329;

    border-color: #183329;

    transform: scale(1.05);
}

#tagasiside .counter {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 0 10px;

    color: rgba(41, 41, 41, 0.45);

    font-size: 12px;
    font-weight: 500;
}

#tagasiside .counter .current {
    color: #183329;
}


/* ==========================================================
   LARGE DESKTOP
   ========================================================== */

@media (min-width: 1600px) {

    #hero .text {
        max-width: 720px;

        padding-right: 100px;
    }

    #hero h1 {
        max-width: 620px;

        font-size: 72px;
    }

}


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

@media (max-width: 1024px) {

    #main h1 {
        font-size: 58px;
    }

    #main h2 {
        font-size: 48px;
    }


    /* Hero */

    #hero .content {
        min-height: calc(100vh - 90px);
    }

    #hero .text {
        max-width: none;

        padding:
            70px
            48px
            70px
            32px;
    }

    #hero h1 {
        font-size: 54px;

        letter-spacing: -2.5px;
    }

    #hero .description,
    #hero .description p {
        font-size: 17px;
    }

    #hero .media {
        min-height: calc(100vh - 90px);
    }


    /* Services */

    #teenused {
        padding: 110px 0;
    }

    #teenused .item {
        grid-template-columns:
            60px
            1fr
            1fr
            60px;
    }

    #teenused .item .media {
        display: none;
    }

    #teenused .item .link span:first-child {
        display: none;
    }


    /* Visual */

    #visuaal .media {
        min-height: 500px;
    }


    /* About */

    #meist {
        padding: 130px 0;
    }

    #meist .content {
        gap: 70px;
    }

    #meist h2 {
        font-size: 56px;
    }


    /* Testimonials */

    #tagasiside {
        padding: 120px 0;
    }

    #tagasiside blockquote {
        font-size: 46px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    #main section > .container {
        width: calc(100% - 32px);
    }


    /* ======================================================
       TYPOGRAPHY
       ====================================================== */

    #main h1 {
        font-size: 48px;
        line-height: 1;

        letter-spacing: -2px;
    }

    #main h2 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }


    /* ======================================================
       HERO
       ====================================================== */

    #hero > .container {
        width: 100% !important;
    }

    #hero .content {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }


    /* Hero text */

    #hero .text {
        order: 1;

        width: 100%;
        max-width: none;

        margin: 0;

        padding:
            60px
            24px
            52px;
    }

    #hero h1 {
        max-width: 540px;

        font-size: 48px;
        font-weight: 400;
        line-height: 1;

        letter-spacing: -2px;
    }

    #hero .description {
        max-width: 500px;

        margin-top: 22px;

        font-size: 17px;
        line-height: 1.5;
    }

    #hero .description p {
        font-size: 17px;
        line-height: 1.5;
    }

    #hero .buttons {
        margin-top: 28px;
    }


    /* Hero image */

    #hero .media {
        order: 2;

        width: 100%;
        height: 65vw;
        min-height: 0;
        max-height: 520px;

        border-radius: 0;
    }

    #hero .media img {
        position: absolute;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    /* ======================================================
       SERVICES
       ====================================================== */

    #teenused {
        padding: 90px 0 100px;
    }

    #teenused .content > .text {
        margin-bottom: 35px;
    }

    #teenused .item {
        display: grid;

        grid-template-columns:
            42px
            1fr
            auto;

        gap: 12px;

        min-height: 0;

        padding: 26px 0;
    }

    #teenused .item:hover {
        padding-left: 0;
        padding-right: 0;

        background: transparent;
    }

    #teenused .number {
        grid-column: 1;
        grid-row: 1;

        padding-top: 5px;
    }

    #teenused .item .text {
        grid-column: 2;
        grid-row: 1;
    }

    #teenused .item h3 {
        font-size: 23px;
    }

    #teenused .item .description {
        margin-top: 12px;

        font-size: 14px;
    }

    #teenused .item .description p {
        font-size: 14px;
    }

    #teenused .item .link {
        grid-column: 3;
        grid-row: 1;

        align-self: start;
    }

    #teenused .item .link span:first-child {
        display: none;
    }

    #teenused .item .link span:last-child {
        width: 36px;
        height: 36px;
    }


    /* ======================================================
       VISUAL
       ====================================================== */

    #visuaal > .container {
        width: 100%;
    }

    #visuaal .media {
        height: 70vh;
        min-height: 500px;

        border-radius: 0;
    }


    /* ======================================================
       ABOUT
       ====================================================== */

    #meist {
        padding: 100px 0;
    }

    #meist .content {
        display: flex;
        flex-direction: column;

        gap: 60px;
    }

    #meist h2 {
        margin-bottom: 28px;

        font-size: 43px;
    }

    #meist .description,
    #meist .description p {
        font-size: 16px;
    }

    #meist .media {
        width: 78%;

        margin-top: 0;
        margin-left: auto;
    }


    /* ======================================================
       TESTIMONIALS
       ====================================================== */

    #tagasiside {
        padding: 95px 0;
    }

    #tagasiside .content > .text h2 {
        margin-bottom: 50px;
    }

    #tagasiside blockquote {
        font-size: 34px;
        line-height: 1.22;
    }

    #tagasiside .author {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;

        margin-top: 38px;
    }

    #tagasiside .author span::before {
        display: none;
    }

    #tagasiside .controls {
        margin-top: 50px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    #main section > .container {
        width: calc(100% - 28px);
    }


    /* Hero */

    #hero > .container {
        width: 100% !important;
    }

    #hero .text {
        padding:
            48px
            18px
            44px;
    }

    #hero h1 {
        margin-bottom: 0;

        font-size: 42px;

        letter-spacing: -1.5px;
    }

    #hero .description {
        margin-top: 20px;
    }

    #hero .buttons {
        margin-top: 28px;
    }

    #hero .media {
        height: 75vw;

        max-height: none;
    }


    /* Buttons */

    #main .button {
        min-height: 50px;

        padding: 0 22px;
    }


    /* Services */

    #teenused .item {
        grid-template-columns:
            34px
            1fr
            auto;
    }

    #teenused .item h3 {
        font-size: 21px;
    }

    #teenused .item .description {
        line-height: 1.55;
    }


    /* Visual */

    #visuaal .media {
        height: 62vh;
        min-height: 430px;
    }


    /* About */

    #meist .media {
        width: 88%;
    }


    /* Testimonials */

    #tagasiside blockquote {
        font-size: 30px;
    }
	  #main h2 {
        font-size: 34px;

        letter-spacing: -1.5px;
    }


}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

#main a:focus-visible,
#main button:focus-visible {
    outline: 2px solid #72c943;
    outline-offset: 4px;
}


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

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

    #main *,
    #main *::before,
    #main *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}