/* ==========================================================
   TIHASE PESA – ESILEHT
   assets/css/pages/front-page.css

   CTA-de kujundus: assets/css/zz-cta.css
   ========================================================== */


/* ==========================================================
   1. ÜLDISED SEADED
   ========================================================== */

.tp-home {
    --tp-yellow: #ffd521;
    --tp-black: #171717;
    --tp-white: #ffffff;
    --tp-grey: #f3f3f1;
    --tp-text: #333333;
    --tp-muted: #696969;

    /* Hero alumise ääre sügavus */
    --tp-hero-cut: 125px;

    color: var(--tp-black);
    background: var(--tp-white);
    overflow-x: clip;
}

.tp-home *,
.tp-home *::before,
.tp-home *::after {
    box-sizing: border-box;
}

.tp-home img {
    display: block;
    max-width: 100%;
}

.tp-home h1,
.tp-home h2,
.tp-home h3,
.tp-home p {
    margin-top: 0;
}
.tp-home h1, .tp-home h2, .tp-home h3 {
    color: var(--tp-black);
    letter-spacing: 0em;
    line-height: 1.08;
    font-weight: 700;
}
/*.tp-home h2 b{
	font-weight: 800;
}*/
.tp-home p {
    line-height: 125%;
}

.tp-home .tp-container {
    width: min(calc(100% - 80px), 1440px);
    margin-inline: auto;
}


/* ==========================================================
   2. HERO
   ========================================================== */

.tp-home .tp-hero {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 100vh;

    background-color: var(--tp-yellow);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60% 80%;

    isolation: isolate;

    /* Asümmeetriline alumine serv 
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        22% calc(100% - var(--tp-hero-cut)),
        0 100%
    );*/
}

/* Varasema tumeda gradiendi eemaldamine */
.tp-home .tp-hero::before {
    display: none;
}

/* Hero sisuala */

.tp-home .tp-hero-inner {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: inherit;
}

/* Hero tekstiplokk */

.tp-home .tp-hero-copy {
    position: relative;
    z-index: 2;

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

    margin-inline: auto;
    padding: 100px 5% 50px;
}

/* Hero pealkiri */

.tp-home .tp-hero-title,
.tp-home .tp-hero h1 {
    max-width: 650px;
    margin: 0 0 24px;

    color: #000000;
    font-size: 110px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

/* Hero kirjeldus */

.tp-home .tp-hero-description {
    max-width: 500px;
    margin: 0;
    color: #000000;
    font-size: 25px;
    font-weight: 400;
    line-height: 125%;
}


/* ==========================================================
   3. HERO + INTRO DIAGONAALNE ÜLEMINEK
   ========================================================== */

/*
   Intro tõuseb hero taha.

   Hero clip-path lõikab alumise serva ära,
   kuid järgmise sektsiooni pilt paistab selle alt.

   Tulemuseks on katkematu üleminek.
*/
.tp-home .tp-hero + .tp-intro {
    position: relative;
    z-index: 1;
    /* margin-top: calc(-1 * var(--tp-hero-cut)); */
    border-top: solid white;
}


/* ==========================================================
   4. PROJEKTI TUTVUSTUS
   ========================================================== */

.tp-home .tp-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    min-height: 620px;
    background: var(--tp-white);
}

/* Vasakpoolne pilt */

/*.tp-home .tp-intro-image {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--tp-grey);
    margin-bottom: -50px;
    border-radius: 0px 0px 50px 0px;
}*/
.tp-home .tp-intro-image {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--tp-grey);
    /* margin-bottom: -50px; 
    border-radius: 0px 50px 50px 0px;*/
}
.tp-home .tp-intro-image img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 620px;

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

/* Parempoolne tekst */

.tp-home .tp-intro-copy {
    position: relative;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--tp-hero-cut))
        clamp(40px, 7vw, 130px)
        80px;
    background-color: #f5f5f5;
}

.tp-home .tp-intro-copy-inner {
    width: 100%;
    max-width: 580px;
}

.tp-home .tp-intro-title {
    margin-bottom: 24px;
    font-size: clamp(38px, 3.6vw, 50px);
}

.tp-home .tp-lead {
    margin-bottom: 22px;

    font-size: clamp(18px, 1.5vw, 22px);
    
    font-weight: 700;
}

.tp-home .tp-prose {
    color: var(--tp-text);
    font-size: 16px;
    line-height: 1.75;
}

.tp-home .tp-prose p {
    margin-bottom: 18px;
}

.tp-home .tp-prose p:last-child {
    margin-bottom: 0;
}

/* CTA paigutus, mitte nupu kujundus */

.tp-home .tp-intro-copy .tp-btn {
    margin-top: 32px;
}



