/*
Theme Name: Valvetec
Theme URI: https://valvetec.ee/
Author: Niisiis OÜ
Description: Valvetec.ee kerge oma teema. Ei sõltu lehe­ehitaja-pluginatest; sisu on hoitud valmis HTML-ina.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: valvetec
*/

/* ------------------------------------------------------------------
   1. Lehe laadimise animatsioon (oli varem inline <style> peas)
   ------------------------------------------------------------------ */
#page-preloader {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    height: 100%; width: 100%; cursor: default; pointer-events: none;
    text-align: center; vertical-align: middle;
    background-color: #f0f2f6; z-index: 9999999;
}
#page-preloader img {
    position: absolute; top: calc(50% - 48px); left: calc(50% - 42px);
    animation-name: rotationY; animation-duration: 1350ms;
    animation-iteration-count: infinite; animation-timing-function: linear;
}
@keyframes rotationY {
    0%   { transform: rotate(0deg)   translateZ(0); }
    25%  { transform: rotate(15deg)  translateZ(0); }
    50%  { transform: rotate(0deg)   translateZ(0); }
    75%  { transform: rotate(-15deg) translateZ(0); }
    100% { transform: rotate(0deg)   translateZ(0); }
}

/* ------------------------------------------------------------------
   2. Teema seadetest genereeritud reeglid (varem secretlab-dynamic-css)
   ------------------------------------------------------------------ */
