/* styles.css */
/* Fonts: Inter (Google Fonts) */
:root {
  --bg-1: #1a1a2d;
  --bg-2: rgb(15, 18, 48);
  --gold: #d8a26d;
  --muted: rgb(208, 214, 224);
  --text: #111;
  --card: rgba(255, 0, 0, 0.02);
  --glass: rgba(255, 255, 255, 0.03);
  --white: rgba(255, 255, 255, 0.9);
  --radius: 16px;
  
  /* Základní šířka pro běžné notebooky */
  --max-w: 1400px; 
}

/* Plynulé scrollování pro celý web */
html {
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%; /* Důležité: umožní protažení pozadí */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  
  /* --- ZMĚNA: JEDNOLITÉ POZADÍ (ŽÁDNÝ GRADIENT) --- */
  background-color: var(--bg-2); 
  background-image: none;
  /* ----------------------------------------------- */

  color: #e8eef7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
  
  min-height: 100vh; /* Zajistí pokrytí celého displeje */
}

/* Odsazení kotvy, aby nadpis nebyl schovaný pod menu */
section {
  scroll-margin-top: 100px; 
}

/* =========================================
   1. ŘEŠENÍ PRO OBŘÍ MONITORY (2000px+)
   ========================================= */
@media (min-width: 2000px) {
  :root {
    --max-w: 1800px; /* Rozšíříme kontejner */
  }
  body {
    font-size: 20px; /* Zvětšíme písmo */
  }
  .hero-left h1 {
    font-size: 90px;
  }
  .hero-card img {
    height: 700px;
  }
}

/* Utility container */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Animace Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*------------------------------------------- 
HEADER 
-------------------------------------------*/
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 10px 0;
  justify-content: space-between;
}

.logo {
  aspect-ratio: inherit;
  height: 56px;
  width: auto;
}

/* Navigace - desktop základ */
.nav { position: relative; }
.nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.3s;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions .phone {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.btn-cta {
  background: var(--gold);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(216, 162, 109, 0.12);
  white-space: nowrap;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none; /* Na desktopu skryté */
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 1001; /* Musí být nad otevřeným menu */
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animace hamburgeru na křížek */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/*========================================== 
HERO
==========================================*/
.hero { padding: 80px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-left h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(218, 170, 123, 0.12);
  display: inline-block;
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); }

.references { display: flex; align-items: center; gap: 12px; }
.avatars { display: flex; }
.avatars img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid #0f1230;
  object-fit: cover;
  margin-right: -10px;
}
.avatars img:last-child { margin-right: 0; }

