/* =========================================================
   JKE Ehitus & UKU Kivimaja — ühine koodibaas, kaks brändi
   assets/css/style.css
   ---------------------------------------------------------
   1. Globaalsed muutujad ja reset
   2. Väravleht (gateway)
   3. Jagatud komponendid (header, nupud, sektsioonid, vorm)
   4. Bränd A: .theme-ehitus  (tumesinine / kandiline)
   5. Bränd B: .theme-peoruum (beež-kuldne / pehme)
   6. Responsiivsus
   ========================================================= */

/* ---------- 1. GLOBAALSED MUUTUJAD ---------- */
:root {
  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'Arial Black', Arial, sans-serif;

  --wrap: 1200px;
  --gap: 24px;

  /* Neutraalid */
  --white: #ffffff;
  --black: #0b0d10;

  /* Bränditeemad kirjutavad need üle */
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --ink: #14181d;
  --ink-soft: #5b6673;
  --line: #e2e6eb;
  --brand: #12263f;
  --brand-dark: #0a1728;
  --accent: #f2b705;
  --accent-ink: #14181d;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 2px 8px rgba(10, 23, 40, .08);
  --shadow-lg: 0 18px 48px rgba(10, 23, 40, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 70ch; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- 2. VÄRAVLEHT (GATEWAY) ---------- */
.gateway-body {
  background: #0b0d10;
  color: #fff;
  overflow-x: hidden;
}

.gateway-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.brand-card {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: flex .5s var(--ease), filter .3s ease;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

/* Mõlemad taustad on kohalikud WebP-failid — välisest teenusest sõltuvust ei ole. */
.brand-construction {
  background-color: #16283f;
  background-image: url('../images/jke-katusetood.webp');
  background-position: center 40%;
}

/* UKU Kivimaja — päris hoone Jõgeval. WebP, 149 KB.
   JPEG-koopia on samas kaustas, kui peaks vaja minema. */
.brand-event {
  background-color: #2e2520;
  background-image: url('../images/uku-kivimaja.webp');
  background-position: center center;
}

/* Hover efekt tekitab fookuse */
.brand-card:hover,
.brand-card:focus-visible { flex: 1.35; }

.gateway-container:hover .brand-card:not(:hover) { filter: saturate(.55) brightness(.72); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.58) 100%);
  transition: background .35s ease;
  z-index: 1;
}

/* Katusefotol on hele taevas ja eredad tööriided — tekst vajab tugevamat katet
   kui peoruumi pool, muidu kaob valge kiri heleda tausta sisse ära. */
/* UUENDATUD 14.09.2026: toon nihutatud sinakast mustaks, vastavalt JKE Ehituse
   uuele punasele-mustale brändile (Ruukki/VELUX partnerlus). */
.brand-construction .card-overlay {
  background: linear-gradient(180deg, rgba(10,10,11,.52) 0%, rgba(10,10,11,.88) 100%);
}
/* Peoruumi pool kannab päris hoone fotot — hoiame katte kergemana,
   et paekivisein oleks näha, aga tekst püsiks loetav. */
.brand-event .card-overlay {
  background: linear-gradient(180deg, rgba(46,37,32,.30) 0%, rgba(46,37,32,.72) 100%);
}
.brand-card:hover .card-overlay { background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.55) 100%); }

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  max-width: 430px;
  transform: translateY(8px);
  transition: transform .45s var(--ease);
}
.brand-card:hover .card-content { transform: translateY(0); }

.card-content h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.card-content p {
  color: rgba(255,255,255,.88);
  font-size: 1.02rem;
  margin-bottom: 1.5em;
}