/* ==========================================================
   INVESTEERIMISE EELISED – KOLLASED KAARDID
   ========================================================== */

.tp-home .tp-benefits {
    padding-top: 150px;
    padding-bottom: 130px;
}

.tp-home .tp-section-heading {
    max-width: 850px;
    margin: 0 auto 65px;
    text-align: center;
}

.tp-home .tp-benefits-title {
    margin-bottom: 24px;
    font-size: clamp(40px, 4.3vw, 70px);
}

.tp-home .tp-benefits-description {
    max-width: 690px;
    margin: 0 auto;
    color: black;
    font-size: 18px;
    line-height: 125%;
}

/* Kaartide paigutus */

.tp-home .tp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Kollane kaart */

.tp-home .tp-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 320px;
    padding: 36px 22px 32px;

    background: var(--tp-yellow);
    border-radius: 32px;

    text-align: center;
}

/* Ikoon ilma eraldi ringita */

.tp-home .tp-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;
    flex-shrink: 0;

    margin: 0 0 24px;
    padding: 0;

    color: #000;
    background: transparent;
    border-radius: 0;
}

.tp-home .tp-benefit-icon svg {
    display: block;
    width: 60px;
    height: 60px;
}

/* Pealkiri */

.tp-home .tp-benefit-title {
    max-width: 240px;
    margin: 0 0 14px;
    color: #000;
    font-size: clamp(20px, 1.8vw, 25px);
    font-weight: 800;
    line-height: 106%;
    letter-spacing: 0px;
    text-align: center;
}
/* Kirjeldus */

.tp-home .tp-benefit-description {
    max-width: 255px;
    margin: 0;

    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

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

@media (max-width: 900px) {

    .tp-home .tp-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .tp-home .tp-benefit {
        min-height: 300px;
        padding: 35px 25px;
    }

    .tp-home .tp-benefit-title {
        font-size: 25px;
    }

}

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

@media (max-width: 600px) {

    .tp-home .tp-benefits {
        padding-top: 75px;
        padding-bottom: 85px;
    }

    .tp-home .tp-benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tp-home .tp-benefit {
        min-height: 270px;
        padding: 32px 28px;
        border-radius: 28px;
    }

    .tp-home .tp-benefit-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }

    .tp-home .tp-benefit-icon svg {
        width: 55px;
        height: 55px;
    }

    .tp-home .tp-benefit-title {
        font-size: 25px;
    }

    .tp-home .tp-benefit-description {
        max-width: 300px;
        font-size: 14px;
    }

}



/* =====================================
   TIHASE PESA – ESILEHE EHITUSE PLOKK
===================================== */

.tp-home-construction {
    width: 100%;
    padding: 80px 0;
}

.tp-home-construction__inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 25px 8%;
    align-items: center;
}

.tp-home-construction__inner h2 {
font-size: clamp(38px, 3.6vw, 50px);
}
/* Tekst */

.tp-home-construction__text {
    width:45%;
}

/*.tp-home-construction__text h2 {
    margin: 0 0 25px;
}

.tp-home-construction__text p {
    margin: 0 0 20px;
}*/

.tp-home-construction__text p:last-child {
    margin-bottom: 0;
}

/* Pilt */

.tp-home-construction__image {
    margin: 0;
    width: 47%;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 1 / 1;
}

.tp-home-construction__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablet */

@media (max-width: 1024px) {

    .tp-home-construction__inner {
        gap: 35px;
    }

}

/* Mobiil */

@media (max-width: 767px) {

    .tp-home-construction {
        padding: 50px 0;
    }

    .tp-home-construction__inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .tp-home-construction__text {
        max-width: 100%;
    }

    .tp-home-construction__image {
       /* aspect-ratio: 4 / 3;
        border-radius: 18px;*/
    }
	.tp-home-construction__text {
    width:100%;
}


/* Pilt */

.tp-home-construction__image {
 
    width: 100%;
    
}
	.tp-home-construction__inner {

    align-items: center;
    flex-direction: column-reverse;
}
	.tp-home-construction__inner h2 {
    max-width:450px;
}

}

/* ==========================================================
   6. ASUKOHT – 50/50 FULL WIDTH
   ========================================================== */

.tp-home .tp-location {
    background: var(--tp-grey);
    padding: 0;
    overflow: hidden;
}

/* Täislaiuses kaheveeruline paigutus */
.tp-home .tp-location .tp-container.tp-location-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
	
}

/* Vasak pool – tekst */

.tp-home .tp-location-copy {
    width: 100%;
    min-width: 0;
    max-width: 750px;
    /* margin-inline: auto; */
    padding: 0px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(50px, 6vw, 120px);
    box-sizing: border-box;
    align-items: flex-start;
}

