:root {
  --accent: #ea580c;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-dark: color-mix(in srgb, var(--accent) 82%, #000);
  --bg: #fbfaf8;
  --tint: #f4f2ee;
  --surface: #ffffff;
  --ink: #1c2433;
  --ink-2: #3d4757;
  --muted: #6b7482;
  --line: #e8e4dd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 36, 51, .04), 0 8px 24px rgba(28, 36, 51, .06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
[hidden] { display: none !important; }

/* Nupud */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 15px/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: #d6d0c6; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px;
}

/* Päis */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 22h8l5-12h7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent-dark); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* Avaplokk */
.hero { padding: 72px 0 80px; background:
  radial-gradient(900px 420px at 85% 10%, var(--accent-soft), transparent 70%),
  linear-gradient(var(--bg), var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.eyebrow:empty { display: none; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-2); margin: 20px 0 30px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.drawing {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.drawing-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fdfcfa; }
.drawing-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e0d8; }
.drawing svg { display: block; width: 100%; height: auto; }

/* Jaotised */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 750; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.sec-head p:empty { display: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.gallery figcaption:empty { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 28, .82); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 10px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); white-space: pre-line; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact.no-form { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.contact-info { display: grid; gap: 12px; }
.info-row { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.info-row .card-icon { margin: 0; flex: none; width: 42px; height: 42px; }
.info-row small { display: block; color: var(--muted); font-size: 13px; }
.info-row a, .info-row span { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.info-row a:hover { color: var(--accent-dark); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.contact-form h3 { font-size: 20px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  font: 400 15px/1.5 var(--font); color: var(--ink); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fdfcfb; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); background: #fff; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.contact-form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 15px; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #b91c1c; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-link { color: var(--muted); text-decoration: none; }
.admin-link:hover { color: var(--accent-dark); }

/* Ilmumine kerimisel */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero-in, .contact { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}
@media (max-width: 560px) {
  .cards, .row2 { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
}
