/* ============================================================
   Daniel Malý — Odtah · Servis · Obytné vozy
   ============================================================ */

:root {
  --bg: #0e1116;
  --bg-alt: #141a22;
  --surface: #1a222d;
  --surface-2: #222d3a;
  --border: #2a3744;
  --text: #eaeef3;
  --text-dim: #98a6b5;

  --accent: #ffb627;        /* jantarová – odtahový majáček + teplo domova */
  --accent-strong: #ff9f1c;
  --accent-ink: #1a1300;

  --warm: #e8c39e;          /* dřevěný tón pro sekci obytných vozů */
  --warm-bg: #16140f;

  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --shadow: 0 22px 50px -22px rgba(0, 0, 0, .7);

  /* Systémový font stack – bez externí závislosti, GDPR-friendly, načte se okamžitě.
     Pokud byste chtěli značkové fonty (Manrope / Sora), stačí je self-hostovat. */
  --head: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ===== Tlačítka ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 13px 21px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-call, .btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px rgba(255, 182, 39, .75);
}
.btn-call:hover, .btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(255, 182, 39, .85); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.inline-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Hlavička ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px -6px rgba(255, 182, 39, .8); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--head); font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .12em; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: .95rem; color: var(--text-dim); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.header-call { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(720px 420px at 80% 4%, rgba(255, 182, 39, .17), transparent 60%),
    radial-gradient(600px 460px at 8% 96%, rgba(255, 159, 28, .10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 58px 58px; opacity: .13;
  mask-image: radial-gradient(circle at 50% 28%, #000, transparent 76%);
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; background: rgba(255, 182, 39, .12); color: var(--accent);
  border: 1px solid rgba(255, 182, 39, .3); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 182, 39, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 182, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 182, 39, 0); } }

.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.24rem); color: var(--text-dim); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--head); font-size: 1.7rem; font-weight: 800; }
.hero-stats span { font-size: .9rem; color: var(--text-dim); }

/* ===== Pruh pilířů ===== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: -36px auto 0; position: relative; z-index: 5; }
.pillar {
  display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(255, 182, 39, .45); box-shadow: var(--shadow); }
.pillar-num { font-family: var(--head); font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.pillar-name { font-weight: 700; }
.pillar-arrow { margin-left: auto; color: var(--text-dim); transition: transform .2s, color .2s; }
.pillar:hover .pillar-arrow { transform: translateX(4px); color: var(--accent); }

/* ===== Sekce ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 1.07rem; }
.section-head a { color: var(--accent); }

/* ===== Feature (Odtah / Servis) ===== */
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.feature-grid.reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin: 8px 0 16px; }
.feature-lead { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 22px; }

.check-list { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 600; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%; background: rgba(255, 182, 39, .15); color: var(--accent); font-size: .78rem; font-weight: 800;
}

.feature-media {
  position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--radius); border: 1px solid var(--border);
  display: grid; place-content: center; gap: 14px; text-align: center; color: var(--text-dim);
  background: var(--surface); overflow: hidden;
}
.feature-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .25;
}
.media-tow { background: radial-gradient(circle at 50% 35%, rgba(255, 182, 39, .14), var(--surface) 70%); color: var(--accent); }
.media-service { background: radial-gradient(circle at 50% 35%, rgba(120, 180, 255, .10), var(--surface) 70%); color: #9ec1ff; }
.feature-media svg { position: relative; }
.media-hint { position: relative; font-size: .85rem; }
.media-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: var(--accent-ink); font-size: .76rem; font-weight: 800; padding: 6px 12px; border-radius: 999px;
}
.media-badge .dot { background: var(--accent-ink); }

