/*
Theme Name:        Nõiatar Akadeemia
Theme URI:         https://koolitus.noiatar.ee
Author:            Nõiatar
Author URI:        https://noiatar.ee
Description:       Nõiatar Akadeemia koolituskeskkonna avaleht. Müstiline, premium disain kullaste aktsendide ja ametüstiga.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           Private
License URI:       https://koolitus.noiatar.ee
Text Domain:       noiatar-academy
Tags:              custom-background, full-width-template, custom-colors
*/

/* ═══════════════════════════════════════════════════════════
   Nõiatar Akadeemia — Peamine stiilileht
   koolitus.noiatar.ee
═══════════════════════════════════════════════════════════ */

/* ── Tüpograafia ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Reset ── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Muutujad ── */
:root {
	--obsidian:    #110D10;
	--obsidian-2:  #1a1319;
	--obsidian-3:  #221820;
	--velvet:      #1E1528;
	--velvet-2:    #261c32;
	--champagne:   #C8AA82;
	--champ-light: #DCC9A8;
	--champ-dark:  #A88E68;
	--amethyst:    #7B5EA7;
	--ameth-light: #9B7EC7;
	--ameth-sub:   rgba(123, 94, 167, 0.12);
	--mist:        #8B7D9A;
	--gold-line:   rgba(200, 170, 130, 0.18);
	--serif:       'Cormorant Garamond', Georgia, serif;
	--sans:        'DM Sans', system-ui, sans-serif;
	--section-pad: 100px;
	--radius-card: 20px;
	--radius-btn:  10px;
}

/* ── Alus ── */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background-color: var(--obsidian);
	color: #c2b8ce;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
	min-height: 100vh;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 85% 65% at 12% 18%,  rgba(42, 31, 61, 0.60) 0%, transparent 65%),
		radial-gradient(ellipse 60% 55% at 88% 72%,  rgba(123, 94, 167, 0.07) 0%, transparent 60%),
		radial-gradient(ellipse 50% 45% at 50% 105%, rgba(200, 170, 130, 0.04) 0%, transparent 55%);
}

body::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.022;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 300px 300px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.container {
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 32px;
	position: relative;
	z-index: 2;
}

section { position: relative; z-index: 2; }

.section-pad { padding-block: var(--section-pad); }
.section-pad--no-top { padding-top: 0; }

/* ── Navigatsioon ── */
.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	padding-block: 20px;
	transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
	border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
	background: rgba(17, 13, 16, 0.90);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-bottom-color: var(--gold-line);
	padding-block: 14px;
}

.nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 32px;
}

.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.nav__logo-mark {
	width: 38px; height: 38px;
	border-radius: 11px;
	background: linear-gradient(135deg, rgba(200,170,130,0.14), rgba(123,94,167,0.14));
	border: 1px solid var(--gold-line);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 19px; color: var(--champagne);
	flex-shrink: 0;
}

.nav__logo-name {
	font-family: var(--serif); font-size: 19px;
	color: var(--champagne); letter-spacing: 0.04em; line-height: 1.1;
}

.nav__logo-sub {
	font-size: 10px; color: var(--mist);
	letter-spacing: 0.15em; text-transform: uppercase; line-height: 1;
}

.nav__cta {
	background: linear-gradient(135deg, var(--champagne), var(--champ-dark));
	color: var(--obsidian); font-family: var(--sans);
	font-weight: 500; font-size: 14px; letter-spacing: 0.02em;
	padding: 10px 26px; border-radius: 8px; text-decoration: none; border: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,170,130,0.28); }

/* ── Hero ── */
.hero {
	min-height: 100dvh;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	text-align: center;
	padding: 130px 32px 90px;
	position: relative; z-index: 2; overflow: hidden;
}

.hero__arc {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -58%);
	width: 720px; height: 720px; border-radius: 50%;
	border: 1px solid rgba(200, 170, 130, 0.055);
	pointer-events: none;
}
.hero__arc::before {
	content: ''; position: absolute; inset: 44px; border-radius: 50%;
	border: 1px solid rgba(123, 94, 167, 0.045);
}
.hero__arc::after {
	content: ''; position: absolute; inset: 88px; border-radius: 50%;
	border: 1px solid rgba(200, 170, 130, 0.025);
}

.hero__stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.star {
	position: absolute; border-radius: 50%;
	background: var(--champagne); opacity: 0;
	animation: starTwinkle var(--d, 3s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes starTwinkle {
	0%, 100% { opacity: 0; transform: scale(0.4); }
	50%       { opacity: var(--op, 0.5); transform: scale(1); }
}

.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--mist); margin-bottom: 36px;
	opacity: 0; animation: fadeSlideUp 0.8s 0.2s ease forwards;
}
.hero__eyebrow-icon { color: var(--champagne); opacity: 0.65; flex-shrink: 0; }

