:root {
  /* Apple-style color palette */
  --bg-color: #ffffff;
  --surface-color: #f5f5f7;
  /* Lehounce šedá pro prvky jako na apple.com */
  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --text-inverse: #f5f5f7;
  --brand-color: #ff600a;
  /* Značková oranžová z loga Auta Olomouc */
  --brand-hover: #e65609;
  --garage-door-bg: #000000;
  /* Temná clona */

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #000;
  /* Změna: pozadí těla je nyní temné, takže když sekce sjedou přes GSAP do dálky slábnoucí opacitou, padají vizuálně do úplné tmy! */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  line-height: 1.4;
  overflow-x: hidden;
  background-color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* =========================================================================
   Typografie
   ========================================================================= */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-title {
  position: relative;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  display: block;
}

.hero-title .text-mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-olomouc-skoda-branded.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Zásadní - srovná obrázek s pozadím viewportu, vytvoří "okno" do spodní vrstvy */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  animation: pulseMask 6s ease-in-out infinite;
}

@keyframes pulseMask {

  0%,
  15% {
    opacity: 0;
    filter: brightness(1);
  }

  45%,
  55% {
    opacity: 1;
    filter: brightness(1.3);
  }

  /* trochu to rozjasníme, ať je to ze tmy víc cítit */
  85%,
  100% {
    opacity: 0;
    filter: brightness(1);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-inline: auto;
}

.section-header p {
  font-size: 1.25rem;
}

/* =========================================================================
   Tlačítka a Prvky
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 200px;
  /* Úplně kulaté kraje - pill shape */
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--text-main);
  /* Černé tlačítko jako Apple Buy knoflíky */
  color: #fff;
}

.btn-primary:hover {
  background-color: #000;
  transform: scale(1.02);
}

.btn-text {
  color: var(--text-main);
  background: transparent;
}

.btn-text:hover {
  color: var(--brand-color);
}

.btn-outline {
  border: 1px solid var(--text-main);
  color: var(--text-main);
  background: transparent;
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

footer {
  text-align: center;
  padding: 40px 0 20px 0;
  color: var(--text-muted);
}

section {
  padding: 120px 0;
}

/* =========================================================================
   Plovoucí Lišta (Dynamic Island style)
   ========================================================================= */
.utility-bar-wrapper {
  position: fixed;
  top: 24px;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.utility-bar-wrapper.hidden {
  transform: translateY(-150%);
  opacity: 0;
}

.utility-bar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 8px 12px 8px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #34c759;
  border-radius: 50%;
}

.utility-actions {
  display: flex;
  gap: 8px;
}

.utility-actions .btn {
  padding: 8px 16px;
}

/* =========================================================================
   Hero Sekce (Garáž s fotografickým revealem)
   ========================================================================= */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--garage-door-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  color: var(--text-inverse);
  pointer-events: none;
  /* Kliknutí jdou skrz */
}

.hero-content p {
  color: #a1a1a6;
  font-size: 1.3rem;
  margin-top: 16px;
}

.scroll-helper {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-mouse {
  position: relative;
  width: 25px;
  height: 39px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}

.scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: translateX(-50%) rotate(45deg);
}

.scroll-mouse span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-color);
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, -2px);
  }

  30% {
    opacity: 1;
  }

  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* Vrata z černé barvy, která odjedou nahoru */
.garage-door {
  position: absolute;
  inset: 0;
  background-color: #000;
  z-index: 10;
}



/* Schované auto - full bleed cinematic */
.car-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Pod textem a pod dveřmi */
  background-color: #000;
}

.car-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.4;
  /* Začíná tmavé, probudí se scrollem do plného jasu */
  transform: scale(1.1);
  /* Zmenšuje se na 1 pro efekt zanoření */
}

/* Text a tlačítka, která se objeví po odhrnutí vrat */
.hero-outro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 10;
  opacity: 1;
  /* Viditelné, GSAP to na začátku schová */
  pointer-events: auto;
  /* Pro klikání na tlačítka */
}

.hero-outro-text h2 {
  color: #ffffff;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  white-space: nowrap;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 5px 15px rgba(0, 0, 0, 0.5);
  /* Extrémní stín */
  margin: 0;
}

.hero-outro-text strong {
  font-weight: 700;
  color: #ffffff;
}

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


/* =========================================================================
   Pilíře Bento Grid (Jako Apple funkční weby)
   ========================================================================= */
.pillars {
  background-color: var(--bg-color);
  position: relative;
  z-index: 50;
  /* Nad hero vrstvou pro ostré překrytí */
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
  /* Tmavý stín umocňující hloubku sekce nad obrázkem */
  padding-top: 140px;
  /* Víc místa nahoře pro elegantní odskok od hrany */
}

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

.bento-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  /* Aby fotky vynikly */
  justify-content: space-between;
}

/* Když má karta obrázek na pozadí */
.bento-card.has-bg {
  color: #fff;
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s ease;
}

.bento-card:hover .bento-card-bg {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  line-height: 1.4;
  opacity: 0.9;
}

