@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");

/* Alfalend — Frontend Header CSS */

:root {

    --af-green: #7DC242;

    --af-brown: #3D1A00;

    --af-brown-light: #7a3e10;

    --af-green-dark: #5a9e2f;

    --af-white: #ffffff;

    --af-topbar-h: 40px;

    --af-navbar-h: 68px;

    --af-font: 'Inter', 'Poppins', system-ui, sans-serif;

}

/* ── RESET / BASE — tugevad override'id Divi vastu ── */

#af-header,

#af-header *,

#af-header *::before,

#af-header *::after { box-sizing: border-box; }

#af-header {

    position: relative;

    /* z-index EEMALDATUD — see lõi stacking contexti z=9000 ROOT-is,

       mis piiras .af-navbar (z=99998) efektiivse z-indexi 9000-le.

       Divi scroll-efektid loovad skrollimisel ajutisi stacking contexte

       mis said siis päise peale. Nüüd läheb .af-navbar z=99998 otse

       ROOT stacking konteksti — alati lehe sisu kohal. */

    font-family: var(--af-font);

    margin-bottom: 0 !important;

    padding: 0 !important;

    transform: none !important;

    filter: none !important;

    isolation: auto !important;

}

/* Divi lisab ul/li-le list-style: disc ja pseudo-elemendid */

#af-header ul,

#af-header ul li,

#af-header ol,

#af-header ol li {

    list-style: none !important;

    list-style-type: none !important;

    list-style-image: none !important;

    margin: 0 !important;

    padding: 0 !important;

    background-image: none !important;

    float: none !important;

}

#af-header ul li::before,

#af-header ul li::after,

#af-header ol li::before,

#af-header ol li::after {

    content: none !important;

    display: none !important;

}

#af-header ul li::marker,

#af-header ol li::marker {

    content: none !important;

}

/* Divi lisab a-le oma värvi ja box-shadow */

#af-header a,

#af-header a:link,

#af-header a:visited {

    text-decoration: none !important;

    box-shadow: none !important;

}

#af-header a:hover { text-decoration: none !important; }

/* ── FIXED POSITSIONEERIMINE — sama muster nagu näidisplugin ──

   Topbar: top=0, admin-bar korral top=32px

   Navbar: top=topbar kõrgus, admin-bar korral +32px

   Padding: Divi #page-container saab padding-top, mitte body

*/

#af-header .af-topbar {

    position: fixed !important;

    top: 0 !important;

    left: 0 !important;

    right: 0 !important;

    z-index: 99999 !important;

    width: 100% !important;

}

body.admin-bar #af-header .af-topbar {

    top: 32px !important;

}

@media screen and (max-width: 782px) {

    body.admin-bar #af-header .af-topbar { top: 46px !important; }

}

/* Navbar positsioneerimine — kehtib nii #af-header sees kui body-le liigutades */

#af-header .af-navbar,

body > #af-navbar {

    position: fixed !important;

    top: 40px !important;

    left: 0 !important;

    right: 0 !important;

    z-index: 99998 !important;

    width: 100% !important;

    max-width: none !important;

    min-height: 60px !important;

    display: flex !important;

    align-items: center !important;

}

/* Topbar väljas */

#af-header.af-no-topbar .af-navbar,

body > #af-navbar.af-no-topbar {

    top: 0 !important;

}

/* Admin bar offsets */

body.admin-bar #af-header .af-navbar,

body.admin-bar > #af-navbar {

    top: 72px !important;

}

body.admin-bar #af-header.af-no-topbar .af-navbar,

body.admin-bar > #af-navbar.af-no-topbar {

    top: 32px !important;

}

@media screen and (max-width: 782px) {

    body.admin-bar #af-header .af-navbar,

    body.admin-bar > #af-navbar           { top: 86px !important; }

    body.admin-bar #af-header.af-no-topbar .af-navbar,

    body.admin-bar > #af-navbar.af-no-topbar { top: 46px !important; }

}

/* #page-container padding seab JS setHeaderOffset() */

/* ── CONTAINER ── */

.af-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; box-sizing: border-box; }

/* ── TOPBAR ── */

#af-header .af-topbar {

    background: var(--af-surface-strong, var(--af-brown)) !important;

    border-bottom: 4px solid var(--af-accent-border, transparent) !important;

    height: 40px !important;

    display: flex !important;

    align-items: center !important;

    width: 100% !important;

}

.af-topbar-container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 32px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 20px;

    height: 100%;

}

.af-topbar-item {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--af-on-surface-strong-soft, rgba(255,255,255,.75));

    font-size: 13px;

    font-weight: 400;

    transition: color .2s;

}

.af-topbar-item:hover { color: var(--af-on-surface-strong, #fff); }

.af-topbar-item svg { flex-shrink: 0; }

/* ── TOPBAR: teade (vasak) + kontaktgrupp (parem) ── */

.af-topbar-message {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--af-green, #7DC242);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-topbar-message svg { flex-shrink: 0; }

.af-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    flex-shrink: 0;
}

.af-topbar-hours,
.af-topbar-address {
    white-space: nowrap;
}

@media screen and (max-width: 1100px) {
    .af-topbar-message { display: none; }
}

@media screen and (max-width: 900px) {
    .af-topbar-hours { display: none; }
}

@media screen and (max-width: 782px) {
    .af-topbar-address { display: none; }
}

/* Admin edit toggle nupp topbaris */

.af-topbar-edit-toggle {

    display: flex;

    align-items: center;

    gap: 5px;

    color: rgba(255,255,255,.45);

    font-size: 12px;

    font-family: inherit;

    padding: 3px 10px;

    border-radius: 3px;

    border: 1px solid rgba(255,255,255,.15);

    background: transparent;

    cursor: pointer;

    white-space: nowrap;

    transition: color .2s, border-color .2s, background .2s;

}

.af-topbar-edit-toggle:hover {

    color: #fff;

    border-color: rgba(255,255,255,.35);

    background: rgba(255,255,255,.06);

}

.af-topbar-edit-toggle.af-edit-active {

    color: var(--af-green);

    border-color: var(--af-green);

    background: rgba(233,94,35,.12);

}

.af-topbar-edit-toggle svg { opacity: .8; flex-shrink: 0; }

/* Edit mode — body klass */

body.af-edit-mode #af-header { outline: 1px dashed rgba(233,94,35,.3); }

/* frontend inline edit */

[data-af-field] {

    outline: none;

    border-radius: 3px;

    transition: background .15s, box-shadow .15s;

    cursor: text;

}

[data-af-field]:focus,

[data-af-field]:hover {

    background: rgba(233,94,35,.15);

    box-shadow: 0 0 0 2px rgba(233,94,35,.4);

}

/* ── NAVBAR ── */

#af-header .af-navbar,

body > #af-navbar {

    background: var(--af-white);

    height: var(--af-navbar-h);

    border-bottom: 1px solid rgba(0,0,0,.08);

    box-shadow: 0 1px 12px rgba(3,46,104,.07);

    transition: background .3s, box-shadow .3s;

}

/* Transparent mode — klass on #af-header-l VÕI otse navbar-il (body-tasandil) */

#af-header.af-transparent .af-navbar,

body > #af-navbar.af-transparent {

    background: transparent !important;

    box-shadow: none;

    border-bottom: none;

}

#af-header.af-transparent.af-scrolled .af-navbar,

body > #af-navbar.af-transparent.af-scrolled {

    background: var(--af-white) !important;

    box-shadow: 0 2px 12px rgba(3,46,104,.1);

}

/* Navbar inner — flex, position:relative et nav saaks absoluutselt tsentreeruda */

.af-navbar-inner {

    display: flex !important;

    align-items: center !important;

    position: relative !important;

    width: 100% !important;

    max-width: 1200px !important;

    margin: 0 auto !important;

    padding: 0 32px !important;

    box-sizing: border-box !important;

    /* overflow:visible tagab et absoluutselt positsioneeritud sub-menu ei lõigata */

    overflow: visible !important;

}

/* Kõik navbari esivanemad peavad lubama overflow */

#af-header .af-navbar,

body > #af-navbar,

#af-header .af-nav,

#af-header .af-menu,

