/* ------------------------------------------------------------------
   Ly Johanson · kinnisvaramaakler · Uus Maa
   Kavand – Protos Meedia
   Värvid: sügav sinine + kuld (Uus Maa vaimus, isiklik leht)
   ------------------------------------------------------------------ */

/* ---------- Fondid: Cormorant Garamond ja Inter (SIL OFL), saidi enda alt ---------- */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/cormorant-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/cormorant-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/cormorant-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/cormorant-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-sans-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-sans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-variable.woff2) format('woff2');
}

:root {
  --navy: #0F1E33;
  --navy-deep: #0A1526;
  --cream: #F4EFE6;
  --warm-white: #FCFAF6;
  --gold: #C9A227;
  --gold-light: #E8D48B;
  --gold-deep: #7E6411;          /* kuldne tekst heledal taustal (kontrast ≥ 4.5) */
  --gold-mid: #A5841A;           /* suur kuldne tekst heledal taustal (kontrast ≥ 3) */
  --ink: #1A1A1A;
  --ink-soft: #5B5953;           /* abitekst heledal */
  --light-grey: rgba(255, 255, 255, 0.74); /* tekst tumedal */

  --line-dark: rgba(26, 26, 26, 0.12);
  --line-light: rgba(232, 212, 139, 0.22);
  --gold-line: rgba(201, 162, 39, 0.55);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --section: 80px;
  --gutter: 20px;
  --max: 1240px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --section: 120px;
    --gutter: 48px;
  }
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color 0.4s var(--ease), opacity 0.4s var(--ease); }

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Sektsioonid ---------- */

.section {
  position: relative;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.section--cream { background: var(--cream); color: var(--ink); }
.section--dark { background: var(--navy); color: #fff; }

/* Tumedate sektsioonide peened kuldsed servajooned */
.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,39,0) 0%, var(--gold) 20%, var(--gold) 80%, rgba(201,162,39,0) 100%);
  opacity: 0.7;
}
.section--dark::before { top: 0; }
.section--dark::after { bottom: 0; }

.section--tight-top { padding-top: 0; }

/* ---------- Tüpograafia ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow--light { color: var(--gold-light); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 18ch;
  color: var(--ink);
}
.section-title--light { color: #fff; }

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .section-title { margin-left: auto; margin-right: auto; }

@media (min-width: 900px) {
  .section-head { margin-bottom: 72px; }
}

.prose p + p { margin-top: 1.25em; }
.prose { font-size: 16px; }
@media (min-width: 900px) { .prose { font-size: 17px; } }

/* ---------- Nupud ja lingid ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  padding: 19px 30px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }

.btn--outline-gold { background: transparent; color: var(--gold-light); }
.btn--outline-gold:hover { background: var(--gold); color: var(--navy-deep); }

.btn--outline-dark { background: transparent; color: var(--ink); }
.btn--outline-dark:hover { background: var(--gold); color: var(--navy-deep); }

.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201,162,39,0.4);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.text-link:hover { border-bottom-color: var(--gold); color: var(--ink); }
.text-link svg { transition: transform 0.4s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Kaardid ---------- */