.bento-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.bento-card:hover {
  transform: scale(1.02);
}

.bento-card.featured {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  /* Prémiový tmavý look pro první kartu */
  color: #fff;
  min-height: auto;
  padding: 60px;
}

/* Modifikace pro featured kartu s obrázkem na polovině */
.bento-card.featured.split-bg {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.featured-text {
  padding: 60px;
  flex: 1;
  z-index: 2;
  position: relative;
}

.featured-image {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.featured-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--brand-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bento-icon svg {
  width: 32px;
  height: 32px;
}

/* Brand Bar pod hlavičkou */
.brand-story {
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}

.brand-logo-area {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #2b2a29;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.brand-logo-area img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.brand-text-area {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Cebia Banner */
.cebia-banner {
  background: linear-gradient(90deg, #f0f4f8 0%, #e2e8f0 100%);
  border-radius: var(--radius-xl);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 120px auto 60px auto;
  /* Zvýšená horní mezera od bento gridu */
  max-width: 1200px;
}

.cebia-text h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #1a202c;
}

.cebia-text p {
  color: #4a5568;
  margin-bottom: 0;
}

/* =========================================================================
   Flotila aut s Filtry (Kompaktní design)
   ========================================================================= */
.fleet {
  background-color: var(--bg-color);
  padding-top: 60px;
  padding-bottom: 240px;
  /* Záměrně gigantický prostor, aby opona nezačala požírat sekci moc brzy */
  position: relative;
  z-index: 10;
}

.fleet-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.filter-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sliders-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 800px;
  background: var(--surface-color);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.slider-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-box label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.slider-box strong {
  color: var(--text-main);
  font-size: 1.1rem;
}

/* Chrome/Safari moderní vzhled sliderů */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--brand-color);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* Více aut na šířku */
  gap: 24px;
  margin-bottom: 80px;
}

.car-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-color);
  transition: transform var(--transition-smooth);
  position: relative;
  /* Pro Sauto overlay */
}

/* Sauto Overlay efekt */
.sauto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  height: 50%;
  pointer-events: none;
}

.sauto-overlay img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  /* Změní Sauto logo na bílou pokud je např. černé */
}

.sauto-overlay span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.car-card:hover .sauto-overlay {
  transform: translateY(0);
}

.car-card:hover {
  transform: scale(1.02);
}

.car-card:focus-visible {
  outline: 3px solid var(--brand-color);
  outline-offset: 5px;
}

.car-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.car-card:hover .car-card-img {
  transform: scale(1.05);
  /* Zoom na obrázku při najetí */
}

.car-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.car-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: #e5e5ea;
  color: var(--text-muted);
  border-radius: 6px;
}

.car-card-info h3 {
  font-size: 1.35rem;
  /* Zmenšené písmo pro kompaktnost */
  margin-bottom: 8px;
}

.car-specs {
  margin-bottom: 16px;
  font-size: 1rem;
}

.car-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 16px;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.car-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.car-card:hover .car-action {
  background: var(--text-main);
  color: #fff;
}

.action-wrap {
  text-align: center;
}

/* =========================================================================
   Závěrečná překryvná clona (Opona 2.0)
   ========================================================================= */
.bottom-curtain {
  position: relative;
  z-index: 50;
  /* Zaruší překryv přes flotilu */
  background-color: #000;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-top: -40px;
  /* Vytvoří reálný překryv nad sekcí nad ním */
}

.buyout {
  padding: 120px 0;
  color: #fff;
}

.buyout-grid {
  display: flex;
  gap: 80px;
  align-items: stretch;
}

.buyout-text-side {
  flex: 1;
}

.buyout-text-side h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 32px;
}

.buyout-bullets {
  list-style: none;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #a1a1a6;
}

.buyout-bullets li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.buyout-bullets svg {
  color: var(--brand-color);
  flex-shrink: 0;
  margin-top: 4px;
}

.buyout-info-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 60px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.buyout-kicker {
  color: var(--brand-color);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.buyout-info-card h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.buyout-info-card > p {
  color: #a1a1a6;
  line-height: 1.65;
}

.buyout-steps {
  display: grid;
  gap: 12px;
  margin: 30px 0 34px;
}

.buyout-steps span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
}

.buyout-steps b {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 96, 10, 0.16);
  color: var(--brand-color);
  font-size: 0.82rem;
}

.buyout-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 12px;
}

.buyout-actions .btn {
  width: 100%;
  min-height: 56px;
  justify-content: center;
}

.buyout-actions .btn-primary {
  background: var(--brand-color);
}

.buyout-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* =========================================================================
/* =========================================================================
/* =========================================================================
   Kontaktní Sekce - Asymetrický Layout (Světlý Premium s paternem)
   ========================================================================= */
.contact {
  background-color: transparent;
  padding: 80px 0 250px 0;
}

.contact-card {
  background-color: var(--bg-color);

  /* Prémiový jemný Dot Pattern na pozadí textové části */
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;

  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  min-height: 500px;
  color: var(--text-main);
  position: relative;
}

.contact-info-side {
  flex: 1;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* nad paternem */
}