#af-header .af-menu > li {

    overflow: visible !important;

}

/* Logo — vasakul, z-index 2 et oleks nav-i peal */

.af-logo-link {

    display: flex !important;

    align-items: center !important;

    flex-shrink: 0 !important;

    text-decoration: none !important;

    position: relative !important;

    z-index: 2 !important;

}

.af-logo-img {

    display: block !important;

    height: auto !important;

    object-fit: contain !important;

    /* max-height ja width tulevad PHP inline style-ist */

    max-width: 100% !important;

}

.af-logo-text {

    font-family: 'Poppins', sans-serif;

    font-size: 18px;

    font-weight: 800;

    color: var(--af-brown);

    letter-spacing: .04em;

    text-transform: uppercase;

    line-height: 1.15;

}

#af-header.af-transparent .af-logo-text { color: #fff; }

/* Nav — täis laius, justify-content:center tsentreerub täpselt */

#af-header .af-nav {

    position: absolute !important;

    left: 0 !important;

    right: 0 !important;

    top: 0 !important;

    bottom: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    pointer-events: none !important;

    z-index: 1 !important;

}

/* Menüü ise saab pointer events tagasi */

#af-header .af-nav .af-menu {

    pointer-events: auto !important;

}

#af-header .af-nav .af-menu li,

#af-header .af-nav .af-menu a {

    pointer-events: auto !important;

}

/* Bulletid täielikult eemaldatud */

#af-header .af-menu,

#af-header .af-menu ul,

#af-header .af-menu li {

    list-style: none !important;

    list-style-type: none !important;

    list-style-image: none !important;

    margin: 0 !important;

    padding: 0 !important;

    background-image: none !important;

}

#af-header .af-menu li::before,

#af-header .af-menu li::after {

    display: none !important;

    content: none !important;

}

#af-header .af-menu {

    display: flex !important;

    align-items: center !important;

    gap: 2px !important;

    flex-wrap: nowrap !important;

}

#af-header .af-menu > li { position: relative !important; }

/* Menüülingid — height-põhine vertikaalne joondus nagu näidisplugin */

#af-header .af-nav .af-menu > li > a,
body > #af-navbar .af-nav .af-menu > li > a,

#af-header .af-nav .af-menu > li > a:link,
body > #af-navbar .af-nav .af-menu > li > a:link,

#af-header .af-nav .af-menu > li > a:visited,
body > #af-navbar .af-nav .af-menu > li > a:visited {

    display: inline-flex !important;

    align-items: center !important;

    gap: 6px !important;

    padding: 0 10px !important;

    height: var(--af-navbar-h) !important;

    font-family: 'Poppins', sans-serif !important;

    font-size: 14px !important;

    font-weight: 400 !important;

    letter-spacing: .03em !important;

    text-transform: uppercase !important;

    color: #3D1A00 !important;

    background: transparent !important;

    border-radius: 0 !important;

    transition: color .2s !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    border: none !important;

    box-shadow: none !important;

    position: relative !important;

}

/* Aktiivne indikaator — alumine joon nagu näidisplugin */

#af-header .af-nav .af-menu > li > a::after,
body > #af-navbar .af-nav .af-menu > li > a::after {

    content: '' !important;

    position: absolute !important;

    bottom: 8px !important;

    left: 10px !important;

    right: 10px !important;

    height: 2px !important;

    background: #7DC242 !important;

    transform: scaleX(0) !important;

    transition: transform .25s !important;

    border-radius: 2px !important;

}

#af-header .af-nav .af-menu > li > a:hover::after,
body > #af-navbar .af-nav .af-menu > li > a:hover::after,

#af-header .af-nav .af-menu > li.current-menu-item > a::after,
body > #af-navbar .af-nav .af-menu > li.current-menu-item > a::after { transform: scaleX(1) !important; }

#af-header .af-nav .af-menu > li > a:hover,
body > #af-navbar .af-nav .af-menu > li > a:hover,

#af-header .af-nav .af-menu > li.current-menu-item > a,
body > #af-navbar .af-nav .af-menu > li.current-menu-item > a,

#af-header .af-nav .af-menu > li.current-menu-ancestor > a,
body > #af-navbar .af-nav .af-menu > li.current-menu-ancestor > a {

    color: #7DC242 !important;

    background: rgba(3,46,104,.05) !important;

}

/* Transparent mode (slideri kohal) */

#af-header.af-transparent:not(.af-scrolled) .af-nav .af-menu > li > a,

#af-header.af-transparent:not(.af-scrolled) .af-nav .af-menu > li > a:link,

#af-header.af-transparent:not(.af-scrolled) .af-nav .af-menu > li > a:visited {

    color: rgba(255,255,255,.92) !important;

}

#af-header.af-transparent:not(.af-scrolled) .af-nav .af-menu > li > a:hover,

#af-header.af-transparent:not(.af-scrolled) .af-nav .af-menu > li.current-menu-item > a {

    color: #fff !important;

    background: rgba(255,255,255,.1) !important;

}

/* Home ikoon */

#af-header .af-home-icon {

    width: 16px;

    height: 16px;

    flex-shrink: 0;

    vertical-align: middle;

    display: inline-block;

}

/* Dropdown */

/* ── MEGA MENÜÜ — täislaiusega veergudes ── */

.af-menu li { position: relative; }

/* Peamenüü dropdown — tavalistele */

.af-menu > li > .sub-menu {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    background: #fff !important;

    border-radius: 6px;

    min-width: 220px;

    box-shadow: 0 8px 40px rgba(3,46,104,.15), 0 2px 8px rgba(0,0,0,.06);

    padding: 8px 0;

    list-style: none;

    margin: 2px 0 0;

    z-index: 999999;

    border-top: 3px solid var(--af-green);

    isolation: isolate;

}

.af-menu > li:hover > .sub-menu { display: block; }

/* Sub-menu body tasemel (JS viib sinna z-index fix-ina) */

/* position:fixed ja zIndex seab JS — siin hoolitseme ainult väljanägemise eest */

.af-sub-detached {

    background: #fff !important;

    border-radius: 6px !important;

    min-width: 220px !important;

    box-shadow: 0 8px 40px rgba(3,46,104,.15), 0 2px 8px rgba(0,0,0,.06) !important;

    padding: 8px 0 !important;

    list-style: none !important;

    border-top: 3px solid var(--af-green) !important;

    margin: 2px 0 0 !important;

}

.af-sub-detached li { margin: 0 !important; padding: 0 !important; list-style: none !important; }

.af-sub-detached li::before, .af-sub-detached li::after { content: none !important; display: none !important; }

.af-menu > li > .sub-menu li a,

.af-sub-detached li a {

    display: block !important;

    padding: 6px 16px !important;

    font-size: 13px !important;

    font-family: 'Inter', sans-serif !important;

    font-weight: 500 !important;

    letter-spacing: 0 !important;

    text-transform: none !important;

    color: var(--af-brown) !important;

    line-height: 1.3 !important;

    white-space: normal !important;

    transition: background .15s, color .15s !important;

    text-decoration: none !important;

    box-shadow: none !important;

    height: auto !important;

}

.af-menu > li > .sub-menu li a:hover,

.af-sub-detached li a:hover {

    background: #f0f5fc !important;

    color: var(--af-green) !important;

}

.af-menu > li > .sub-menu li + li,

.af-sub-detached li + li { border-top: 1px solid rgba(3,46,104,.05); }

/* ── MEGA PANEEL (ehitab JS) ── */

.af-mega-panel {

    display: none;

    position: fixed;

    left: 0;

    right: 0;

    top: 0; /* JS seab täpse väärtuse */

    background: #fff !important;

    box-shadow: 0 12px 48px rgba(3,46,104,.15) !important;

    border-top: 3px solid var(--af-green) !important;

    z-index: 999999 !important;

    padding: 0 !important;

    border-radius: 0 !important;

    min-width: unset !important;

}

.af-mega-panel.af-open { display: block !important; }

.af-mega-inner {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 32px;

    box-sizing: border-box;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 8px 32px;

    align-items: start;

    /* Kerimine kui sisu ei mahu */

    max-height: calc(100vh - 160px);

    overflow-y: auto;

}