.card-kicker {
  display: block;
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 14px;
  transition: color .25s ease;
}
.brand-construction:hover .card-kicker { color: #ff6b6e; }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 13px 26px;
  border: 1.5px solid rgba(255,255,255,.75);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.brand-construction .card-cta { border-radius: 2px; }
.brand-event .card-cta { border-radius: 999px; }

/* JKE Ehituse kaardi hõõrdevärv käib nüüd kaasa uue punase-musta brändiga
   (Ruukki/VELUX partnerlus), mitte enam väravalehe üldise kuldse aktsendiga. */
.brand-construction:hover .card-cta { background: #e31e24; border-color: #e31e24; color: #fff; }
.brand-event:hover .card-cta { background: #c49a5a; border-color: #c49a5a; color: #2e2520; }

.card-cta svg { transition: transform .25s ease; }
.brand-card:hover .card-cta svg { transform: translateX(4px); }

.card-tags {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.card-tags li {
  font-size: .76rem;
  letter-spacing: .06em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(3px);
}

.gateway-mark {
  position: fixed;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
}
.gateway-mark-icon {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}
.gateway-mark strong {
  display: block;
  font-size: .95rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.gateway-mark span {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.gateway-foot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  padding: 14px 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}
.gateway-foot a { text-decoration: none; }
.gateway-foot a:hover { text-decoration: underline; }

/* ---------- 3. JAGATUD KOMPONENDID ---------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
  white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #14181d;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .02em;
  border-radius: var(--radius);
}
.logo small {
  display: block;
  font-size: .6rem;
  letter-spacing: .18em;
  font-weight: 500;
  opacity: .7;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
.main-nav a {
  display: block;
  padding: 9px 13px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.86);
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.switch-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  text-decoration: none;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.28);
  padding: 7px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.switch-link:hover { color: #fff; border-color: rgba(255,255,255,.7); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 11px;
  line-height: 1;
}

/* Nupud */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--brand-dark); /* varuvärv, kui pilt ei jõua laadida */
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,17,31,.90) 0%, rgba(6,17,31,.66) 52%, rgba(6,17,31,.30) 100%);
  z-index: -1;
}
.hero-inner {
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 104px);
}
.hero-inner > * { max-width: 720px; }
.hero p.lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Usaldusriba */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 26px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1;
  color: var(--brand);
  margin-bottom: 6px;
}
.stat span { font-size: .84rem; color: var(--ink-soft); letter-spacing: .03em; }

/* Kaardiruudustik */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--brand);
  margin-bottom: 16px;
}
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; }
.card ul li { margin-bottom: 4px; }

/* Protsess */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* Galerii */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery button {
  padding: 0; border: 0;
  /* varuvärv, kui pilt ei jõua laadida */
  background: linear-gradient(135deg, #e9edf2, #cfd7e0);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery button:hover img { transform: scale(1.07); }
.gallery button::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,23,40,0);
  transition: background .3s ease;
}
.gallery button:hover::after { background: rgba(10,23,40,.22); }
.gallery .g-wide { grid-column: span 2; aspect-ratio: 8 / 3; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  place-items: center;
  background: rgba(6,10,16,.92);
  padding: 24px;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox figcaption { color: rgba(255,255,255,.82); text-align: center; margin-top: 14px; font-size: .92rem; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.26); }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: #0b0d10;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after-wrap {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}
.ba .after-wrap img { width: auto; height: 100%; min-width: 100%; }
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  color: #14181d;
  font-size: .9rem;
  pointer-events: none;
}
.ba-label {
  position: absolute; bottom: 12px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 2px;
}
.ba-label.is-before { right: 12px; }
.ba-label.is-after { left: 12px; }
.ba-caption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }

/* Arvustused */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.quote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.quote .stars { color: var(--accent); letter-spacing: .12em; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 14px; font-size: .98rem; }
.quote cite { font-style: normal; font-size: .86rem; color: var(--ink-soft); }

/* KKK akordion */
.faq { max-width: 860px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; max-width: 72ch; }