.hero__title {
	font-family: var(--serif);
	font-size: clamp(54px, 10vw, 108px);
	font-weight: 300; line-height: 0.95;
	color: var(--champ-light); letter-spacing: -0.015em;
	margin-bottom: 10px;
	opacity: 0; animation: fadeSlideUp 0.9s 0.35s ease forwards;
}

.hero__title em {
	display: block; font-style: italic;
	background: linear-gradient(135deg, var(--champagne) 0%, var(--champ-light) 50%, var(--champagne) 100%);
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
	background-clip: text; background-size: 200% auto;
	animation: fadeSlideUp 0.9s 0.35s ease forwards, shimmerText 4s 2s linear infinite;
}

@keyframes shimmerText {
	0%   { background-position: 0% center; }
	100% { background-position: 200% center; }
}

.hero__subtitle {
	font-family: var(--serif); font-size: clamp(20px, 3.2vw, 34px);
	font-weight: 300; color: rgba(200, 170, 130, 0.45); letter-spacing: 0.16em;
	margin-bottom: 40px;
	opacity: 0; animation: fadeSlideUp 0.9s 0.52s ease forwards;
}

.hero__divider {
	width: 130px; height: 1px; margin-inline: auto; margin-bottom: 40px;
	background: linear-gradient(90deg, transparent, var(--champagne), transparent);
	opacity: 0; animation: fadeIn 1.2s 0.65s ease forwards;
}

.hero__description {
	font-size: 17px; line-height: 1.82; color: var(--mist);
	max-width: 560px; margin-inline: auto; margin-bottom: 52px;
	opacity: 0; animation: fadeSlideUp 0.9s 0.75s ease forwards;
}
.hero__description strong { color: var(--champ-light); font-weight: 400; }

.hero__cta {
	display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
	opacity: 0; animation: fadeSlideUp 0.9s 0.9s ease forwards;
}

.hero__scroll {
	position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
	text-align: center; opacity: 0; animation: fadeIn 1s 1.6s ease forwards;
}
.hero__scroll-text {
	font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--mist); opacity: 0.55;
}
.hero__scroll-line {
	width: 1px; height: 52px; margin: 10px auto 0;
	background: linear-gradient(to bottom, rgba(200,170,130,0.5), transparent);
	animation: scrollPulse 2.5s 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
	0%, 100% { transform: scaleY(1); opacity: 0.4; }
	50%       { transform: scaleY(1.25); opacity: 0.7; }
}

/* ── Nupud ── */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--sans); font-size: 15px; letter-spacing: 0.02em;
	padding: 14px 38px; border-radius: var(--radius-btn);
	text-decoration: none; border: none;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
	cursor: pointer; line-height: 1;
}
.btn--primary {
	background: linear-gradient(135deg, var(--champagne), var(--champ-dark));
	color: var(--obsidian); font-weight: 600;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(200,170,130,0.32); }
.btn--ghost {
	background: transparent; color: var(--champagne);
	border: 1px solid rgba(200, 170, 130, 0.28);
}
.btn--ghost:hover { border-color: rgba(200,170,130,0.55); background: rgba(200,170,130,0.07); }
.btn--sm { font-size: 14px; padding: 12px 30px; }

/* ── Sektsioon header ── */
.section-header { text-align: center; margin-bottom: 64px; }

.eyebrow {
	font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--mist); margin-bottom: 18px;
	display: flex; align-items: center; justify-content: center; gap: 12px;
}
.eyebrow::before, .eyebrow::after {
	content: ''; height: 1px; width: 50px; background: var(--gold-line); flex-shrink: 0;
}
.eyebrow--left { justify-content: flex-start; }
.eyebrow--left::before { display: none; }

.section-title {
	font-family: var(--serif); font-size: clamp(34px, 4.5vw, 54px);
	font-weight: 300; color: var(--champ-light);
	letter-spacing: 0.01em; line-height: 1.12;
}
.section-lead {
	font-size: 17px; color: var(--mist); line-height: 1.78;
	max-width: 560px; margin-inline: auto; margin-top: 18px;
}

/* ── Sammud ── */
.steps {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 2px; background: var(--gold-line);
	border-radius: var(--radius-card); overflow: hidden;
}
.step {
	background: var(--velvet); padding: 48px 38px;
	position: relative; transition: background 0.3s ease;
}
.step:hover { background: var(--velvet-2); }
.step__number {
	position: absolute; top: 22px; right: 26px;
	font-family: var(--serif); font-size: 78px; font-weight: 300;
	line-height: 1; color: rgba(200,170,130,0.07);
	user-select: none; pointer-events: none;
}
.step__icon {
	width: 46px; height: 46px; border-radius: 13px;
	background: var(--ameth-sub); border: 1px solid rgba(123,94,167,0.22);
	display: flex; align-items: center; justify-content: center;
	font-size: 21px; margin-bottom: 22px;
}
.step__title {
	font-family: var(--serif); font-size: 23px; font-weight: 400;
	color: var(--champ-light); margin-bottom: 10px; line-height: 1.2;
}
.step__text { font-size: 14px; color: var(--mist); line-height: 1.72; }

