/* =====================================================
   Spectio — prototyp webu
   Paleta a typografia podľa brand manuálu (Júl 2026)
   ===================================================== */

:root {
  --teal: #0F6E56;
  --teal-2: #1D9E75;
  --mint: #9FE1CB;
  --mint-pale: #E1F5EE;
  --ink: #2C2C2A;
  --paper: #F1EFE8;
  --white: #FFFFFF;
  --muted: #6E6C66;
  --line: rgba(44, 44, 42, 0.12);

  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(44, 44, 42, 0.04), 0 12px 32px rgba(44, 44, 42, 0.07);
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typografia ---------- */

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.lead {
  font-size: 1.11rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

/* Svetelná linka — podpis identity: tenký pruh svetla */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  box-shadow: 0 0 10px rgba(29, 158, 117, 0.55);
}

.num { color: var(--teal); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 0.98rem/1 var(--font);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #0C5A46; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-light { background: var(--white); color: var(--teal); }
.btn-light:hover { background: var(--mint-pale); }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.13rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
}
.nav-links a:hover { text-decoration: none; background: var(--mint-pale); color: var(--teal); }
.nav-links a[aria-current="page"] { background: var(--mint-pale); color: var(--teal); font-weight: 500; }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Sekcie ---------- */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .lead { margin-top: 12px; }

.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 84px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.hero-copy .lead { margin: 20px 0 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-trust {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-trust b { display: block; font-weight: 500; color: var(--ink); font-size: 1.02rem; }
.hero-trust b .num { font-size: inherit; }

/* Výklad — foto v ráme so svetelným pásom */
.storefront {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.storefront img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.storefront::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.storefront .strip {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--teal-2), var(--mint), var(--teal-2));
  box-shadow: 0 2px 18px 2px rgba(159, 225, 203, 0.65);
}
.storefront figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(44, 44, 42, 0.72);
  color: var(--mint-pale);
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

/* ---------- Karty produktov ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(44, 44, 42, 0.05), 0 18px 44px rgba(44, 44, 42, 0.11);
}

.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mint-pale); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media svg { width: 100%; height: 100%; }

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.08rem; }
.card-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }

.card-link { font-size: 0.92rem; font-weight: 500; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }

.card-tag {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--mint-pale);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 4px;
}

/* ---------- Kroky (ako to funguje) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal-2);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Tmavá sekcia ---------- */

.dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
/* jemný LED raster v pozadí */
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(159, 225, 203, 0.13) 1px, transparent 1.6px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dark > .wrap { position: relative; }
.dark .eyebrow { color: var(--mint); }
.dark .lead { color: rgba(241, 239, 232, 0.72); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--mint);
  text-shadow: 0 0 22px rgba(159, 225, 203, 0.45);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat span { display: block; margin-top: 6px; font-size: 0.9rem; color: rgba(241, 239, 232, 0.66); }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  align-items: center;
}
.logo-strip span {
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(241, 239, 232, 0.5);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  padding: 6px 2px;
}
.logo-strip span:hover { color: var(--mint); text-shadow: 0 0 18px rgba(159, 225, 203, 0.6); }

.footnote { font-size: 0.84rem; color: var(--muted); }
.dark .footnote { color: rgba(241, 239, 232, 0.45); }

/* ---------- Produktové bloky (detail) ---------- */

.product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
  align-items: center;
  padding: 62px 0;
  border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; }
.product.flip .product-media { order: 2; }

.product-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.product-media img, .product-media svg { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; }

.product-copy h2 { margin-bottom: 12px; }
.product-copy > p { color: var(--muted); margin-bottom: 20px; max-width: 30em; }

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 24px;
}
.spec th, .spec td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 16px; }
.spec td { font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font-size: 0.82rem;
  color: var(--teal);
  background: var(--mint-pale);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Feature grid (prečo my) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal);
}
.feature h3 { font-size: 1.05rem; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Porovnávacia tabuľka ---------- */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 500; background: var(--mint-pale); }
.compare thead th:nth-child(3) { background: var(--teal); color: var(--white); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 400; color: var(--muted); width: 30%; }
.compare td:nth-child(3) { font-weight: 500; }
.compare-scroll { overflow-x: auto; }

/* ---------- Galéria (referencie) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(44, 44, 42, 0.82));
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
}
.gallery figcaption small { display: block; font-weight: 400; color: rgba(241, 239, 232, 0.72); font-size: 0.8rem; }

/* ---------- CTA pás ---------- */

.cta-band {
  background: var(--teal);
  border-radius: var(--radius);
  color: var(--white);
  padding: 52px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(159, 225, 203, 0.22) 1px, transparent 1.6px);
  background-size: 20px 20px;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 32em; }

/* ---------- Formulár ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.field label small { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 0.97rem/1.4 var(--font);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-2);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.16);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.86rem; color: var(--muted); }

.form-success {
  display: none;
  background: var(--mint-pale);
  border: 1px solid var(--mint);
  color: var(--teal);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

.form-success#rfq-error {
  background: #FBEDEA;
  border-color: #D96C57;
  color: #A3402E;
}

/* ---------- Kontaktné boxy ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: start;
}

.contact-side { display: grid; gap: 18px; }
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.info-box h3 { font-size: 1rem; margin-bottom: 10px; }
.info-box p { font-size: 0.94rem; color: var(--muted); }
.info-box p + p { margin-top: 6px; }
.info-box.accent { background: var(--mint-pale); box-shadow: none; }
.info-box.accent p { color: var(--ink); }

/* ---------- Pätička ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(241, 239, 232, 0.72);
  padding: 56px 0 28px;
  margin-top: 84px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(241, 239, 232, 0.14);
}
.site-footer .brand { color: var(--paper); margin-bottom: 14px; }
.site-footer h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(241, 239, 232, 0.72); }
.site-footer a:hover { color: var(--mint); }
.footer-meta {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(241, 239, 232, 0.45);
}

/* Skrytie watermarku výrobcu na prevzatej fotke — jemný zoom mimo záberu */
.crop-watermark { transform: scale(1.2); transform-origin: 30% 85%; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responzivita ---------- */

@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .product.flip .product-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .cards, .features, .gallery, .form-grid, .steps { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .cta-band { padding: 36px 26px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    box-shadow: 0 24px 40px rgba(44, 44, 42, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
}
