/* ================================================
   GATOSA s.r.o. — Main Stylesheet
   Barvy: #FFC300 (žlutá CAT), #0A0A0A (černá)
   ================================================ */

/* Google Fonts jsou načteny přes wp_enqueue_style v functions.php — @import odstraněn pro lepší výkon */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFC300;
  --yellow-dark: #E6AC00;
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #1A1A1A;
  --dark3: #222222;
  --white: #FFFFFF;
  --gray: #AAAAAA;
  --gray-light: #CCCCCC;
  --font-heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  --transition: 0.3s ease;
  --radius: 4px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow-dark); }

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,195,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ---- HEADER / NAV ---- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

#site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,195,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-logo:hover { opacity: 0.85; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--yellow);
}

.header-cta {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-cta:hover { color: var(--yellow-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- SPOTLIGHT ANIMACE ---- */

/* Tmavý závěs — zvedá se jako opona */
.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 5;
  pointer-events: none;
  animation: veilLift 3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes veilLift {
  0%   { opacity: 1; }
  40%  { opacity: 0.75; }
  75%  { opacity: 0.2; }
  100% { opacity: 0; }
}

/* Spotlight obálka */
.hero-spotlight-wrap {
  position: absolute;
  inset: 0;
  z-index: 4;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateZ(0); /* Edge: vynutí GPU compositing pro mix-blend-mode */
}

/* Jednotlivý spotlight paprsek */
.hero-spot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  will-change: transform, opacity; /* Edge: GPU vrstva pro plynulou animaci */
}

/* Levé světlo bagru — hlavní */
.hero-spot-1 {
  width: 1100px;
  height: 1000px;
  top: 40%;
  left: 57%;
  background: radial-gradient(ellipse at 45% 40%,
    rgba(255, 220, 120, 0.55) 0%,
    rgba(255, 195, 0, 0.25) 25%,
    rgba(255, 150, 0, 0.08) 55%,
    transparent 75%
  );
  animation: spotGrow1 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Pravé světlo bagru — druhotné */
.hero-spot-2 {
  width: 750px;
  height: 750px;
  top: 36%;
  left: 63%;
  background: radial-gradient(ellipse at center,
    rgba(255, 230, 140, 0.4) 0%,
    rgba(255, 200, 50, 0.15) 35%,
    transparent 65%
  );
  animation: spotGrow2 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* spotGrow1 — flicker: záblesk → krátký výpadek → stabilní rozsvícení */
@keyframes spotGrow1 {
  0%   { transform: translate(-50%, -50%) scale(0);    opacity: 0; }
  10%  { transform: translate(-50%, -50%) scale(0.22); opacity: 1; }    /* první záblesk */
  14%  { transform: translate(-50%, -50%) scale(0.18); opacity: 0.08; } /* výpadek */
  20%  { transform: translate(-50%, -50%) scale(0.28); opacity: 1; }    /* stabilní */
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

@keyframes spotGrow2 {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

/* Film grain canvas */
#hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* Přepsání animací hero textu — pozdější start (čeká na spotlight) */
.hero-tag      { animation-delay: 0.8s !important; }
.hero-title    { animation-delay: 1.0s !important; }
.hero-subtitle { animation-delay: 1.2s !important; }
.hero-actions  { animation-delay: 1.4s !important; }
.hero-scroll   { animation-delay: 2.0s !important; }

/* ---- Reduced motion — bez animací ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-veil { display: none; }
  .hero-spotlight-wrap { display: none; }
  .hero-spot { transform: translate(-50%, -50%) scale(1) !important; animation: none !important; }
  .hero-tag, .hero-title, .hero-subtitle, .hero-actions, .hero-scroll {
    animation-delay: 0s !important;
  }
}

/* ---- HERO ---- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate; /* Edge: správný stacking context pro mix-blend-mode uvnitř */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-night-cat-les.jpeg');
  background-size: cover;
  background-position: center 30%;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, 1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.65) 50%,
    rgba(10,10,10,0.5) 100%
  );
}

/* žlutá linka dole */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--yellow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--yellow);
}

.hero-seo-kw {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
  margin: 6px 0 16px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gatosa-nav-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- STATS STRIP ---- */
#stats {
  background: var(--yellow);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 12px 24px;
  border-right: 1px solid rgba(0,0,0,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65);
  margin-top: 4px;
}

/* ---- SEKCE OBECNE ---- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--dark);
}

.section-dark2 {
  background: var(--dark2);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--yellow);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--yellow);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ---- SLUZBY ---- */
#sluzby { background: var(--dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--dark2);
  padding: 36px 28px;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width 0.4s ease;
}

