/*
Theme Name:   Autodoktor
Theme URI:    https://autodoktor.ee
Description:  Autodoktor OÜ veebilehe teema. Disain ja arendus: MAVIX OÜ (mavix.ee).
Author:       MAVIX
Author URI:   https://mavix.ee
Template:     hello-elementor
Version:      1.5.5
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  autodoktor
*/

html { color-scheme: only light; }
:root {
	--ad-yellow: #f0cb00;
	--ad-yellow-2: #ffd91a;
	--ad-ink: #0f1318;
	--ad-ink-2: #171c23;
	--ad-ink-3: #222a33;
	--ad-muted-dark: #b6bec9;
	--ad-wrap: 1180px;
	--ad-ease: cubic-bezier(.2, .7, .2, 1);
	--ad-adminbar-h: 0px;
}

html { scroll-behavior: smooth; }
body.admin-bar { --ad-adminbar-h: 32px; }
@media (max-width: 782px) { body.admin-bar { --ad-adminbar-h: 46px; } }
@media (max-width: 600px) { body.admin-bar { --ad-adminbar-h: 0px; } }

/* Ankrulingid ei jää kleepuva päise alla. */
[id] { scroll-margin-top: 96px; }
::selection { background: var(--ad-yellow); color: var(--ad-ink); }

.dok-wrap { width: min(100% - 2.5rem, var(--ad-wrap)); margin-inline: auto; }
.dok-ico { width: 15px; height: 15px; flex: none; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#sisu { height: 0; outline: none; }

/* -------------------------------------------------------------------------
 * Nupp (päis)
 * ---------------------------------------------------------------------- */
a.dok-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 46px; padding: .7rem 1.15rem; border-radius: 12px;
	font: 700 1rem/1 Montserrat, ui-sans-serif, system-ui, sans-serif; text-decoration: none !important;
	transition: transform .2s var(--ad-ease), background-color .2s ease, box-shadow .2s ease;
}
a.dok-btn-primary { background: var(--ad-yellow); color: var(--ad-ink) !important; }
a.dok-btn-primary:hover { background: var(--ad-yellow-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240, 203, 0, .28); }

/* -------------------------------------------------------------------------
 * Infoliist
 * ---------------------------------------------------------------------- */
.dok-topbar { background: var(--ad-yellow); color: var(--ad-ink); font: 600 .9rem/1.2 Montserrat, ui-sans-serif, system-ui, sans-serif; }
.dok-topbar .dok-wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; justify-content: flex-end; padding-block: .55rem; }
.dok-topbar a, .dok-topbar span { display: inline-flex; align-items: center; gap: .4rem; color: var(--ad-ink) !important; text-decoration: none; }
.dok-topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------------
 * Päis
 * ---------------------------------------------------------------------- */
.dok-header {
	position: sticky; top: var(--ad-adminbar-h); z-index: 990;
	background: #0f1318 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	transition: box-shadow .3s var(--ad-ease);
	font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
}
.dok-scrolled .dok-header { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.dok-header .dok-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.dok-logo { display: inline-flex; align-items: center; }
.dok-header .dok-logo-img { height: 64px; width: auto; display: block; }
.dok-nav { display: flex; align-items: center; gap: .5rem; }
.dok-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.dok-menu a {
	display: block; padding: .7rem .9rem; border-radius: 10px;
	color: #e8ecf1 !important; text-decoration: none; font-weight: 600; font-size: 1rem;
	transition: color .2s ease;
}
.dok-menu a:hover, .dok-menu .current-menu-item > a { color: var(--ad-yellow) !important; }
.dok-menu-toggle { display: none; }
.dok-menu-toggle svg { width: 24px; height: 24px; display: block; margin: auto; }
.dok-i-close { display: none; }
.dok-menu-toggle[aria-expanded="true"] .dok-i-menu { display: none; }
.dok-menu-toggle[aria-expanded="true"] .dok-i-close { display: inline; }

@media (max-width: 900px) {
	.dok-topbar { display: none; }
	.dok-header .dok-wrap { min-height: 68px; gap: .5rem; }
	.dok-header .dok-logo-img { height: 64px; margin-block: -4px; }
	.dok-menu-toggle {
		display: grid !important; place-items: center; width: 44px !important; height: 44px !important; padding: 0 !important;
		border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .14) !important;
		background: rgba(255, 255, 255, .05) !important; color: #fff !important; cursor: pointer;
		transition: background-color .2s ease, border-color .2s ease;
	}
	.dok-menu-toggle { margin-left: auto; }
	.dok-menu-toggle:hover { background: rgba(255, 255, 255, .1) !important; }
	.dok-menu-toggle[aria-expanded="true"] { background: var(--ad-yellow) !important; border-color: var(--ad-yellow) !important; color: var(--ad-ink) !important; }
	.dok-nav {
		position: absolute; inset: 100% 0 auto 0; display: none;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--ad-ink); border-top: 1px solid rgba(255, 255, 255, .06);
		box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
		padding: .5rem 1.25rem 1.25rem;
	}
	.dok-nav.is-open { display: flex; }
	.dok-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.dok-menu a { padding: 1rem .25rem; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
	.dok-nav-cta { margin-top: 1rem; min-height: 52px; }
}