/* Stiilne kerimisriba */

.af-mega-inner::-webkit-scrollbar { width: 4px; }

.af-mega-inner::-webkit-scrollbar-track { background: transparent; }

.af-mega-inner::-webkit-scrollbar-thumb { background: rgba(3,46,104,.2); border-radius: 2px; }

/* Veeru pealkiri */

.af-mega-col-title {

    display: block;

    font-family: 'Poppins', sans-serif !important;

    font-size: 12px !important;

    font-weight: 800 !important;

    letter-spacing: .06em !important;

    text-transform: uppercase !important;

    color: var(--af-green) !important;

    margin: 0 0 10px !important;

    padding: 0 0 8px !important;

    border-bottom: 1px solid rgba(3,46,104,.1) !important;

    text-decoration: none !important;

    transition: color .15s !important;

}

.af-mega-col-title:hover { color: var(--af-brown) !important; }

/* Veeru kirjed */

.af-mega-col-items {

    list-style: none;

    margin: 0;

    padding: 0;

}

.af-mega-col-items li { margin: 0; }

.af-mega-col-items a {

    display: block !important;

    padding: 5px 0 !important;

    font-size: 13px !important;

    transition: color .15s, transform .15s !important;

    font-family: 'Inter', sans-serif !important;

    font-weight: 400 !important;

    letter-spacing: 0 !important;

    text-transform: none !important;

    color: #444 !important;

    line-height: 1.4 !important;

    transition: color .15s, padding-left .15s !important;

    text-decoration: none !important;

    box-shadow: none !important;

    border: none !important;

    background: transparent !important;

    height: auto !important;

    white-space: normal !important;

}

.af-mega-col-items a:hover {

    color: var(--af-green) !important;

    transform: translateX(6px);

}

.af-mega-col-items li + li { border: none !important; }

/* CTA button */

.af-cta-btn {

    display: inline-flex;

    align-items: center;

    padding: 6px 16px;

    border-radius: 4px;

    font-family: 'Poppins', sans-serif !important;

    font-size: 13px !important;

    font-weight: 700 !important;

    letter-spacing: .07em !important;

    text-transform: uppercase !important;

    cursor: pointer;

    transition: filter .2s, transform .15s;

    flex-shrink: 0;

    white-space: nowrap;

    margin-left: 16px;

}

.af-cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Right side controls */

.af-nav-right {

    display: flex !important;

    align-items: center !important;

    gap: 12px !important;

    margin-left: auto !important;

    position: relative !important;

    z-index: 2 !important;

    flex-shrink: 0 !important;

}

/* Hamburger */

.af-hamburger {

    display: none;

    flex-direction: column;

    gap: 5px;

    background: none;

    border: none;

    cursor: pointer;

    padding: 6px;

    border-radius: 4px;

}

.af-hamburger span {

    display: block;

    width: 24px;

    height: 2px;

    background: var(--af-brown);

    border-radius: 2px;

    transition: transform .25s, opacity .25s;

}

.af-transparent:not(.af-scrolled) .af-hamburger span { background: #fff; }

.af-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }

.af-hamburger.open span:nth-child(2) { opacity: 0; }

.af-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav close btn */

.af-nav-close { display: none; background: none; border: none; cursor: pointer; padding: 6px; }

.af-nav-footer { display: none; }

/* ── SLIDER ── */

.af-slider-section { position: relative; overflow: hidden; isolation: isolate; }

.af-slider-wrap { position: relative; overflow: hidden; width: 100%; }

.af-slides { position: relative; width: 100%; height: 100%; }

.af-slide {

    position: absolute;

    inset: 0;

    opacity: 0;

    transition: opacity 1s ease;

}

.af-slide.active { opacity: 1; }

/* Ken Burns animatsioonid — 4 erinevat suunda */

@keyframes kb-zoom-tl {

    0%   { transform: scale(1)    translate(0, 0); }

    100% { transform: scale(1.12) translate(-2%, -2%); }

}

@keyframes kb-zoom-tr {

    0%   { transform: scale(1)    translate(0, 0); }

    100% { transform: scale(1.12) translate(2%, -2%); }

}

@keyframes kb-zoom-bl {

    0%   { transform: scale(1)    translate(0, 0); }

    100% { transform: scale(1.12) translate(-2%, 2%); }

}

@keyframes kb-zoom-br {

    0%   { transform: scale(1)    translate(0, 0); }

    100% { transform: scale(1.12) translate(2%, 2%); }

}

@keyframes kb-zoom-in {

    0%   { transform: scale(1); }

    100% { transform: scale(1.1); }

}

/* Sisse-välja zoom — liigub sisse, siis välja tagasi */

@keyframes kb-zoom-in-out {

    0%   { transform: scale(1); }

    50%  { transform: scale(1.12); }

    100% { transform: scale(1); }

}

@keyframes kb-zoom-out-in {

    0%   { transform: scale(1.12); }

    50%  { transform: scale(1); }

    100% { transform: scale(1.12); }

}

@keyframes kb-pan-right {

    0%   { transform: scale(1.08) translate(-3%, 0); }

    100% { transform: scale(1.08) translate(3%, 0); }

}

.af-slide-bg {

    position: absolute;

    inset: -6%; /* pisut suurem et animatsioon ei näitaks servi */

    background-size: cover;

    background-position: center;

    will-change: transform;

    transform-origin: center center;

}

/* Igale slaidile erinev animatsioon — zoom sisse SIIS välja */

.af-slide:nth-child(1).active .af-slide-bg { animation: kb-zoom-in-out 12s ease-in-out infinite; }

.af-slide:nth-child(2).active .af-slide-bg { animation: kb-zoom-out-in 14s ease-in-out infinite; }

.af-slide:nth-child(3).active .af-slide-bg { animation: kb-zoom-in-out 11s ease-in-out infinite; }

.af-slide:nth-child(4).active .af-slide-bg { animation: kb-zoom-out-in 13s ease-in-out infinite; }

.af-slide:nth-child(5).active .af-slide-bg { animation: kb-zoom-in-out 12s ease-in-out infinite; }

.af-slide:nth-child(6).active .af-slide-bg { animation: kb-pan-right 12s ease-in-out reverse forwards; }

.af-slide-overlay { position: absolute; inset: 0; background: #000; }

.af-video-bg { position: absolute; inset: 0; overflow: hidden; }

.af-slide-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.af-slide-video-wrap {

    position: absolute;

    inset: -20%;

    overflow: hidden;

}

.af-slide-video-wrap iframe {

    width: 100%;

    height: 100%;

    pointer-events: none;

}

/* Slide content */

.af-slide-content {

    position: absolute;

    z-index: 10;

    padding: 0 60px 240px;

    max-width: 1100px;

    width: 90%;

}

.af-pos-bottom-left   { bottom: 0; left: 0; }

.af-pos-bottom-center { bottom: 0; left: 50%; transform: translateX(-50%); text-align: center; }

.af-pos-middle-left   { top: 50%; left: 0; transform: translateY(-50%); }

.af-pos-middle-center { top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }

.af-slide-title {

    font-family: 'Poppins', sans-serif;

    font-size: clamp(32px, 5vw, 68px);

    font-weight: 800;

    line-height: 1.05;

    color: #fff;

    text-transform: uppercase;

    letter-spacing: .01em;

    margin: 0 0 12px;

    text-shadow: 0 2px 12px rgba(0,0,0,.3);

}

.af-slide-subtitle {

    font-size: 18px;

    font-weight: 300;

    color: rgba(255,255,255,.85);

    margin: 0 0 24px;

    max-width: 540px;

    line-height: 1.55;

}

.af-slide-cta {

    display: inline-block;

    padding: 12px 28px;

    border-radius: 4px;

    font-family: 'Poppins', sans-serif;

    font-weight: 700;

    font-size: 14px;

    letter-spacing: .07em;

    text-transform: uppercase;

    transition: filter .2s, transform .15s;

    background: #7DC242 !important;

    color: #fff !important;

}

.af-slide-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Nav buttons */

.af-slider-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 20;

    background: rgba(255,255,255,.15);

    border: 1.5px solid rgba(255,255,255,.3);

    color: #fff;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: background .2s, transform .2s;

    backdrop-filter: blur(4px);

}