.service-card:hover {
  background: var(--dark3);
  transform: translateY(-4px);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 12px;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- O NAS ---- */
#o-nas {
  background: var(--black);
}

.o-nas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.o-nas-img-wrap {
  position: relative;
}

.o-nas-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* žlutý rámeček efekt */
.o-nas-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  opacity: 0.4;
  z-index: 0;
  transition: opacity var(--transition);
}
.o-nas-img-wrap:hover::before { opacity: 0.7; }

.o-nas-img-wrap img { position: relative; z-index: 1; }

.checkmarks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.checkmarks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--gray-light);
}

.checkmarks li::before {
  content: '▶';
  color: var(--yellow);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 5px;
}

.partners-strip {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--dark3);
}

.partners-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.partner-logo {
  height: 44px;
  width: auto;
  opacity: 0.65;
  transition: opacity var(--transition);
  filter: none;
}

.partner-logo:hover {
  opacity: 1;
}

/* ---- TECHNIKA ---- */
#technika {
  background: var(--dark);
}

.technika-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.technika-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: default;
}

.technika-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.technika-card:hover img {
  transform: scale(1.06);
}

.technika-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.technika-type {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}

.technika-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.technika-note {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-top: 4px;
}

/* Technika karta bez fotky — placeholder */
.technika-no-img {
  background: linear-gradient(135deg, #1a1400 0%, #1c1c1c 40%, #111 100%);
}

.technika-no-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,195,0,0.03) 0px,
      rgba(255,195,0,0.03) 1px,
      transparent 1px,
      transparent 24px
    );
}

/* Overlay přes celou výšku karty (bez fotky) */
.technika-overlay-full {
  background: none;
  justify-content: center;
  padding: 36px 28px;
  min-height: 240px;
}

.technika-overlay-full .technika-name {
  font-size: 1.8rem;
}

/* Trucks row */
.trucks-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.truck-card {
  background: var(--dark2);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 3px solid var(--yellow);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background var(--transition);
}

.truck-card:hover { background: var(--dark3); }

.truck-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.truck-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}

.truck-detail {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ---- PANORAMA AERIAL ---- */
#panorama-aerial {
  height: 520px;
  background: url('../img/gatosadronshot.jpg') center / cover no-repeat;
  background-attachment: fixed;
}

@media (max-width: 767px) {
  #panorama-aerial { background-attachment: scroll; }
}

/* ---- GALERIE ---- */
#galerie {
  background: var(--black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,195,0,0.0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay::after {
  content: '+';
  font-size: 2.5rem;
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(255,195,0,0.15);
}
.gallery-item:hover .gallery-overlay::after {
  opacity: 1;
}

/* ---- KONTAKT CTA BANNER ---- */
#cta-banner {
  background: var(--yellow);
  padding: 80px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner-text .cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.05;
  margin-bottom: 8px;
}

.cta-banner-text .cta-sub {
  font-size: 1rem;
  color: rgba(0,0,0,0.65);
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-dark {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--dark2);
  border-color: var(--dark2);
  color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  border-color: rgba(0,0,0,0.35);
}

.btn-ghost-dark:hover {
  border-color: var(--black);
  color: var(--black);
  transform: translateY(-2px);
}

/* ---- KONTAKT ---- */
#kontakt {
  background: var(--dark);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kontakt-firma {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: -8px;
}

