/* =========================================================================
   ElectraFix-inspired tmavá téma · IT&Print
   Brand: #EF3D2C · Headings: Bebas Neue · Body: Geologica
   ========================================================================= */
:root {
  --brand: #ef3d2c;
  --brand-dark: #7d0000;
  --black: #070707;
  --bg-2: #111111;
  --bg-3: #161616;
  --text: #c9c9c9;
  --text-dim: #8a8a8a;
  --white: #ffffff;
  --stroke: #2a2a2a;
  --radius: 14px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .stat__value {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  color: var(--white);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.5px;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; letter-spacing: 1px; }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head p { color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  font-family: "Geologica", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--brand);
  margin: 0 0 1rem;
}

/* ---- Skip link / a11y ---------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Tlačidlá ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Geologica", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #ff5341; }
.btn--outline { border-color: var(--stroke); color: var(--white); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.18); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Hlavička ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 42px; width: auto; display: block; }
.site-footer .brand__logo { height: 48px; }

.primary-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.primary-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--brand);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--stroke);
}
.lang-switch svg { width: 16px; height: 16px; color: var(--text-dim); }
.lang-switch a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.15rem 0.1rem;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-active { color: var(--brand); }

.site-header__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.3rem;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 80% 0%, rgba(239, 61, 44, 0.18), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero__title span { display: block; }
.hero__text { color: var(--text-dim); max-width: 46ch; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.hero__photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); }
.hero__photo:nth-child(3n + 2) { transform: translateY(-1.2rem); }
.hero__photo img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.5s var(--ease); }
.hero__photo:hover img { transform: scale(1.06); }

/* ---- Marquee (bežiaca animovaná lišta) ---------------------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--brand);
  padding: 0.85rem 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-left: 2.5rem;
  animation: marquee 22s linear infinite;
}
.marquee--slow .marquee__track { animation-duration: 40s; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}
.marquee__item svg { width: 20px; height: 20px; opacity: 0.85; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---- Karty --------------------------------------------------------------- */
.cards { display: grid; gap: 1.2rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--brand); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(239, 61, 44, 0.12);
  color: var(--brand);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--text-dim); margin: 0; }

