/* Kindluse Kodu II – tulekul. Iseseisev leht, ei sõltu saidi CSS-ist. Fondid: Adobe kit qyx7pfg (index.html). */

:root {
	--dark: #1e1e1d;
	--light: #f5f0eb;
	--accent: #a57667;
	--brown: #5c4136;
	--tan: #cfc5b9;
	--text: #1e1e1d;
	--title: #5c4136;
	--display: "aboreto", Georgia, serif;
	--serif: "minerva-modern", Georgia, serif;
	--sans: "acumin-pro", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(1rem, 5.5vw, 5rem);
	--wrap: 75rem;
	--ease: cubic-bezier(.22,.61,.36,1);
}

*, *:before, *:after {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {margin: 0; background: var(--light); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;}
img {display: block; max-width: 100%;}
a {color: inherit;}
h1, h2, h3, p, figure {margin: 0;}

.wrap {max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);}

.h-display {font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);}

/* nupud */
.btn {display: inline-flex; align-items: center; gap: 1.25rem; padding: 1.15rem 3rem; border: 1px solid currentColor; background: none; font: inherit; font-size: .9375rem; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s;}
.btn--light {color: #fff;}
.btn--light:hover {background: #fff; color: var(--dark); border-color: #fff;}
.btn--dark {color: var(--dark);}
.btn--dark:hover {background: var(--dark); color: #fff;}
.arrow {display: inline-block; width: 22px; height: 10px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10' fill='none' stroke='%23a57667' stroke-width='1.2'%3E%3Cpath d='M0 5h21M16.5.5 21 5l-4.5 4.5'/%3E%3C/svg%3E"); transition: transform .3s var(--ease);}
.btn:hover .arrow, .link-arrow:hover .arrow {transform: translateX(5px);}

.divider {position: relative; width: 23.5rem; max-width: 70%; height: 1px; margin: 4rem auto; background: var(--accent);}
.divider:after {content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border: 1px solid var(--accent); background: var(--light); transform: translate(-50%, -50%) rotate(45deg);}
.divider--wide {width: 100%; max-width: none; margin: 0 0 1.75rem;}

/* hero */
.hero {position: relative; z-index: 1; display: grid; grid-template-columns: 35.2% 1fr; min-height: 56rem; background: var(--dark); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 87.5%);}
.hero__top {position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 2.4rem 5rem 0 5rem;}
.hero__logo img {width: 214px; height: auto; filter: brightness(0) invert(1);}
.hero__lang {font-family: var(--display); font-size: 1.125rem; letter-spacing: .05em; color: rgba(255,255,255,.75);}
.hero__text {display: flex; flex-direction: column; align-items: flex-start; padding: 12.5rem 2rem 9rem 5rem;}
.hero__title {font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 1.2rem + 3vw, 4rem); line-height: 1; letter-spacing: .05em;}
.hero__title span {color: var(--accent);}
.hero__lead {margin: 2.8rem 0 auto; max-width: 22rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 1vw, 2.15rem); line-height: 1.2;}
.hero__text .btn {margin-top: 4rem; white-space: nowrap;}
.hero__img {position: relative; margin-top: 5.9rem; overflow: hidden;}
.hero__img video {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards;}
@keyframes heroZoom {to {transform: scale(1);}}

/* lehepealne lehtede vari */
.intro, .about {position: relative;}
.intro:before, .about:before {content: ''; position: absolute; pointer-events: none; z-index: 0; left: -10%; top: -6rem; width: 70%; height: 40rem; background: radial-gradient(ellipse 60% 40% at 30% 30%, rgba(60,50,40,.07), transparent 70%), radial-gradient(ellipse 40% 30% at 55% 55%, rgba(60,50,40,.05), transparent 70%); filter: blur(10px);}
.intro > *, .about > * {position: relative; z-index: 1;}
.intro:before {top: -8vw; left: 0; width: 70.2vw; height: auto; aspect-ratio: 2016 / 1051; background: url(../images/leaf-shadow.png) no-repeat left top / 100% auto; filter: none;} /* lehtede vari nagu kujunduses */
.about:before {top: 0; left: 0; width: 57.4vw; height: auto; aspect-ratio: 1650 / 1480; background: url(../images/leaf-shadow-2.png) no-repeat left top / 100% auto; filter: none;}

/* intro */
.intro {padding: 1rem 0 8rem; text-align: center;}
.intro .h-display {color: var(--dark);}
.intro__sub {margin-top: .5rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1rem + .8vw, 1.9rem); color: var(--title);}
.intro__txt {max-width: 39rem; margin: 0 auto; font-size: 1.1875rem; line-height: 1.5;}
/* kaartide karussell (käitumine nagu Lagedi ldCards) */
.cards-wrap {position: relative; margin-top: 4.5rem;}
.cards {--gap: 2.6rem; display: flex; gap: var(--gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 3rem; margin-bottom: -3rem; text-align: left;}
.cards::-webkit-scrollbar {display: none;}
.card {flex: 0 0 calc((100% - 2 * var(--gap)) / 3); scroll-snap-align: start;}
.cards__nav {position: absolute; top: 37%; right: calc(var(--gutter) / -2 - 28px); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--accent); background: var(--light); color: var(--accent); cursor: pointer; transform: translateY(-50%); transition: background .3s, color .3s;}
.cards__nav:hover {background: var(--accent); color: #fff;}
.cards__nav[hidden] {display: none;}
.cards__nav svg {transition: transform .3s var(--ease);}
.cards__nav--back svg {transform: rotate(180deg);}
.card__img {position: relative; aspect-ratio: 372 / 501; overflow: hidden;}
.card__img img {--z: 1; width: 100%; height: 115%; object-fit: cover; will-change: transform; transform: scale(var(--z)); transition: transform .4s var(--ease);}
.card__img:after {content: ''; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.85); pointer-events: none;}
.card__title {margin: 1.6rem 0 .8rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1rem + .6vw, 1.75rem); letter-spacing: .06em; text-transform: uppercase; color: var(--title); line-height: 1.15;}
.card p {font-size: 1.0625rem; line-height: 1.5;}