.kontakt-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.kontakt-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,195,0,0.1);
  border: 1px solid rgba(255,195,0,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kontakt-item-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.kontakt-item-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.kontakt-item-value a {
  color: var(--white);
}
.kontakt-item-value a:hover { color: var(--yellow); }

/* Formulář */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--yellow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option {
  background: var(--dark2);
}

.form-notice {
  font-size: 0.875rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(220, 50, 50, 0.15);
  border-left: 3px solid #dc3232;
  color: #f08080;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

/* ---- Contact Form 7 ---- */
.wpcf7 { width: 100%; }

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CF7 obaluje každé pole do <span> — musí být blokový */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* CF7 vstupy dědí styly z .form-group input/textarea/select */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus { border-color: var(--yellow); }

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.25); }

.wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form select option { background: var(--dark2); }

/* Validační chyba u konkrétního pole */
.wpcf7-not-valid { border-color: #dc3232 !important; }
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #f08080;
}

/* Submit tlačítko — stejný styl jako .btn .btn-primary */
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}
.wpcf7-submit:hover { background: #e6b000; transform: translateY(-1px); }
.wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Spinner (skrýt výchozí CF7 spinner) */
.wpcf7-spinner { display: none !important; }

/* Výsledná zpráva (success / error) */
.wpcf7-response-output {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output { display: block; }

.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(255, 195, 0, 0.1);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  background: rgba(220, 50, 50, 0.15);
  border-left: 3px solid #dc3232;
  color: #f08080;
}

/* Honeypot pole (CF7 Apps) — musí být neviditelné */
.wpcf7-form .wpcf7-form-control-wrap[data-name="hp-field"] { display: none !important; }

/* ---- FOOTER ---- */
#site-footer {
  background: var(--black);
  border-top: 1px solid var(--dark2);
  padding: 48px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand .site-logo img {
  height: 32px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--dark2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--yellow); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 20px;
  transition: color var(--transition);
  user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--yellow); }
@media (max-width: 640px) {
  .lightbox-prev { left: 4px; padding: 8px 12px; }
  .lightbox-next { right: 4px; padding: 8px 12px; }
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  pointer-events: none;
  white-space: nowrap;
}

/* ---- AOS FALLBACK (vlastní animace) ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .technika-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.15); }
  .stat-item:nth-child(even) { }
}

@media (max-width: 900px) {
  .o-nas-grid { grid-template-columns: 1fr; gap: 40px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .trucks-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: fixed; inset: 0; background: #0a0a0a; align-items: center; justify-content: center; gap: 0; z-index: 999; padding: 0; list-style: none; }
  .nav-close { display: flex; position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; align-items: center; justify-content: center; padding: 8px; }
  .nav-close span { position: absolute; width: 22px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; transition: background .2s; }
  .nav-close span:nth-child(1) { transform: rotate(45deg); }
  .nav-close span:nth-child(2) { transform: rotate(-45deg); }
  .nav-close:hover span { background: var(--yellow); }
  .main-nav.open { display: flex; }
  .main-nav a { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); padding: 14px 0; border-bottom: none; opacity: 0; transform: translateY(-14px); }
  .main-nav.open a { animation: gatosa-nav-in .4s cubic-bezier(.22,1,.36,1) forwards; }
  .main-nav.open li:nth-child(1) a { animation-delay:  50ms; }
  .main-nav.open li:nth-child(2) a { animation-delay: 100ms; }
  .main-nav.open li:nth-child(3) a { animation-delay: 150ms; }
  .main-nav.open li:nth-child(4) a { animation-delay: 200ms; }
  .main-nav.open li:nth-child(5) a { animation-delay: 250ms; }
  .main-nav a:hover { color: var(--yellow); }
  .nav-toggle { display: flex; }
  .partner-logos { gap: 16px 20px; justify-content: center; }
  .partner-logo { height: 28px; }
  .header-cta { font-size: 0; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .header-cta svg { flex-shrink: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .technika-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobilní výkon — vypnout nákladné efekty při scrollu ---- */
