/* ===========================================================
   Kvepia Dažais — dark industrial theme
   Warm near-blacks, safety-orange accent.
   =========================================================== */

:root {
  --bg:        #0f0e0d;
  --bg-2:      #151312;
  --surface:   #1b1917;
  --surface-2: #232120;
  --surface-3: #2c2926;
  --border:    rgba(255, 255, 255, 0.075);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:   #f4f0ea;
  --text-2: #aaa49a;
  --text-3: #6f6961;

  --accent:      #ff6a1a;
  --accent-2:    #ff8a44;
  --accent-ink:  #16110c;
  --accent-soft: rgba(255, 106, 26, 0.14);
  --accent-line: rgba(255, 106, 26, 0.35);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw:     1240px;
  --gutter:   clamp(20px, 5vw, 64px);
  --radius:   14px;
  --radius-lg:22px;

  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -30px rgba(0,0,0,0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 5vw, 50px); }
.section-head p {
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
  margin-top: 18px;
  max-width: 60ch;
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--accent);
  --b-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  background: var(--b-bg);
  color: var(--b-fg);
  border: 1.5px solid var(--b-bg);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost {
  --b-bg: transparent;
  --b-fg: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 30px; font-size: 16.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  transition: gap .2s ease, color .2s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent); gap: 13px; }

/* =========================================================
   TOP BAR + HEADER
   ========================================================= */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 18px;
}
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.topbar a:hover { color: var(--text); }
.topbar .topbar-contact { display: flex; gap: 22px; }
.topbar .topbar-loc { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.topbar svg { width: 14px; height: 14px; color: var(--accent); }
@media (max-width: 720px) {
  .topbar .topbar-loc { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .topbar-contact { gap: 18px; font-size: 12.5px; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, padding .25s ease;
}
.header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
  transition: min-height .25s ease;
}
.header.scrolled .wrap { min-height: 64px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-text span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) 40px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
}
.drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-close {
  width: 46px; height: 46px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--text);
}
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav { display: flex; flex-direction: column; margin-top: 28px; }
.drawer nav a {
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer nav a span { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.drawer .drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 30px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 60px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .hl { color: var(--accent); }
.hero-sub {
  color: var(--text-2);
  font-size: clamp(17px, 2.2vw, 21px);
  margin-top: 24px;
  max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.stat b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.stat span {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 8px;
  display: block;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}

.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  border-radius: 13px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 600;
}
.dot-pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #37c871;
  box-shadow: 0 0 0 0 rgba(55,200,113,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(55,200,113,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(55,200,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,200,113,0); }
}

/* trust strip */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 40px);
  justify-content: space-between;
  padding-block: 22px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 11; order: -1; }
  .hero-stats { flex-wrap: wrap; gap: 26px 36px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--border-2); }

.svc-main { grid-column: span 7; display: flex; flex-direction: column; }
.svc-main .svc-media { aspect-ratio: 16/9; }
.svc-side { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.svc-side .card { flex: 1; }

.svc-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; height: 100%; }
.svc-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.svc-body h3 { font-size: clamp(21px, 3vw, 30px); }
.svc-body > p { color: var(--text-2); margin-top: 13px; font-size: 16px; }
.svc-feats {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.svc-feats li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
}
.svc-body .link-arrow { margin-top: auto; padding-top: 24px; }

.svc-side .card { flex-direction: row; align-items: stretch; }
.svc-side .svc-mini-media { width: 38%; min-width: 120px; }
.svc-side .svc-body { padding: 22px; }
.svc-side h3 { font-size: 20px; }
.svc-side p { font-size: 14.5px; }

.spider-pill { display: inline-flex; gap: 14px; margin-top: 14px; }
.spider-pill .mini-stat b { font-family: var(--font-display); font-weight: 800; font-size: 22px; display:block; line-height: 1; }
.spider-pill .mini-stat span { font-size: 12px; color: var(--text-3); }

@media (max-width: 900px) {
  .svc-main, .svc-side { grid-column: 1 / -1; }
  .svc-side { gap: 18px; }
}
@media (max-width: 540px) {
  .svc-side .card { flex-direction: column; }
  .svc-side .svc-mini-media { width: 100%; aspect-ratio: 16/9; }
}

/* =========================================================
   WHY US
   ========================================================= */