.card {
  background: var(--warm-white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* ---------- Päis ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header--hero { background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled {
  background: rgba(15, 30, 51, 0.96);
  border-bottom-color: var(--line-light);
  box-shadow: 0 10px 30px rgba(10, 21, 38, 0.25);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Lehe enda nimi-logo: tekst, mitte pilt ega H1 (päises ja jaluses) */
.site-logo { display: inline-flex; flex-direction: column; flex: none; color: #fff; line-height: 1; }
.site-logo__name {
  font-family: 'PT Sans', var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.site-logo:hover .site-logo__name { color: var(--gold-light); }
.site-logo__role {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--gold);
}
@media (min-width: 768px) { .site-logo__name { font-size: 26px; } }

.site-header__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.site-header__social { display: none; align-items: center; color: var(--gold-light); transition: color 0.2s var(--ease); }
.site-header__social:hover { color: #fff; }
@media (min-width: 768px) { .site-header__social { display: inline-flex; } }
/* Kitsal lauaarvutil ei mahu sotsiaalikoonid menüü kõrvale, need on alles ka kontaktis ja jaluses */
@media (min-width: 1200px) and (max-width: 1299px) { .site-header__social { display: none; } }

/* Kontaktinupud: päises, mobiilimenüüs ja hero all */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  height: 44px;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-btn svg { flex: none; }
.contact-btn--gold { background: var(--gold); color: var(--navy); }
.contact-btn--gold .contact-btn__label { letter-spacing: 0.06em; font-variant-numeric: tabular-nums lining-nums; }
.contact-btn--gold:hover { background: #D6B23E; border-color: #D6B23E; color: var(--navy); }
.contact-btn--outline { background: transparent; color: var(--gold); }
.contact-btn--outline:hover { background: var(--gold); color: var(--navy); }
.contact-btn--block { display: flex; width: 100%; }

/* Telefonis on päises ainult ümmargune helistamisnupp */
@media (max-width: 767px) {
  .site-header__contact .contact-btn--outline { display: none; }
  /* Telefonis ainult kuldne ikoon, ilma täiteta; klõpsuala 44 px */
  .site-header__contact .contact-btn--gold { width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--gold); }
  .site-header__contact .contact-btn--gold:hover { background: transparent; color: var(--gold-light); }
  .site-header__contact .contact-btn--gold svg { width: 22px; height: 22px; }
  .site-header__contact .contact-btn__label { display: none; }
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
@media (min-width: 1200px) {
  .site-header__nav { display: flex; }
  .site-header__contact { margin-left: 24px; }
}

.site-header__link {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
  position: relative;
}
.site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-header__link:hover { color: #fff; }
.site-header__link:hover::after { transform: scaleX(1); }
.site-header__link--cta {
  padding: 11px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header__link--cta::after { display: none; }
.site-header__link--cta:hover { background: var(--gold); color: var(--navy-deep); }

.site-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: transparent;
  border: 0;
  color: var(--gold-light);
  cursor: pointer;
}
.site-header__burger .icon-close { display: none; }
.nav-open .site-header__burger .icon-menu { display: none; }
.nav-open .site-header__burger .icon-close { display: block; }
@media (min-width: 1200px) { .site-header__burger { display: none; } }

/* Täisekraani mobiilimenüü */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  padding: 88px var(--gutter) 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.mobile-nav__link {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.4s var(--ease);
}
.mobile-nav__link:hover { color: var(--gold-light); }
.nav-open .mobile-nav__link { transform: none; opacity: 1; }
.nav-open .mobile-nav__link:nth-child(1) { transition-delay: 0.08s; }
.nav-open .mobile-nav__link:nth-child(2) { transition-delay: 0.14s; }
.nav-open .mobile-nav__link:nth-child(3) { transition-delay: 0.2s; }
.nav-open .mobile-nav__link:nth-child(4) { transition-delay: 0.26s; }
.nav-open .mobile-nav__link:nth-child(5) { transition-delay: 0.32s; }
.nav-open .mobile-nav__link:nth-child(6) { transition-delay: 0.38s; }
.nav-open .mobile-nav__link:nth-child(7) { transition-delay: 0.44s; }
.social-row { display: flex; align-items: center; gap: 14px; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-light); border-radius: 50%; color: var(--gold-light); transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background-color 0.4s var(--ease); }
.social-row a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
.mobile-nav__contact .social-row { margin-top: 10px; }

.mobile-nav__contact {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 1200px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    /* tumedam riba päise taga, et nimi-logo oleks heledal kaadril loetav */
    linear-gradient(to bottom, rgba(10, 21, 38, 0.62) 0, rgba(10, 21, 38, 0) 150px),
    linear-gradient(to top,
      rgba(10, 21, 38, 0.94) 0%,
      rgba(10, 21, 38, 0.74) 40%,
      rgba(10, 21, 38, 0.28) 72%,
      rgba(10, 21, 38, 0.34) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 110px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
/* Väljalõigatud portree: taust on video, alumine serv sulandub sellesse. */
.hero__portrait {
  position: absolute;
  right: -8%;
  bottom: 0;
  z-index: 0;
  margin: 0;
  width: 55%;
  opacity: 0.9;
  pointer-events: none;
}
.hero__portrait picture { display: contents; }
.hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%);
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (max-width: 899px) {
  /* Tekst jääb portree ette, gradient hoiab selle loetavana. */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 21, 38, 0.75) 0%, rgba(10, 21, 38, 0.35) 55%, transparent 100%);
  }
}
@media (min-width: 768px) and (max-width: 899px) {
  .hero__portrait { right: 0; width: 38%; }
}
@media (min-width: 900px) {
  .hero__content { padding-top: 150px; padding-bottom: 130px; }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .hero__portrait {
    right: max(32px, calc((100vw - var(--max)) / 2 + 40px));
    bottom: 6%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: min(520px, 34vw);
    height: 72%;
    opacity: 1;
    filter: drop-shadow(0 20px 40px rgba(10, 21, 38, 0.35));
  }
  .hero__portrait img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    /* Foto on õlast kärbitud: ümar sulandus, et külgedele ei jääks sirget serva. */
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%), radial-gradient(ellipse 52% 75% at 50% 38%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%), radial-gradient(ellipse 52% 75% at 50% 38%, #000 70%, transparent 100%);
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__portrait {
    right: 16px;
    height: 58%;
    width: 30vw;
  }
}

.hero__title {
  font-family: 'PT Sans', var(--sans);
  font-weight: 400;
  /* PT Sans on laiem kui Cormorant: 7.75rem hoiab nime ühel real samas laiuses. */
  font-size: clamp(4rem, 9.5vw, 7.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
  margin: 0 0 28px;
}

.hero__lead {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 34em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) { .hero__lead { font-size: 19px; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--line-light);
  overflow: hidden;
}
.hero__scroll-line span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollHint 2.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.6rem); }
}
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; padding: 17px 18px; letter-spacing: 0.16em; line-height: 1.4; }
}
@media (max-width: 767px) {
  .hero__actions { gap: 12px; }
  .hero__actions .btn { height: 52px; padding: 0 10px; font-size: 13px; letter-spacing: 0.15em; line-height: 1; white-space: nowrap; }
}
.hero__grid > * { min-width: 0; }

/* ---------- Tunnustus ---------- */

.awards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.award {
  background: var(--navy-deep);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.award__value {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1;
  color: var(--gold-mid);
  white-space: nowrap;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}
/* Numbriosa: ühesugused numbrilaiused, kast lukustatakse JS-iga lõpliku numbri järgi */
.award__num { font-variant-numeric: tabular-nums; }
.award__label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: balance;
}
@media (min-width: 768px) { .award__label { font-size: 12px; } }

/* 3D sisenemine */
.awards { perspective: 1000px; }
.award.is-armed { opacity: 0; transform: translateY(30px) rotateX(14deg); }
.award.is-armed.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Kallutamine hiirega */
@media (hover: hover) and (pointer: fine) {
  .award { transform-style: preserve-3d; }
  .award__value { transition: transform 0.5s var(--ease); }
  .award.is-tilting .award__value { transform: translateZ(30px); }
}
@media (prefers-reduced-motion: reduce) {
  .awards { perspective: none; }
  .award, .award__value { transform: none !important; transition: none !important; }
}
.awards__note {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
@media (min-width: 768px) {
  .awards__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .award { padding: 52px 32px 44px; }
}

/* ---------- Minust ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.about__figure {
  margin: 0;
  position: relative;
  max-width: 460px;
}
.about__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}
/* Õhuke kuldne raam pildi taga, veidi nihkes */
.about__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}

.about__titles {
  margin: 28px 0;
  display: grid;
  gap: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--gold-deep);
}
.about__titles span { display: block; }
@media (min-width: 768px) { .about__titles { font-size: 20px; } }

