/* ============================================================
   LuMa AutoTech s.r.o. — style.css
   Barvy: bílá / černá / červená (gradient dle loga)
   ============================================================ */

:root {
  --black: #121212;
  --white: #fdfdfd;
  --grey: #5c5c5c;
  --line: #e6e4e2;
  --red: #e2242b;
  --red-dark: #8f0f14;
  --red-grad: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --radius: 4px;
  --container: 1160px;
}

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
}

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

a { color: var(--red); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.6rem; }

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

/* ---------- Utility ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow-line { width: 44px; height: 2px; background: var(--red-grad); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 13px 30px; border: 0; border-radius: var(--radius);
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-lg { padding: 16px 38px; font-size: 1.15rem; }
.btn-red { background: var(--red-grad); color: #fff; box-shadow: 0 6px 18px rgba(226, 36, 43, .3); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226, 36, 43, .4); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-outline { background: none; color: var(--black); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* animace při scrollu — skrývá se až s JS (body.js-anim), obsah je tak vždy viditelný */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- Navigace ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(253, 253, 253, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.nav-logo img { width: auto; height: 60px; }

.nav-menu { display: flex; align-items: center; gap: 34px; list-style: none; padding: 0; }

.nav-link {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--black); position: relative; padding-block: 6px;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--red-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav { padding: 10px 22px; font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar {
  display: block; width: 26px; height: 3px; background: var(--black);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black) linear-gradient(115deg, #1c1c1c 0%, var(--black) 55%, #0a0a0a 100%);
  color: #fff;
  padding: 190px 0 150px;
}
/* diagonální červený pruh v pozadí */
.hero::before {
  content: ""; position: absolute; top: -20%; right: -12%;
  width: 46%; height: 150%;
  background: var(--red-grad); opacity: .92;
  transform: skewX(-14deg);
}
.hero::after {
  content: ""; position: absolute; top: -20%; right: 36%;
  width: 14px; height: 150%;
  background: var(--red-grad);
  transform: skewX(-14deg);
}

.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; }

.hero h1 em { font-style: normal; color: var(--red); }

.hero-claim { max-width: 480px; margin: 24px 0 36px; font-size: 1.2rem; color: rgba(255, 255, 255, .82); }

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

.hero-badge {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; text-align: center;
  width: 250px; aspect-ratio: 1; justify-content: center;
  border: 3px solid rgba(255, 255, 255, .9); border-radius: 50%;
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(2px);
  font-family: var(--font-head); text-transform: uppercase;
}
.hero-badge strong { font-size: 6.5rem; font-weight: 800; line-height: 1; }
.hero-badge span { font-size: 1.2rem; font-weight: 700; letter-spacing: .18em; line-height: 1.3; }

/* diagonální řez do bílé sekce */
.hero-cut {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ---------- Sekce ---------- */
.section { padding: 110px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-dark { background: var(--black); color: #fff; }

/* ---------- Služby (karty) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

.card {
  position: relative; overflow: hidden;
  padding: 44px 40px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--red-grad);
  transform: scaleY(0); transform-origin: top; transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(18, 18, 18, .1); }
.card:hover::before { transform: scaleY(1); }

.card h3 { margin: 26px 0 14px; }
.card p { color: var(--grey); }

.card-list { list-style: none; padding: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.card-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.card-list li::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  background: var(--red-grad); transform: rotate(45deg);
}

/* ikony karet — čistě CSS */
.card-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  background: var(--black); border-radius: var(--radius);
}
.gear {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 5px dotted var(--red);
  animation: spin 14s linear infinite;
}
.gear-hub { width: 14px; height: 14px; border-radius: 50%; border: 4px solid #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: flex; gap: 5px; align-items: flex-end;
  width: 40px; height: 34px;
  border: 3px solid #fff; border-radius: 3px;
  padding: 4px;
}
.chip span { flex: 1; background: var(--red-grad); }
.chip span:nth-child(1) { height: 45%; }
.chip span:nth-child(2) { height: 90%; }
.chip span:nth-child(3) { height: 65%; }

/* ---------- O nás ---------- */
.about { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 64px; }

.about-number {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(9rem, 22vw, 19rem); line-height: .85;
  background: var(--red-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.about-content { max-width: 620px; }
.about-content p { color: rgba(255, 255, 255, .78); margin-top: 18px; }
.about-content h2 { margin-top: 4px; }

.about-stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.about-stats dd {
  margin: 0; font-family: var(--font-head);
  font-weight: 800; font-size: 3rem; line-height: 1; color: var(--red);
}
.about-stats dt {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .16em;
  color: rgba(255, 255, 255, .6); margin-bottom: 6px;
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.form-field label {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .1em;
}

.form-field input,
.form-field textarea {
  font: inherit; color: var(--black);
  padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 36, 43, .15);
}
.form-field textarea { resize: vertical; }

.form-consent { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.form-consent input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.form-consent a { font-weight: 600; text-decoration: underline; }

.form-cookie-warning {
  margin-bottom: 18px; padding: 12px 16px;
  background: rgba(226, 36, 43, .08);
  border-left: 4px solid var(--red);
  color: var(--red-dark); font-weight: 600;
}
.contact-form.form-disabled input,
.contact-form.form-disabled textarea,
.contact-form.form-disabled button[type="submit"] { opacity: .5; pointer-events: none; }

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--container); margin-inline: auto;
  background: var(--black); color: rgba(255, 255, 255, .9);
  border-top: 4px solid; border-image: var(--red-grad) 1;
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { max-width: 640px; font-size: .95rem; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-bar .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); }

/* panel s kontaktními údaji */
.contact-info {
  background: var(--black) linear-gradient(160deg, #1e1e1e, var(--black));
  color: #fff; border-radius: var(--radius);
  padding: 40px 36px;
  border-top: 5px solid; border-image: var(--red-grad) 1;
}
.contact-info h3 { margin-bottom: 26px; }
.contact-info address { font-style: normal; }

.contact-item { margin-bottom: 22px; color: rgba(255, 255, 255, .85); }
.contact-item a { color: #fff; font-weight: 600; }
.contact-item a:hover { color: var(--red); }

.contact-label {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--red); margin-bottom: 4px;
}

.contact-legal {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .9rem; color: rgba(255, 255, 255, .6);
}

/* ---------- Patička ---------- */
.site-footer {
  background: #0a0a0a; color: rgba(255, 255, 255, .7);
  border-top: 3px solid; border-image: var(--red-grad) 1;
  padding: 40px 0;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; color: #fff; }
.footer-contact { display: flex; gap: 12px; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: var(--red); }
.footer-copy { font-size: .9rem; }

/* ---------- Responzivita ---------- */
/* tablet */
@media (max-width: 960px) {
  .hero { padding: 160px 0 130px; }
  .hero-badge { width: 190px; }
  .hero-badge strong { font-size: 4.6rem; }
  .section { padding: 90px 0; }
  .cards { gap: 24px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
}

/* mobil */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .container { padding-inline: 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 130px 0 100px; }
  .hero::before { right: -55%; }
  .hero::after { display: none; }
  .hero-inner { flex-direction: column; align-items: center; gap: 36px; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero-claim { font-size: 1.05rem; margin: 18px auto 28px; }
  .hero-actions { width: 100%; justify-content: center; }
  .hero-actions .btn-ghost { display: none; }
  .hero-badge { width: 160px; align-self: center; }
  .hero-badge strong { font-size: 3.8rem; }
  .hero-cut { height: 40px; }
  .card { padding: 32px 24px; }
  .about-stats { display: none; }
  .contact-info { padding: 30px 24px; }
  .contact-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* mobilní menu */
  .nav { height: 64px; }
  .nav-logo img { height: 48px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .btn-nav { text-align: center; margin-top: 8px; }
  .nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* malé mobily */
@media (max-width: 400px) {
  h1 { font-size: 2.3rem; }
  .btn-lg { padding: 14px 24px; font-size: 1.05rem; }
}