/* avasta */
.discover {display: grid; grid-template-columns: 35.2% 1fr; min-height: 38rem; background: var(--brown) url(../images/paper-brown.jpg) repeat left top / 1006px auto; color: #fff;} /* paberitekstuur nagu kujunduses */
.discover__text {display: flex; flex-direction: column; align-items: flex-start; padding: 4rem 3rem 3.8rem 5rem;}
.discover__text p {margin: 3.4rem 0 auto; max-width: 22rem; font-size: 1.1875rem; line-height: 1.5;}
.discover__text .btn {margin-top: 3rem;}
.discover__img {overflow: hidden;}
.discover__img {position: relative;}
.discover__img img {position: absolute; left: 0; top: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform;}

/* everaus */
.about {padding: 6.25rem 0 13rem;}
.about__grid {display: grid; grid-template-columns: 1fr 41%; gap: 5rem; align-items: start;}
.about__text {padding-top: 2.5rem;}
.about__title {font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.3rem, 1rem + .9vw, 1.6rem); line-height: 1.15; color: var(--title); max-width: 32rem;}
.about__text p {margin-top: 3.4rem; max-width: 32rem; font-size: 1.0625rem; line-height: 1.5;}
.link-arrow {position: relative; display: inline-flex; align-items: center; gap: 1.25rem; margin-top: 8.5rem; padding-bottom: .9rem; text-decoration: none; text-transform: uppercase; font-size: 1rem;}
.about__img {position: relative; aspect-ratio: 493 / 610; overflow: hidden;}
.about__img img {width: 100%; height: 115%; object-fit: cover; will-change: transform;}
.about__logo {position: absolute; z-index: 2; top: 0; right: 0; width: 20.3%; aspect-ratio: 140 / 50.57; background: url(../images/everaus-logo.svg) no-repeat center / contain;}