.tp-home .tp-location-title {
    margin-bottom: 28px;
    font-size: clamp(40px, 4vw, 50px);
}

.tp-home .tp-location-copy .tp-lead {
    margin-bottom: 22px;
}

.tp-home .tp-location-action {
    margin-top: 34px;
}

/* Parem pool – Google Maps */

.tp-home .tp-location-grid > .tmm-wrap {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 800px;
    margin: 0;
    border-radius: 0 !important;
    overflow: hidden;
    border-top: solid white;
	 border-bottom: solid white;
}

.tp-home .tp-location .tmm-map {
    width: 100%;
    height: 100% !important;
    min-height: 800px;
    border-radius: 0 !important;
}

/* Kui kasutatakse ka eraldi kaardi konteinerit */

.tp-home .tp-location-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 800px;
    overflow: hidden;
    background: #e9e9e6;
}

.tp-home .tp-location-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ASUKOHT – INIMESE PILT */

.tp-home .tp-location-grid {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 0;
}

.tp-home .tp-location-person {
    position: relative;
    align-self: stretch;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
	width:50%;
}

.tp-home .tp-location-person img {
    display: block;
    width: auto;
    height: 110%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.tp-home .tp-location-copy {
    max-width: 580px;
    padding: 65px 50px;
}

/* MOBIIL */

@media (max-width: 767px) {
    .tp-home .tp-location-grid {
        grid-template-columns: 1fr;
    }

    .tp-home .tp-location-person {
        min-height: 300px;
    }

    .tp-home .tp-location-person img {
        height: 330px;
        max-width: 100%;
    }

    .tp-home .tp-location-copy {
        padding: 35px 25px 60px;
    }
}

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

@media (max-width: 1200px) {

    .tp-home .tp-location-copy {
        padding: 55px 40px;
    }

    .tp-home .tp-location-grid > .tmm-wrap,
    .tp-home .tp-location .tmm-map {
        min-height: 550px;
    }
}

/* ==========================================================
   MOBIIL – TEKST ÜLEVAL, KAART ALL
   ========================================================== */

@media (max-width: 767px) {

    .tp-home .tp-location .tp-container.tp-location-grid {
        grid-template-columns: 1fr;
    }

    .tp-home .tp-location-copy {
        padding: 60px 25px 45px;
    }

    .tp-home .tp-location-title {
        font-size: clamp(36px, 9vw, 52px);
    }

    .tp-home .tp-location-grid > .tmm-wrap {
        height: 480px;
        min-height: 480px;
    }

    .tp-home .tp-location .tmm-map {
        height: 480px !important;
        min-height: 480px;
    }
}


/* ==========================================================
   9. TABLET
   ========================================================== */

@media (max-width: 900px) {

    .tp-home .tp-container {
        width: min(calc(100% - 48px), 1440px);
    }

    /* HERO */

    .tp-home .tp-hero {
        min-height: 600px;
        background-position: 55% center;
    }

    .tp-home .tp-hero-copy {
        padding: 75px 0 105px;
    }

    .tp-home .tp-hero-title,
    .tp-home .tp-hero h1 {
        font-size: clamp(44px, 6vw, 65px);
    }

    /* INTRO */

    .tp-home .tp-intro {
        min-height: auto;
    }

    .tp-home .tp-intro-image,
    .tp-home .tp-intro-image img {
        min-height: 500px;
    }

    .tp-home .tp-intro-copy {
        padding:
            calc(50px + var(--tp-hero-cut))
            35px
            50px;
    }

    .tp-home .tp-intro-title {
        font-size: 38px;
    }

    /* EELISED */

    .tp-home .tp-benefits {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .tp-home .tp-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 35px;
    }

    /* ASUKOHT */

    .tp-home .tp-location {
        padding: 85px 0;
    }

    .tp-home .tp-location-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .tp-home .tp-location-copy {
        max-width: 720px;
    }

}


/* ==========================================================
   10. MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .tp-home {
        --tp-hero-cut: 55px;
    }

    .tp-home .tp-container {
        width: calc(100% - 40px);
    }

    /* HERO */

    .tp-home .tp-hero {
        min-height: 720px;
        min-height: 100svh;

        align-items: flex-start;
        background-position: 65% center;

        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - 18px),
            25% calc(100% - var(--tp-hero-cut)),
            0 calc(100% - 15px)
        );
    }

    .tp-home .tp-hero-inner {
        align-items: flex-start;
        min-height: inherit;
    }

    .tp-home .tp-hero-copy {
        width: 100%;
        max-width: 100%;
        padding: 85px 0 90px;
    }

    .tp-home .tp-hero-title,
    .tp-home .tp-hero h1 {
        max-width: 440px;
        margin-bottom: 20px;

        font-size: clamp(44px, 12vw, 64px);
        line-height: 1;
    }

    .tp-home .tp-hero-description {
        max-width: 400px;
        font-size: 16px;
    }

    /* INTRO */

    .tp-home .tp-intro {
        display: flex;
        flex-direction: column;
    }

    .tp-home .tp-intro-image {
        width: 100%;
        min-height: 300px;
        aspect-ratio: 4 / 3;
    }

    .tp-home .tp-intro-image img {
        width: 100%;
        height: 100%;
        min-height: 0;

        object-fit: cover;
    }

    .tp-home .tp-intro-copy {
        padding: 55px 20px 65px;
    }

    .tp-home .tp-intro-title {
        font-size: clamp(36px, 9vw, 48px);
    }

    .tp-home .tp-lead {
        font-size: 18px;
    }

    .tp-home .tp-prose {
        font-size: 15px;
    }

    /* EELISED */

    .tp-home .tp-benefits {
        padding-top: 75px;
        padding-bottom: 85px;
    }

    .tp-home .tp-section-heading {
        margin-bottom: 45px;
        text-align: left;
    }

    .tp-home .tp-benefits-title {
        font-size: clamp(36px, 9vw, 50px);
        margin-bottom: 18px;
    }

    .tp-home .tp-benefits-description {
        font-size: 16px;
    }

    .tp-home .tp-benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tp-home .tp-benefit-icon {
        width: 76px;
        height: 76px;
        margin-bottom: 20px;
    }

    .tp-home .tp-benefit-icon svg {
        width: 34px;
        height: 34px;
    }

    .tp-home .tp-benefit-title {
        font-size: 23px;
        margin-bottom: 12px;
    }

    .tp-home .tp-benefit-description {
        max-width: 450px;
        font-size: 15px;
    }

    /* ASUKOHT */

    .tp-home .tp-location {
        padding: 0px 0 0px;
    }

    .tp-home .tp-location-grid {
        gap: 35px;
    }

    .tp-home .tp-location-title {
        font-size: clamp(36px, 9vw, 50px);
        margin-bottom: 20px;
    }

    .tp-home .tp-location-map {
        min-height: 280px;
        aspect-ratio: 4 / 3;
    }

    .tp-home .tp-location-map img {
        min-height: 0;
        height: 100%;
    }

}