.refs-text .stars { color: #f0c36b; font-weight: 700; }
.refs-small { color: var(--muted); font-size: 14px; }

.hero-card {
  aspect-ratio: 12/9;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0  0 15px 8px rgba(208, 214, 224, 0.1);
  border: solid 1px var(--bg-1);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 0; 
}

/* --------------------------------
PARTNERS / CAROUSEL 
----------------------------------*/
.partners {
  position: relative;
  padding: 40px 0;
  background: var(--bg-2);
  overflow: hidden;
}
.logos {
  display: flex;
  width: max-content;
  animation: scrollLoop 40s linear infinite;
  gap: 30px;
}
.logos-track { display: flex; gap: 30px; }
.item {
  flex-shrink: 0;
  min-width: 220px;
  padding: 14px 20px;
  background: var(--glass);
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0.9;
}
.partners::before, .partners::after {
  content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 3; pointer-events: none;
}
.partners::before { left: 0; background: linear-gradient(to right, var(--bg-2) 0%, transparent 100%); }
.partners::after { right: 0; background: linear-gradient(to left, var(--bg-2) 0%, transparent 100%); }

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/*--------------------------------------------------------
STEPS
-------------------------------------------------------*/
.steps { background: rgba(235, 245, 255, 1); padding: 60px 0; }
.steps-grid {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.step { flex: 1; text-align: center; padding: 12px; }
.icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.1);
}
.step h3 { margin: 6px 0 8px; color: #000; font-size: 1.25rem; }
.step p { color: #333; }
.arrow { font-size: 36px; color: #000; margin: 0 6px; }

/*----------------------------------------------------------------- 
INFO SECTON
-------------------------------------------------------------------*/
.info-section { padding: 90px 0; background: #fff; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.info-left {
  aspect-ratio: 9 / 8;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0  0 15px 8px rgba(208, 214, 224, 0.1);
  border: solid 1px var(--bg-1);
}

.info-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0; 
}

.info-right h2 { font-size: 48px; font-weight: 800; margin-top: 0; color: var(--text); }
.info-right p { color: #444; line-height: 1.6; margin-bottom: 1rem; }

/*----------------------------------------------------- 
SERVICES 
-------------------------------------------------------*/
.services { padding: 80px 0; background: var(--bg-2); /* Změna na solidní barvu */ }
.services h2 { font-size: 44px; text-align: center; margin: 0 0 8px; color: #fff; }
.services .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 30px;
  transition: transform 0.3s ease, background 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
}
.card-icon svg { stroke: var(--gold); }
.card h3 { margin: 15px 0 10px; font-size: 1.2rem; color: #fff; }
.card p { color: var(--muted); margin: 0; }

.contact-text{
  padding: 10px 0 10px 0;
  text-align: center;
}

/*----------------------------------------------------- 
FAQ
------------------------------------------------------*/
.faq-section { padding: 80px 0; background: #fff; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.faq-left h2 { font-size: 48px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.faq-left p { color: #555; line-height: 1.6; margin-bottom: 24px; }
.faq-left .faq-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.faq-right { display: flex; flex-direction: column; gap: 16px; }
.faq-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #eee;
}
.faq-card.active { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--gold); }
.faq-question { font-weight: 600; color: #111; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; opacity: 0; padding-top: 0; color: #555; overflow: hidden; transition: all 0.4s ease; }
.faq-card.active .faq-answer { max-height: 200px; opacity: 1; padding-top: 15px; }

/*-----------------------------------------------------  
FOOTER 
-----------------------------------------------------*/
.site-footer {
  background: var(--bg-2);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: var(--muted); text-decoration: none; line-height: 1.8; display: block; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; text-align: center; }


/* =================================================================
   RESPONSIVITA A MOBILNÍ MENU
   ================================================================= */

/* 1. STŘEDNÍ ZAŘÍZENÍ (1200px a méně) */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-left h1 { font-size: 56px; }
}

/* 2. TABLET A MOBIL (991px a méně) - TADY SE LÁME NAVIGACE */
@media (max-width: 991px) {
  /* Zobrazení hamburger tlačítka */
  .menu-toggle { display: block; }

  /* Skrytí telefonního čísla v hlavičce (místo) */
  .phone { display: none; }
  
  /* STYLOVÁNÍ MOBILNÍHO MENU */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 18, 48, 0.98); /* Tmavé pozadí */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Animace vysunutí */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.4s ease;
    pointer-events: none;
  }

  /* Třída, kterou přidá JavaScript */
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav a {
    font-size: 24px;
    font-weight: 700;
    color: #fff !important; /* Bílé písmo v menu */
  }

  /* Úprava layoutu zbytku stránky */
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-left { order: 1; }
  .hero-right { order: 2; margin-top: 30px; }

  /* === OPRAVA KARTY A OBRÁZKU NA MOBILU (FLEX FIX) === */
  .hero-card {
    /* 1. Flexbox donutí obal obepnout obsah bez mezer */
    display: flex !important;
    flex-direction: column;
    
    /* 2. Reset výšky a poměru stran */
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hero-card img {
    /* 4. Obrázek se natáhne na šířku */
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important;
    
    
    /* 5. Zákaz roztahování flex itemu */
    flex-grow: 0;
    flex-shrink: 0;
    
    /* 6. Oprava vykreslování */
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
  }
  /* ================================================== */

  .hero-actions { justify-content: center; }
  .references { justify-content: center; }
  .info-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .info-left img {max-height: 500px; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Specificky pro tablety v portrait režimu */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-card {
    /* Omezíme celkovou výšku karty, aby nebyla "obří" */
    max-height: 500px !important; 
    overflow: hidden !important;
    display: flex !important;
  }

  .hero-card img {
    width: 100% !important;
    /* Nastavíme fixní výšku, aby se aktivovalo ořezávání */
    height: auto !important;
    object-fit: cover !important;
    /* Posune ohnisko víc k hornímu okraji (0% je úplný vršek) */
    object-position: center 50% !important;
    margin: 0 !important;
  }

  .info-left {
    /* Omezíme celkovou výšku karty, aby nebyla "obří" */
    max-height: 500px !important; 
    overflow: hidden !important;
    display: flex !important;
  }

  .info-left img {
    width: 100% !important;
    /* Nastavíme fixní výšku, aby se aktivovalo ořezávání */
    height: auto !important;
    object-fit: cover !important;
    /* Posune ohnisko víc k hornímu okraji (0% je úplný vršek) */
    object-position: center 50% !important;
    margin: 0 !important;
  }
}

/* 3. MOBILY (768px a méně) */
@media (max-width: 767px) {
  .logo { height: 40px; }
  .hero-left h1 { font-size: 36px; }
  .hero-card img { max-height: 250px !important;}

  .info-left img {
    max-height: 3500px !important;
  }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; gap: 30px; }
  .arrow { display: none; }
  .step { width: 100%; padding: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}