.about__signature {
  margin-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--navy);
}

.about__facts {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--gold-line);
  display: grid;
  gap: 14px;
}
.about__facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}
.about__facts dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  padding-top: 3px;
}
.about__facts dd { margin: 0; font-size: 15px; }

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 5fr 6fr;
    gap: 100px;
    align-items: center;
  }
  .about__figure { max-width: none; }
  .about__facts { display: flex; gap: 48px; }
  .about__facts > div { grid-template-columns: auto; gap: 6px; }
}

/* ---------- Teenused ---------- */

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service {
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -30px rgba(15, 30, 51, 0.35);
}

.service__icon { color: var(--gold); margin-bottom: 28px; }

.service__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.service p { font-size: 15.5px; margin-bottom: 28px; color: var(--ink); }
.service .text-link { margin-top: auto; }

@media (min-width: 900px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .service { padding: 48px 40px 44px; }
}

/* ---------- Kuidas müük käib ---------- */

.process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.step {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 16px;
}

.step__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  padding-top: 2px;
}

.step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}

.step p { grid-column: 2; font-size: 15.5px; color: var(--light-grey); max-width: 40ch; }

@media (min-width: 720px) {
  .process__list { grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
}

@media (min-width: 1100px) {
  .process__list { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
  .step {
    grid-template-columns: 1fr;
    padding: 48px 0 56px;
  }
  .step__num { font-size: 3.4rem; margin-bottom: 26px; }
  .step p { grid-column: auto; }
}

/* ---------- Kuulutused ---------- */

.listings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
/* Märgis pildi vasakus ülanurgas */
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  background: rgba(15, 30, 51, 0.9);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.listings__more { margin-top: 44px; text-align: center; }

/* Tehtud tehingud */
.badge--done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
/* Ühine kaart: kuulutused ja tehtud tehingud */
.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
}
.deal[hidden] { display: none; }
.pcard__media { position: relative; overflow: hidden; }
.pcard__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.pcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 21, 38, 0.75) 0%, transparent 45%);
  pointer-events: none;
}
.pcard__meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F3E3A6;
}
.pcard__body { flex: 1; padding: 22px; }
.pcard__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.15;
  color: var(--navy);
}
/* Õhuke kuldne joon pealkirja all */
.pcard__title::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 14px 0;
  background: var(--gold);
}
.pcard__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.pcard__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  font-variant-numeric: lining-nums;
  color: var(--gold-mid);
}
.pcard__specs {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .pcard__body { padding: 28px; }
  .pcard__title { font-size: 26px; }
  .pcard__text { font-size: 19px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pcard:hover .pcard__media img { transform: scale(1.04); }
}
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { box-shadow: inset 0 -2px 0 var(--gold); }
}
.deals-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.deals-filter__btn { padding: 14px 20px; }
.deals-filter__btn[aria-pressed="true"] { background: var(--gold); color: var(--navy-deep); }
.deals__empty { margin-top: 8px; text-align: center; color: var(--ink-soft); }