.why { background: var(--bg-2); border-block: 1px solid var(--border); }
.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
}
.compare .compare-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compare h3 { font-size: 19px; margin: 10px 0 22px; }
.bar-row { margin-bottom: 18px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.bar-row .bar-label b { color: var(--text); font-weight: 700; }
.bar-track { height: 14px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; transform-origin: left; }
.bar-fill.manual { width: 100%; background: var(--surface-3); border: 1px solid var(--border-2); }
.bar-fill.mech { width: 25%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.compare .compare-out {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.compare .compare-out b { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--accent); }
.compare .compare-out span { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; }

.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feat-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feat-icon svg { width: 21px; height: 21px; }
.feat h4 { font-size: 17px; font-weight: 700; }
.feat p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }

@media (max-width: 900px) { .why-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-cards { grid-template-columns: 1fr; } }

/* =========================================================
   SPIDER section
   ========================================================= */
.spider { position: relative; overflow: hidden; }
.spider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.spider h2 { font-size: clamp(30px, 5vw, 52px); }
.spider .spider-copy p { color: var(--text-2); font-size: 18px; margin-top: 20px; max-width: 46ch; }
.spider-stats { display: flex; gap: 16px; margin: 32px 0; flex-wrap: wrap; }
.spider-stat {
  flex: 1;
  min-width: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: left;
}
.spider-stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 38px); color: var(--accent); display:block; line-height: 1; letter-spacing: -0.03em; }
.spider-stat span { font-size: 13px; color: var(--text-2); margin-top: 9px; display: block; }
.spider-media { aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

@media (max-width: 860px) {
  .spider-grid { grid-template-columns: 1fr; }
  .spider-media { aspect-ratio: 16/11; }
}

/* =========================================================
   PROCESS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.step .step-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.step .step-no::after { content:""; flex:1; height:1px; background: var(--border); width: 40px; }
.step h4 { font-size: 18px; font-weight: 700; }
.step p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; }

@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
}
.project {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  display: block;
}
.project .project-media { aspect-ratio: 4/3; }
.project .project-meta {
  padding: 20px 22px 24px;
  background: var(--surface);
}
.project .project-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.project h4 { font-size: 18px; font-weight: 700; margin-top: 10px; }
.project:hover .project-arrow { transform: translate(3px,-3px); }
.project-arrow {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  color: var(--text);
  transition: transform .25s ease;
}
.project-arrow svg { width: 18px; height: 18px; }

@media (max-width: 860px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .projects-grid { grid-template-columns: 1fr; } }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.tst { background: var(--bg-2); border-block: 1px solid var(--border); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; margin-bottom: 16px; }
.tst-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 500; }
.tst-who { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
}
.tst-who b { display: block; font-size: 15px; font-weight: 700; }
.tst-who span { font-size: 13px; color: var(--text-2); }

@media (max-width: 860px) { .tst-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA + FORM
   ========================================================= */
.cta { position: relative; }
.cta-card {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta-card h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-card .cta-copy > p { color: var(--text-2); font-size: 17px; margin-top: 16px; max-width: 44ch; }
.cta-phone {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cta-phone .phone-ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cta-phone .phone-ic svg { width: 22px; height: 22px; }
.cta-phone a { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.cta-phone span { display: block; font-size: 13px; color: var(--text-2); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }

/* form */
.form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 11px;
  padding: 14px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.field .err { font-size: 12px; color: #ff7a7e; display: none; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .form-note { font-size: 12.5px; color: var(--text-3); }
.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* hide WP nonce field visually */
#kvepia_nonce { display: none; }

@media (max-width: 820px) { .cta-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 80px) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
}
.footer-brand p { color: var(--text-2); font-size: 14.5px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--text-2); font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--border);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom .footer-legal { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   MOBILE STICKY CTA BAR
   ========================================================= */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 11px var(--gutter) calc(11px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.mobile-bar.show { transform: translateY(0); }
.mobile-bar .btn { flex: 1; }
@media (max-width: 700px) { .mobile-bar { display: flex; } body { padding-bottom: 76px; } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   IMAGE HELPERS
   ========================================================= */
.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media .media-img { object-position: 62% 50%; }

.media-product {
  width: 100%;
  height: 100%;
  background: radial-gradient(120% 120% at 50% 30%, #f4f3f1 0%, #e4e3e1 100%);
  display: grid;
  place-items: center;
  padding: 8%;
}
.media-product img { width: 100%; height: 100%; object-fit: contain; }

.media-shade { position: relative; }
.media-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,14,13,0.45) 0%, rgba(15,14,13,0) 42%);
  pointer-events: none;
}

.footer-logo {
  width: 110px;
  height: auto;
  opacity: 0.92;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
  display: block;
}

/* =========================================================
   WORDPRESS ADMIN BAR OFFSET
   ========================================================= */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
