/* Avetar – põhistiilid. Värvid ja fondid on muutujatena :root all. */
:root {
	--av-ink: #0a1530;
	--av-ink-2: #12224a;
	--av-blue: #2f6bff;
	--av-blue-dark: #1d4fd1;
	--av-gold: #f2b84b;
	--av-mist: #eef3fb;
	--av-paper: #ffffff;
	--av-text: #25314f;
	--av-font-head: "Avenir Next", "Century Gothic", "Segoe UI", system-ui, -apple-system, sans-serif;
	--av-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--av-radius: 6px;
	--av-gap: clamp(1.25rem, 3vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--av-paper); color: var(--av-text); font: 1.0625rem/1.7 var(--av-font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--av-blue-dark); }
a:hover { color: var(--av-ink); }
:focus-visible { outline: 3px solid var(--av-gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--av-font-head); line-height: 1.12; color: var(--av-ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; width: auto; height: auto; clip: auto; padding: .6rem 1rem; background: var(--av-gold); color: var(--av-ink); }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 2.5rem); }

/* Nupud */
.btn { display: inline-block; padding: .9rem 1.6rem; border-radius: var(--av-radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn--blue { background: var(--av-blue); color: #fff; }
.btn--blue:hover { background: var(--av-blue-dark); color: #fff; }
.btn--ink { background: var(--av-ink); color: #fff; }
.btn--ink:hover { background: var(--av-blue); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--av-ink); }

/* Päis */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 21, 48, .96); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .3); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; }
.wordmark:hover { color: #fff; }
.wordmark__name { font: 700 1.6rem var(--av-font-head); letter-spacing: .38em; text-transform: uppercase; }
.wordmark__tag { margin-top: .35rem; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.primary-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; }
.primary-nav a:not(.btn):hover { color: var(--av-gold); }
.lang-switch { font-weight: 700; letter-spacing: .08em; }
.nav-toggle { display: none; background: none; border: 0; padding: .75rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--av-ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: av-reveal 1.6s ease-out both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--av-ink) 0%, rgba(10, 21, 48, .55) 35%, rgba(10, 21, 48, .1) 100%); }
.hero__inner { padding: clamp(4rem, 11vw, 9rem) 0; }
.hero h1 { color: #fff; max-width: 14em; }
.hero__sub { font: 600 1.1rem var(--av-font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--av-gold); margin: 0 0 1rem; }
.hero__lead { font-size: 1.25rem; max-width: 34rem; margin: 0 0 2rem; color: rgba(255, 255, 255, .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@keyframes av-reveal { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Numbrid */
.proof { background: var(--av-ink-2); color: #fff; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--av-gap); padding: 2.25rem 0; }
.proof p { margin: 0; }
.proof strong { display: block; font: 700 clamp(2rem, 3.4vw, 3rem) var(--av-font-head); color: var(--av-gold); line-height: 1.1; }
.proof span { font-size: .95rem; opacity: .9; }

/* Sektsioonid */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--mist { background: var(--av-mist); }
.section--ink { background: var(--av-ink); color: rgba(255, 255, 255, .92); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { max-width: 46rem; margin: 0 auto clamp(2rem, 5vw, 4rem); text-align: center; }
.section__head p { font-size: 1.15rem; margin: 0; }

.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--av-gap); }
.intro-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--av-radius); margin-bottom: 1.25rem; }
.intro-card ul { margin: 0; padding-left: 1.2rem; }
.intro-card li + li { margin-top: .4rem; }
.intro-card p { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--av-radius); }

.quote-feature { margin: 0 auto clamp(2.5rem, 5vw, 4rem); max-width: 52rem; text-align: center; }
.quote-feature blockquote { margin: 0 0 1.5rem; font: 500 clamp(1.5rem, 3vw, 2.3rem)/1.35 var(--av-font-head); color: #fff; }
.quote-feature p, .quote p { margin: 0; }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--av-gap); }
.quote { margin: 0; padding: 1.5rem 0 0 1.25rem; border-left: 3px solid var(--av-gold); }
.quote blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.quote figcaption, .quote-feature figcaption { font-size: .95rem; opacity: .9; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 6rem); }
.feature__media img { width: 100%; aspect-ratio: 11 / 9; object-fit: cover; border-radius: var(--av-radius); }
.feature--flip .feature__media { order: 2; }
.feature__text p { margin: 0 0 1.25rem; max-width: 36rem; }

.other-title { margin-top: clamp(3rem, 6vw, 5rem); }
.rule-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--av-gap); }
.rule-list li { padding: 1rem 0; border-top: 2px solid var(--av-ink); font-weight: 600; color: var(--av-ink); }

.timeline__row { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1.75rem 0; border-top: 2px solid var(--av-ink); }
.timeline__year { margin: 0; font-size: 2rem; }
.timeline__items { list-style: none; margin: 0; padding: 0; }
.timeline__items li + li { margin-top: 1.25rem; }
.timeline__name { margin: 0; font-weight: 700; color: var(--av-ink); font-size: 1.1rem; }
.timeline__name a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.timeline__name a:hover { color: var(--av-blue-dark); }
.timeline__date { display: inline-block; margin-left: .75rem; font-weight: 500; color: var(--av-blue-dark); }
.timeline__desc { margin: .25rem 0 0; max-width: 44rem; }
.timeline + p { margin-top: 2.5rem; }

