/* =====================================================
   ROMAN SABOL — Autodetailing
   Paleta: jeho modrá + biela + čierna (z pôvodného webu)
   Typo: Space Grotesk (display) + Inter (telo)
   ===================================================== */

:root {
  color-scheme: light only;

  --white: #ffffff;
  --paper: #f3f6fc;        /* jemne modrastá biela */
  --ink:   #0a0f1c;        /* takmer čierna s modrým nádychom */
  --ink-2: #5a6478;        /* sekundárny text */
  --line:  #e4e9f2;

  --navy:  #07142e;        /* cinematic tmavomodrá */
  --navy-2:#0d2150;
  --blue:  #1d4ed8;        /* hlavná modrá (moderná verzia jeho #36c) */
  --blue-bright: #3b82f6;  /* hover / akcent */
  --sky:   #cfe0ff;        /* svetlomodrá */

  --r: 16px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --shadow: 0 20px 60px -20px rgba(7,20,46,0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, dl { list-style: none; }

::selection { background: var(--blue); color: #fff; }

/* Subtle, modern scrollbar */
* { scrollbar-width: thin; scrollbar-color: #c3cee2 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #c3cee2; border-radius: 10px; border: 3px solid #fff; }
*::-webkit-scrollbar-thumb:hover { background: #9fb0d0; }

/* Accessible focus rings */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Photos fade in once loaded */
.show-card img, .ba-img { opacity: 0; transition: opacity 0.6s var(--ease); }
.show-card img.loaded, .ba-img.loaded { opacity: 1; }
/* Subtle clarity boost to mask soft source photos */
.ba-img, .show-card img { filter: contrast(1.04) saturate(1.06); }

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.accent { color: var(--blue); }
.accent-light { color: var(--sky); }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: none;
}
.eyebrow-light { color: var(--sky); }
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.15);
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 30px -10px rgba(7,20,46,0.12); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.brand-rs {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--blue); color: #fff;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
}
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 17px; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper); }

.nav-phone {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: var(--ink); color: #fff !important;
  border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-phone:hover { background: var(--blue); transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.burger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: #fff; padding: 16px 28px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-phone { display: none; }
  .burger { display: flex; }
}

/* ============ HERO ============ */
.hero { padding: 64px 0 96px; }
@media (max-width: 700px) { .hero { padding: 36px 0 64px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-left { text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero .eyebrow { justify-content: center; display: inline-flex; }
}

.hero .eyebrow { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(40px, 6.4vw, 82px);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 480px; margin-bottom: 34px;
}
@media (max-width: 940px) { .hero-sub { margin-left: auto; margin-right: auto; } }
.hero-actions {
  display: flex; align-items: center;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 30px;
  letter-spacing: -0.02em; color: var(--ink);
}
.hero-stats dd { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: inherit; font-weight: 600; font-size: 15.5px;
  cursor: pointer; border: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-blue {
  padding: 15px 26px; border-radius: 100px;
  background: var(--blue); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(29,78,216,0.6);
}
.btn-blue strong { font-weight: 700; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.3); }
.btn-blue:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(29,78,216,0.7); }
.btn-text { color: var(--ink); padding: 15px 6px; position: relative; }
.btn-text::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.btn-text:hover::after { transform: scaleX(1); }

/* ============ BEFORE / AFTER SLIDER ============ */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;        /* zhoda s pomerom zdrojovej fotky → bez orezu */
  border-radius: var(--r);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #0a0f1c;
  box-shadow: var(--shadow);
  /* jemný modrý rámik pre prémiový pocit */
  outline: 1px solid rgba(29,78,216,0.18);
  outline-offset: 0;
}

.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ba-after-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.12s linear;
  overflow: hidden;
}
.ba-after-wrap.dragging { transition: none; }

.ba-tag {
  position: absolute; top: 18px; z-index: 4;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 12px; letter-spacing: 0.14em;
  padding: 7px 13px; border-radius: 100px;
  color: #fff; backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-tag-l { left: 18px; background: rgba(10,15,28,0.55); }
.ba-tag-r { right: 18px; background: var(--blue); }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; z-index: 5;
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(0,0,0,0.45);
  pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--blue);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.ba figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 32px 20px 16px;
  background: linear-gradient(0deg, rgba(7,20,46,0.8), transparent);
  color: #fff; font-size: 13.5px; text-align: center;
  pointer-events: none;
}