/* Vorm */
.form-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}
.field textarea { min-height: 128px; resize: vertical; }
.field-hint { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

/* Ausammas / honeypot – peidetud spämmilõks */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-status {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #e8f6ec; color: #1e6b3a; border: 1px solid #b6e0c3; }
.form-status.is-err { background: #fdeceb; color: #a02622; border: 1px solid #f3c2bf; }
.form-status.is-info { background: #eef2f8; color: #33465e; border: 1px solid #ccd8e8; }

.contact-list { list-style: none; margin: 22px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.contact-list b { min-width: 92px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.72);
  padding: 56px 0 26px;
  font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .82rem;
}

/* Demo silt */
.demo-flag {
  background: #14181d;
  color: #ffd66b;
  font-size: .78rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 7px 14px;
}
.demo-flag b { color: #fff; }

/* Ilmumisanimatsioon */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. BRÄND A: EHITUS ---------- */
/* UUENDATUD 14.09.2026: JKE Ehitus OÜ uus bränd — punane/must, vastavalt
   Ruukki Products AS-i ja VELUX Eesti OÜ ametliku partnerluse identiteedile. */
.theme-ehitus {
  --bg: #ffffff;
  --bg-alt: #f2f4f7;
  --ink: #17181b;
  --ink-soft: #5a5d63;
  --line: #e2e2e4;
  --brand: #17181b;
  --brand-dark: #000000;
  --accent: #e31e24;
  --accent-ink: #ffffff;
  --radius: 2px;
  --radius-lg: 3px;
}
.theme-ehitus h1, .theme-ehitus h2 { letter-spacing: -.015em; }
.theme-ehitus .section-head h2::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--accent);
  margin-top: 14px;
}
.theme-ehitus .card-icon { background: #fdecec; color: var(--accent); }
.theme-ehitus .partner-logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.theme-ehitus .partner-logos img { height: 40px; width: auto; }
.theme-ehitus .partner-pending {
  border: 2px dashed var(--line); border-radius: 4px; padding: 10px 16px;
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
}
.theme-ehitus .office-photo-ph {
  aspect-ratio: 4/3; border: 2px dashed var(--line); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  font-weight: 600; text-align: center; padding: 20px; background: var(--bg-alt);
}
.theme-ehitus .sponsor-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.theme-ehitus .sponsor-card img.sponsor-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-ehitus .sponsor-copy { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.theme-ehitus .sponsor-copy img.tahe-logo { height: 56px; width: auto; margin-bottom: 14px; }
@media (max-width: 820px) { .theme-ehitus .sponsor-card { grid-template-columns: 1fr; } }

/* ---------- 5. BRÄND B: PEORUUM ---------- */
.theme-peoruum {
  --bg: #fffdf9;
  --bg-alt: #fffdf9;
  --cream: #f3ece1;
  --ink: #2e2520;
  --ink-soft: #6a5b50;
  --line: #e1d6c6;
  --brand: #2e2520;
  --brand-dark: #211a16;
  --accent: #c49a5a;
  --accent-ink: #2e2520;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 18px rgba(46, 37, 32, .07);
  --shadow-lg: 0 22px 54px rgba(46, 37, 32, .16);
  background: var(--cream);
}
.theme-peoruum h1,
.theme-peoruum h2,
.theme-peoruum h3,
.theme-peoruum .stat b {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .005em;
}
.theme-peoruum h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.theme-peoruum h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.theme-peoruum .eyebrow {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  letter-spacing: .22em;
}
.theme-peoruum .logo-mark { border-radius: 50%; background: var(--accent); color: #fff; }
.theme-peoruum .btn { border-radius: 999px; padding-inline: 30px; }
.theme-peoruum .switch-link { border-radius: 999px; }
.theme-peoruum .btn--primary { background: var(--accent); color: #fff; }
.theme-peoruum .card-icon { background: #f1e6d5; color: var(--brand); }
.theme-peoruum .hero::after {
  background: linear-gradient(100deg, rgba(48,32,20,.86) 0%, rgba(48,32,20,.58) 55%, rgba(48,32,20,.22) 100%);
}
.theme-peoruum .section-head h2::after {
  content: '❧';
  display: block;
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 6px;
}

/* Paketid */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.plan {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan.is-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.plan.is-featured::before {
  content: 'Populaarseim';
  position: absolute; top: -13px; left: 28px;
  background: var(--accent); color: #fff;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan .price { font-size: 2rem; font-weight: 700; color: var(--brand); margin: 4px 0 2px; }
.plan .price small { font-size: .84rem; font-weight: 500; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; font-size: .93rem; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* Kalender */
.calendar-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-family: var(--font-display); font-size: 1.35rem; }
.cal-nav {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px; height: 36px;
  color: var(--brand);
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: .9rem;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.cal-day.is-empty { border: 0; background: transparent; }
.cal-day.is-free:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-day.is-booked { background: #efe3e0; border-color: #e3cdc8; color: #a3776e; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-option { background: #fdf3e0; border-color: #f0dcb4; color: #96702c; }
.cal-day.is-past { opacity: .35; cursor: not-allowed; }
.cal-day.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal-status {
  margin: 14px 0 0;
  font-size: .8rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}
.cal-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  opacity: .55;
}
.cal-status[data-kind="live"] { color: #2f7d4f; }
.cal-status[data-kind="error"] { color: #a02622; }
.cal-status[data-kind="loading"]::before { animation: cal-pulse 1.1s ease-in-out infinite; }
@keyframes cal-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: .8rem; color: var(--ink-soft); }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* ---------- 6. RESPONSIIVSUS ---------- */
@media (max-width: 1024px) {
  .grid--3, .quotes, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brand-dark);
    display: none;
    padding: 10px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav-toggle { display: block; margin-left: auto; order: 3; }
  .header-actions .switch-link { display: none; }
  .site-header .wrap { position: relative; }
}

/* Mobiilne kohanduvus */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .gateway-container { flex-direction: column; }
  .brand-card { min-height: 50vh; min-height: 50dvh; }
  .brand-card:hover, .brand-card:focus-visible { flex: 1; }
  .gateway-container:hover .brand-card:not(:hover) { filter: none; }
  .gateway-mark { position: absolute; top: 18px; }
  .gateway-foot { position: static; background: #0b0d10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--2, .quotes, .plans, .ba-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none; }
}

/* ---------- 7. LISAD 13.10.2026: saalid, hinnad, kodukord, tagasi üles ---------- */

/* Saali tutvustus: foto + tekst kõrvuti, iga teine peegelpildis */
.hall {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hall + .hall { margin-top: clamp(48px, 7vw, 88px); }
.hall--flip .hall-media { order: 2; }
.hall-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hall-media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}
.hall-media img:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
.hall-address {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px; display: block;
}
.hall h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hall p { color: var(--ink-soft); }
.ticks { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: .94rem; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hall-price {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  padding: 14px 18px; margin-bottom: 20px;
  background: var(--bg-alt); border-radius: var(--radius); font-size: .92rem;
}
.hall-price b { font-size: 1.15rem; color: var(--brand); }
.section--alt .hall-price { background: var(--bg); }

.plan .plan-note { font-size: .84rem; color: var(--ink-soft); margin: 0; }
.plans--4 { grid-template-columns: repeat(4, 1fr); }
.plans--4 .plan { padding: 28px 22px; }
.plans--4 .plan .price { font-size: 1.7rem; }

.gallery-title {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: clamp(30px, 4vw, 44px) 0 14px; font-size: 1.35rem;
}
.gallery-title small { font-family: var(--font-main); font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--ink-soft); }
.gallery .g-tall { grid-row: span 2; aspect-ratio: auto; }

/* Kodukorra kokkuvõte ja täistekst */
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: 28px; }
.rules-doc { max-width: 820px; }
.rules-doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.rules-doc ul { padding-left: 20px; }
.rules-doc li { margin-bottom: 10px; }
.rules-doc .rules-intro {
  padding: 18px 22px; background: var(--bg-alt); border-left: 3px solid var(--accent);
  border-radius: var(--radius); color: var(--ink);
}
.page-head { background: var(--brand); color: #fff; padding: clamp(40px, 7vw, 76px) 0 clamp(32px, 5vw, 56px); }
.page-head p { color: rgba(255,255,255,.82); max-width: 62ch; margin: 0; }
.page-head a { color: rgba(255,255,255,.82); font-size: .88rem; text-decoration: none; display: inline-block; margin-bottom: 18px; }
.page-head a:hover { color: #fff; text-decoration: underline; }

/* Ehitus: kontor ja pädevus */
.office-photos { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.office-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; }
.office-photos img + img { aspect-ratio: auto; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cred-list li { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 22px 24px; }
.cred-list b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.cred-list span { color: var(--ink-soft); font-size: .92rem; }

/* Tagasi üles */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.theme-peoruum .to-top { border-radius: 50%; color: #fff; }
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

@media (max-width: 1024px) {
  .plans--4, .rules-grid, .cred-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hall { grid-template-columns: 1fr; }
  .hall--flip .hall-media { order: 0; }
}
@media (max-width: 768px) {
  .plans--4, .rules-grid, .cred-list, .ticks { grid-template-columns: 1fr; }
  .gallery .g-tall { grid-row: auto; aspect-ratio: 4 / 3; }
}
@media print { .to-top, .demo-flag { display: none; } }

html { scroll-padding-top: 84px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Väravleht telefonis: ülemine kaart jätab ruumi logomärgile */
@media (max-width: 768px) {
  .brand-construction .card-content { padding-top: 104px; }
  .gateway-foot { padding-bottom: 18px; }
}

.demo-flag { margin: 0; }
/* Fotoplokid hoiavad oma kuju ka enne pildi laadimist */
.hall-media img { height: auto; }
.office-photos img { height: auto; }
.office-photos img + img { aspect-ratio: 39 / 40; }

/* Logod 13.10.2026: kliendi saadetud originaalfailid */
.logo-img { height: 26px; width: auto; }
.theme-ehitus .partner-logos { gap: 28px 48px; }
.theme-ehitus .partner-logos img { height: 46px; width: auto; }
.theme-ehitus .partner-logos img.partner-tall { height: 92px; }
/* Tähe logo: flex-veerus venis pilt kogu laiuseks — hoiame õiged proportsioonid */
.theme-ehitus .sponsor-copy img.tahe-logo { height: 96px; width: auto; align-self: flex-start; margin: 0 0 12px -8px; }
.theme-ehitus .partner-logos--card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 30px; margin-bottom: 30px; }
.theme-ehitus .sponsor-card { background: #fff; }
.theme-ehitus .sponsor-copy img.tahe-logo { margin-left: 0; }

/* Tehtud tööd: projekt = tekst + oma pildiruudustik */
.project { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.project + .project { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
.project-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.project-copy p { color: var(--ink-soft); }
.gallery--project { grid-template-columns: repeat(3, 1fr); }
.gallery--project.gallery--wide { grid-template-columns: repeat(2, 1fr); }
.gallery--wide button { aspect-ratio: 2 / 1; }
.g-cap {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.62); color: #fff; padding: 5px 10px; border-radius: 2px;
}
@media (max-width: 1024px) { .project { grid-template-columns: 1fr; } .gallery.gallery--project { grid-template-columns: repeat(3, 1fr); } .gallery.gallery--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .gallery.gallery--project { grid-template-columns: repeat(2, 1fr); } .gallery.gallery--wide { grid-template-columns: 1fr; } }

.ticks--1 { grid-template-columns: 1fr; margin-bottom: 0; }

.main-nav a { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 861px) { .main-nav a { padding: 9px 8px; font-size: .86rem; } .switch-link { padding: 7px 9px; } }

/* ---------- 8. MITMELEHELINE SAIT 28.10.2026 ---------- */
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--link p { color: var(--ink-soft); font-size: .95rem; }
.card-more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.theme-peoruum .card-more { color: var(--brand); }
.teaser {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; padding-bottom: 22px;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teaser img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; }
.teaser > :not(img) { margin-inline: 22px; }
.teaser h3 { margin-bottom: 0; }
.teaser p { color: var(--ink-soft); font-size: .95rem; margin: 0 22px; }
.teaser-price { font-weight: 700; color: var(--brand); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner .lead { margin: 0; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { margin-bottom: .35em; }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav a.nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: 6px; }
.theme-peoruum .main-nav a.nav-cta { color: #fff; border-radius: 999px; }
.main-nav a.nav-cta:hover { filter: brightness(1.08); background: var(--accent); }
.main-nav a.nav-cta[aria-current="page"] { box-shadow: none; }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; border-bottom: 0; } }
@media (max-width: 768px) { .grid--4 { grid-template-columns: 1fr; } }

/* ---------- 9. EHITUSE DISAIN 2 (30.10.2026, brand/ehitus-varvid-ettepanek.css) ---------- */
.theme-ehitus { --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.theme-ehitus h1, .theme-ehitus h2, .theme-ehitus .stat b {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0; font-weight: 800;
}
.theme-ehitus h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: .98; }
.theme-ehitus h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }

/* Hero alumine serv = katuseviil (kordab logo kuju) */
.theme-ehitus .hero { clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%); padding-bottom: 120px; }

/* Numbririba mustaks: valged numbrid, punane ühik */
.theme-ehitus .stats { background: var(--brand); border: 0; gap: 0; }
.theme-ehitus .stat { background: transparent; border: 0; border-left: 1px solid rgba(255,255,255,.12); padding: 34px 20px; }
.theme-ehitus .stat:first-child { border-left: 0; }
.theme-ehitus .stat b { color: #fff; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
/* HTML: <b>25<span class="u">+</span></b>, <b>300<span class="u">+</span></b>, <b>24<span class="u"> h</span></b> */
.theme-ehitus .stat b .u { color: var(--accent); font-size: inherit; letter-spacing: 0; text-transform: none; }
.theme-ehitus .stat span { color: rgba(255,255,255,.7); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }

/* Teenusekaardid: hall pind, punane ülaserv, must ikoonikast, numbrid */
.theme-ehitus .grid { counter-reset: teenus; }
.theme-ehitus .card--link { background: #f4f4f5; border: 0; border-top: 4px solid var(--brand); border-radius: 0; counter-increment: teenus; position: relative; transition: border-color .2s, transform .2s; }
.theme-ehitus .card--link:hover { border-top-color: var(--accent); transform: translateY(-3px); }
.theme-ehitus .card--link::after { content: '0' counter(teenus); position: absolute; top: 18px; right: 22px; font: 800 2.2rem/1 var(--font-head); color: var(--accent); }
.theme-ehitus .card-icon { background: var(--brand); color: #fff; border-radius: 0; }

/* Tehtud tööd mustal taustal, asukoht pildi peal */
.theme-ehitus main .section--alt { background: var(--brand); color: #fff; }
.theme-ehitus main .section--alt .section-head h2 { color: #fff; }
.theme-ehitus .teaser { position: relative; background: transparent; border: 0; border-radius: 0; overflow: hidden; }
.theme-ehitus .teaser img { aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; }
.theme-ehitus .teaser:hover img { transform: scale(1.04); }
.theme-ehitus .teaser .hall-address { position: absolute; left: 0; top: 18px; background: var(--accent); color: #fff; padding: 6px 12px; font-weight: 700; letter-spacing: .08em; }
.theme-ehitus .teaser h3 { color: #fff; font: 800 1.6rem/1.1 var(--font-head); text-transform: uppercase; margin-top: 10px; }
.theme-ehitus .teaser .card-more { color: #fff; opacity: .75; }

/* Küsi pakkumist = ainus täispunane pind */
.theme-ehitus .cta-band { background: var(--accent); color: #fff; }
.theme-ehitus .cta-band h2 { color: #fff; }
.theme-ehitus .cta-band h2::after { background: #fff !important; }
.theme-ehitus .cta-band .lead { color: rgba(255,255,255,.92); }
.theme-ehitus .cta-band .btn--primary { background: var(--brand); color: #fff; padding: 18px 34px; }

/* Alamlehed: must jaotis ja selle sees olevad heledad kaardid */
.theme-ehitus h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); }
.theme-ehitus main .cta-band { background: var(--accent); }
.theme-ehitus main .section--alt .lead { color: rgba(255,255,255,.72); }
.theme-ehitus main .cta-band .lead { color: rgba(255,255,255,.92); }
.theme-ehitus main .section--alt .step,
.theme-ehitus main .section--alt .form-card,
.theme-ehitus main .section--alt .sponsor-card { color: var(--ink); }
.theme-ehitus main .section--alt .contact-list li { border-color: rgba(255,255,255,.18); }
.theme-ehitus .sponsor-copy p, .theme-ehitus .step p { color: var(--ink-soft); }
@media (max-width: 768px) {
  .theme-ehitus .stat:nth-child(odd) { border-left: 0; }
  .theme-ehitus .stat { padding: 26px 14px; }
}

/* Ettevõttest: tutvustus ja andmed kõrvuti */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-grid h2 { margin-bottom: .5em; }
.fact-list { margin: 0; padding: 12px 28px; background: #f4f4f5; border-top: 4px solid var(--brand); }
.fact-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--ink-soft); }
.fact-list dd { margin: 0; font-weight: 600; text-align: right; }
.fact-list a { text-decoration: none; }
.fact-list a:hover { text-decoration: underline; }
.theme-ehitus main .section--alt .card { color: var(--ink); }
.theme-ehitus .cred-list a { color: var(--accent); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Avaleht: partnerid vasakul, toetus paremal */
.partner-strip { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px 64px; }
.partner-support { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.support-link { display: flex; align-items: center; gap: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.support-link:hover span { text-decoration: underline; }
.support-link img { height: 92px; width: auto; flex: none; }
@media (max-width: 860px) {
  .partner-support { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
}


/* UKU Kivimaja: võrdlustabel, broneerimise sammud, sündmuste kaardid */
.hall h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.table-wrap { overflow-x: auto; margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; font-weight: 600; padding: 16px 18px 6px; }
.compare th, .compare td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-weight: 700; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.table-note { margin-top: 18px; color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.steps-title { margin: 26px 0 10px; font-size: 1.25rem; }
.booking-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.card .card-title { font-size: 1.45rem; margin-bottom: 8px; }
.card .card-more { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ---------- 10. KIRJASTIILID JA UKU KIVIMAJA BRÄND (31.10.2026, vt brand/disainiraamat.html) ----------
   Igal lehel on kaks kirjastiili: pealkirjafont (--font-head või --font-display) ja Inter tekstiks.
   Pealkirjafont: h1, h2, h3, suured numbrid. Kõik muu on Inter. Uut fonti ei lisata. */
.theme-ehitus h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0; font-size: 1.4rem; line-height: 1.1; }
.theme-ehitus .project-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.theme-peoruum h1, .theme-peoruum h2, .theme-peoruum h3,
.theme-peoruum .stat b, .theme-peoruum .plan .price, .theme-peoruum .cal-head strong {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; line-height: 1.12;
}
.theme-peoruum h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
.theme-peoruum h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); }
.theme-peoruum h3 { font-size: clamp(1.12rem, 1.8vw, 1.3rem); }
.theme-peoruum .hall h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.theme-peoruum .hall h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.theme-peoruum .card .card-title { font-size: 1.25rem; }
.theme-peoruum .cal-head strong { font-size: 1.15rem; }
.theme-peoruum .gallery-title { font-size: 1.2rem; }
.theme-peoruum .rules-doc h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.logo-img--uku { height: 46px; }

/* Väike tekst on pruun, sest kuld ei ole heledal taustal loetav. Kuld on pinnaks ja kaunistuseks. */
.theme-peoruum .eyebrow { color: var(--ink); border-color: var(--accent); }
.theme-peoruum .hero .eyebrow, .theme-peoruum .page-head .eyebrow { color: var(--cream); }
.theme-peoruum .hall-address, .theme-peoruum .card-more { color: var(--ink-soft); }
.theme-peoruum .btn--primary, .theme-peoruum .main-nav a.nav-cta, .theme-peoruum .to-top,
.theme-peoruum .plan.is-featured::before, .theme-peoruum .cal-day.is-free:hover { color: var(--accent-ink); }
.theme-peoruum .card-icon { background: var(--cream); }
.theme-peoruum .hero::after { background: linear-gradient(100deg, rgba(46,37,32,.90) 0%, rgba(46,37,32,.62) 55%, rgba(46,37,32,.25) 100%); }
.theme-peoruum .section-head h2::after { content: ''; width: 56px; height: 4px; margin-top: 14px; background: var(--accent); }
.theme-peoruum .section--alt .hall-price, .theme-peoruum .compare thead th { background: var(--cream); }
.theme-peoruum .cal-day.is-booked { background: var(--cream); border-color: var(--line); color: var(--ink-soft); }
.theme-peoruum .cal-day.is-option { background: #fff; border-color: var(--accent); color: var(--ink); }
@media (max-width: 860px) { .logo-img--uku { height: 38px; } }

/* Ehitus: teenuste leht */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.service-nav a { padding: 11px 18px; border: 1.5px solid var(--brand); font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.service-nav a:hover { background: var(--brand); color: #fff; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: clamp(36px, 5vw, 64px); border-top: 2px solid var(--brand); }
.service:last-child { padding-bottom: 0; }
.service p { color: var(--ink-soft); }
.service .card-more { display: inline-block; padding-top: 4px; color: var(--accent); }
.service-note { margin-top: 24px; padding: 22px 24px; background: #f4f4f5; border-top: 4px solid var(--brand); }
.service-note p { margin: 0; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }
/* Saalide tulbad on võrdse laiusega ja väärtused keskel, et ühine rida jääks täpselt nende vahele */
.compare { table-layout: fixed; min-width: 620px; }
.compare thead th:first-child, .compare tbody th { width: 22%; white-space: normal; }
.compare thead th:not(:first-child), .compare td { text-align: center; }
@media print { .js .reveal { opacity: 1; transform: none; } }

/* Telefon: väravalehe logoplokk ei kattu ehituse kaardi tekstiga (Hillari Veebidisain 4.11.2026) */
@media (max-width: 768px) {
  .brand-construction { padding-top: 150px; min-height: auto; }
  .brand-construction .card-content { padding-top: 8px; }
}