.af-slider-btn:hover { background: rgba(255,255,255,.3); }

.af-prev { left: 24px; }

.af-next { right: 24px; }

/* Dots */

.af-dots {

    position: absolute;

    bottom: 20px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 8px;

    z-index: 20;

}

.af-dot {

    width: 8px; height: 8px;

    border-radius: 50%;

    background: rgba(255,255,255,.4);

    border: none;

    cursor: pointer;

    transition: background .2s, transform .2s;

    padding: 0;

}

.af-dot.active { background: var(--af-green); transform: scale(1.3); }

/* Progress bar */

.af-progress-bar {

    position: absolute;

    top: 0; left: 0; right: 0;

    height: 3px;

    background: rgba(255,255,255,.15);

    z-index: 25;

}

.af-progress-fill {

    height: 100%;

    background: var(--af-green);

    width: 0%;

    transition: width linear;

}

/* slider-admin-bar eemaldatud — kasutatakse af-edit-mode loogika */

/* ── HERO ── */

.af-hero {

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

}

.af-hero-bg {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

}

.af-hero-gradient { background: linear-gradient(135deg, var(--af-surface-strong, var(--af-brown)) 0%, var(--af-brown-light) 100%); }

.af-hero-overlay { position: absolute; inset: 0; z-index: 1; }

.af-hero-content {

    position: relative;

    z-index: 2;

    text-align: center;

    padding: 24px 32px;

}

.af-hero-title {

    font-family: 'Poppins', sans-serif;

    font-size: clamp(24px, 4vw, 48px);

    font-weight: 800;

    text-transform: uppercase;

    color: #fff;

    letter-spacing: .02em;

    margin: 0 0 10px;

}

.af-hero-breadcrumb { color: rgba(255,255,255,.65); font-size: 13px; }

.af-hero-breadcrumb a { color: rgba(255,255,255,.65); }

.af-hero-breadcrumb a:hover { color: var(--af-green); }

/* ── MOBILE BAR ── */