/* ============ SHOWCASE (dark) ============ */
.showcase {
  background: var(--navy);
  color: #fff;
  padding: 110px 0;
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(29,78,216,0.25), transparent 70%);
}
.showcase-head { max-width: 720px; margin-bottom: 56px; }
.showcase-head .eyebrow { margin-bottom: 20px; }
.showcase h2 { font-size: clamp(32px, 5vw, 58px); margin-bottom: 22px; }
.showcase-lead { color: #9fb0d0; font-size: 17px; max-width: 540px; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.show-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #0a1530;
}
.show-card-big { grid-column: span 3; }
.show-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.show-card:hover img { transform: scale(1.06); }
.show-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(0deg, rgba(7,20,46,0.9), transparent);
  font-size: 14px; font-weight: 500;
  transform: translateY(8px); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.show-card:hover figcaption { transform: translateY(0); opacity: 1; }

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .show-card, .show-card-big { grid-column: span 1; }
}
@media (max-width: 540px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase { padding: 76px 0; }
}

/* ============ SLUŽBY ============ */
.services { padding: 110px 0; }
.sec-head { margin-bottom: 52px; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 56px); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.svc:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow); }
.svc-feat {
  background: var(--navy);
  color: #fff; border-color: transparent;
  background-image: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(59,130,246,0.35), transparent 70%);
}
.svc-feat p { color: #aebfde; }
.svc-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--paper); color: var(--blue);
  margin-bottom: 22px;
}
.svc-feat .svc-ic { background: rgba(255,255,255,0.1); color: #fff; }
.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc-badge {
  display: inline-block; margin-top: 18px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 100px;
  background: var(--blue); color: #fff;
}

.svc-extra {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.svc-extra > span {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.04em; white-space: nowrap;
}
.svc-extra ul { display: flex; flex-wrap: wrap; gap: 9px; }
.svc-extra li {
  font-size: 13.5px; color: var(--ink-2);
  padding: 7px 14px; border-radius: 100px;
  background: var(--paper);
  transition: background 0.2s, color 0.2s;
}
.svc-extra li:hover { background: var(--blue); color: #fff; }

/* ============ PREČO ============ */
.why { padding: 110px 0; background: var(--paper); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }
.why-left .eyebrow { margin-bottom: 28px; }
.why-year {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 16vw, 180px);
  line-height: 0.9;
  color: var(--blue);
  letter-spacing: -0.04em;
}
.why-year-label { color: var(--ink-2); font-size: 17px; max-width: 360px; margin-top: 8px; }

.why-list { display: grid; gap: 4px; }
.why-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; font-weight: 600;
  margin-bottom: 5px;
}
.why-list span { color: var(--ink-2); font-size: 15px; }

/* ============ KONTAKT ============ */
.contact {
  background: var(--navy); color: #fff;
  padding: 110px 0;
  text-align: center;
  background-image: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(29,78,216,0.3), transparent 70%);
}
.contact-inner .eyebrow { margin-bottom: 22px; }
.contact h2 { font-size: clamp(34px, 6vw, 64px); margin-bottom: 30px; }
.phone-xl {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  margin-bottom: 56px;
}
.phone-xl:hover { color: var(--sky); transform: scale(1.02); }
.contact-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 720px; margin: 0 auto;
  padding-top: 44px; border-top: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 600px) { .contact-cols { grid-template-columns: 1fr; gap: 28px; } }
.contact-cols div { color: #9fb0d0; font-size: 15px; }
.contact-cols b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--sky); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #8a93a8; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.footer .brand-rs { width: 34px; height: 34px; font-size: 13px; }
.footer-copy { margin-left: auto; }

/* ============ FAB (mobil) ============ */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: none; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--blue); color: #fff;
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 34px -8px rgba(29,78,216,0.7);
  transform: translateY(120%);
  transition: transform 0.5s var(--ease);
}
.fab.show { transform: translateY(0); }
.fab:active { transform: scale(0.96); }
@media (max-width: 760px) { .fab { display: inline-flex; } }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