footer.fsect {
    background-color: #232323;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: left bottom;
    background-image: url('../../uploads/2022/01/logotaust5_reversed_2.png');
    background-size: inherit;
}
.navbar-nav li.bgr1 > .sub-menu,
.navbar-nav li.bgr2 > .sub-menu { background-color: #f3f3f3; background-repeat: no-repeat; background-attachment: scroll; }
.navbar-nav li.bgr1 > .sub-menu { background-position: right center; }
.navbar-nav li.bgr2 > .sub-menu { background-position: right top; }
a, a:hover, a:active { color: #3aafd6; }

.very-special-field { color: #fff; }
.custom-contact1 { color: #35a5ce; }
.recentcomments a { display: inline !important; padding: 0 !important; margin: 0 !important; }
.wpb_animate_when_almost_visible { opacity: 1; }

/* ------------------------------------------------------------------
   3. Kohandatud CSS (varem Kohanda -> Lisa-CSS)
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
    h1 { font-size: 30px; }
    h2 { font-size: 30px; }
    h3 { font-size: 20px; }
    .menu-item-atshooldus a { margin-right: 38%; }
}
.navbar-toogle { font-size: 30px; }
body { overflow-wrap: normal; }
@media (max-width: 992px) {
    .sell_topbar { display: none; }
}
.navbar-nav li:hover { border-top: 0 !important; }
.menu-item-atshooldus a { padding: 10px 20px !important; margin-top: 10px; }
.ats_ikoon { width: 20px; height: 15px; padding-left: 5px; }
.navbar-nav li:last-child a {
    color: #fff; padding: 15px 15px; border-radius: 3px; background-color: #cb2027;
}
.navbar-nav li:last-child a:hover { background-color: #1c2329; }
.navbar-nav ul:last-child a { color: rgba(28,35,41,.81); margin-left: 30px; background-color: #fcfcfc; }
.navbar-nav a { font-size: 16px !important; }
.logo img { max-height: 80%; max-width: 80%; padding-top: 8px; }
.sell_topbar { font-size: 16px !important; }
.navbar-nav li { border-top: 0; z-index: 9999; }
/* Järjekord on siin oluline: kitsamal ekraanil peab kehtima väiksem polster.
   Vanas Lisa-CSS-is olid need reeglid üksteise sees (sulud jäid sulgemata). */
@media (max-width: 1024px) {
    .navbar-nav li a { padding: 25px 9px; }
}
@media (max-width: 600px) {
    .navbar-nav li a { padding: 10px 9px; }
    h3.entry-title { text-transform: none !important; }
}


/* ------------------------------------------------------------------
   4. Esilehe slaider
   Asendab Smart Slider 3 pluginat. Mõõdud ja kirjastiilid on üle võetud
   vana slaideri seadetest (kujundus 1920x800, põhifont 16 px).
   ------------------------------------------------------------------ */
.vt-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-size: 16px;
    background: #fff;
}
/*
 * Slaidid on ruudustikus üksteise peal. Nii on slaideri kõrguseks kas
 * kujunduse proportsioon (1920:800) või kõige kõrgema slaidi sisu – täpselt
 * nagu vanal slaideril, mis kitsal ekraanil samuti sisu järgi kasvas.
 */
.vt-slider__viewport {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-areas: 'slide';
    min-height: calc(100vw / 2.4);
}
.vt-slide {
    grid-area: slide;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 800ms ease;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vt-slide.is-active { opacity: 1; visibility: visible; }
.vt-slide__inner { width: 100%; }

.vt-slide__lead {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.875em;      /* 187.5% */
    line-height: 1.5;
    margin: 0 0 10px;
}
.vt-slide__title {
    font-family: Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 3.625em;      /* 362.5% */
    line-height: 1.3;
    color: #000;
    margin: 0 0 30px;
}
.vt-slide__btn {
    display: inline-block;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.5;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.8em 1.5em;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

/* -- slaid 1 -- */
.vt-slide--1 .vt-slide__inner { padding: 40px 60px; text-align: center; }
.vt-slide--1 .vt-slide__lead  { color: #1c2329; text-align: center; }
.vt-slide--1 .vt-slide__btn   { background: #2fafd8; }
.vt-slide--1 .vt-slide__btn:hover,
.vt-slide--1 .vt-slide__btn:focus { background: #fff; color: #262626 !important; }

/* -- slaid 2 -- */
.vt-slide--2 .vt-slide__inner { max-width: 1030px; padding: 40px 60px; text-align: center; }
.vt-slide--2 .vt-slide__title { margin: 0 -140px 10px; }
.vt-slide--2 .vt-slide__lead  { color: #000; margin-bottom: 10px; text-align: center; }
.vt-slide--2 .vt-slide__btn   { background: #2fafd8; font-weight: 900; margin-top: 10px; }
.vt-slide--2 .vt-slide__btn:hover,
.vt-slide--2 .vt-slide__btn:focus { background: #fff; color: #2fafd8 !important; }

/* -- slaid 3 -- */
.vt-slide--3 .vt-slide__inner { max-width: 870px; padding: 20px 60px; text-align: right; }
.vt-slide--3 .vt-slide__lead  { color: #1c2329; font-size: 1.25em; text-align: right; }
.vt-slide--3 .vt-slide__title { font-weight: 700; margin: 10px 0 25px; }
.vt-slide--3 .vt-slide__btn   { background: #7cc478; border-radius: 10px; }
.vt-slide--3 .vt-slide__btn:hover,
.vt-slide--3 .vt-slide__btn:focus { background: #fff; color: #262626 !important; }

/* -- nooled -- */
.vt-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 18;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.4s;
}
.vt-slider__arrow svg { display: block; width: 32px; height: 32px; }
.vt-slider__arrow .vt-arrow-hover { display: none; }
.vt-slider__arrow:hover .vt-arrow-hover,
.vt-slider__arrow:focus .vt-arrow-hover { display: block; }
.vt-slider__arrow:hover .vt-arrow-normal,
.vt-slider__arrow:focus .vt-arrow-normal { display: none; }
.vt-slider__arrow--prev { left: 5px; }
.vt-slider__arrow--next { right: 5px; }

/* -- vaheastmed (vastavad vana slaideri tablet/mobiil skaaladele) -- */
@media (max-width: 1199px) {
    .vt-slide--1 .vt-slide__title { font-size: 2.5375em; }   /* 0.7 */
    .vt-slide--1 .vt-slide__btn   { font-size: 0.9em; }
    .vt-slide--2 .vt-slide__title { font-size: 2.175em; margin: 0 0 10px; }  /* 0.6 */
    .vt-slide--2 .vt-slide__lead  { font-size: 1.125em; }
    .vt-slide--3 .vt-slide__title { font-size: 2.175em; }
}
@media (max-width: 700px) {
    .vt-slide--1 .vt-slide__inner { padding: 40px 25px; }
    .vt-slide--1 .vt-slide__title { font-size: 2.175em; margin-bottom: 10px; }
    .vt-slide--1 .vt-slide__btn   { font-size: 1.1em; }
    .vt-slide--2 .vt-slide__inner { padding: 40px 25px; }
    .vt-slide--2 .vt-slide__lead  { display: none; }
    .vt-slide--3 .vt-slide__inner { padding: 20px 25px; }
    .vt-slide--3 .vt-slide__title { font-size: 1.45em; margin: 0 0 10px; }   /* 0.4 */
    .vt-slider__arrow { display: none; }
}

/* Slaider läheb konteinerist välja üle kogu ekraani laiuse
   (vanal saidil tegi seda <ss3-force-full-width>). */
body { overflow-x: hidden; }
.vt-slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Jaluse vidina reeglid (vanal saidil <style> plokk jaluses). */
.h355 h3.aio-icon-title { font-size: 55px; line-height: 55px; padding-left: 15px; margin-top: 0; }
.vc_custom_1608659434369 { padding-top: 30px !important; padding-right: 0 !important; padding-left: 0 !important; }
.vc_custom_1608660370754 { margin-top: -20px !important; padding-bottom: 20px !important; }
.vc_custom_1674055887449 { margin-top: 0 !important; }
