:root {
  --background: oklch(0.985 0.005 85);
  --foreground: oklch(0.19 0.018 160);
  --primary: oklch(0.31 0.055 158);
  --primary-foreground: oklch(0.97 0.006 90);
  --secondary: oklch(0.94 0.012 93);
  --muted-foreground: oklch(0.46 0.015 160);
  --accent: oklch(0.78 0.14 80);
  --accent-foreground: oklch(0.2 0.02 160);
  --border: oklch(0.84 0.012 90);
  --input: oklch(0.75 0.012 90);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-foreground); }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); }
.eyebrow-light { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: color-mix(in oklab, var(--primary-foreground) 55%, transparent); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 3rem; padding: 0 1.75rem;
  font-size: .95rem; font-weight: 600; border: 0; cursor: pointer;
  font-family: var(--font-sans); transition: background-color .2s ease;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 90%, transparent); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }

/* Hero */
.hero { position: relative; min-height: 92svh; background: var(--foreground); color: var(--background); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero-scrim { position: absolute; inset: 0; background: color-mix(in oklab, var(--foreground) 55%, transparent); }
@media (min-width: 768px) {
  .hero-scrim {
    background: linear-gradient(90deg, var(--foreground) 0%, color-mix(in oklab, var(--foreground) 78%, transparent) 35%, transparent 72%);
  }
}
.hero-header { position: relative; z-index: 10; border-bottom: 1px solid color-mix(in oklab, var(--background) 20%, transparent); }
.header-row { display: flex; height: 6rem; align-items: center; justify-content: space-between; gap: 1rem; }
.logo img { width: 9rem; height: auto; object-fit: contain; }
@media (min-width: 640px) { .logo img { width: 11rem; } }
.logo-light { background: var(--background); padding: .5rem .75rem; display: inline-flex; }

.nav { display: none; gap: 2.25rem; font-size: .875rem; font-weight: 500; }
@media (min-width: 768px) { .nav { display: flex; align-items: center; } }
.nav a { color: color-mix(in oklab, var(--background) 75%, transparent); transition: color .2s ease; }
.nav a:hover { color: var(--background); }

.hero-phone { display: none; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; }
@media (min-width: 640px) { .hero-phone { display: flex; } }

.hero-body {
  position: relative; z-index: 10; display: flex; flex-direction: column;
  justify-content: flex-end; min-height: calc(92svh - 6rem);
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) { .hero-body { padding-bottom: 5rem; } }
.hero-eyebrow {
  margin: 2.5rem 0 auto; display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
  color: color-mix(in oklab, var(--background) 70%, transparent);
}
.rule { display: block; height: 1px; width: 2.5rem; background: var(--accent); }
.hero-copy { max-width: 48rem; }
.hero-copy h1 { font-size: clamp(2.75rem, 8vw, 6rem); line-height: .98; }
.gold { color: var(--accent); }
.hero-copy > p { margin-top: 1.75rem; max-width: 36rem; font-size: 1.0625rem; line-height: 1.75; color: color-mix(in oklab, var(--background) 75%, transparent); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.link-quiet { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: color-mix(in oklab, var(--background) 80%, transparent); }
.link-quiet:hover { color: var(--background); }

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-services { border-bottom: 1px solid var(--border); scroll-margin-top: 2rem; }

.services-intro { display: grid; gap: 2rem; }
@media (min-width: 768px) { .services-intro { grid-template-columns: .75fr 1.25fr; gap: 4rem; } }
.services-intro h2 { margin-top: 1.25rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.lead-muted { max-width: 36rem; align-self: end; font-size: 1.125rem; line-height: 2rem; color: var(--muted-foreground); }

.services-grid { margin-top: 3.5rem; display: grid; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service { min-height: 18rem; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 1.75rem; transition: background-color .2s ease; }
@media (min-width: 768px) { .service { padding: 2.5rem; } }
.service:hover { background: var(--secondary); }
.service-top { display: flex; align-items: flex-start; justify-content: flex-end; }
.num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: var(--muted-foreground); }
.service h3 { margin-top: 4rem; font-size: 1.5rem; }
.service p { margin-top: 1rem; max-width: 28rem; line-height: 1.75; color: var(--muted-foreground); }

/* Teenuseikoonid — õhuline joongraafika (ainult kontuur, mitte täidetud pind) */
.icon { display: block; width: 1.625rem; height: 1.625rem; flex: none; color: var(--primary); opacity: .55; transition: opacity .2s ease, color .2s ease; }
.service:hover .icon, .service:focus-within .icon { opacity: 1; color: var(--accent); }

/* Promise */
.section-promise { background: var(--primary); color: var(--primary-foreground); scroll-margin-top: 2rem; }
.promise-grid { display: grid; gap: 3.5rem; }
@media (min-width: 768px) { .promise-grid { grid-template-columns: 1fr 1.1fr; } }
.promise-grid h2 { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.1; }
.promise-list { border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 20%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--primary-foreground) 20%, transparent); }
.promise-item { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid color-mix(in oklab, var(--primary-foreground) 20%, transparent); }
.promise-item:last-child { border-bottom: 0; }
.dot { margin-top: .6rem; width: .75rem; height: .75rem; background: var(--accent); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.promise-item h3 { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; }
.promise-item p { margin-top: .5rem; line-height: 1.75; color: color-mix(in oklab, var(--primary-foreground) 65%, transparent); }

/* Contact */
.section-contact { scroll-margin-top: 2rem; }
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-grid h2 { margin-top: 1.25rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.contact-lead { margin-top: 1.5rem; max-width: 28rem; font-size: 1.125rem; font-weight: 500; line-height: 1.75; color: var(--foreground); }
.contact-links { margin-top: 2.25rem; display: grid; gap: 1rem; }
.contact-links a { display: flex; align-items: center; gap: 1rem; font-weight: 600; }
.contact-links a:hover { color: var(--primary); }

.ico { display: inline-block; width: 1.15rem; height: 1.15rem; flex: none; vertical-align: -.2em; color: var(--accent); }
.ico-phone.dark, .ico-mail { color: var(--primary); }

.form { border-top: 2px solid var(--primary); padding-top: 2rem; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .5rem; font-size: .875rem; font-weight: 600; }
.form-block { margin-top: 1.75rem; }
.form input, .form textarea {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 400; color: var(--foreground);
  background: transparent; border: 0; border-bottom: 1px solid var(--input);
  padding: 0; outline: none; transition: border-color .2s ease;
}
.form input { height: 3rem; }
.form textarea { resize: none; padding: .75rem 0; line-height: 1.75; }
.form input:focus, .form textarea:focus { border-color: var(--primary); }
.form input:user-invalid, .form textarea:user-invalid { border-color: oklch(0.577 0.245 27.325); }
.form-foot { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.fine { font-size: .75rem; color: var(--muted-foreground); }
.form-status { margin-top: 1rem; font-size: .875rem; font-weight: 500; color: var(--primary); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 640px) { .footer-row { flex-direction: row; align-items: center; } }
.footer-meta { font-size: .75rem; line-height: 1.5rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .footer-meta { text-align: right; } }

/* Päringuvorm — robotipüünis, olekuteated, valikuline väli */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-status.is-ok { color: #1a7f4b; }
.form-status.is-error { color: #b3261e; }
.form .opt { font-weight: 400; color: var(--muted-foreground); }
.form button[aria-busy="true"] { opacity: .7; cursor: progress; }