/* ==========================================================
   11. LIGIPÄÄSETAVUS
   ========================================================== */

.tp-home a:focus-visible {
    outline: 3px solid var(--tp-black);
    outline-offset: 4px;
}

.tp-home section[id] {
    scroll-margin-top: 100px;
}

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

    .tp-home *,
    .tp-home *::before,
    .tp-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}

/* Esilehe hero: mobiilis kollane taust ilma pildita; desktopis ACF taustapilt. */
@media (max-width: 767px) {
    .tp-home .tp-hero,
    .tp-home .tp-hero.tp-hero--has-bg {
         /*background: #ffd521 !important;
        background-image: none !important;
       min-height: 80svh;*/
    }

    .tp-home .tp-hero-copy {
        padding: 150px 0 65px !important;
    }

    .tp-home .tp-hero-title,
    .tp-home .tp-hero h1 {
        font-size: clamp(48px, 12vw, 88px);
        line-height: .98;
        letter-spacing: -.045em;
        overflow-wrap: break-word;
    }

    .tp-home .tp-hero-description {
        font-size: clamp(17px, 4.5vw, 22px);
    }
}

/* v1.0.6 – mobile hero matches header yellow, straight edge, readable content */
@media (max-width:767px) {
.tp-home .tp-hero, .tp-home .tp-hero.tp-hero--has-bg {
    background: #fdce0f !important;
    background-image: none!important;
    clip-path: none!important;
    min-height: 550px!important;
    height: auto!important;
    padding: 0!important;
    padding-top: 100px !important;
    display: flex;
    align-items: center;
}
    .tp-home .tp-hero-inner {min-height:0!important;align-items:flex-start!important;}
    .tp-home .tp-hero-copy {
        padding:55px 0 70px!important;
        width:100%;
        max-width:100%;
    }
    .tp-home .tp-hero-title,
    .tp-home .tp-hero h1 {
        color:#000!important;
        font-size:clamp(60px,11.5vw,72px)!important;
        line-height:1.02!important;
        overflow-wrap:anywhere;
        max-width:100%;
        margin-bottom:22px;
    }
    .tp-home .tp-hero-description {
        color:#111!important;
        font-size:clamp(17px,4.3vw,21px)!important;
        line-height:1.4!important;
        max-width:100%;
    }
    .tp-home .tp-hero + .tp-intro {margin-top:0!important;}
	.tp-home .tp-location-person {
 
    width: 70%;
}
}