.af-mobile-bar {

    display: none;

    position: fixed;

    bottom: 0; left: 0; right: 0;

    background: var(--af-surface-strong, var(--af-brown));

    color: var(--af-on-surface-strong, #fff);

    z-index: 9500;

    padding: 8px 16px;

    gap: 0;

}

.af-mobile-bar-item {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color: rgba(255,255,255,.85);

    font-size: 13px;

    padding: 8px 0;

}

.af-mobile-bar-close {

    background: none;

    border: none;

    color: rgba(255,255,255,.5);

    font-size: 16px;

    cursor: pointer;

    padding: 8px;

}

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {

    .af-container { padding: 0 20px; }

}

@media (max-width: 860px) {

    /* Topbar peidetud mobiilis */

    .af-topbar { display: none !important; }

    /* Hamburger nahtav */

    .af-hamburger { display: flex !important; }

    /* Navbar inner: logo vasakul, ulejaanud parempoolne grupp (CTA+otsing+hamburger) */

    .af-navbar-inner { padding: 0 10px !important; justify-content: flex-start !important; }

    /* Logo mobiilis — veidi suurem */

    #af-header .af-logo-img,

    body > #af-navbar .af-logo-img {

        max-height: 46px !important;

        height: auto !important;

        max-width: 120px !important;

        width: auto !important;

    }

    .af-logo-link { overflow: visible !important; }

    /* Nav-right: laieneb taitma ulejaanud ruumi (flex-shrink:0 on inline, flex-grow tuleb CSS-ist) */

    body > #af-navbar .af-nav-right,

    #af-header .af-nav-right { flex-grow: 1 !important; min-width: 0 !important; gap: 6px !important; }

    /* CTA nupp navbaris — kompaktne, taitab vaba ruumi */

    .af-cta-btn {

        display: inline-flex !important;

        flex: 1 1 0 !important;

        min-width: 0 !important;

        padding: 7px 8px !important;

        font-family: 'Barlow Condensed', 'Poppins', sans-serif !important;

        font-size: 11px !important;

        font-weight: 700 !important;

        letter-spacing: .06em !important;

        text-transform: uppercase !important;

        line-height: 1.25 !important;

        border-radius: 6px !important;

        white-space: nowrap !important;

        overflow: hidden !important;

        text-overflow: ellipsis !important;

        height: auto !important;

        text-align: center !important;

        justify-content: center !important;

        align-items: center !important;

        border: none !important;

        cursor: pointer !important;

    }

    /* Otsing ja hamburger: pisut vahem (ruumi CTA jaoks) */

    .af-search-toggle {

        width: 30px !important;

        height: 30px !important;

        flex-shrink: 0 !important;

    }

    .af-hamburger { flex-shrink: 0 !important; }

    /* ── TAISLAIUSELINE MOBIILMENUUU — valge taust ── */

    .af-nav {

        position: fixed !important;

        inset: 0 !important;

        width: 100vw !important;

        height: 100dvh !important;

        background: #fff !important;

        z-index: 99999 !important;

        flex-direction: column !important;

        align-items: stretch !important;

        justify-content: flex-start !important;

        overflow-y: auto !important;

        overflow-x: hidden !important;

        padding: 0 !important;

        box-shadow: 0 8px 40px rgba(3,46,104,.18) !important;

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform: translateY(-16px) !important;

        transition: opacity .28s ease, visibility .28s ease, transform .28s ease !important;

        right: auto !important;

        top: 0 !important;

        left: 0 !important;

        bottom: 0 !important;

    }

    .af-nav.open {

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: translateY(0) !important;

    }

    /* ── MOBIILMENUUU PAEIS: logo keskel originaalvarvides ── */

    .af-nav-mobile-header {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        padding: 14px 56px !important;

        border-bottom: 1px solid rgba(3,46,104,.1) !important;

        flex-shrink: 0 !important;

        min-height: 70px !important;

        box-sizing: border-box !important;

        position: relative !important;

        background: #fff !important;

    }

    .af-nav-mobile-logo-link {

        display: flex !important;

        align-items: center !important;

        text-decoration: none !important;

        justify-content: center !important;

    }

    .af-nav-mobile-logo-img {

        max-height: 56px !important;

        width: auto !important;

        max-width: 200px !important;

        object-fit: contain !important;

        filter: none !important;

        display: block !important;

    }

    /* Sulge nupp absoluutne parem nurk */

    .af-nav-close {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        width: 38px !important;

        height: 38px !important;

        background: rgba(3,46,104,.07) !important;

        border: 1px solid rgba(3,46,104,.15) !important;

        border-radius: 50% !important;

        color: #3D1A00 !important;

        cursor: pointer !important;

        padding: 0 !important;

        flex-shrink: 0 !important;

        position: absolute !important;

        right: 14px !important;

        top: 50% !important;

        transform: translateY(-50%) !important;

        transition: background .18s !important;

    }

    .af-nav-close:hover { background: rgba(3,46,104,.13) !important; }

    /* ── MENUUULINGID ── */

    .af-menu {

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 0 !important;

        padding: 4px 0 !important;

        flex: 1 0 auto !important;

        pointer-events: auto !important;

    }

    #af-nav .af-menu > li {

        pointer-events: auto !important;

        display: flex !important;

        flex-wrap: wrap !important;

        align-items: stretch !important;

        border-bottom: 1px solid rgba(3,46,104,.08) !important;

    }

    #af-nav .af-menu > li > a,

    #af-nav .af-menu > li > a:link,

    #af-nav .af-menu > li > a:visited {

        color: #3D1A00 !important;

        font-size: 15px !important;

        font-weight: 700 !important;

        letter-spacing: .06em !important;

        text-transform: uppercase !important;

        padding: 11px 16px !important;

        height: auto !important;

        display: flex !important;

        align-items: center !important;

        gap: 8px !important;

        border-bottom: none !important;

        border-radius: 0 !important;

        background: transparent !important;

        flex: 1 !important;

    }

    #af-nav .af-menu > li > a:hover,

    #af-nav .af-menu > li.current-menu-item > a,

    #af-nav .af-menu > li.current-menu-ancestor > a {

        color: #7DC242 !important;

        background: rgba(233,94,35,.05) !important;

    }

    #af-nav .af-menu > li > a::after { display: none !important; }

    /* ── ALAMMENUU ── */

    .af-menu .sub-menu {

        display: none;

        position: static !important;

        box-shadow: none !important;

        border: none !important;

        background: #f5f7fa !important;

        padding: 0 !important;

        border-radius: 0 !important;

        width: 100% !important;

        flex-basis: 100% !important;

        border-top: 1px solid rgba(3,46,104,.07) !important;

    }

    .af-menu .sub-menu.af-sub-open { display: block !important; }

    .af-menu .sub-menu li { display: block !important; }

    .af-menu .sub-menu li a,

    .af-menu .sub-menu li a:link,

    .af-menu .sub-menu li a:visited {

        color: #444 !important;

        font-size: 14px !important;

        padding: 10px 16px 10px 34px !important;

        font-weight: 500 !important;

        text-transform: none !important;

        letter-spacing: .01em !important;

        border-bottom: 1px solid rgba(3,46,104,.06) !important;

        background: transparent !important;

        height: auto !important;

        flex: none !important;

        display: block !important;

    }

    .af-menu .sub-menu li:last-child a { border-bottom: none !important; }

    .af-menu .sub-menu li a:hover { color: #7DC242 !important; background: rgba(233,94,35,.04) !important; }

    /* Toggle nupp alammenuu avamiseks */

    .af-mobile-sub-toggle {

        background: none !important;

        border: none !important;

        cursor: pointer !important;

        padding: 13px 14px !important;

        color: rgba(3,46,104,.4) !important;

        flex-shrink: 0 !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        transition: color .18s, transform .2s !important;

        border-left: 1px solid rgba(3,46,104,.08) !important;

    }

    .af-mobile-sub-toggle:hover { color: #7DC242 !important; }

    .af-mobile-sub-toggle.open { transform: rotate(180deg) !important; color: #7DC242 !important; }

    .af-menu > li.menu-item-has-children > a { flex: 1 !important; }

    /* ── MOBIILI KONTAKT + CTA ── */

    .af-nav-mobile-contact {

        display: flex !important;

        flex-direction: column !important;

        gap: 8px !important;

        padding: 14px 16px !important;

        border-top: 1px solid rgba(3,46,104,.1) !important;

        flex-shrink: 0 !important;

        background: #f8f9fc !important;

    }

    .af-nav-contact-btn {

        display: flex !important;

        align-items: center !important;

        gap: 11px !important;

        color: #3D1A00 !important;

        text-decoration: none !important;

        font-size: 15px !important;

        font-weight: 600 !important;

        font-family: 'Barlow Condensed', 'Poppins', sans-serif !important;

        letter-spacing: .02em !important;

        padding: 11px 14px !important;

        background: #fff !important;

        border-radius: 7px !important;

        border: 1px solid rgba(3,46,104,.12) !important;

        transition: border-color .18s, box-shadow .18s !important;

        box-sizing: border-box !important;

    }

    .af-nav-contact-btn:hover { border-color: #7DC242 !important; box-shadow: 0 2px 8px rgba(233,94,35,.12) !important; }

    .af-nav-contact-btn svg { color: #7DC242 !important; flex-shrink: 0 !important; }

    .af-cta-btn-mobile {

        display: block !important;

        width: 100% !important;

        padding: 13px 18px !important;

        border-radius: 7px !important;

        font-family: 'Barlow Condensed', 'Poppins', sans-serif !important;

        font-size: 17px !important;

        font-weight: 700 !important;

        letter-spacing: .08em !important;

        text-transform: uppercase !important;

        text-align: center !important;

        box-sizing: border-box !important;

        text-decoration: none !important;

        border: none !important;

        cursor: pointer !important;

    }

    /* Hamburger: alati navy taustavarjundiga et oleks nahtav igal taustal */

    .af-hamburger {

        background: rgba(255,255,255,0.15) !important;

        border-radius: 6px !important;

        padding: 7px !important;

        backdrop-filter: blur(4px) !important;

    }

    .af-hamburger span { background: #3D1A00 !important; }

    /* Transparent header (slaider taustal) — tugevam kontrast */

    body > #af-navbar.af-transparent:not(.af-scrolled) .af-hamburger {

        background: rgba(3,46,104,0.55) !important;

        border: 1px solid rgba(255,255,255,0.25) !important;

    }

    body > #af-navbar.af-transparent:not(.af-scrolled) .af-hamburger span { background: #fff !important; }

    /* Taustakate ei ole vaja (taislaiusmenuu katab koik) */

    .af-nav-overlay { display: none !important; }

    .af-nav-overlay.active { display: none !important; }

    /* Vana mobiiliriba peidetud (kontakt on nuud menuus) */

    .af-mobile-bar { display: none !important; }

    /* Slider */

    .af-slide-content { padding: 0 20px 40px; }

    .af-slider-btn { width: 36px; height: 36px; }

    .af-prev { left: 12px; }

    .af-next { right: 12px; }

}

@media (max-width: 480px) {

    .af-slide-title { font-size: clamp(26px,7vw,42px); }

    .af-slide-subtitle { font-size: 15px; }

    .af-slider-btn { display: none; }

    .af-hero-title { font-size: clamp(20px,6vw,36px); }

}

/* Desktop: peida mobiilspetsiifilised elemendid */

@media (min-width: 861px) {

    .af-nav-mobile-header { display: none !important; }

    .af-nav-mobile-contact { display: none !important; }

}

/* ── OVERLAY (click outside to close nav) ── */

.af-nav-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(3,46,104,.4);

    z-index: 9800;

    backdrop-filter: blur(2px);

}

.af-nav-overlay.active { display: block; }

/* Admin bar top väärtused: CSS haldab body.admin-bar klassiga, JS seab padding */

/* Peida Divi vaikepäis (kui on) */

#main-header,

#top-header,

.et-fixed-header,

#et-main-nav {

    display: none !important;

}

/* Divi Theme Builder et-l--header wrapper.

   EI tohi olla height:0 — slaider on päise sees ja vajab ruumi.

   Navbar/topbar on position:fixed (ei lisa kõrgust), nii et

   wrapper kõrgus = slaidi kõrgus (avalehel) või 0 (mujal). */

.et-l--header {

    margin: 0 !important;

    padding: 0 !important;

    display: block !important;

    position: static !important;

}

.et-l--header .et_builder_inner_content {

    padding: 0 !important;

    margin: 0 !important;

}

/* Divi section padding reset */

.et_pb_section.et_section_specialty {

    padding-top: 0 !important;

}

/* ── SEARCH TOGGLE IKOON ── */

.af-search-toggle {

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 36px !important;

    height: 36px !important;

    background: var(--af-surface-strong, #3D1A00) !important;

    border: none !important;

    cursor: pointer !important;

    border-radius: 50% !important;

    color: var(--af-on-surface-strong, #fff) !important;

    transition: background .2s !important;

    padding: 0 !important;

    flex-shrink: 0 !important;

    line-height: 1 !important;

}

.af-search-toggle:hover {

    background: #7DC242 !important;

}

.af-search-toggle svg {

    stroke: currentColor !important;

    display: block !important;

}

/* ── SEARCH OVERLAY ── */

.af-search-overlay {

    position: fixed;

    top: 0; left: 0; right: 0;

    z-index: 100000;

    background: #fff;

    border-bottom: 3px solid #f0f4f8;

    box-shadow: 0 8px 32px rgba(3,46,104,.10), 0 2px 8px rgba(3,46,104,.06);

    transform: translateY(-100%);

    opacity: 0;

    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;

    pointer-events: none;

    overflow: visible;

}

.af-search-overlay.af-search-open {

    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;

}

.af-search-overlay-inner {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 32px;

    box-sizing: border-box;

    height: 100%;

    display: flex;

    align-items: center;

}

.af-search-box-wrap {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    border-bottom: 1.5px solid rgba(3,46,104,.12);

    transition: border-color .2s;

}

.af-search-box-wrap:focus-within {

    border-bottom-color: var(--af-green);

}

.af-search-icon-big {

    color: rgba(3,46,104,.3);

    flex-shrink: 0;

}

.af-search-input {

    flex: 1;

    background: transparent;

    border: none;

    outline: none;

    color: var(--af-brown);

    font-family: 'Poppins', sans-serif;

    font-size: 17px;

    font-weight: 500;

    letter-spacing: .01em;

    padding: 8px 0;

    caret-color: var(--af-green);

}

.af-search-input::placeholder { color: rgba(3,46,104,.3); }

.af-search-input::-webkit-search-cancel-button { display: none; }

.af-search-close {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    background: rgba(3,46,104,.06);

    border: 1px solid rgba(3,46,104,.12);

    border-radius: 50%;

    color: rgba(3,46,104,.45);

    cursor: pointer;

    flex-shrink: 0;

    transition: background .2s, color .2s;

    padding: 0;

}

.af-search-close:hover { background: rgba(3,46,104,.1); color: var(--af-brown); }

/* Tulemused */

.af-search-results {

    position: absolute;

    top: 100%;

    left: 0; right: 0;

    background: #fff;

    border-top: 1px solid rgba(3,46,104,.08);

    box-shadow: 0 12px 40px rgba(3,46,104,.12);

    max-height: 55vh;

    overflow-y: auto;

    padding: 8px 32px 20px;

    box-sizing: border-box;

}

.af-search-results:empty {

    display: none;

}

.af-search-result-item {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 10px 0;

    border-bottom: 1px solid rgba(3,46,104,.06);

    text-decoration: none;

    color: var(--af-brown);

    transition: color .15s;

}

.af-search-result-item:last-child { border-bottom: none; }

.af-search-result-item:hover { color: var(--af-green); }

.af-search-result-thumb {

    width: 52px;

    height: 40px;

    border-radius: 4px;

    object-fit: cover;

    flex-shrink: 0;

    background: rgba(3,46,104,.06);

}

.af-search-result-thumb-placeholder {

    width: 52px;

    height: 40px;

    border-radius: 4px;

    background: rgba(3,46,104,.05);

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

}

.af-search-result-body { flex: 1; min-width: 0; }

.af-search-result-title {

    font-family: 'Poppins', sans-serif;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: .02em;

    white-space: normal;

    overflow: visible;

}

.af-search-result-excerpt {

    font-size: 12px;

    color: rgba(3,46,104,.45);

    margin-top: 2px;

    white-space: normal;

    overflow: visible;

}

.af-search-result-type {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--af-green);

    flex-shrink: 0;

}

.af-search-no-results {

    color: rgba(3,46,104,.4);

    font-size: 15px;

    padding: 12px 0;

    font-style: italic;

}

/* Otsingutulemuste sobituse markeerija */

.af-match {

    background: rgba(233,94,35,.12);

    color: var(--af-green);

    font-weight: 700;

    border-radius: 2px;

    font-style: normal;

}

.af-search-all-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 10px;

    color: var(--af-green);

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    text-decoration: none;

    transition: opacity .2s;

}

.af-search-all-link:hover { opacity: .75; }

.af-search-loading {

    display: flex;

    align-items: center;

    gap: 10px;

    color: rgba(3,46,104,.35);

    font-size: 14px;

    padding: 12px 0;

}

@keyframes af-spin {

    to { transform: rotate(360deg); }

}

.af-search-spinner {

    width: 18px; height: 18px;

    border: 2px solid rgba(3,46,104,.1);

    border-top-color: var(--af-green);

    border-radius: 50%;

    animation: af-spin .7s linear infinite;

    flex-shrink: 0;

}

/* Tühi olek — kiirlinkid */

.af-search-hint {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: rgba(3,46,104,.3);

    margin-bottom: 8px;

    padding-top: 4px;

}

.af-search-quick {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}

.af-search-quick-link {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 12px;

    background: rgba(3,46,104,.04);

    border: 1px solid rgba(3,46,104,.1);

    border-radius: 20px;

    color: var(--af-brown);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition: background .15s, border-color .15s, color .15s;

}

.af-search-quick-link:hover {

    background: var(--af-green);

    border-color: var(--af-green);

    color: #fff;

}

.af-search-quick-link svg { flex-shrink: 0; }

/* ── SLIDER BOTTOM SHAPE ── */

.af-slider-shape {

    position: absolute;

    bottom: -1px;

    left: 0;

    width: 100%;

    height: 80px;

    z-index: 15;

    display: block;

    pointer-events: none;

}

/* ── TEENUSED SLAIDERI PEAL ── */

@keyframes af-svc-enter {

    0%   { opacity: 0; transform: translateY(28px); }

    100% { opacity: 1; transform: translateY(0); }

}

.af-slider-services {

    position: absolute;

    bottom: 180px;

    left: 0; right: 0;

    z-index: 20;

    display: flex;

    justify-content: center;

    gap: 12px;

    padding: 0 32px;

    pointer-events: none;

    flex-wrap: wrap;

}

.af-svc-item {

    pointer-events: auto;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 20px 26px;

    background: #7DC242;

    border: 1px solid rgba(255,255,255,.2);

    border-radius: 4px;

    color: #fff;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;

    font-size: clamp(15px, 1.4vw, 18px);

    font-weight: 700;

    letter-spacing: .05em;

    text-transform: uppercase;

    cursor: pointer;

    white-space: nowrap;

    box-shadow: 0 4px 20px rgba(0,0,0,.2);

    animation: af-svc-enter .55s cubic-bezier(.22,1,.36,1) both;

    transition: background .2s, transform .2s, box-shadow .2s;

}

a.af-svc-item:hover {

    background: #cf5120;

    transform: translateY(-3px);

    box-shadow: 0 8px 28px rgba(0,0,0,.25);

}

.af-svc-item-num { display: none; }

.af-svc-item-title { line-height: 1; }

.af-svc-item-arrow {

    opacity: .6;

    flex-shrink: 0;

    transition: transform .2s;

}

a.af-svc-item:hover .af-svc-item-arrow {

    opacity: 1;

    transform: translateX(3px);

}

@media (max-width: 900px) {

    .af-slider-services { bottom: 130px; gap: 8px; padding: 0 20px; }

    .af-svc-item { font-size: 12px; padding: 11px 14px; }

    .af-slide-content { padding-bottom: 210px; }

}

@media (max-width: 600px) {

    .af-slider-services { bottom: 100px; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }

    .af-slide-content { padding: 0 20px 220px; }

}

/* ── DIVI VISUAL BUILDER REŽIIM ──

   et_fb_root_ancestor / et_pb_preview klassid lisatakse builder-is.

   Muudame fixed elemendid static-uks et päis kuvataks builder-is normaalselt. */

body.et_pb_preview #af-header .af-topbar,

body.et_pb_preview #af-header .af-navbar,

body.et_pb_preview > #af-navbar,

body.et_fb_root_ancestor #af-header .af-topbar,

body.et_fb_root_ancestor #af-header .af-navbar,

body.et_fb_root_ancestor > #af-navbar {

    position: static !important;

    top: auto !important;

    transform: none !important;

}

body.et_pb_preview #af-header,

body.et_fb_root_ancestor #af-header {

    position: static !important;

}