/* -------------------------------------------------------------------------
 * Jalus
 * ---------------------------------------------------------------------- */
.dok-cta-band { background: var(--ad-yellow) !important; color: var(--ad-ink) !important; font-family: Montserrat, ui-sans-serif, system-ui, sans-serif; }
.dok-cta-band .dok-wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.6rem; }
.dok-cta-title { margin: 0 !important; font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important; font-weight: 800; letter-spacing: -.01em; line-height: 1.2 !important; color: var(--ad-ink) !important; }
.dok-cta-phone {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.25rem; border-radius: 12px;
	background: var(--ad-ink); color: var(--ad-yellow) !important; font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 800; line-height: 1; text-decoration: none !important;
	transition: transform .2s var(--ad-ease);
}
.dok-cta-phone:hover { transform: translateY(-2px); }
@media (max-width: 600px) {
	.dok-cta-band .dok-wrap { padding-block: 1.25rem; }
	.dok-cta-title { font-size: 1.1rem !important; }
	.dok-cta-phone { width: 100%; }
}

.dok-footer { background: var(--ad-ink); color: var(--ad-muted-dark); font: 400 .95rem/1.6 Montserrat, ui-sans-serif, system-ui, sans-serif; }
.dok-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem; }
.dok-footer h2 { margin: 0 0 1.1rem; font: 700 .8rem/1 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-yellow); }
.dok-footer p { margin: 0; max-width: 34ch; }
.dok-footer .dok-logo-img { height: 64px; width: auto; margin-bottom: 1rem; }
.dok-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dok-footer a { color: #e8ecf1 !important; text-decoration: none; transition: color .2s ease; }
.dok-footer a:hover { color: var(--ad-yellow) !important; }
.dok-footer-bottom { border-top: 1px solid rgba(240, 203, 0, .35); }
.dok-footer-bottom .dok-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.25rem; }
.dok-footer-bottom a { color: var(--ad-yellow) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
	.dok-footer-cols { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.25rem; }
	.dok-footer-menu { display: none; }
	.dok-footer .dok-logo-img { height: 56px; margin-bottom: .5rem; }
	.dok-footer-bottom .dok-wrap { flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding-block: 1rem; font-size: .85rem; }
}
.dok-footer, .dok-footer p, .dok-footer li, .dok-footer span { color: var(--ad-muted-dark) !important; }
.dok-footer { background: var(--ad-ink) !important; }

/* -------------------------------------------------------------------------
 * Elementori nupud (kõik lehed)
 * ---------------------------------------------------------------------- */
.elementor-button, .wpcf7-submit {
	transition: transform .2s var(--ad-ease), box-shadow .2s var(--ad-ease), background-color .2s ease, color .2s ease !important;
}
.elementor-button:hover, .wpcf7-submit:hover { transform: translateY(-2px); }
.elementor-button:active, .wpcf7-submit:active { transform: translateY(0); }

/* -------------------------------------------------------------------------
 * Kontaktvorm (Contact Form 7)
 * ---------------------------------------------------------------------- */