/* ===== Obytné vozy (teplá sekce) ===== */
.feature-warm { background: linear-gradient(180deg, var(--warm-bg), #120f0a); border-top: 1px solid #2c2418; border-bottom: 1px solid #2c2418; }
.feature-warm .eyebrow { color: var(--warm); }
.feature-warm .section-head p { color: #c7b9a6; }

.vanwork { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.vancard {
  background: rgba(255, 255, 255, .03); border: 1px solid #34291a; border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, border-color .2s, background .2s;
}
.vancard:hover { transform: translateY(-5px); border-color: var(--warm); background: rgba(232, 195, 158, .06); }
.vancard-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: rgba(232, 195, 158, .12); color: var(--warm); margin-bottom: 16px; }
.vancard h3 { font-size: 1.12rem; margin-bottom: 8px; color: #f3ece1; }
.vancard p { color: #b6a892; font-size: .94rem; }

.van-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--warm); color: #1a1300; font-family: var(--head); font-weight: 800;
}
.step strong { display: block; color: #f3ece1; margin-bottom: 2px; }
.step p { color: #b6a892; font-size: .9rem; }
.van-cta { text-align: center; }

/* ===== Rezervace ===== */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; align-items: start; }
.booking-calendar, .booking-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head strong { font-family: var(--head); font-size: 1.1rem; text-transform: capitalize; }
.cal-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.3rem; cursor: pointer; transition: border-color .15s, color .15s; }
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-bottom: 8px; }
.cal-weekdays span { text-align: center; font-size: .76rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent;
  background: var(--bg); color: var(--text); font-weight: 600; cursor: pointer; position: relative;
  transition: background .15s, border-color .15s, color .15s; font-size: .95rem;
}
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.disabled { color: var(--text-dim); opacity: .35; cursor: not-allowed; background: transparent; }
.cal-day.free::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day:not(.disabled):not(.empty):hover { border-color: var(--accent); color: var(--accent); }
.cal-day.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-day.selected::after { background: var(--accent-ink); }
.cal-day.today { border-color: var(--border); box-shadow: inset 0 0 0 1px var(--border); }

.cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .8rem; color: var(--text-dim); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-dot.free { background: var(--accent); }
.lg-dot.off { background: var(--border); }

.bf-selected { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
.bf-selected.active { border-style: solid; border-color: var(--accent); }
.bf-hint { color: var(--text-dim); }
.bf-selected .bf-date { font-family: var(--head); font-weight: 700; font-size: 1.05rem; text-transform: capitalize; }
.bf-selected .bf-time { color: var(--accent); font-weight: 700; }

.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 182, 39, .15); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2398a6b5' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots-hint { color: var(--text-dim); font-size: .92rem; }
.slot {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.form-note { font-size: .82rem; color: var(--text-dim); margin-top: 12px; text-align: center; }
.bf-success { background: rgba(72, 187, 120, .12); border: 1px solid rgba(72, 187, 120, .4); color: #9ae6b4; border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; }
.bf-success a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Patička ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-about { color: var(--text-dim); font-size: .95rem; max-width: 320px; }
.footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 16px; font-family: var(--body); font-weight: 700; }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; flex-direction: column; gap: 2px; }
.fc-label { font-size: .76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.footer-contact a, .footer-contact span:not(.fc-label) { font-weight: 700; font-size: 1.02rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-hours { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.footer-hours span { color: var(--text-dim); }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { color: var(--text-dim); font-weight: 600; font-size: .95rem; transition: color .15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .85rem; }

/* ===== Plovoucí tlačítko ===== */
.floating-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none;
  width: 58px; height: 58px; border-radius: 50%; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -8px rgba(255, 182, 39, .9); animation: pulse 2.4s infinite;
}

/* ===== Lišta souhlasu s cookies ===== */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { color: var(--text-dim); font-size: .9rem; flex: 1 1 280px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 520px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ===== Reveal animace ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsivita ===== */
@media (max-width: 940px) {
  .pillars { grid-template-columns: 1fr; margin-top: -20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid.reverse .feature-text { order: 0; }
  .feature-media { aspect-ratio: 16 / 9; }
  .vanwork { grid-template-columns: repeat(2, 1fr); }
  .van-process { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-call { display: none; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 10px 22px 22px; transform: translateY(-130%); transition: transform .3s ease; margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: flex; }
  .floating-call { display: grid; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .check-list.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .vanwork, .van-process, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

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