/* ── Võimalused ── */
.features {
	display: grid; grid-template-columns: repeat(2, 1fr);
	gap: 2px; background: var(--gold-line);
	border-radius: var(--radius-card); overflow: hidden;
}
.feature {
	background: var(--obsidian-3); padding: 42px;
	display: flex; gap: 22px; align-items: flex-start;
	transition: background 0.3s ease; position: relative; overflow: hidden;
}
.feature:hover { background: rgba(24, 18, 23, 0.98); }
.feature__icon {
	width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
	background: rgba(200,170,130,0.08); border: 1px solid var(--gold-line);
	display: flex; align-items: center; justify-content: center;
	font-size: 19px; margin-top: 2px;
}
.feature__title {
	font-family: var(--serif); font-size: 20px; font-weight: 400;
	color: var(--champ-light); margin-bottom: 8px; line-height: 1.2;
}
.feature__text { font-size: 13.5px; color: var(--mist); line-height: 1.68; }

/* ── Preview ── */
.preview {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 64px; align-items: center;
}
.preview__title {
	font-family: var(--serif); font-size: clamp(30px, 3.5vw, 46px);
	font-weight: 300; color: var(--champ-light);
	line-height: 1.18; margin-bottom: 20px;
}
.preview__title em { font-style: italic; color: var(--champagne); }
.preview__text { font-size: 15px; color: var(--mist); line-height: 1.82; margin-bottom: 28px; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.checklist li {
	display: flex; gap: 12px; align-items: flex-start;
	font-size: 14px; color: var(--mist); line-height: 1.55;
}
.checklist__icon {
	color: var(--champagne); flex-shrink: 0; margin-top: 2px;
}

/* Browser mockup */
.mockup {
	background: var(--velvet); border: 1px solid var(--gold-line);
	border-radius: 18px; overflow: hidden;
	box-shadow: 0 48px 96px rgba(0,0,0,0.55), 0 0 50px rgba(123,94,167,0.08),
	            inset 0 1px 0 rgba(200,170,130,0.08);
}
.mockup__bar {
	background: rgba(17,13,16,0.85); padding: 11px 16px;
	display: flex; align-items: center; gap: 7px;
	border-bottom: 1px solid var(--gold-line);
}
.mockup__dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup__dot--r { background: rgba(220,90,90,0.5); }
.mockup__dot--y { background: rgba(210,170,55,0.5); }
.mockup__dot--g { background: rgba(90,185,110,0.38); }
.mockup__url {
	flex: 1; margin-inline: 8px;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
	border-radius: 5px; padding: 4px 12px;
	font-family: monospace; font-size: 10px; color: var(--mist);
}
.mockup__body { padding: 22px; }
.mockup__course-title { font-family: var(--serif); font-size: 18px; color: var(--champ-light); margin-bottom: 16px; }
.mockup__progress { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mockup__progress-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.mockup__progress-fill {
	height: 100%; width: 40%;
	background: linear-gradient(90deg, var(--champagne), var(--ameth-light)); border-radius: 2px;
}
.mockup__progress-pct { font-size: 11px; color: var(--champagne); font-weight: 500; }

.modules { display: flex; flex-direction: column; gap: 6px; }
.module {
	display: flex; align-items: center; gap: 10px;
	padding: 11px 13px; border-radius: 9px; font-size: 12px;
}
.module--done   { background: rgba(100,180,120,0.08); border: 1px solid rgba(100,180,120,0.15); color: #7ecf96; }
.module--active { background: var(--ameth-sub); border: 1px solid rgba(123,94,167,0.32); color: var(--champ-light); }
.module--locked { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.055); color: var(--mist); opacity: 0.6; }
.module__icon { font-size: 13px; flex-shrink: 0; }
.module__name { flex: 1; }
.module__status { font-size: 10px; opacity: 0.65; white-space: nowrap; }

/* ── Tsitaat ── */
.quote-section { padding-block: var(--section-pad); }
.quote {
	max-width: 800px; margin-inline: auto; text-align: center;
	padding: 68px 64px; background: var(--velvet);
	border: 1px solid var(--gold-line); border-radius: 24px; position: relative; overflow: hidden;
}
.quote::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123,94,167,0.06) 0%, transparent 70%);
}
.quote__mark {
	font-family: var(--serif); font-size: 140px; color: var(--champagne);
	opacity: 0.07; line-height: 0.7;
	position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
	user-select: none; pointer-events: none;
}
.quote__text {
	font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px);
	font-weight: 300; font-style: italic; color: var(--champ-light);
	line-height: 1.58; position: relative; z-index: 1; margin-bottom: 36px;
}
.quote__author { display: flex; align-items: center; justify-content: center; gap: 14px; position: relative; z-index: 1; }
.quote__avatar {
	width: 46px; height: 46px; border-radius: 50%;
	background: linear-gradient(135deg, var(--velvet-2), rgba(123,94,167,0.2));
	border: 1px solid var(--gold-line);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 20px; color: var(--champagne); flex-shrink: 0;
}
.quote__name { font-size: 14px; color: var(--champ-light); font-weight: 500; }
.quote__role  { font-size: 12px; color: var(--mist); margin-top: 2px; }