/* asukoht */
.location {position: relative; margin-top: -7rem; padding: 12rem 0 5.6rem; background: var(--tan); clip-path: polygon(0 0, 100% 7rem, 100% 100%, 0 100%); text-align: center;}
.filters {display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; margin: 2.4rem 0 2.5rem;}
.filters label, .chk {display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-size: 1rem;}
.filters input, .chk input {position: absolute; opacity: 0; pointer-events: none;}
.filters span, .chk span {position: relative; flex: none; width: 31px; height: 31px; border: 1px solid var(--c, var(--accent));}
.filters span:after, .chk span:after {content: ''; position: absolute; inset: 5px; background: var(--c, var(--accent)); transform: scale(0); transition: transform .2s var(--ease);}
.filters input:checked + span:after, .chk input:checked + span:after {transform: scale(1);}
.filters input:focus-visible + span, .chk input:focus-visible + span {outline: 2px solid var(--dark); outline-offset: 2px;}
.map {height: 39.5rem; background: #e8e8e6;}
.map .leaflet-popup-content {font-family: var(--sans);}
.radius-label {display: inline-block; padding: 2px 4px; border-radius: 3px; background: #c58561; color: #fff; font: 700 12px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25); transform: translate(-50%, -50%);}
.radius-icon {background: none; border: none;}

/* registreeri */
.register {padding: 5.6rem 0 7rem;}
.register__grid {display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;}
.contact {text-align: center; justify-self: center;}
.contact__img {width: 20rem; max-width: 100%; aspect-ratio: 320 / 380; overflow: hidden; margin: 0 auto 2.2rem;}
.contact__img img {width: 100%; height: 100%; object-fit: cover;}
.contact__name {font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.75rem; line-height: 1.1;}
.contact__role {font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--title); margin-bottom: 1rem;}
.contact p a {font-size: 1.1rem; line-height: 1.75; text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) no-repeat 50% 100% / 100% 1px; transition: color .3s var(--ease), background-size .5s var(--ease);}
/* hover: tekst ja joon aktsentvärvi, joon tõmbub keskele kokku ja kasvab uuesti välja nagu eraldusjoon */
@media (hover: hover) {.contact p a:hover {color: var(--accent); animation: lineGrow .6s var(--ease);}}
@keyframes lineGrow {0% {background-size: 0 1px;} 100% {background-size: 100% 1px;}}
.form {max-width: 33.3rem;}
.form .h-display {font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); margin-bottom: 1.6rem; text-align: center;}
.field {display: block; margin-top: 2.3rem;}
.field span {display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .07em; font-size: 1.125rem; color: var(--title);}
.field input {display: block; width: 100%; margin-top: .8rem; padding: .3rem 0 .7rem; border: 0; border-bottom: 1px solid var(--dark); border-radius: 0; background: none; font: inherit; font-size: 1.1rem; color: var(--dark);}
.field input:focus {outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent);}
.chk {align-items: flex-start; margin-top: 1.8rem; max-width: 26rem; font-size: 1rem; line-height: 1.4; text-align: left;}
.form .btn {margin-top: 3.6rem;}
.form__note {margin-top: 4.7rem; font-size: 1rem; line-height: 1.4; color: var(--title);}

/* jalus */
.footer {padding: 1rem 0 2.5rem;}
.footer__row {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; font-size: 1rem; color: var(--title);}
.footer__links, .footer__social {display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2.5rem;}
.footer a {text-decoration: none;}
.footer a:hover {text-decoration: underline;}
.footer__sep {width: 1px; height: 1.6rem; background: var(--accent); opacity: .6;}

/* sissetulek kerimisel */
.reveal {opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease);}
.reveal.is-in {opacity: 1; transform: none;}
.hero__text > * {opacity: 0; transform: translateY(30px); animation: fadeUp 1.1s var(--ease) forwards;}
.hero__text > :nth-child(2) {animation-delay: .25s;}
.hero__text > :nth-child(3) {animation-delay: .5s;}
@keyframes fadeUp {to {opacity: 1; transform: none;}}
.divider.reveal {opacity: 1; transform: scaleX(0); transition: transform 1.2s var(--ease);}
.divider.reveal.is-in {transform: scaleX(1);}
/* lingi alljoon tekib keskelt nagu eraldusjoon */
.link-arrow:after {content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform 1.2s var(--ease) .3s;}
.link-arrow.is-in:after, .link-arrow:not(.reveal):after {transform: scaleX(1);}

@media (prefers-reduced-motion: reduce) {
	.reveal, .hero__text > *, .hero__img video {opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;}
	.divider.reveal {transform: none !important;}
}

/* laiemal kui 2200px läheb päis järk-järgult madalamaks (--cut võtab vertikaalvahedest maha, Liina 2026-10-20) */
/* päis: kõik mõõdud ühe ühiku (--u = logo laius) kordajad, nii et logo, pealkirja, alapealkirja,
   nupu ja vahede omavaheline suhe on igal ekraanil sama (Liina näidis 2026-10-20). --u kasvab koos ekraaniga. */