.contact-info-side h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.contact-info-side p {
  margin-bottom: 48px;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.contact-visual-side {
  flex: 1;
  background: #000;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.contact-visual-side iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reveal-curtain {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  /* Barva karty, aby to perfektně splynulo */
  z-index: 10;
  /* Maske je před mapou */
  transform-origin: top;
  /* Bude se smršťovat nahoru (nebo dolů, to nastaví JS) */
}

.contact-card:hover .contact-visual-side iframe {
  filter: grayscale(0%) !important;
  /* Na hover plná barva mapy! */
  transition: filter 0.8s ease;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 16px;
  font-size: 1.15rem;
  color: var(--text-main);
}

.cd-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-text a {
  display: inline-block;
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.cd-text a:hover {
  color: var(--brand-color);
}

.cd-item svg {
  color: var(--brand-color);
  flex-shrink: 0;
}

.cd-item strong {
  font-weight: 600;
  color: var(--text-main);
}

/* =========================================================================
   Ultra Závěrečná Opona (Slogan Footer)
   ========================================================================= */
.ultra-bottom-curtain {
  position: relative;
  z-index: 60;
  background-color: #000;
  color: #fff;
  margin-top: -60px;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  overflow: hidden;
  padding: 40px 20px;
}

.huge-slogan {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -2px;

  /* Text maskující pohybující se živé záření */
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.1) 0%, #fff 50%, rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s ease-in-out infinite alternate;

  margin-bottom: 60px;
  max-width: 1200px;
  line-height: 1.1;
  position: relative;
}

/* Vytvoří i lehký oranžový ambientní odlesk za textem */
.huge-slogan::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  background: var(--brand-color);
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  border-radius: 50%;
  animation: pulseLight 4s infinite alternate;
}

@keyframes textShine {
  0% {
    background-position: -100% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes pulseLight {
  0% {
    opacity: 0.05;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* =========================================================================
   Opravdové Grand Finale (Text AUTA OLOMOUC)
   ========================================================================= */
.ultra-bottom-curtain {
  min-height: calc(100dvh - 64px);
  /* Dokonalé vystředění po doskrolování nakonec s ohledem na footer a mobilní UI lišty (dvh) */
}

.final-slogan-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
}

.final-brand-text {
  font-size: clamp(3rem, 10vw, 8rem);
  /* Zmenšeno z 12vw/10rem aby nápis nepůsobil až příliš agresivně */
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--brand-color);
  margin-top: -20px;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
}

/* =========================================================================
   Responzivita
   ========================================================================= */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.featured {
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .bento-card.featured.split-bg {
    flex-direction: column;
  }

  .featured-text {
    padding: 40px;
  }

  .featured-image {
    width: 100%;
    min-height: 250px;
  }

  .contact-card {
    flex-direction: column;
  }

  .contact-info-side {
    padding: 40px;
  }

  .contact-visual-side {
    min-height: 300px;
  }

  .pillars {
    padding-top: 60px;
  }

  .brand-story {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5%;
    gap: 20px;
    margin-bottom: 20px;
  }

  .brand-logo-area {
    flex: auto; /* Zabrání tomu, aby si flex-basis držel 300px na výšku při flex-direction: column */
    width: 100%;
    justify-content: center;
  }

  .cebia-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .buyout-grid {
    flex-direction: column;
    gap: 40px;
  }

  .buyout-info-card {
    padding: 40px;
  }
}

@media (max-width: 600px) {
  .utility-bar {
    padding: 8px;
    gap: 12px;
  }

  .status-text {
    display: none;
  }

  .utility-actions .btn {
    padding: 8px 12px;
  }

  .hero-outro-text h2 {
    font-size: 2.5rem;
    white-space: normal;
  }

  .hero-outro-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-outro-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .buyout-info-card {
    padding: 30px 24px;
  }

  .buyout-actions {
    flex-direction: column;
  }

  .buyout-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   Plovoucí "Track Navigator" - Přepínání sekcí ve stylu přehrávače
   ========================================================================= */
.fab-navigator {
  position: fixed;
  bottom: -80px; 
  right: 24px;
  background-color: var(--text-main);
  border-radius: 100px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s;
  pointer-events: none;
  overflow: hidden; /* Pro oříznutí hover efektů tlačítek */
}

.fab-navigator.visible {
  bottom: 32px;
  pointer-events: auto;
}

.fab-navigator button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.fab-navigator button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.fab-navigator button:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.fab-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255,255,255,0.2);
}

@media (max-width: 600px) {
  .fab-navigator {
    right: 20px;
  }
  .fab-navigator.visible {
    bottom: 20px;
  }
  .fab-navigator button {
    padding: 14px 20px;
  }
}

/* =========================================================================
   Cookie Banner (Basic GDPR)
   ========================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  z-index: 9999;
  background: #ffffff;
  color: var(--text-main);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  width: calc(100% - 48px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.cookie-content {
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    bottom: 16px;
    padding: 20px;
    width: calc(100% - 32px);
  }
  .cookie-banner .btn {
    width: 100%;
  }
}
