/* Kristeni Kütused — onepager v2 */
:root {
  --bg: #f2f2f3;
  --surface: #e9e9ea;
  --text: #1d1f20;
  --divider: rgba(29, 31, 32, 0.16);
  --n200: #e7e7ea; --n300: #d4d4d7; --n400: #b7b7ba; --n600: #7a7a7d; --n700: #5d5d60; --n800: #424244; --n900: #2b2b2d;
  --red: #D20A0A; --red-600: #b80909; --red-700: #a80808; --red-800: #7a0b08;
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: 112px;
  --r-card: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: var(--red-700); text-underline-offset: 3px; }
a:hover { color: var(--red-800); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.015em; margin: 0; text-transform: uppercase; }
p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: rgba(210, 10, 10, 0.25); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--divider); background: transparent; color: var(--text); transition: background .15s ease; }
.btn svg { display: block; flex: none; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn--primary:active { background: var(--red-700); }
.btn--ghost { border-color: transparent; padding: 6px 0; color: var(--red-700); font-size: 17px; }
.btn--ghost:hover { color: var(--red-800); background: transparent; }
.btn--outline-light { color: var(--bg); border-color: rgba(242, 242, 243, 0.4); }
.btn--outline-light:hover { background: rgba(242, 242, 243, 0.12); color: var(--bg); }
.btn--block { width: 100%; }
.btn--sm { font-size: 16px; padding: 10px 16px; min-height: 44px; gap: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242, 242, 243, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; flex: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; gap: 26px; }
.main-nav a, .footer-nav a { text-decoration: none; color: var(--text); font-family: var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav a:hover, .footer-nav a:hover { color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--divider); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.nav-toggle:hover { background: rgba(29, 31, 32, 0.07); }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--divider); flex-direction: column; padding: 4px var(--gutter) 12px; }
.mobile-nav a { text-decoration: none; color: var(--text); font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.mobile-nav a:last-child { border-bottom: 0; }
.site-header.is-open .mobile-nav { display: flex; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--divider); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; filter: saturate(0.95) contrast(1.02); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242,242,243,0.92) 0%, rgba(242,242,243,0.72) 42%, rgba(242,242,243,0) 72%); }
.hero-inner { position: relative; min-height: 620px; display: flex; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 640px; }
.eyebrow { font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-700); margin-bottom: 18px; }
.hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
.hero h1 span { color: var(--red); }
.hero-lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--n800); max-width: 500px; margin-bottom: 32px; text-wrap: pretty; }

/* Sections */
.section { padding-top: var(--section); scroll-margin-top: 72px; }
.section-bar { display: flex; gap: 16px; border-top: 1px solid var(--text); padding-top: 12px; margin-bottom: 40px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { border: 1px solid var(--divider); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: background .15s ease; }
.tile:hover { background: var(--surface); }
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tile-head img { width: 60px; height: 60px; }
.tile-num { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--n600); }
.tile-title { font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.tile p { font-size: 15.5px; color: var(--n800); }

/* Ostame (dark band) */
.section--dark { margin-top: var(--section); padding-top: 0; background: var(--n900); color: var(--bg); }
.section--dark > .wrap { padding-top: var(--section); padding-bottom: var(--section); }
.section--dark .section-bar { border-top-color: var(--bg); }
.section--dark .section-title { color: var(--bg); }
.section--dark .tile { border-color: rgba(242, 242, 243, 0.22); }
.section--dark .tile:hover { background: transparent; }
.section--dark .tile-head { margin-bottom: 10px; }
.section--dark .tile-head img { width: 56px; height: 56px; }
.section--dark .tile-num { color: var(--n400); }
.section--dark .tile-title { font-size: 24px; }
.buy-note { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.buy-note p { font-size: 18px; font-weight: 500; max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Teenused */
.services { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.service { border: 1px solid var(--divider); border-radius: var(--r-card); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.service--main { border-color: var(--red); }
.service-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.service-head img { width: 80px; height: 80px; }
.service .tile-num { align-self: flex-end; }
.service-head .tile-num { align-self: auto; }
.service h3 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.02; }
.service--secondary h3 { font-size: clamp(28px, 2.8vw, 36px); }
.service p { font-size: 17px; color: var(--n800); max-width: 540px; text-wrap: pretty; }
.service--secondary p { font-size: 16px; }
.service .btn { margin-top: auto; align-self: flex-start; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); font-size: 15.5px; }
.specs li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.specs span { flex: none; width: 130px; color: var(--n700); }

/* Firmast */
.about h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; text-wrap: balance; }
.about-text { font-size: 17px; color: var(--n800); margin-bottom: 28px; text-wrap: pretty; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--divider); font-weight: 500; }
.checklist svg { flex: none; }

/* Kontakt */
.section--contact { padding-bottom: var(--section); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.contact-info h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; margin-bottom: 14px; }
.contact-lede { font-size: 17px; color: var(--n800); margin-bottom: 28px; }
.contact-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.contact-table td { padding: 14px 0; border-bottom: 1px solid rgba(29, 31, 32, 0.08); vertical-align: top; }
.contact-table td:first-child { width: 96px; color: var(--n700); font-size: 14px; }
.contact-table td:last-child { font-weight: 700; overflow-wrap: anywhere; }
.contact-table a { text-decoration: none; color: var(--text); }
.contact-table a:hover { color: var(--red); }
.company-meta { margin: 16px 0 32px; color: var(--n700); font-size: 14px; }
.contact-map { margin: auto 0 0; border: 1px solid var(--divider); border-radius: var(--r-card); overflow: hidden; }
.contact-map iframe { width: 100%; height: 240px; border: 0; display: block; }

.form-card { border: 1px solid var(--divider); border-radius: var(--r-card); padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form-title { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.form-card form { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 5px; color: rgba(29, 31, 32, 0.7); }
.field--grow { flex: 1; display: flex; flex-direction: column; }
.input { width: 100%; min-height: 48px; padding: 6px 18px; font: inherit; font-size: 16px; color: var(--text); caret-color: var(--red);
  background: var(--surface); border: 1px solid var(--divider); border-radius: 999px; }
.input:hover { border-color: rgba(29, 31, 32, 0.45); }
.input:focus-visible { border-color: var(--red); outline-offset: 0; }
textarea.input { flex: 1; min-height: 150px; border-radius: 20px; padding: 12px 14px; resize: vertical; }
.form-card .btn--block { margin-top: 6px; padding: 16px 24px; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 18px; border-radius: 16px; font-weight: 500; }
.form-notice--success { background: #e6f2e6; color: #1f5a24; border: 1px solid #b9d9bb; }
.form-notice--error { background: #fff0ee; color: var(--red-800); border: 1px solid #ffbdb4; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); }
.footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14.5px; color: var(--n700); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { font-size: 15px; }

/* Responsive */
@media (max-width: 1100px) {
  .header-phone .text { display: none; }
}
@media (max-width: 900px) {
  .split, .services, .contact-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 680px; align-items: flex-start; }
  .hero-scrim { background: linear-gradient(180deg, rgba(242,242,243,0.92) 0%, rgba(242,242,243,0.82) 50%, rgba(242,242,243,0) 78%); }
}
@media (max-width: 720px) {
  :root { --section: 64px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 32px; }
  .header-inner { gap: 12px; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; min-height: 640px; }
  .grid--3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
