/* ============================================================
   [DOPLŇ NÁZOV] — Cykloservis e-bike
   Tmavý priemyselný štýl. Pure CSS, žiadne frameworky.
   ============================================================ */

:root{
  --bg: #0e0f12;
  --bg-2: #15171c;
  --bg-3: #1c1f26;
  --fg: #e7e9ee;
  --muted: #9aa0aa;
  --line: #23262d;
  --accent: #29ff8a;      /* neónová zelená */
  --accent-2: #ff7a1a;    /* alt: neónová oranžová */
  --danger: #ff5a5a;
  --ok: #29ff8a;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1180px;
  --maxw-narrow: 720px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;

  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible{ text-decoration: underline; }

.container{
  width: 100%;
  max-width: var(--maxw);
  padding: 0 1.25rem;
  margin: 0 auto;
}
.container-narrow{ max-width: var(--maxw-narrow); }

/* ============ NAVIGATION ============ */
header.nav-skeleton{
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap: .75rem;
  min-height: 64px;
  padding: .75rem 0;
}
.logo{
  display:flex; align-items:center; gap:.55rem;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
  min-width: 0;            /* allow flex child to shrink properly */
  flex: 1 1 auto;
}
.logo:hover{ text-decoration: none; }
.logo-icon{ color: var(--accent); flex-shrink: 0; }
.logo-text{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.logo-name{
  color: var(--fg);
  text-transform: uppercase;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-name::first-letter{ color: var(--accent); }
.logo-owner{
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.nav{ display:flex; gap: 1.25rem; }
.nav a{
  color: var(--fg);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .1rem;
  position: relative;
}
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px;
  height:2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover, .nav a:focus-visible{ text-decoration:none; }
.nav a:hover::after, .nav a:focus-visible::after{ transform: scaleX(1); }

.nav-toggle{
  display:none;
  background: transparent; border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span{
  display:block; width:18px; height:2px; background: var(--fg);
  margin: 3px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(41,255,138,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(255,122,26,.08), transparent 60%),
    linear-gradient(180deg, #0a0b0e 0%, #15171c 100%);
}
.hero-bg::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner{
  padding: 7rem 1.25rem 4rem;
  text-align: left;
}
.hero-title{
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.accent{ color: var(--accent); }
.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 2rem;
}
.btn{
  display: inline-block;
  padding: .85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary{
  background: var(--accent);
  color: #061a0e;
  box-shadow: 0 10px 30px rgba(41,255,138,.15);
}
.btn-primary:hover, .btn-primary:focus-visible{
  text-decoration:none;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(41,255,138,.25);
}
.brand-row{
  margin-top: 3.5rem;
  display:flex; flex-wrap: wrap; gap: .6rem 1rem;
  align-items: center;
}
.brand-badge{
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.scroll-cue{
  position: absolute; left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  color: var(--muted);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform: translate(-50%,0)} 50%{transform: translate(-50%, 8px)} }

/* ============ SECTIONS ============ */
.section{
  padding: var(--space-6) 0;
}
.section-alt{
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title{
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 .8rem;
  letter-spacing: -.01em;
  font-weight: 800;
}
.section-title::after{
  content:"";
  display:block; width: 64px; height: 3px;
  background: var(--accent);
  margin-top: .6rem;
  border-radius: 2px;
}
.section-lead{
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 var(--space-4);
  font-size: 1.05rem;
}
.subtitle{
  font-size: 1.3rem;
  margin: 3rem 0 1rem;
  font-weight: 700;
}
.muted{ color: var(--muted); }
.small{ font-size: .9rem; }

/* ============ SERVICE CARDS ============ */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: var(--space-3);
}
.card{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card h3{
  margin: .85rem 0 .35rem;
  font-size: 1.15rem;
}
.card p{
  color: var(--muted);
  margin: 0;
  font-size: .96rem;
}
.card-icon{
  width: 48px; height: 48px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 10px;
  background: rgba(41,255,138,.08);
  color: var(--accent);
  border: 1px solid rgba(41,255,138,.25);
}

/* ============ GALLERY / CAROUSEL ============ */
.gallery{
  position: relative;
  margin-top: 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.gallery-viewport{
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-track{
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  transition: transform .45s ease;
  will-change: transform;
}
.slide{
  flex: 0 0 100%;
  padding: 0 .25rem;
}
.slide img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0a0b0e;
}
.cap{
  color: var(--muted);
  font-size: .95rem;
  margin: .75rem .25rem 0;
  text-align: center;
}
.gallery-btn{
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(14,15,18,.7);
  color: var(--fg);
  border: 1px solid var(--line);
  cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  z-index: 5;
  transition: background .2s ease, border-color .2s ease;
}
.gallery-btn:hover, .gallery-btn:focus-visible{
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}
.gallery-prev{ left: -.6rem; }
.gallery-next{ right: -.6rem; }
.gallery-dots{
  display:flex; justify-content:center; gap: .4rem;
  margin-top: .8rem; flex-wrap: wrap;
}
.gallery-dots button{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .15s ease;
}
.gallery-dots button[aria-current="true"]{
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* ============ PRICING TABLE ============ */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.price-table{
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.price-table thead th{
  background: var(--bg-3);
  text-align: left;
  padding: 1rem;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.price-table tbody th,
.price-table tbody td{
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 500;
}
.price-table tbody th{
  font-weight: 600;
}
.price-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.015);
}
.price-table tbody tr:hover{
  background: rgba(41,255,138,.05);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td{ border-bottom: 0; }

/* Sticky prvý stĺpec na mobile */
@media (max-width: 640px){
  .price-table tbody th,
  .price-table thead th:first-child{
    position: sticky; left: 0;
    background: var(--bg-2);
    z-index: 1;
  }
  .price-table thead th:first-child{ background: var(--bg-3); }
}

/* ============ FORM ============ */
.form{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field{ display:flex; flex-direction: column; gap: .35rem; }
.field label{
  font-weight: 600;
  font-size: .95rem;
}
.req{ color: var(--accent); }
.field input,
.field textarea{
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,255,138,.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"]{
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,90,90,.12);
}
.field textarea{ resize: vertical; min-height: 130px; }
.err{
  color: var(--danger);
  font-size: .85rem;
  min-height: 1em;
}
/* Honeypot — skryté pred ľuďmi, ale dostupné pre boti */
.hp{
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-status{
  margin-top: .5rem;
  font-weight: 600;
  min-height: 1em;
}
.form-status.ok{ color: var(--ok); }
.form-status.bad{ color: var(--danger); }

/* ============ KONTAKT ============ */
.contact-grid{
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-3);
}
@media (min-width: 880px){
  .contact-grid{ grid-template-columns: 1fr 1.2fr; }
}
.contact-info{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.contact-info h3{ margin: 0 0 .5rem; }
.contact-info h4{ margin: 1.5rem 0 .5rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;}
.contact-info address{ font-style: normal; color: var(--muted); }
.contact-info a{ color: var(--accent); }
.hours{
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.hours th, .hours td{
  padding: .4rem .25rem;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}
.hours th{ font-weight: 500; color: var(--muted); }
.legal{ font-size: .92rem; color: var(--muted); }
.socials{ display:flex; gap: .6rem; margin-top: 1rem; }
.social{
  width: 40px; height: 40px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: color .2s ease, border-color .2s ease, transform .15s ease;
}
.social:hover{
  color: var(--accent);
  border-color: var(--accent);
  text-decoration:none;
  transform: translateY(-2px);
}
.contact-map iframe{
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* ============ FOOTER ============ */
.footer{
  background: #0a0b0e;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer-inner{
  text-align: center;
}
.footer p{ margin: .25rem 0; color: var(--muted); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition: none; }
  html{ scroll-behavior: auto; }
  .scroll-cue{ animation: none; }
}

/* ============ MOBILE NAV ============ */
@media (max-width: 760px){
  .nav-wrap{ min-height: 72px; padding: .9rem 0; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
  .nav{
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0)); left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    /* Hide aggressively: translate AND visibility, so the menu can never leak above the header */
    transform: translateY(-150%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, visibility 0s linear .25s;
    padding: .5rem 1.25rem 1rem;
  }
  .nav.is-open{
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .25s ease, visibility 0s linear 0s;
  }
  .nav a{
    padding: .9rem .25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child{ border-bottom: 0; }
  .hero-inner{ padding-top: 5rem; }

  .logo-name{ font-size: .92rem; }
  .logo-owner{ font-size: .68rem; }
}
@media (max-width: 420px){
  .logo-icon{ width: 24px; height: 24px; }
  .logo-name{ font-size: .82rem; letter-spacing: .01em; }
  .logo-owner{ font-size: .62rem; }
  .logo{ gap: .4rem; }
}