/* Kõigi kuulutuste leht (kinnisvara24 aken) */
.kv24-page { padding: 48px 0 var(--section); }
.kv24-wrap { background: var(--warm-white); border: 1px solid var(--line-dark); border-top: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; }
.kv24-wrap iframe { display: block; }

@media (min-width: 900px) {
  .listings__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ---------- Tagasiside ---------- */

.carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.carousel__mark {
  display: block;
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 0.6;
  color: var(--gold);
  height: 56px;
  font-weight: 300;
}

/* Kõik slaidid on samas ruudustiku lahtris: kõrguse annab pikim arvustus, nii et leht ei hüppa. */
.carousel__track { display: grid; }

.review {
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.review.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s var(--ease), visibility 0s;
}

.review__text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.45;
  color: #fff;
  overflow-wrap: break-word;
}
.review__text p { margin: 0; }
.review__text p + p { margin-top: 0.75em; }
.review__emoji { font-style: normal; } /* kaldkiri ei tohi emojit viltu ajada */
.review--long .review__text { font-size: calc(0.85 * clamp(1.4rem, 2.4vw, 1.95rem)); }

.review__meta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.review__name {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
}

.review__score {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.carousel__controls {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.carousel__btn:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }

.carousel__count {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
  min-width: 64px;
  color: var(--gold-light);
}
.carousel__sep { margin: 0 8px; color: var(--light-grey); }

/* ---------- Blogi ---------- */

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.post { overflow: hidden; display: flex; flex-direction: column; }
.post:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(15, 30, 51, 0.35); }

.post__media { display: block; overflow: hidden; }
.post__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.post:hover .post__media img { transform: scale(1.04); }

.post__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post__kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 12px;
}
.post__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.post__title a:hover { color: var(--gold-deep); }
.post__excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__body .text-link { margin-top: auto; align-self: flex-start; }