body.et_pb_preview .et-l--header,

body.et_fb_root_ancestor .et-l--header {

    height: auto !important;

    overflow: visible !important;

}

body.et_pb_preview #page-container,

body.et_fb_root_ancestor #page-container {

    padding-top: 0 !important;

}

/* Slider ka nähtav builder-is */

body.et_pb_preview .af-slider-wrap,

body.et_fb_root_ancestor .af-slider-wrap {

    height: 400px !important;

}

body.et_pb_preview .af-slide,

body.et_fb_root_ancestor .af-slide {

    position: static !important;

    display: none !important;

}

body.et_pb_preview .af-slide:first-child,

body.et_fb_root_ancestor .af-slide:first-child {

    display: block !important;

    opacity: 1 !important;

}

body.et_pb_preview .af-slide-bg,

body.et_fb_root_ancestor .af-slide-bg {

    position: absolute !important;

    animation: none !important;

}

/* ══════════════════════════════════════════════════

   MENÜÜ VARIANDID — A / B / C / D

   ══════════════════════════════════════════════════ */

/* af-has-mega: peit algne dropdown */

.af-menu > li.af-has-mega > .sub-menu { display: none !important; }

/* ── VARIANT A — veergudes: pealkiri üleval, kirjed all ── */

.af-panel-a-inner {

    display: flex;

    flex-direction: row;

    align-items: flex-start;

    flex-wrap: nowrap;

    overflow-x: auto;

    overflow-y: auto;

    max-height: calc(100vh - 120px);

    max-width: min(98vw, 1600px);

    width: 100%;

    margin: 0 auto;

    box-sizing: border-box;

}

