/* LARG — staatiline veebileht */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #0f2a4a;
  --ink-2: #1a3a63;
  --text: #2b3340;
  --muted: #5b6470;
  --line: #e6e8ec;
  --accent: #c8a44a;
  --accent-ink: #8a6f24;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.04);
  --shadow-md: 0 8px 28px -12px rgba(15, 42, 74, 0.18);
  --maxw: 1160px;
  --t: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Inter', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); }
h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.75em;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
}
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px;}

.nav { display: flex; align-items: center; }
.nav-list {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  font-size: 0.92rem; color: var(--text); font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-list a.nav-cta,
.nav-list a.nav-cta:hover { color: #fff; border-bottom: none; padding: 10px 18px; }
.nav-list a.nav-cta { transition: background var(--t); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  margin: 0.4em 0 0.4em;
}
.hero-title em { font-style: italic; color: var(--accent-ink); font-weight: 500; }
.hero-lead {
  font-size: 1.15rem; color: var(--muted); max-width: 640px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin: 0; max-width: 720px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600;
  color: var(--ink);
}
.hero-stats dd { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* Features */
.features {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 64px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--t), transform var(--t);
}
.feature:hover { border-color: var(--ink); transform: translateY(-2px); }
.feature-num {
  font-family: 'Fraunces', serif; font-size: 0.95rem; color: var(--accent-ink);
  display: block; margin-bottom: 16px; letter-spacing: 0.04em;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Quick links */
.quicklinks {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.quicklink {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: transform var(--t), background var(--t);
}
.quicklink:hover { background: var(--ink-2); color: #fff; transform: translateY(-2px); }
.quicklink h3 { color: #fff; margin: 4px 0 8px; font-size: 1.25rem; }
.quicklink p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin: 0; }
.quicklink .eyebrow { color: var(--accent); }
.quicklink .arrow {
  font-size: 1.5rem; color: var(--accent);
  transition: transform var(--t);
}
.quicklink:hover .arrow { transform: translateX(4px); }
.quicklink-accent { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.quicklink-accent:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.quicklink-accent h3 { color: var(--ink); }
.quicklink-accent p { color: var(--muted); }

/* Cards (suunad) */
.cards {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 16px;
}
.card h3 {
  font-family: 'Fraunces', serif; font-size: 1.25rem; line-height: 1.25;
  margin-bottom: 12px; color: var(--ink);
}
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 16px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 2px;
}
.card-link:hover { color: var(--accent-ink); }

/* Apply */
.apply { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.apply-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(600px 320px at 85% 0%, rgba(200,164,74,0.18), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(200,164,74,0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%);
}
.apply-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.apply h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.apply .eyebrow { color: var(--accent); }
.apply-head { max-width: 720px; margin: 0 0 64px; }
.apply-text { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.apply-text a { color: var(--accent); border-bottom: 1px solid rgba(200,164,74,0.4); }
.apply-text a:hover { color: #fff; }
.apply-actions { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.apply .btn-primary { background: var(--accent); color: var(--ink); }
.apply .btn-primary:hover { background: #d8b35a; color: var(--ink); transform: translateY(-1px); }
.apply-meta { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }

/* Timeline */
.timeline {
  list-style: none; padding: 0; margin: 0 0 64px;
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 40px; right: 40px; top: 40px;
  height: 1px; background: rgba(255,255,255,0.14);
}
.timeline-item { position: relative; padding: 0 20px 0 0; }
.timeline-item::before {
  content: ""; position: absolute; top: 34px; left: 34px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--ink);
  z-index: 2;
}
.timeline-date {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 82px; min-height: 82px; border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
  padding: 28px 0 10px;
}
.timeline-date .day { margin-top: 4px; }
.timeline-date .day {
  font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; color: #fff;
  line-height: 1;
}
.timeline-date .mon {
  font-size: 0.7rem; color: var(--accent); margin-top: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.timeline-body h3 { color: #fff; font-size: 1.05rem; margin: 0 0 6px; }
.timeline-body p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }

/* Apply tiles */
.apply-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.apply-tile {
  display: block;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
a.apply-tile:hover { background: rgba(255,255,255,0.07); border-color: var(--accent); transform: translateY(-2px); color: rgba(255,255,255,0.85); }
.apply-tile .eyebrow { color: var(--accent); margin-bottom: 10px; }
.apply-tile h3 {
  color: #fff; font-family: 'Fraunces', serif; font-size: 1.3rem; margin: 0 0 8px;
}
.apply-tile p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Footer */
.site-footer {
  background: #0a1f38; color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-name { color: #fff; font-family: 'Fraunces', serif; font-size: 1.05rem; margin: 0 0 4px; }
.footer-tag { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 280px; }
.footer-col h4 {
  color: #fff; font-family: 'Inter', sans-serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-col p, .footer-col li { margin: 0 0 8px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { margin: 0; }
.disclaimer { font-style: italic; }

/* Mobile */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px; margin-top: 8px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 10px 12px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .header-inner { position: relative; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .timeline::before { display: none; }
  .apply-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .brand-sub { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