@media (min-width: 900px) {
  .blog__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ---------- Artikli leht ---------- */

.article-hero {
  background: var(--navy);
  color: #fff;
  padding: 150px 0 72px;
  position: relative;
}
.article-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,39,0) 0%, var(--gold) 20%, var(--gold) 80%, rgba(201,162,39,0) 100%);
  opacity: 0.7;
}
.article-hero .section-title { color: #fff; max-width: 22ch; }
.article-hero__meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--light-grey);
  letter-spacing: 0.02em;
}

.article {
  padding: 64px 0 var(--section);
}
.article__figure {
  margin: 0 0 56px;
  max-width: 920px;
}
.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.article__body {
  max-width: 68ch;
  font-size: 17px;
}
.article__body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 2.2em 0 0.6em;
}
.article__body p + p { margin-top: 1.2em; }
.article__body ul { margin: 1em 0 1.4em; padding-left: 0; }
.article__body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.6em;
}
.article__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.article__cta {
  margin-top: 64px;
  padding: 40px 32px;
  background: var(--warm-white);
  border: 1px solid var(--line-dark);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  max-width: 68ch;
}
.article__cta p { margin-bottom: 24px; }

.article__back { margin-top: 48px; }

@media (min-width: 900px) {
  .article-hero { padding: 190px 0 88px; }
  .article { padding-top: 88px; }
}

/* ---------- Kontakt ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.contact__lead {
  margin-top: 24px;
  font-size: 16px;
  max-width: 36ch;
}

.contact__big {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__phone {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
}
.contact__phone:hover, .contact__email:hover, .contact__list a:hover { color: var(--gold); }
.contact__email {
  font-size: 17px;
  color: var(--cream);
}

.contact__list {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
}
.contact__list svg { color: var(--gold); flex: none; }

.form {
  display: grid;
  gap: 28px;
  padding: 36px 24px;
}
.form__row { display: grid; grid-template-columns: 1fr; gap: 28px; }

.field { display: block; }

.field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-grey);
  font-weight: 500;
  margin-bottom: 8px;
}

.field__input {
  width: 100%;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  color-scheme: dark;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input:focus { border-color: var(--gold); }
.field__input::placeholder { color: rgba(244, 239, 230, 0.6); }
.field__input option { background: var(--navy); color: var(--cream); }
/* Brauseri automaattäide ei tohi muuta välja heledaks */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cream);
  caret-color: var(--cream);
  box-shadow: 0 0 0 1000px #17243A inset;
}
textarea.field__input { resize: vertical; min-height: 110px; }

.field__select { position: relative; display: block; }
.field__select svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold);
}
.field__select select { padding-right: 38px; cursor: pointer; }
.field__select select:invalid { color: rgba(244, 239, 230, 0.6); }

.form__actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.form__privacy { font-size: 12.5px; color: var(--light-grey); }
.form__status { font-size: 15px; color: var(--gold-light); min-height: 0; }
.form__status:empty { display: none; }
.form.is-sent .form__row, .form.is-sent .field, .form.is-sent .form__actions { display: none; }
.form.is-sent .form__status { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }

@media (min-width: 640px) {
  .form { padding: 48px 44px; }
  .form__row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form__actions { flex-direction: row; align-items: center; gap: 28px; }
}

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
}

/* Kontakt ja jalus on üks tervik: vahel ainult jaluse õhuke joon */
.contact.section--dark::after { display: none; }
.contact .form.card { background: var(--navy-deep); border-color: var(--gold-line); }

/* ---------- Jalus: üks õhuke rida ---------- */

.footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 24px 0;
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__logo { display: block; }
.footer__logo img { display: block; height: 28px; width: auto; }
.footer__text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.footer__credit {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s var(--ease);
}
.footer__credit:hover { color: var(--gold); }
@media (min-width: 768px) {
  .footer__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .footer__logo { justify-self: start; }
  .footer__credit { justify-self: end; }
}

/* ---------- Ujuv kontaktinupp (ainult telefonis) ---------- */