@media (max-width: 768px) {
  /* Ken Burns a film grain zbytečně zatěžují GPU při scrollu */
  .hero-bg { animation: none; }
  #hero-grain { display: none; }
  /* backdrop-filter na headeru je na mobilech drahý */
  #site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---- Právní stránky (page.php) ---- */
.legal-hero {
  background: var(--black);
  border-bottom: 1px solid var(--dark2);
  padding: 80px 0 56px;
  margin-top: 64px; /* výška headeru */
}
.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}
.legal-content {
  background: var(--dark1);
  padding: 64px 0 80px;
}
.legal-body {
  max-width: 800px;
  color: var(--gray-light);
  line-height: 1.8;
  font-size: 0.95rem;
}
.legal-body h2, .legal-body h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.legal-body h2 { font-size: 1.2rem; }
.legal-body h3 { font-size: 1rem; color: var(--yellow); }
.legal-body p { margin-bottom: 16px; }
.legal-body a { color: var(--yellow); }
.legal-body a:hover { text-decoration: underline; }
.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-body li { margin-bottom: 6px; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 24px;
  overflow-x: auto;
  display: block;
}
.legal-body th {
  background: var(--dark2);
  color: var(--yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--dark3);
}
.legal-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--dark2);
  vertical-align: top;
}
.legal-body tr:hover td { background: rgba(255,255,255,0.02); }

/* Complianz cookie tabulka na stránce Zásady cookies */
.legal-body .cmplz-cookies-overview { font-size: 0.875rem; }
.legal-body .cmplz-cookies-overview th { background: var(--dark2); color: var(--yellow); }
.legal-body .cmplz-cookies-overview td { border-bottom: 1px solid var(--dark2); }

/* Footer právní odkazy */
.footer-bottom a { color: var(--gray); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--yellow); }

/* ---- Complianz Cookie Banner — Gatosa dark theme ---- */

/* Skrytí plovoucího tlačítka "Spravovat souhlas" (má třídu cmplz-btn + cmplz-manage-consent + position:fixed) */
.cmplz-btn.cmplz-manage-consent { display: none !important; }

/* Odkaz ve footeru pro správu souhlasu */
.footer-consent-btn {
  background: none;
  border: none;
  color: var(--gray);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.footer-consent-btn:hover { color: var(--yellow); }

.cmplz-cookiebanner {
  background: #111111 !important;
  border: 1px solid #333333 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.6) !important;
  font-family: var(--font-body) !important;
}
.cmplz-cookiebanner .cmplz-header {
  border-color: #2a2a2a !important;
}
.cmplz-cookiebanner .cmplz-title {
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 0.9rem !important;
}
.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner p {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.85rem !important;
}
.cmplz-cookiebanner a { color: #ffc300 !important; }
.cmplz-cookiebanner .cmplz-divider { border-color: #2a2a2a !important; }

/* Accept button — žlutá Gatosa */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background: #ffc300 !important;
  color: #000000 !important;
  border-color: #ffc300 !important;
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover {
  background: #e6b000 !important;
  border-color: #e6b000 !important;
}

/* Odmítnout + Předvolby */
.cmplz-cookiebanner .cmplz-btn:not(.cmplz-accept) {
  background: #1a1a1a !important;
  color: #cccccc !important;
  border-color: #3a3a3a !important;
}
.cmplz-cookiebanner .cmplz-btn:not(.cmplz-accept):hover {
  background: #222222 !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}

/* Kategorie / toggles */
.cmplz-cookiebanner .cmplz-category {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
  color: #ffffff !important;
}
.cmplz-cookiebanner .cmplz-category-title { color: #ffffff !important; }
.cmplz-cookiebanner .cmplz-always-active { color: #ffc300 !important; }

/* Close tlačítko */
.cmplz-cookiebanner .cmplz-close { color: #777777 !important; }
.cmplz-cookiebanner .cmplz-close:hover { color: #ffffff !important; }
