/* Valvetehnika OÜ — site styles v2 */
:root {
  --ink: #0f1b2d;          /* main dark navy */
  --ink-2: #1d2f4a;
  --text: #1f2933;
  --muted: #5b6776;
  --line: #e3e1dc;
  --bg: #f6f5f2;           /* warm off-white */
  --card: #ffffff;
  --accent: #e39b2d;       /* amber, like a status LED */
  --accent-ink: #1a1204;
  --accent-hover: #f0ad45;
  --wa: #25d366;
  --radius: 14px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Manrope", "Inter", sans-serif; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 12px; }

/* placeholders to fill before go-live */
.todo { background: #fff3c4; color: #6b4e00; border-radius: 4px; padding: 0 4px; font-style: normal; }

/* ===== buttons ===== */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 700 16px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 10px; border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wa { background: var(--wa); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font: 800 17px/1.1 "Manrope", sans-serif; letter-spacing: .02em; }
.brand-name small { display: block; font: 500 11px/1.3 "Inter", sans-serif; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: #efede8; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-phone { text-decoration: none; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.lang a { text-decoration: none; color: var(--muted); padding: 6px 7px; border-radius: 6px; }
.lang a.on { color: var(--ink); background: #efede8; }
.header-right .btn { padding: 11px 16px; font-size: 15px; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }
.mobile-menu { display: none; }

/* ===== hero ===== */
.hero { position: relative; color: #fff; background-color: var(--ink); background-position: center 30%; background-size: cover; background-repeat: no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,19,33,.92) 0%, rgba(10,19,33,.75) 45%, rgba(10,19,33,.25) 100%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; max-width: 680px; }
.hero p { font-size: 19px; max-width: 560px; margin-top: 18px; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero.small .wrap { padding-top: 72px; padding-bottom: 72px; }

/* ===== trust strip ===== */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust li { display: flex; gap: 12px; align-items: center; padding: 22px 18px; font-weight: 600; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.trust li + li { border-left: 1px solid var(--line); }
.trust svg { width: 28px; height: 28px; flex: none; color: var(--accent); }

/* ===== sections ===== */
section.block { padding: 84px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { margin-bottom: 36px; }

/* services */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 16px 32px rgba(15,27,45,.1); }
.svc-img { aspect-ratio: 4/3; background: #d9dde3 center/cover no-repeat; }
.svc-icon { aspect-ratio: 4/3; background: var(--ink); display: grid; place-items: center; color: var(--accent); }
.svc-icon svg { width: 56px; height: 56px; }
.svc-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-body p { color: var(--muted); font-size: 15px; }
.svc-more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.svc-more::after { content: " →"; color: var(--accent); }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 15px/34px "Manrope", sans-serif; text-align: center; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why > div { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.why h3 { display: flex; gap: 10px; align-items: center; }
.why h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.why p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* features list (video page) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.features p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project .ph { aspect-ratio: 16/10; background: repeating-linear-gradient(45deg, #eceae4 0 12px, #e4e1da 12px 24px); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.project div.t { padding: 18px 20px; }
.project p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* price table */
.prices { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { background: #efede8; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prices td:last-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.prices tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231a1204' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* faq */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* contact / form */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.75); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-direct a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.contact-direct svg { width: 22px; height: 22px; color: var(--accent); }
.form { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { font: 400 16px "Inter", sans-serif; padding: 12px 14px; border: 1px solid #cfd4db; border-radius: 9px; background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { min-height: 96px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }
.form-msg { grid-column: 1 / -1; font-size: 15px; display: none; padding: 12px 14px; border-radius: 9px; }
.form-msg.ok { display: block; background: #e6f6ec; color: #145a32; }
.form-msg.err { display: block; background: #fdecea; color: #8a1c13; }
.form small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* footer */
.site-footer { background: #0a1321; color: rgba(255,255,255,.7); font-size: 15px; padding: 48px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-name small { color: rgba(255,255,255,.55); }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 13px; }

/* floating WhatsApp (desktop) + bottom bar (mobile) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.wa-float svg { width: 30px; height: 30px; }
.mbar { display: none; }

/* ===== responsive ===== */
@media (max-width: 1220px) {
  .nav { display: none; }
  .header-right .lang, .header-right .btn { display: none; }
  .burger { display: block; margin-left: 4px; }
  .header-right { gap: 6px; }
  .mobile-menu.open { display: block; position: fixed; inset: 72px 0 0 0; background: #fff; z-index: 49; padding: 12px 20px 24px; overflow-y: auto; }
  .mobile-menu a { display: block; text-decoration: none; font-weight: 700; font-size: 19px; color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .mobile-menu .lang { margin-top: 18px; font-size: 16px; }
  .mobile-menu .lang a { border: 1px solid var(--line); padding: 8px 14px; font-size: 15px; }
  .mobile-menu .btn { margin-top: 20px; width: 100%; border-bottom: 0; color: var(--accent-ink); }
  .services { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-row { height: 64px; }
  .mobile-menu.open { inset: 64px 0 0 0; }
  .header-phone { display: none; }
  .brand-name small { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(10,19,33,.55) 0%, rgba(10,19,33,.9) 70%); }
  .hero .wrap { padding-top: 120px; padding-bottom: 48px; }
  .hero.small .wrap { padding-top: 90px; padding-bottom: 40px; }
  .hero p { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trust ul { grid-template-columns: 1fr; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
  .trust li { padding: 14px 4px; font-size: 15px; }
  .trust svg { width: 22px; height: 22px; }
  section.block { padding: 56px 0; }
  .services, .steps, .why, .projects, .features { grid-template-columns: 1fr; }
  .svc { flex-direction: row; }
  .svc-img, .svc-icon { aspect-ratio: auto; width: 110px; flex: none; }
  .svc-icon svg { width: 40px; height: 40px; }
  .svc-body { padding: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .checks { grid-template-columns: 1fr; }
  .prices th:nth-child(2), .prices td:nth-child(2) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mbar .btn { padding: 13px 10px; }
  .mbar .btn-call { background: var(--ink); color: #fff; }
}
section[id] { scroll-margin-top: 80px; }

/* header wordmark: name + domain at equal width */
.site-header .brand-name { display: flex; flex-direction: column; }
.brand-words { width: 150px; height: 56px; display: block; overflow: visible; }
.site-header .brand-mark { width: 44px; height: 44px; }
.brand-words .bw3 { font: 500 10px "Inter", sans-serif; fill: var(--muted); }
.brand-words .bw1 { font: 800 17px "Manrope", "Inter", sans-serif; fill: var(--ink); }
.brand-words .bw2 { font: 600 15px "Inter", sans-serif; fill: var(--accent); }
.site-header .header-row { height: 78px; }
@media (max-width: 1220px) { .mobile-menu.open { inset: 78px 0 0 0; } }
@media (max-width: 760px) { .site-header .header-row { height: 64px; } .mobile-menu.open { inset: 64px 0 0 0; } .brand-words { width: 120px; height: 45px; } }

.site-footer .brand-mark { width: 44px; height: 44px; }
.site-footer .brand-words .bw1 { fill: #fff; }
.site-footer .brand-words .bw3 { fill: rgba(255,255,255,.6); }
.mobile-menu.open { z-index: 60; box-shadow: 0 12px 24px rgba(15,27,45,.12); }
.mobile-menu .btn { display: flex; }