.faq-item { border-top: 1px solid rgba(10, 21, 48, .25); padding: 1.1rem 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(10, 21, 48, .25); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--av-ink); }
.faq-item p { margin: .75rem 0 0; }

.cta-band { position: relative; isolation: isolate; background: var(--av-ink); color: #fff; text-align: center; padding: clamp(4rem, 9vw, 8rem) 0; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 40rem; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.cta-band a:not(.btn) { color: #fff; font-weight: 600; }

/* Jalus */
.site-footer { background: var(--av-ink); color: rgba(255, 255, 255, .85); padding-top: 3.5rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--av-gap); }
.site-footer__brand { font: 700 1.4rem var(--av-font-head); letter-spacing: .3em; text-transform: uppercase; color: #fff; margin: 0 0 .5rem; }
.site-footer__title { font-weight: 700; color: var(--av-gold); margin: 0 0 .5rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: .35rem; }
.site-footer__bottom { margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }

@media (max-width: 960px) {
	.hero__media { width: 100%; }
	.hero__media::after { background: linear-gradient(180deg, rgba(10, 21, 48, .75), rgba(10, 21, 48, .9)); }
	.intro-grid, .split, .feature, .rule-list, .quote-grid, .site-footer__grid { grid-template-columns: 1fr; }
	.feature--flip .feature__media { order: 0; }
	.proof__grid { grid-template-columns: repeat(2, 1fr); }
	.timeline__row { grid-template-columns: 1fr; gap: .5rem; }
	.nav-toggle { display: block; }
	.primary-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 1.25rem 1.25rem 1.5rem; background: var(--av-ink); border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

/* Alamlehed */
.page-head { background: var(--av-ink); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; }
.page-head h1 { color: #fff; margin: 0 0 .5rem; }
.page-head p { margin: 0; max-width: 40rem; font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.earlier { margin-top: clamp(2.5rem, 6vw, 4rem); }
.earlier .timeline__items li { margin: 0; color: var(--av-ink); font-weight: 600; }
.earlier .timeline__items li + li { margin-top: .5rem; }

/* Kontaktivorm */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info p { margin: 0 0 1rem; }
.form { display: grid; gap: 1.1rem; }
.form label { display: block; font-weight: 600; color: var(--av-ink); margin-bottom: .35rem; }
.form input, .form textarea { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--av-ink); background: #fff; border: 2px solid #b9c4dc; border-radius: var(--av-radius); }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--av-gold); outline-offset: 1px; border-color: var(--av-blue-dark); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status.is-ok { color: #0a6b3a; }
.form__status.is-error { color: #b3261e; }
.form button { cursor: pointer; justify-self: start; font: inherit; font-weight: 600; }
.form button[disabled] { opacity: .6; cursor: progress; }
.not-found { padding: clamp(4rem, 12vw, 9rem) 0; }
.not-found p { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Portfoolio: projektikaardid, numbrid ja galerii */
.project-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--av-gap); margin-top: 2rem; }
.project-card { background: #fff; border: 1px solid #d5dcec; border-radius: var(--av-radius); overflow: hidden; display: flex; flex-direction: column; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card__body { padding: 1.5rem; }
.project-card__body h3 { margin-bottom: .5rem; }
.project-card__body h3 a { color: inherit; text-decoration: none; }
.project-card__body h3 a:hover { color: var(--av-blue-dark); text-decoration: underline; }
.project-card__body p { margin: 0; }
.project-card__date { font-weight: 700; color: var(--av-blue-dark); margin-bottom: .35rem !important; }
.proof--inline { background: var(--av-ink-2); border-radius: var(--av-radius); }
.proof--inline .proof__grid { padding: 2.5rem 2rem; }
.gallery { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--av-radius); }
@media (max-width: 960px) {
	.project-cards { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Portfoolio: projektikaardid, numbrid ja galerii */
.project-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--av-gap); margin-top: 2rem; }
.project-card { background: #fff; border: 1px solid #d5dcec; border-radius: var(--av-radius); overflow: hidden; display: flex; flex-direction: column; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card__body { padding: 1.5rem; }
.project-card__body h3 { margin-bottom: .5rem; }
.project-card__body h3 a { color: inherit; text-decoration: none; }
.project-card__body h3 a:hover { color: var(--av-blue-dark); text-decoration: underline; }
.project-card__body p { margin: 0; }
.project-card__date { font-weight: 700; color: var(--av-blue-dark); margin-bottom: .35rem !important; }
.proof--inline { background: var(--av-ink-2); border-radius: var(--av-radius); }
.proof--inline .proof__grid { padding: 2.5rem 2rem; }
.gallery { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--av-radius); }
@media (max-width: 960px) {
	.project-cards { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
}