.dok-cf { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dok-cf p { margin: 0; }
.dok-cf br { display: none; }
.dok-field { display: grid; gap: .4rem; margin: 0; font: 600 .9rem/1.3 Montserrat, ui-sans-serif, system-ui, sans-serif; color: #1b1f24 !important; }
.dok-field-full { grid-column: 1 / -1; }
.dok-field .wpcf7-form-control-wrap { display: block; }
@media (max-width: 600px) { .dok-cf { grid-template-columns: 1fr; } }

/* vana paigutus (kui vormis on veel .row/.col) */
.wpcf7 form .row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.wpcf7 form .row p { margin: 0; }
.wpcf7 form .col-6 { width: calc(50% - .5rem); }
.wpcf7 form .col-12 { width: 100%; }
@media (max-width: 768px) { .wpcf7 form .col-6 { width: 100%; } }

.wpcf7 form .wpcf7-form-control:not(.wpcf7-submit) {
	display: block; width: 100%; min-height: 52px; box-sizing: border-box;
	padding: .85rem 1rem !important; margin: 0;
	font: 500 16px/1.4 Montserrat, ui-sans-serif, system-ui, sans-serif !important; color: #0f1318 !important;
	background: #f4f5f7 !important; border: 1px solid #e3e6ea !important; border-radius: 12px !important;
	outline: none; box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wpcf7 form textarea.wpcf7-form-control { min-height: 140px; height: 140px; resize: vertical; }
.wpcf7 form .wpcf7-form-control:not(.wpcf7-submit):hover { border-color: #c9ced5 !important; }
.wpcf7 form .wpcf7-form-control:not(.wpcf7-submit):focus {
	background: #fff !important; border-color: #0f1318 !important;
	box-shadow: 0 0 0 4px rgba(240, 203, 0, .4);
}
.wpcf7 form .wpcf7-form-control::placeholder { color: #8a929c !important; opacity: 1; }
.wpcf7 form .wpcf7-not-valid { border-color: #c0392b !important; background: #fff !important; }
.wpcf7-not-valid-tip { margin-top: .35rem; font: 600 .8rem/1.3 Montserrat, sans-serif; color: #c0392b; }
.wpcf7 form .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
	padding: .85rem 1.5rem !important; margin: .25rem 0 0;
	font: 700 1rem/1 Montserrat, ui-sans-serif, system-ui, sans-serif !important; letter-spacing: 0 !important;
	background: #f0cb00 !important; color: #0f1318 !important; border: 0 !important; border-radius: 12px !important;
	cursor: pointer;
}
.wpcf7 form .wpcf7-submit:hover { background: #ffd91a !important; box-shadow: 0 10px 24px rgba(240, 203, 0, .28); }
.wpcf7 .wpcf7-spinner { display: block; margin: .75rem auto 0; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0 !important; padding: .85rem 1rem !important; border-radius: 12px; font: 600 .9rem/1.4 Montserrat, sans-serif; }
.wpcf7 input:-webkit-autofill,
.wpcf7 textarea:-webkit-autofill {
	-webkit-text-fill-color: #0f1318 !important;
	transition: background-color 9999s ease-in-out 0s;
}
.grecaptcha-badge { visibility: hidden; }
.dok-recaptcha-note { font-size: 12px; line-height: 1.5; color: #5f6368; margin: .9rem 0 0; text-align: center; }
.dok-recaptcha-note a { color: inherit !important; text-decoration: underline; }

/* -------------------------------------------------------------------------
 * Ligipääsetavus
 * ---------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--ad-yellow) !important;
	outline-offset: 3px;
}
.skip-link:focus { z-index: 100000; background: var(--ad-yellow); color: var(--ad-ink); padding: .75rem 1rem; }

/* -------------------------------------------------------------------------
 * Mobiil ja liikumine
 * ---------------------------------------------------------------------- */
@media (max-width: 767px) {
	.elementor-invisible { visibility: visible !important; }
	.elementor-element.animated { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.elementor-invisible { visibility: visible !important; }
}

/* Ankrulingid menüüs ei ole aktiivsed */
.dok-menu .menu-item-type-custom.current-menu-item > a:not(:hover) { color: #e8ecf1 !important; }
.dok-footer h2 { color: var(--ad-yellow) !important; font: 700 .8rem/1 Montserrat, ui-sans-serif, system-ui, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase !important; }
.dok-menu-toggle { font-family: inherit !important; }