@media (min-width: 761px) {
	:root {--u: clamp(180px, calc(21.32vw - 93px), 480px); --cut: clamp(0px, calc((100vw - 2200px) * 1.85), 760px); --ut: calc(var(--u) - var(--cut) * .22);}
	.hero {grid-template-columns: calc(var(--u) * 2.37) 1fr; min-height: 0;}
	.hero__top {padding: calc(var(--u) * .106) calc(var(--u) * .301) 0;}
	.hero__logo img {width: var(--u);}
	.hero__lang {font-size: calc(var(--u) * .084);}
	.hero__text {padding: calc(var(--u) * .93 - var(--cut) * .1) calc(var(--u) * .12) calc(var(--u) * .9 - var(--cut) * .25) calc(var(--u) * .301);}
	.hero__title {font-size: calc(var(--ut) * .297); line-height: 1.1;}
	.hero__lead {max-width: none; margin: calc(var(--u) * .18 - var(--cut) * .05) 0 0; font-size: calc(var(--ut) * .157); line-height: 1.2;}
	.hero__text .btn {margin-top: calc(var(--u) * .55 - var(--cut) * .3 - 40px); font-size: calc(var(--ut) * .07); padding: 1.227em 3.2em; gap: 1.333em;}
	.hero__text .btn .arrow {width: 1.467em; height: .667em;}
	.hero__img {margin-top: calc(var(--u) * .44 - var(--cut) * .1);}
}
/* „Avasta“ plokk kasvab sama ühikuga nagu päis (Liina 2026-10-20) */
@media (min-width: 1101px) {
	.discover {grid-template-columns: calc(var(--u) * 2.37) 1fr; min-height: calc(var(--u) * 3.33 - var(--cut) * .5);}
	.discover__text {padding: calc(var(--u) * .3) calc(var(--u) * .14) calc(var(--u) * .284) calc(var(--u) * .374);}
	.discover .h-display {font-size: calc(var(--ut) * .262);}
	.discover__text p {max-width: calc(var(--ut) * 1.645); margin-top: calc(var(--u) * .254); font-size: calc(var(--ut) * .089);}
	.discover__text .btn {margin-top: calc(var(--u) * .224); font-size: calc(var(--ut) * .07); padding: 1.227em 3.2em; gap: 1.333em;}
	.discover__text .btn .arrow {width: 1.467em; height: .667em;}
}
@media (min-width: 2000px) {
	.hero__img video {object-position: 50% 75%;}
}

/* tahvel */
@media (max-width: 1100px) {
	.hero__top {padding: 1.6rem var(--gutter) 0;}
	.hero__text {padding: 9rem 1.5rem 7rem var(--gutter);}
	.discover__text {padding: 3.5rem 2rem 3.5rem var(--gutter);}
	.about__grid {gap: 3rem;}
	.cards {--gap: 1.5rem;}
}

/* mobiil */
@media (max-width: 760px) {
	.hero {display: flex; flex-direction: column; min-height: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2.5rem));}
	.hero__top {position: static; padding: 1.25rem var(--gutter);}
	.hero__logo img {width: 150px;}
	.hero__text {padding: 2rem var(--gutter) 2.5rem;}
	.hero__lead {margin: 1.5rem 0 0;}
	.hero__text .btn {margin-top: 2rem;}
	.hero__img {margin: 0; height: 22rem;}
	.btn {padding: 1rem 2rem;}
	.intro {padding: 3rem 0 4rem;}
	.divider {margin: 2.5rem auto;}
	.intro__txt {font-size: 1.0625rem;}
	.cards-wrap {margin-top: 3rem;}
	.cards {flex-direction: column; gap: 3rem; overflow: visible; padding-bottom: 0; margin-bottom: 0;}
	.card {flex: none;}
	.cards__nav {display: none;}
	.discover {display: flex; flex-direction: column; min-height: 0;}
	.discover__img {height: 18rem;}
	.discover__text {padding: 2.5rem var(--gutter) 3rem;}
	.discover__text p {margin: 1.5rem 0 0; font-size: 1.0625rem;}
	.discover__text .btn {margin-top: 2rem;}
	.about {padding: 3.5rem 0 7rem;}
	.about__grid {grid-template-columns: 1fr; gap: 2.5rem;}
	.about__text {padding-top: 0;}
	.about__text p {margin-top: 1.5rem;}
	.link-arrow {margin-top: 2.5rem;}
	.location {margin-top: -3rem; padding: 6rem 0 3rem; clip-path: polygon(0 0, 100% 3rem, 100% 100%, 0 100%);}
	.filters {justify-content: flex-start; gap: .9rem 1.5rem; margin: 1.5rem 0;}
	.filters label {font-size: .9375rem;}
	.filters span {width: 24px; height: 24px;}
	.filters span:after {inset: 4px;}
	.map {height: 26rem;}
	.register {padding: 3.5rem 0 4rem;}
	.register__grid {grid-template-columns: 1fr; gap: 3.5rem;}
	.contact__img {width: 15rem;}
	.form .btn {margin-top: 2.5rem;}
	.form__note {margin-top: 2.5rem;}
	.footer__row {flex-direction: column; align-items: center; text-align: center;}
	.footer__links {gap: .5rem 1.5rem; justify-content: center;}
	.footer__social {justify-content: center;}
	.footer__sep {display: none;}
}

