/* Arvona koduleht — public styles. Design language v2 "pehme kest".
   Colors come from :root tokens injected by PHP (theme_tokens). */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sys, system-ui, 'Segoe UI', Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1280px; margin: 0 auto; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 44px; height: 56px;
  padding: 0 max(32px, calc(50vw - 640px));
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.site-header nav { display: flex; gap: 34px; font-size: 13.5px; }
.site-header nav a { color: inherit; }
.site-header nav a:hover { text-decoration: underline; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 10px; font-size: 12.5px; }
.lang-switch a { color: var(--text); }
.lang-switch a.active { color: var(--ink); font-weight: 600; }

/* ---------------- Buttons / links ---------------- */
.btn {
  font-family: inherit; font-weight: 600; font-size: 15px;
  background: var(--accent); color: var(--accent-text, #fff);
  border: none; border-radius: 980px; padding: 14px 30px;
  cursor: pointer; display: inline-block; line-height: 1;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn.small { font-size: 13.5px; padding: 9px 20px; }
.text-link { font-size: 15px; font-weight: 500; padding: 14px 8px; display: inline-block; }

/* ---------------- Hero ---------------- */
.hero { padding: 110px 32px 90px; }
.hero h1 {
  margin: 0; max-width: 1050px;
  font-size: 76px; font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; text-wrap: pretty;
}
.hero-row {
  display: flex; gap: 64px; align-items: flex-end;
  margin-top: 44px; flex-wrap: wrap;
}
.hero-cta { display: flex; gap: 14px; align-items: center; }
.hero-para {
  margin: 0; max-width: 460px; font-size: 17px; line-height: 1.6; text-wrap: pretty;
}

/* ---------------- Ticker ---------------- */
.ticker {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: var(--fill);
}
.ticker .wrap {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 12px 32px; font-size: 13.5px;
}
.ticker .item { white-space: nowrap; }

/* ---------------- Content sections ---------------- */
.section { padding: 120px 32px; }
.section .grid {
  display: grid; gap: 80px; align-items: center;
}
.section.how .grid { grid-template-columns: 1fr 1.05fr; }
.section.mornings { background: var(--card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section.mornings .grid { grid-template-columns: 1.05fr 1fr; }

.eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.section h2 {
  margin: 0 0 24px; font-size: 48px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; text-wrap: pretty;
}
.section p { margin: 0; font-size: 17px; line-height: 1.65; text-wrap: pretty; }

/* Image cards */
.shot { }
.shot.floating {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 18px; box-shadow: 0 4px 28px rgba(0,0,0,0.08); padding: 14px;
}
.shot.flat { background: var(--fill); border-radius: 18px; padding: 14px; }
.shot .frame {
  height: 420px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.shot.floating .frame { background: repeating-linear-gradient(-45deg,#F5F5F7 0 22px,#EFEFF2 22px 44px); }
.shot.flat .frame     { background: repeating-linear-gradient(-45deg,#FFFFFF 0 22px,#F5F5F7 22px 44px); }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; }
.shot .badge {
  font-size: 13px; color: var(--text); background: var(--card);
  border-radius: 980px; padding: 7px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---------------- Closing + footer ---------------- */
.closing { padding: 130px 32px 140px; text-align: center; }
.closing h2 {
  margin: 0 auto; max-width: 760px; font-size: 48px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.12; text-wrap: pretty;
}
.closing .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; }

.site-footer {
  margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12.5px; color: var(--text); flex-wrap: wrap;
}
.site-footer .wordmark { font-weight: 700; color: var(--ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1280px) {
  .section { padding: 80px 32px; }
  .hero { padding: 80px 32px 70px; }
  .hero h1 { font-size: 56px; }
}
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; letter-spacing: -0.03em; }
  .section h2, .closing h2 { font-size: 32px; }
  .section.how .grid, .section.mornings .grid { grid-template-columns: 1fr; gap: 40px; }
  /* image below text in both sections */
  .section.how .shot { order: 2; }
  .section.mornings .shot { order: 2; }
  .section.mornings .col-text { order: 1; }
  .hero-para { max-width: none; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn, .closing .cta-row .btn { text-align: center; min-height: 44px; }
  .ticker .wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
    justify-content: initial;
  }
  .site-header { gap: 20px; }
  .site-header nav { display: none; }
}