/* ── Ligipääs ── */
.access-grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 2px; background: var(--gold-line);
	border-radius: var(--radius-card); overflow: hidden;
}
.access-panel { background: var(--velvet); padding: 52px; }
.access-panel__title { font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--champ-light); margin-bottom: 14px; line-height: 1.15; }
.access-panel__text  { font-size: 14px; color: var(--mist); line-height: 1.78; margin-bottom: 30px; }
.access-panel__divider { border: none; border-top: 1px solid var(--gold-line); margin-block: 28px; }
.access-detail {
	font-size: 13px; color: var(--mist);
	display: flex; gap: 9px; align-items: flex-start;
	margin-bottom: 9px; line-height: 1.5;
}
.access-detail::before { content: '→'; color: var(--champagne); flex-shrink: 0; font-size: 11px; margin-top: 2px; }
.access-detail a { color: var(--champagne); text-decoration: none; transition: color 0.2s; }
.access-detail a:hover { color: var(--champ-light); text-decoration: underline; }

/* ── Footer ── */
.footer {
	border-top: 1px solid var(--gold-line);
	padding-block: 60px; text-align: center;
	position: relative; z-index: 2;
}
.footer__logo    { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--champagne); margin-bottom: 8px; }
.footer__tagline { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); margin-bottom: 30px; }
.footer__links   { display: flex; gap: 28px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--mist); text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--champ-light); }
.footer__copy     { font-size: 12px; color: rgba(139,125,154,0.38); }
.footer__ornament { font-family: var(--serif); font-size: 15px; color: rgba(200,170,130,0.18); letter-spacing: 0.45em; margin-top: 24px; }

/* ── WordPress admin bar ── */
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ── Scroll-reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.38s; }
.reveal.d5 { transition-delay: 0.48s; }
.reveal.d6 { transition-delay: 0.58s; }

/* ── Animatsioonid ── */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }

/* ── Responsive ── */
@media (max-width: 960px) {
	:root { --section-pad: 72px; }
	.preview { grid-template-columns: 1fr; gap: 44px; }
	.mockup { display: none; }
	.access-grid { grid-template-columns: 1fr; }
	.access-panel { padding: 36px 28px; }
}

@media (max-width: 720px) {
	.nav__inner { padding-inline: 20px; }
	.container { padding-inline: 20px; }
	:root { --section-pad: 60px; }
	.steps { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr; }
	.hero { padding: 110px 20px 80px; }
	.quote { padding: 44px 28px; }
	.section-header { margin-bottom: 44px; }
	.btn { padding: 13px 28px; font-size: 14px; }
}

@media (max-width: 480px) {
	.hero__cta { flex-direction: column; align-items: center; }
	.footer__links { gap: 18px; }
}

/* ── SVG ikoonid (inline use) ──────────────────────────── */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.btn svg { pointer-events: none; }
.btn--primary svg { color: var(--obsidian); }
.btn--ghost svg   { color: currentColor; }

.step__icon svg   { color: var(--ameth-light); }
.feature__icon svg { color: var(--champagne); }

.module__icon { display: flex; align-items: center; flex-shrink: 0; }
.module--done   .module__icon svg { color: #7ecf96; }
.module--active .module__icon svg { color: var(--champagne); }
.module--locked .module__icon svg { color: var(--mist); opacity: 0.6; }

.access-detail { gap: 10px; }
.access-detail svg { color: var(--champagne); flex-shrink: 0; margin-top: 2px; }

.nav__logo-mark svg { color: var(--champagne); }

/* ── Mobiil hamburger (nav) ────────────────────────────── */
.nav__toggle {
	display: none;
	background: none;
	border: none;
	color: var(--mist);
	cursor: pointer;
	padding: 4px;
}
@media (max-width: 480px) {
	.nav__toggle { display: flex; align-items: center; }
}