/* ---- Zoznam služieb (O nás) --------------------------------------------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.service-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---- Štatistiky ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-2), var(--black));
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat__value { font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--brand); }
.stat__label { color: var(--text-dim); font-size: 0.95rem; }

/* ---- CTA pás ------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(110deg, var(--brand-dark), var(--brand));
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.cta-band .btn--primary { background: #fff; color: var(--black); }
.cta-band .btn--primary:hover { background: var(--black); color: #fff; }
.cta-band .btn--outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.cta-band .btn--outline:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* ---- Hlavička vnútornej stránky ----------------------------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--stroke);
  background: radial-gradient(70% 120% at 50% 0%, rgba(239, 61, 44, 0.14), transparent 60%);
}
.page-hero__lead { color: var(--text-dim); max-width: 60ch; font-size: 1.08rem; }

/* ---- Split (O nás) ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media img { border-radius: var(--radius); border: 1px solid var(--stroke); width: 100%; }
.split__copy p { color: var(--text-dim); }
.split__copy p:first-child { color: var(--text); font-size: 1.1rem; }

/* ---- Certifikáty --------------------------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.cert {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--bg-3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.cert:hover { transform: translateY(-4px); border-color: var(--brand); }
.cert__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  background: rgba(239, 61, 44, 0.12);
  color: var(--brand);
}
.cert__badge svg { width: 30px; height: 30px; }
.cert__body { flex: 1; }
.cert__body h3 { margin: 0 0 0.2rem; }
.cert__meta { color: var(--text-dim); margin: 0; font-size: 0.9rem; }
.cert--link { text-decoration: none; color: inherit; }
.cert__view {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.cert__view svg { width: 16px; height: 16px; }

/* ---- Kontakt ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.contact-card--link:hover { transform: translateY(-6px); border-color: var(--brand); }
.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(239, 61, 44, 0.12);
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card__label { color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
.contact-card__value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  word-break: break-word;
}
.contact-card__value svg { width: 20px; height: 20px; color: var(--brand); }

/* ---- Pätička ------------------------------------------------------------- */
.site-footer { background: var(--black); border-top: 1px solid var(--stroke); padding-top: 3.5rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer__brand p { color: var(--text-dim); max-width: 40ch; margin: 1rem 0 1.2rem; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  color: var(--text);
  transition: 0.2s;
}
.footer-social:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.footer-social svg { width: 20px; height: 20px; }
.site-footer__col h3 { font-family: "Geologica", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--white); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a, .footer-contact a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-contact span { color: var(--text-dim); }

.site-footer__marquee { margin-top: 1rem; opacity: 0.07; }
.site-footer__marquee .marquee { background: none; border: 0; padding: 0; }
.site-footer__marquee .marquee__item { color: #fff; font-size: 4rem; }
.site-footer__marquee .marquee__item svg { width: 48px; height: 48px; }

.site-footer__bottom { border-top: 1px solid var(--stroke); padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; justify-content: space-between; }
.site-footer__bottom p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; }
.footer-legal a,
.footer-cookies {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--text-dim); font: inherit; font-size: 0.88rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-cookies:hover { color: var(--white); }

/* ---- Právne stránky (Ochrana osobných údajov) --------------------------- */
.legal { max-width: 820px; }
.legal-updated { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 2rem; }
.legal-block { margin-bottom: 2.4rem; }
.legal-block h2 { margin: 0 0 0.8rem; }
.legal-block p { margin: 0 0 0.9rem; line-height: 1.7; }
.legal-list { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.legal-list li { margin-bottom: 0.5rem; line-height: 1.6; }
.legal-card {
  background: var(--bg-2); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 0 0 1rem; line-height: 1.9;
}
.legal-card a { color: var(--brand); }

/* ---- Prechody medzi stránkami (View Transitions, SPA pocit) -------------- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 0.22s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.32s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
}
/* Hlavička a pätička sa pri prechode nehýbu (sú na každej stránke rovnaké) */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* ---- Scroll-reveal animácia --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responzívne --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner, .split { grid-template-columns: 1fr; }
  .cards--3, .cards--2, .cert-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2rem; }
  .hero__photo:nth-child(3n + 2) { transform: none; }

  .nav-toggle { display: block; }
  .site-header__cta { display: none; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--stroke);
    padding: 1.5rem 1.25rem 2rem;
    margin: 0;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 1rem; width: 100%; }
  .primary-nav a { font-size: 1.2rem; }
  .lang-switch { padding-left: 0; border-left: 0; border-top: 1px solid var(--stroke); padding-top: 1.2rem; width: 100%; }
}

/* ---- Rešpektuj redukciu pohybu ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Cookie súhlas (vanilla-cookieconsent) – zladenie s tmavou témou ----- */
#cc-main {
  --cc-font-family: inherit;
  --cc-bg: var(--bg-2);
  --cc-primary-color: var(--white);
  --cc-secondary-color: var(--text-dim);
  --cc-link-color: var(--brand);
  --cc-btn-primary-bg: var(--brand);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: var(--brand);
  --cc-btn-primary-hover-bg: #ff5341;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: #ff5341;
  --cc-btn-secondary-bg: var(--bg-3);
  --cc-btn-secondary-color: var(--text);
  --cc-btn-secondary-border-color: var(--stroke);
  --cc-btn-secondary-hover-bg: #222222;
  --cc-btn-secondary-hover-color: var(--white);
  --cc-btn-secondary-hover-border-color: var(--stroke);
  --cc-separator-border-color: var(--stroke);
  --cc-toggle-on-bg: var(--brand);
  --cc-toggle-readonly-bg: #3a3a3a;
  --cc-cookie-category-block-bg: var(--bg-3);
  --cc-cookie-category-block-border: var(--stroke);
  --cc-cookie-category-block-hover-bg: #1c1c1c;
  --cc-cookie-category-block-hover-border: var(--stroke);
  --cc-cookie-category-expanded-block-bg: var(--black);
  --cc-overlay-bg: rgba(0, 0, 0, 0.7);
  --cc-modal-border-radius: var(--radius);
  --cc-btn-border-radius: 10px;
}