.contact-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transform: scale(0.9);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.contact-fab.is-visible {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s;
}
.contact-fab__toggle {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.contact-fab__toggle:focus-visible, .contact-fab__item:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.contact-fab__icon {
  position: absolute;
  top: 17px;
  left: 17px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.contact-fab__icon--close { transform: rotate(-90deg); opacity: 0; }
.contact-fab.is-open .contact-fab__icon--phone { transform: rotate(90deg); opacity: 0; }
.contact-fab.is-open .contact-fab__icon--close { transform: none; opacity: 1; }

.contact-fab__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.2s;
}
.contact-fab.is-open .contact-fab__menu { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.contact-fab__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 22px;
  background: var(--navy);
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.contact-fab.is-open .contact-fab__item { transform: none; opacity: 1; }
/* Alumine ilmub esimesena: liikumine alt üles */
.contact-fab.is-open .contact-fab__item:first-child { transition-delay: 0.05s; }

@media (min-width: 768px) {
  .contact-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-fab, .contact-fab__item, .contact-fab__icon, .contact-fab__menu { transition: none; }
}

/* ---------- Reveal-animatsioonid ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero .reveal:nth-child(4) { transition-delay: 0.5s; }
.hero .reveal:nth-child(5) { transition-delay: 0.65s; }

.service:nth-child(2), .post:nth-child(2), .step:nth-child(2), .step:nth-child(5) { transition-delay: 0.12s; }
.service:nth-child(3), .post:nth-child(3), .step:nth-child(3), .step:nth-child(6) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line span { animation: none; }
  .review, .review.is-active { transition: none; }
  .card, .listing-card img, .post__media img { transition: none; }
}

.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Abiklassid ja artikli lisad ---------- */

picture { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.article__related { margin-top: 56px; max-width: 68ch; }
.article__related-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.article__related ul { display: grid; gap: 14px; }
.article__related .text-link { letter-spacing: 0.06em; text-transform: none; font-size: 15px; align-items: flex-start; }
.article__related .text-link svg { flex: none; margin-top: 4px; }

.article-hero .eyebrow a:hover { color: #fff; }

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound__action { margin-top: 36px; }

/* ---------- Five Stars logo hero's ja jaluses ---------- */

.hero__logo { display: block; width: fit-content; margin-bottom: 20px; }
/* SVG-i sees on vasakul tühi ruum (66/364 kõrgusest): nihutame logo teksti servaga kohakuti */
.hero__logo img { display: block; height: 34px; width: auto; margin-left: -6px; filter: drop-shadow(0 0 1px rgba(10, 21, 38, 0.55)) drop-shadow(0 1px 10px rgba(10, 21, 38, 0.6)); }
@media (min-width: 768px) { .hero__logo img { height: 44px; margin-left: -8px; } }


/* Kitsas telefon: nimi-logo, number ja hamburger peavad ühele reale mahtuma */
@media (max-width: 374px) {
  .site-header__inner { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .site-header__burger { width: 36px; margin-right: -6px; }
}

/* Avatud menüüs on kontaktid menüü sees */
.nav-open .contact-fab { display: none; }

/* ---------- Nimi ja amet kontaktide kohal ---------- */

.person-block { margin-top: 36px; }
.person-block__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
}
.person-block__role {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold);
}
.person-block__rule {
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 20px;
  background: var(--gold);
}
.person-block + .contact__big { margin-top: 20px; }
@media (min-width: 768px) { .person-block__name { font-size: 32px; } }

/* ---------- Tüpograafia: ühtlased numbrid ja pealkirjade murdmine ---------- */

html {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.about .section-title {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  max-width: none;
}

/* Tagasiside: esimese versiooni tüpograafia (vanastiilsed numbrid, ülapealkiri 11px) */
.reviews { font-variant-numeric: normal; font-feature-settings: normal; }
.reviews .eyebrow { font-size: 11px; letter-spacing: 0.22em; }

/* ---------- Mobiili hero: logo, nimi, lause, nupud; portree teksti taga ---------- */
@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero__content { padding-bottom: 56px; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .hero__logo { order: 1; }
  .hero__title { order: 3; }
  .hero__lead { order: 4; }
  .hero__actions { order: 5; }
  .hero__scroll { display: none; }
  /* Lause ja nupud vasakul, et need ei läheks näo peale. */
  .hero__lead { max-width: 62vw; }
  .hero__actions .btn { width: 62%; height: auto; min-height: 52px; padding: 10px 8px; font-size: 12px; letter-spacing: 0.1em; line-height: 1.3; white-space: normal; text-align: center; }
}