.af-panel-a-inner::-webkit-scrollbar { height: 4px; }

.af-panel-a-inner::-webkit-scrollbar-thumb { background: rgba(3,46,104,.2); border-radius: 2px; }

/* Iga 2. taseme kirje = üks veerg */

.kpm-group {

    flex: 1 1 0;

    min-width: 160px;

    padding: 16px 20px 20px;

    border-right: 1px solid rgba(3,46,104,.07);

    overflow-y: auto;

    max-height: calc(100vh - 120px);

    box-sizing: border-box;

}

.kpm-group:last-child { border-right: none; }

/* 2. taseme pealkiri — fikseeritud kõrgus et kõik joonduvad */

.kpm-group-title {

    margin: 0 0 12px;

    padding: 0 0 10px;

    border-bottom: 2px solid var(--af-green);

    min-height: 52px; /* 2 rida pealkirja + padding */

    display: flex;

    align-items: flex-end; /* pealkiri joondub alaservale, joon alla */

}

.kpm-group-title a {

    display: block !important;

    font-family: 'Poppins', sans-serif !important;

    font-size: clamp(18px, 1.5vw, 20px) !important;

    font-weight: 800 !important;

    letter-spacing: .05em !important;

    text-transform: uppercase !important;

    color: var(--af-brown) !important;

    text-decoration: none !important;

    transition: color .15s !important;

    height: auto !important;

    padding: 0 !important;

    background: none !important;

    box-shadow: none !important;

    line-height: 1.2 !important;

}

.kpm-group-title a:hover { color: var(--af-green) !important; }

/* 3. taseme kirjed — ALL pealkirjast */

.kpm-group-items {

    list-style: none;

    margin: 0;

    padding: 0;

}

/* 2-tulbaline variant pikale nimekirjale — grid */

.kpm-group-items--cols {

    display: grid;

    grid-template-columns: 1fr 1fr;

    column-gap: 20px;

    row-gap: 0;

}

.kpm-group-items li + li { border-top: 1px solid rgba(3,46,104,.05); }

.kpm-group-items--cols li + li { border-top: none; }

.kpm-group-items li a {

    display: block !important;

    padding: 5px 0 !important;

    font-size: clamp(16px, 1.2vw, 18px) !important;

    white-space: normal;

    overflow: visible;

    transition: color .15s, transform .15s !important;

    font-family: 'Inter', sans-serif !important;

    font-weight: 400 !important;

    color: #555 !important;

    text-decoration: none !important;

    transition: color .15s, padding-left .15s !important;

    line-height: 1.4 !important;

    border: none !important;

    background: none !important;

    height: auto !important;

    text-transform: none !important;

    letter-spacing: 0 !important;

}

.kpm-group-items li a:hover {

    color: var(--af-green) !important;

    transform: translateX(6px);

}

/* Lai veerg 2-tulbalisele nimekirjale */

.kpm-group--wide {

    flex: 2 1 0 !important;

    min-width: 300px !important;

}

/* ── VARIANT B — accordion ── */

.af-panel-b-inner {

    display: block !important;

    max-width: 480px;

    margin: 0 auto;

    max-height: calc(100vh - 160px);

    overflow-y: auto;

    padding: 12px 24px !important;

}

.kpm-acc-row { border-bottom: 1px solid rgba(3,46,104,.07); }

.kpm-acc-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 11px 0;

    cursor: pointer;

}

.kpm-acc-head a {

    font-size: 15px !important;

    font-weight: 600 !important;

    color: var(--af-brown) !important;

    text-decoration: none !important;

    pointer-events: none;

}

.kpm-acc-row:not(.kpm-has-kids) .kpm-acc-head a { pointer-events: auto; }

.kpm-acc-row:not(.kpm-has-kids) .kpm-acc-head { cursor: default; }

.kpm-acc-head:hover a { color: var(--af-green) !important; }

.kpm-acc-row.kpm-open .kpm-acc-head a { color: var(--af-green) !important; }

.kpm-acc-toggle {

    font-size: 20px;

    color: var(--af-green);

    font-weight: 300;

    line-height: 1;

    flex-shrink: 0;

    margin-left: 8px;

}

.kpm-acc-body {

    list-style: none;

    margin: 0;

    padding: 0 0 10px 16px;

}

.kpm-acc-body a {

    display: block !important;

    padding: 5px 0 !important;

    font-size: 13px !important;

    color: #555 !important;

    text-decoration: none !important;

    transition: color .15s !important;

}

.kpm-acc-body a:hover { color: var(--af-green) !important; }

/* ── VARIANT D — 2-veeru paneel ── */

.af-panel-d-inner {

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;

    max-height: calc(100vh - 160px);

    overflow-y: auto;

    padding: 28px 32px !important;

    max-width: 1200px;

    margin: 0 auto;

}

/* ── LAINE PROGRESS — vasak→parem, siis parem→vasak ── */

@keyframes af-wave-draw {

    from { stroke-dashoffset: 1; }

    to   { stroke-dashoffset: 0; }

}

@keyframes af-wave-back {

    from { stroke-dashoffset: 0; }

    to   { stroke-dashoffset: -1; }

}

/* Progress SVG asub täpselt valge laine peal */

.af-slider-shape-progress {

    position: absolute;

    bottom: -1px;

    left: 0;

    width: 100%;

    height: 80px;

    z-index: 16; /* valge kuju (z-index:15) peal */

    display: block;

    pointer-events: none;

}

.af-slider-shape-progress path {

    stroke-dashoffset: 1; /* peidetud vaikimisi, JS alustab */

}

/* ── TÄHELAINEEFEKT ── */

.af-wave-letter {

    display: inline;

    transition: color 0.15s ease;

}

/* ── SUUR EKRAAN — suuremad fondid menüüs ── */

@media (min-width: 1600px) {

    .af-mega-col-title { font-size: 14px !important; }

    .af-mega-col-items a { font-size: 14px !important; }

    .kpm-group-title a { font-size: 22px !important; }

    .kpm-group-items li a { font-size: 20px !important; }

}

@media (min-width: 2000px) {

    .af-mega-col-title { font-size: 15px !important; }

    .af-mega-col-items a { font-size: 14px !important; }

    .kpm-group-title a { font-size: 24px !important; }

    .kpm-group-items li a { font-size: 20px !important; }

}

/* ── PEAMENÜÜ FONDID — responsiivsed ── */

@media (min-width: 1200px) {

    #af-header .af-menu > li > a {

        font-size: 14px !important;

    }

}

@media (min-width: 1440px) {

    #af-header .af-menu > li > a {

        font-size: 15px !important;

    }

}

@media (min-width: 1800px) {

    #af-header .af-menu > li > a {

        font-size: 15px !important;

    }

}

@media (min-width: 2200px) {

    #af-header .af-menu > li > a {

        font-size: 16px !important;

    }

}

/* ── MEGAMENÜÜ MOBIIL / TABLET ── */

@media (max-width: 1200px) {

    .af-panel-a-inner { max-height: calc(100vh - 100px); }

    .kpm-group { min-width: 130px; padding: 12px 14px 16px; }

    .kpm-group-title a { font-size: 16px !important; }

    .kpm-group-items li a { font-size: 14px !important; }

    .kpm-group-items--cols { grid-template-columns: 1fr; }

    .kpm-group--wide { min-width: 200px !important; flex: 1.5 1 0 !important; }

}

@media (max-width: 900px) {

    .af-panel-a-inner { flex-wrap: wrap; max-height: 70vh; overflow-y: auto; }

    .kpm-group { flex: 1 1 200px; max-height: none; border-right: none; border-bottom: 1px solid rgba(3,46,104,.07); }

    .kpm-group:last-child { border-bottom: none; }

}