/* Everause logo alati nähtaval nagu lagediavenue.everaus.ee: desktopil all vasakul, mobiilis/tahvlis üleval vasakul */
.evrs-logo {position: fixed; z-index: 500; left: 0; bottom: 0; width: 7rem; line-height: 0;}
.evrs-logo img {display: block; width: 100%; height: auto;}
@media (max-width: 1024px) {
	.evrs-logo {top: 0; bottom: auto; width: 117px;}
	.hero__top {padding-top: calc(42px + 1.25rem) !important;}
}

/* Pipedrive'i vorm on seadistatud tumedale taustale (valged sildid, tumedad väljad); iframe'i sisu CSS-iga muuta ei saa,
   seega pöörame värvid filtriga ümber: väljad heledaks, tekst tumedaks, punane nupp jääb punakaks */
.pipedriveWebForms iframe {filter: invert(1) hue-rotate(180deg) brightness(1.2);}

/* poliitikate alamlehed (/tulekul/privaatsuspoliitika/, /tulekul/kupsisepoliitika/) */
.policy-head {background: var(--dark); padding: 2.4rem var(--gutter) 2.6rem;}
.policy-head .hero__logo img {width: 180px;}
.policy {padding: 4rem 0 6rem;}
.policy__wrap {max-width: calc(48rem + 2 * var(--gutter));}
.policy__back {display: inline-block; margin-bottom: 2rem; color: var(--accent); text-decoration: none; font-size: 1rem;}
.policy__back:hover {text-decoration: underline;}
.policy .h-display {color: var(--dark); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); margin-bottom: 2.4rem;}
.policy__text {font-size: 1.0625rem; line-height: 1.6;}
.policy__text p, .policy__text ul {margin: 0 0 1.1rem;}
.policy__text ul {padding-left: 1.3rem;}
.policy__text a {color: var(--accent);}
@media (max-width: 1024px) {.policy-head {padding-top: calc(42px + 1.5rem);}}

/* kaardi raadiuste sildid nagu kindlusekodu.everaus.ee avalehel */
.radius-line-icon {background: none; border: none; pointer-events: none;}
.radius-line-label {display: inline-block; background: #c58561; color: #fff; padding: 2px 4px; font-size: 12px; font-weight: 700; border-radius: 4px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25); transform: translate(-50%, -50%);}

/* Liina soov 2026-10-23: keelevalik ET / EN / RU (lehed /tulekul/, /tulekul/en/, /tulekul/ru/) */
.hero__lang {display: flex; gap: .9em;}
.hero__lang a {color: inherit; text-decoration: none; transition: color .2s;}
.hero__lang a:hover, .hero__lang a.act {color: #fff;}

/* esmane sissemakse badge (2026-11-13) */
.hero__badge {position: absolute; z-index: 2; top: 6%; right: 0; width: 41%; max-width: 640px; display: block;}
.hero__badge img {display: block; width: 100%; height: auto;}
@media (max-width: 760px) {.hero__badge {top: 1rem; width: 62%;}}
.hero__badge--txt {container-type: inline-size; aspect-ratio: 1500 / 352; background: #614034; color: #fff; text-decoration: none;}
.hero__badge--txt > span {display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 6cqw 0 7cqw; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1;}
.hero__badge-lab {font-size: 7.6cqw; letter-spacing: .02em; line-height: 1.05;}
.hero__badge-num {font-size: 21cqw; letter-spacing: .01em;}
