/* ==========================================================================
   VERBA — verbaconsulting / vco.ee
   Design tokens ja stiilid vastavalt disainipaketile (design_handoff_verba_website).
   Ühtne stiilileht ET- ja EN-versioonile.
   ========================================================================== */

:root {
  --bg: #F2F0EB;
  --text: #171717;
  --text-muted: #686762;
  --accent: #263A3E;
  --rule: #D6D3CC;

  --page-padding: clamp(24px, 6vw, 104px);
  --content-max: 1320px;

  --font-body: "Schibsted Grotesk", Helvetica, Arial, sans-serif;
  --font-wordmark: "League Spartan", Helvetica, Arial, sans-serif;
}

/* --- Base --------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0; text-wrap: pretty; }

h1, h2, h3 { margin: 0; text-wrap: balance; }

img { display: block; max-width: 100%; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--accent); }

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

/* --- Layout ------------------------------------------------------------- */

.page {
  min-height: 100vh;
  padding: 0 var(--page-padding);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Kahe veeru alusruudustik */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.rule { border-top: 1px solid var(--rule); }

/* Tekstilink alajoonega */
.link-rule {
  align-self: flex-start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

.link-rule:hover { border-color: var(--accent); }

.wordmark {
  display: inline-flex;
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 36px 0 0;
}

.site-header .wordmark {
  font-size: 30px;
  margin-top: -3px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  padding-top: 2px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.site-nav__lang {
  color: var(--text-muted);
  margin-left: clamp(8px, 1vw, 16px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  padding: clamp(88px, 13vh, 160px) 0 clamp(96px, 12vh, 160px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(40px, 4.8vw, 70px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.hero__lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 30em;
}

.hero__portrait {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  justify-self: end;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 40px 64px;
  align-items: start;
  padding: clamp(40px, 6vh, 72px) 0 clamp(96px, 13vh, 176px);
}

.services > .label { padding-top: 6px; }

.services__list {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 48px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.service__name {
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.service__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34em;
}

/* --- Jonatan Karjus ----------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  padding: clamp(104px, 15vh, 200px) 0 clamp(96px, 13vh, 176px);
}

.about__head {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about__statement {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 34em;
  align-self: end;
}

.about__body p:first-child {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
}

.about__body p + p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- Peilo -------------------------------------------------------------- */

.peilo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  padding: 0 0 clamp(96px, 13vh, 176px);
}

.peilo > .label { padding-top: 6px; }

.peilo__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 34em;
}

.peilo__title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.peilo__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
  padding: clamp(40px, 6vh, 80px) 0 clamp(96px, 14vh, 200px);
}

.contact__head {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__title {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact__lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 30em;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
  padding-top: clamp(0px, 1.5vw, 18px);
}

.contact__name { font-weight: 500; }

.contact__role { color: var(--text-muted); }

.contact__details a {
  align-self: flex-start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.contact__details a:hover { border-color: var(--accent); }

.contact__email { margin-top: 22px; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.site-footer .wordmark {
  font-size: 18px;
  color: var(--text);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer a { color: var(--text-muted); }

.site-footer a:hover { color: var(--accent); }

/* --- Scroll reveal ------------------------------------------------------ */

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform .9s ease;
}

/* Spetsiifilisem kui .is-hidden, nii et reeglite järjekord ei loe. */
[data-reveal].is-hidden.is-revealed {
  opacity: 1;
  transform: none;
}

/* --- Kitsas vaade (< 900px) --------------------------------------------- */

@media (max-width: 899.98px) {
  .grid-2,
  .hero,
  .services,
  .about,
  .peilo,
  .contact,
  .service {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__portrait {
    max-width: 100%;
    justify-self: stretch;
  }

  .about__body,
  .contact__details {
    align-self: start;
  }
}

/* Puutetundlikel seadmetel vähemalt 44px klikiala (ilma visuaalse kastita) */
@media (pointer: coarse) {
  .site-nav {
    gap: 4px clamp(20px, 3vw, 40px);
    margin-top: -11px;
  }

  .site-nav a,
  .site-footer a {
    padding: 11px 0;
  }

  .site-footer__col { margin: -11px 0; }
}

/* --- Liikumise vähendamine ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * { transition-duration: .01ms !important; }
}