/* ══════════════════════════════════════════════════

   HERO — SISULEHT

   ══════════════════════════════════════════════════ */

.af-hero {

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--af-surface-strong, #3D1A00);

    box-sizing: border-box;

    padding: 14px 0 !important;

    min-height: 0 !important;

    max-height: 100px !important;

}

.af-hero--grad { background: linear-gradient(135deg, #3D1A00 0%, #054a9e 100%); }

.af-hero-bg {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: .35;

    filter: grayscale(30%);

}

.af-hero-overlay {

    position: absolute;

    inset: 0;

}

.af-hero-content {

    position: relative;

    z-index: 2;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 48px;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    box-sizing: border-box;

}

.af-hero-left { flex: 1; }

/* Breadcrumb — eraldi riba hero all, vasakule joondatud */

/* Breadcrumb — noole-lint disain (sama, mis af-tooted single-product.css),
   et vältida stiililahknevust ühelt pluginalt teisele liikudes. */

.af-breadcrumb--standalone {

    display: block;

    background: var(--af-cream, #FAF6F0);

    margin: 0;

    padding: 16px 0;

}

.af-bc-inner.af-bc-ribbon {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 48px;

    box-sizing: border-box;

    display: flex;

    align-items: stretch;

    flex-wrap: wrap;

    font-family: 'Inter', sans-serif;

    font-size: 12.5px;

    font-weight: 500;

    line-height: 1.3;

}

.af-bc-ribbon .af-bc-seg {

    display: flex;

    align-items: center;

    color: var(--af-muted, #8a7a67);

    text-decoration: none;

    background: var(--af-cream2, #F3EBDD);

    padding: 7px 18px 7px 16px;

    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);

    white-space: nowrap;

}

.af-bc-ribbon .af-bc-seg:first-child {

    padding-left: 14px;

    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);

}

.af-bc-ribbon .af-bc-seg:not(:first-child) { margin-left: -10px; }

.af-bc-ribbon a.af-bc-seg:hover { filter: brightness(0.93); }

.af-bc-ribbon .af-bc-seg:nth-child(2) { background: var(--af-line, #ECE3D6); color: #6f6154; }

.af-bc-ribbon .af-bc-seg:nth-child(3) { background: #D8C9AE; color: #4a3c26; }

.af-bc-ribbon .af-bc-seg:nth-child(n+4):not(.af-bc-current) { background: #C9B896; color: #3a2c1a; }

.af-bc-ribbon .af-bc-current {

    background: var(--af-green, #7DC242);

    color: #20390d;

    font-weight: 700;

    padding-right: 16px;

    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);

}

@media (max-width: 600px) {

    .af-bc-inner.af-bc-ribbon { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }

    .af-bc-inner.af-bc-ribbon::-webkit-scrollbar { display: none; }

    .af-bc-ribbon .af-bc-seg,

    .af-bc-ribbon .af-bc-seg:first-child,

    .af-bc-ribbon .af-bc-current {

        clip-path: none;

        border-radius: 8px;

        padding: 6px 12px;

        margin-left: 5px;

    }

    .af-bc-ribbon .af-bc-seg:first-child { margin-left: 0; }

}

@media (max-width: 768px) {

    .af-breadcrumb--standalone { padding: 12px 0; }

    .af-bc-inner.af-bc-ribbon { padding: 0 20px; }

}

/* Pealkiri */

.af-hero-title {

    font-family: 'Poppins', sans-serif !important;

    font-size: clamp(20px, 2.5vw, 30px) !important;

    font-weight: 800 !important;

    color: #fff !important;

    text-transform: uppercase !important;

    letter-spacing: .04em !important;

    line-height: 1.1 !important;

    margin: 4px 0 0 !important;

    padding: 0 !important;

    border: none !important;

    background: none !important;

}

/* Oranž aksent joon */

.af-hero-accent {

    display: none; /* kompaktsel vaatamisel peidetud */

}

/* Dekoratiivne parem pool */

.af-hero-deco {

    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    width: clamp(80px, 10vw, 140px);

    opacity: .4;

    pointer-events: none;

}

.af-hero-deco svg { width: 100%; height: auto; }

@media (max-width: 768px) {

    .af-hero-content { padding: 0 24px; }

    .af-hero-deco { display: none; }

    .af-hero-title { font-size: clamp(24px, 6vw, 36px) !important; }

}

/* ── KONTAKTIVORM POPUP ─────────────────────────────────── */

.af-contact-overlay {

    position: fixed;

    inset: 0;

    background: rgba(3,46,104,.55);

    backdrop-filter: blur(3px);

    z-index: 999999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    /* Peitmine opacity+visibility kaudu — display:flex jääb alati,

       nii ei sõltu PHP style="display:none" CSS override'idest */

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: opacity 0.18s ease, visibility 0.18s ease;

}

.af-contact-overlay.af-open {

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

}

.af-contact-modal {

    background: #fff;

    border-radius: 12px;

    padding: 40px 44px;

    width: 100%;

    max-width: 520px;

    position: relative;

    box-shadow: 0 24px 64px rgba(0,0,0,.22);

    max-height: 90vh;

    overflow-y: auto;

}

.af-contact-close {

    position: absolute;

    top: 16px; right: 16px;

    background: none; border: none;

    cursor: pointer; color: #999;

    padding: 4px;

    display: flex; align-items: center; justify-content: center;

    border-radius: 4px;

    transition: color .18s, background .18s;

}

.af-contact-close:hover { color: #3D1A00; background: #f0f4fa; }

.af-contact-title {

    font-family: 'Poppins', sans-serif;

    font-size: 28px; font-weight: 700;

    color: #3D1A00; margin: 0 0 24px;

    text-transform: uppercase; letter-spacing: .04em;

}

.af-cf-group { margin-bottom: 16px; }

.af-cf-label-el { display: block; font-size: 15px; font-weight: 600; color: #3D1A00; margin-bottom: 5px; }

.af-cf-input {

    width: 100%; box-sizing: border-box;

    border: 1.5px solid #d1d9e6; border-radius: 6px;

    padding: 13px 14px; font-size: 16px;

    font-family: 'Inter', sans-serif; color: #1a1a1a;

    background: #fafbfd; outline: none; resize: vertical;

    transition: border-color .18s, box-shadow .18s;

}

.af-cf-input:focus { border-color: #3D1A00; box-shadow: 0 0 0 3px rgba(3,46,104,.1); background: #fff; }

.af-cf-privacy-wrap { margin: 20px 0 22px; }

.af-cf-privacy-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: #444; line-height: 1.5; }

.af-cf-privacy-label input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #3D1A00; cursor: pointer; }

.af-cf-privacy-label a { color: #3D1A00; text-decoration: underline; }

.af-cf-privacy-label a:hover { color: #7DC242; }

.af-contact-error { background: #fff3f0; border: 1px solid #f5c6bb; color: #c0392b; border-radius: 6px; padding: 10px 14px; font-size: 15px; margin-bottom: 14px; }

.af-cf-submit {

    width: 100%; padding: 13px 24px; border: none; border-radius: 6px;

    font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700;

    letter-spacing: .06em; text-transform: uppercase; cursor: pointer;

    display: flex; align-items: center; justify-content: center; gap: 10px;

    transition: filter .18s, transform .12s;

}

.af-cf-submit:hover { filter: brightness(1.1); }

.af-cf-submit-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: af-spin .7s linear infinite; display: block; }

@keyframes af-spin { to { transform: rotate(360deg); } }

.af-contact-success { text-align: center; padding: 24px 0 8px; }

.af-contact-success svg { display: block; margin: 0 auto 16px; }

.af-contact-success p { font-size: 16px; font-weight: 600; color: #3D1A00; }

.af-cta-btn.af-cta-popup-trigger,

.af-cta-btn-mobile.af-cta-popup-trigger { font-family: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }

@media (max-width: 600px) {

    .af-contact-modal { padding: 28px 20px; }

    .af-contact-title { font-size: 20px; }

}


/* Reakaupa halo animatsioon */
.af-wave-letter {
    display: inline-block;
    transition: text-shadow 0.45s ease;
}
