/*
Theme Name: Extendable Tiksoja
Theme URI: https://uus.tiksoja.eu/
Description: Tiksoja kohandatud child-teema (Extendable baasil). Taasloob tiksoja.eu brändi natiivse Gutenbergiga, ilma vana teema/pluginateta.
Author: Tiksoja
Template: extendable
Version: 0.1.0
Text Domain: extendable-tiksoja
*/

/* =========================================================
   Tiksoja brändi-utiliidid ja sektsioonistiilid
   Värvid: oranž #E37925 (primary), roheline #117139 (secondary), beež #FCF5EE
   ========================================================= */

:root {
	--tk-primary: #E37925;
	--tk-secondary: #117139;
	--tk-beige: #FCF5EE;
	--tk-radius: 18px;
}

body { font-family: 'Montserrat', sans-serif; }

/* --- HERO (2-veeruline: bränd-paneel + video) --- */
.tk-hero { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.tk-hero .wp-block-columns { align-items: stretch; gap: 1.5rem; }
.tk-hero-brand {
	background: #6E1A2B;            /* bordoo bränd-paneel */
	color: #fff;
	border-radius: var(--tk-radius);
	padding: clamp(1.75rem, 3vw, 2.75rem);
	display: flex; flex-direction: column; justify-content: center;
}
.tk-hero-brand h1 { color: #fff; font-weight: 400; line-height: 1.14; font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.tk-hero-brand p { opacity: .92; }
.tk-hero-brand .wp-block-image { margin-top: 1.25rem; }
.tk-hero-card { margin: 0; }
.tk-hero-card img { border-radius: var(--tk-radius); width: 100%; height: auto; display: block; }
.tk-hero-video.wp-block-cover {
	border-radius: var(--tk-radius);
	overflow: visible;
	height: 100%;
	min-height: 420px;
}
.tk-hero-video .wp-block-cover__background,
.tk-hero-video .wp-block-cover__video-background { border-radius: var(--tk-radius); }
.tk-hero .wp-block-column { align-self: stretch; }
/* "27 aastat" ümar märk ringtekstiga video peal */
.tk-27badge {
	position: absolute; right: 1.25rem; bottom: -1.5rem; z-index: 3;
	width: 150px; height: 150px; border-radius: 50%;
	background: var(--tk-primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.tk-27badge .tk-27-num { font-size: 3.25rem; font-weight: 700; line-height: 1; }
.tk-27-circ { position: absolute; inset: 0; width: 100%; height: 100%; animation: tk-rotate 22s linear infinite; }
.tk-27-circ text { fill: #fff; font-size: 44px; font-weight: 700; letter-spacing: 1.5px; }
@keyframes tk-rotate { to { transform: rotate(360deg); } }

/* Play-nupp (avab pika video lightboxis) */
.tk-play {
	position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 3;
	width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
	background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
	transition: transform .15s ease, background .15s ease;
}
.tk-play:hover { transform: scale(1.06); background: #fff; }
.tk-play::before {
	content: ""; border-style: solid; border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--tk-primary); margin-left: 4px;
}

/* Video-lightbox (modal) */
.tk-video-modal {
	position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.85);
	display: flex; align-items: center; justify-content: center; padding: 5vw;
}
.tk-video-modal video { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.tk-video-close {
	position: absolute; top: 1.25rem; right: 1.25rem; width: 48px; height: 48px;
	border-radius: 50%; border: none; background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
@media (max-width: 781px){
	.tk-hero-video.wp-block-cover { min-height: 300px; }
}

/* --- STATISTIKA ribad --- */
/* Statistika hele taustal, rohelised ikoonid, tume tekst (nagu production'is) */
.tk-stats { background: transparent; color: #1c1c1c; }
.tk-stats .tk-stat-num { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: #1c1c1c; }
.tk-stats .tk-stat-num span { color: var(--tk-primary); font-size: 2rem; font-weight: 700; display: inline-block; line-height: 1.1; }
.tk-stats .tk-stat-label { font-size: 1rem; color: #444; }
.tk-stats .tk-stat-label strong { display: block; font-size: 1.875rem; color: var(--tk-secondary); }
.tk-stats sup { font-size: .55em; }
.tk-stats .tk-stat-icon { margin-bottom: .4rem; }
/* mustad SVG-ikoonid roheliseks (≈ #117139) */
.tk-stats .tk-stat-icon img { width: 44px; height: 44px; filter: brightness(0) saturate(100%) invert(28%) sepia(83%) saturate(456%) hue-rotate(96deg) brightness(94%) contrast(91%); }

/* --- Taustakaunistused: hägus orgaaniline kuju sektsioonide taga --- */
.tk-txtmedia { position: relative; overflow: hidden; }
.tk-txtmedia > * { position: relative; z-index: 1; }
.tk-txtmedia::after {
	content: ""; position: absolute; right: -2rem; bottom: -2rem;
	width: 55%; max-width: 460px; height: 90%; min-height: 420px; z-index: 0;
	background: var(--tk-primary); opacity: .07; pointer-events: none;
	-webkit-mask: url(assets/bgmask.svg) right bottom/contain no-repeat;
	mask: url(assets/bgmask.svg) right bottom/contain no-repeat;
}

/* --- TEKST + MEEDIA (pildigaleriiga) --- */
.tk-txtmedia .tk-media-grid img {
	border-radius: var(--tk-radius);
	object-fit: cover;
	width: 100%;
	height: 100%;
}
/* Sektsioonipealkiri rohelisena + leaf-ikoon (nagu production'is) */
.tk-eyebrow { display: inline-flex; align-items: center; gap: .65rem; color: var(--tk-secondary); font-weight: 700; line-height: 1.15; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.tk-eyebrow::before { content: ""; flex: none; width: 1.6rem; height: 2.3rem; background: url(assets/page-icon.svg) center/contain no-repeat; }

/* --- IKOON + TEKST ruudustik (jätkusuutlikkus) --- */
.tk-icongrid { background: var(--tk-beige); }
.tk-icongrid .tk-icon-item { text-align: center; }
.tk-icongrid .tk-icon-item img { width: 64px; height: 64px; margin: 0 auto .75rem; }
.tk-icongrid .tk-icon-item p { font-weight: 600; }

/* --- KAARDID (taustpildiga, ümarad) --- */
.tk-card.wp-block-cover {
	border-radius: var(--tk-radius);
	overflow: hidden;
	min-height: 360px;
}
.tk-card.wp-block-cover .wp-block-cover__inner-container { width: 100%; }
.tk-card .tk-card-title { font-size: 2.25rem; font-weight: 400; color: #fff; line-height: 1.15; }
.tk-card .tk-card-link { color: var(--tk-primary); font-weight: 700; }

/* 3-veeruline statistikakaart — roheline ülekate (nagu production'is) */
.tk-cards-3col .tk-card.wp-block-cover { min-height: 300px; }
.tk-cards-3col .tk-card-title { font-size: clamp(2.5rem, 5vw, 3.9375rem); font-weight: 700; line-height: 1.05; }
.tk-cards-3col .tk-card .wp-block-cover__background { background-color: var(--tk-secondary) !important; opacity: .8; }

/* --- STATISTIKA NIMEKIRI --- */
.tk-statslist { border-top: 1px solid #e4e4e4; }
.tk-statslist .tk-sl-item { border-bottom: 1px solid #e4e4e4; padding: 1.25rem 0; }
.tk-statslist .tk-sl-value { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--tk-primary); }
.tk-statslist .tk-sl-label { font-size: 1.0625rem; }

/* --- KONTAKT --- */
.tk-contact { background: var(--tk-beige); }
.tk-contact .tk-contact-card {
	background: #fff;
	border-radius: var(--tk-radius);
	box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
/* Kontaktivorm (CF7) */
.tk-contact-form { margin-top: 2.5rem; }
.tk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.tk-contact .wpcf7 label { display: block; font-weight: 600; font-size: .95rem; }
.tk-contact .wpcf7 p { margin: 0 0 1rem; }
.tk-contact .wpcf7 input:not([type=submit]),
.tk-contact .wpcf7 textarea {
	width: 100%; margin-top: .35rem; padding: .7rem .9rem; font: inherit;
	border: 1px solid #e0d8cf; border-radius: 10px; background: #fff;
}
.tk-contact .wpcf7 textarea { min-height: 130px; }
.tk-contact .wpcf7 .wpcf7-submit {
	background: var(--tk-primary); color: #fff; border: none; cursor: pointer;
	border-radius: 1.5625rem; padding: .85rem 2.25rem; font-weight: 700;
}
@media (max-width: 600px){ .tk-form-grid { grid-template-columns: 1fr; } }

/* --- Nupud (pill) — kindlustus globaalsete stiilide kõrvale --- */
.wp-block-button__link { border-radius: 1.5625rem; font-weight: 700; }
.is-style-outline .wp-block-button__link { background: transparent; }

/* --- Üldine sektsioonivahe --- */
.tk-section { padding-block: clamp(3rem, 7vw, 6rem); }

/* --- Päise CTA + jalus --- */
.tk-header-cta .wp-block-button__link { background: var(--tk-primary); color: #fff; }
.tk-footer a { color: #fff; text-decoration: none; }
.tk-footer a:hover { text-decoration: underline; }
.tk-footer .tk-footer-nav { list-style: none; margin: 0; padding: 0; }
.tk-footer .tk-footer-nav li { margin-bottom: .4rem; }
.tk-footer .tk-footer-sep { border-color: rgba(255,255,255,.25); margin-block: 2rem; }
