/* MAIN COLORS */
/* ORANGE: 
    HEX: #ed7d31
    RGB: rgba(237, 125, 49)
    HSL: hsl(24, 84, 56)
 */

 /* BLACK: 
    HEX: #000000
    RGB: rgba(0, 0, 0)
    HSL: hsl(0, 0, 0)
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-dark: #171717;

  --panel: #ffffff;
  --panel-soft: #faf8f6;

  --ink: #1a1a1a;
  --muted: #666666;

  --line: #dddddd;
  --line-strong: #c9c9c9;

  --accent: #ed7d31;
  --accent-dark: #cf6620;
  --accent-soft: #fff1e6;

  --double: radial-gradient(circle at 0 0, #ed7d31, #7a3b12);

  --container: 1180px;

  --bg-foreground: #cf6620; /* Tmavé pozadí sekce */
  --text-primary-foreground: #ffffff; /* Hlavní barva textu */
  --text-muted: rgba(255, 255, 255, 0.6); /* Ztlumená barva pro popisky */
  --bg-primary: #3b82f6; /* Barva pro rozmazané dekorační kruhy */

  /* Přidej/uprav dle svého designu */
  --bg-background: #ffffff;
  --bg-card: #ffffff;
  --text-foreground: #09090b;
  --text-muted-foreground: #71717a;
  --color-primary: #3b82f6; 
  --color-border: #e4e4e7;
  --shadow-primary: rgba(59, 130, 246, 0.05); /* Pro stín při hoveru */
}



/* base */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: inherit; }

/* layout */

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.container-sluzby {
  width: min(var(--container), 100% - 50px);
  margin-inline: auto;
}


.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  z-index: 999;
}
.skip:focus { left: 8px; }

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 25, 45, 0.06);
  box-shadow: 0 2px 10px rgba(9, 24, 48, 0.08);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0
}

/* =========================================
   TOPBAR ROW (FIX PRO ROZPADÁVÁNÍ)
   ========================================= */
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 8px;
  /* TOHLE ZABRÁNÍ ZALOMENÍ NA DRUHÝ ŘÁDEK ZA KAŽDOU CENU */
  flex-wrap: nowrap !important; 
  /* Zabrání přetékání mimo obrazovku, pokud se to tam fakt nevejde */
  max-width: 100vw; 
  overflow: hidden; 
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto; /* Zabrání zmačkání loga */
}
.brand__logo { 
  height: 22px; 
  width: auto; 
}

/* NAV + BURGER */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.nav-toggle__icon {
  width: 14px;
  height: 10px;
  position: relative;
  display: inline-block;
}
.nav-toggle__icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink), 0 8px 0 var(--ink);
}

.nav {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 6px;
  color: var(--muted);
  white-space: nowrap; /* Zásadní: nedovolí zlomení textu */
}

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

/* Příprava pro ostrou animovanou linku */
.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px; 
  height: 2px; 
  background-color: var(--accent);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  transition: width 0.25s ease-out; /* Animace pro běžný hover */
}

/* KDYŽ NAJEDEŠ MYŠÍ: Linka se plynule roztáhne */
.nav a:hover::after {
  width: calc(100% - 12px); 
}

/* AKTIVNÍ STRÁNKA: Text ztmavne */
.nav a[aria-current="page"] { 
  color: var(--ink); 
}

/* AKTIVNÍ STRÁNKA (LINKA): Objeví se okamžitě a zakáže se jí animace */
.nav a[aria-current="page"]::after {
  width: calc(100% - 12px); 
  transition: none !important; /* TÍMHLE ZABIJEME ANIMACI PO NAČTENÍ STRÁNKY */
}

/* CTA */
.topbar__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* PHONE CHIP (TVŮJ ORIGINÁL) */
.phone-chip {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  text-decoration: none;
  min-width: 210px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  background-color: transparent;
}

.phone-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phone-chip:hover::before {
  opacity: 1;
}

.phone-chip:hover {
  box-shadow: 0 0 0 1px var(--accent);
}

.phone-chip__icon,
.phone-chip__text {
  position: relative;
  z-index: 2;
}

.phone-chip__icon {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.phone-chip__icon svg { width: 100%; height: 100%; }

.phone-chip__text { display: flex; flex-direction: column; gap: 1px; }
.phone-chip__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.8;
}
.phone-chip__number { font-size: 14px; font-weight: 800; }

/* =========================================
   BULLETPROOF TOPBAR FIX
   (Přepisuje všechny staré zalomovací nesmysly)
   ========================================= */

/* 1. Zamkneme hlavní řádek hlavičky */
.topbar__row {
  display: flex !important;
  flex-wrap: nowrap !important; /* Absolutní zákaz zalomení na nový řádek */
  align-items: center !important;
  justify-content: space-between !important;
}

/* 2. Zrušíme staré pravidlo 'width: 100%', které shazovalo tlačítko dolů */
.topbar__cta {
  width: auto !important; 
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: flex !important;
}

.brand {
  flex: 0 0 auto !important;
}

/* 3. Včasný zlom na Burger menu (1350px) - zabrání rvačce SEO textů s logem */
@media (max-width: 1350px) {
  .nav { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
}

/* 4. Záchrana na malých mobilech - skryjeme text CTA a zůstane jen zelené sluchátko */
@media (max-width: 768px) {
  .phone-chip__text { display: none !important; }
  .phone-chip { min-width: auto !important; padding: 8px 12px !important; }
  .nav-toggle { font-size: 0 !important; padding: 8px !important; gap: 0 !important; }
  .nav-toggle__icon { margin: 0 !important; }
}

/* =========================================
   ŘEŠENÍ PŘETÉKÁNÍ (MEDIA QUERIES)
   ========================================= */

/* Fáze 1: Lehké smrsknutí na menších monitorech (cca 1300px - 1450px) */
@media (max-width: 1450px) {
  .nav {
    gap: 0; /* Zrušíme zbytečné mezery mezi odkazy */
  }
  .nav a {
    padding: 8px 6px; /* Zmenšíme vnitřní okraje odkazů */
    font-size: 13px; /* Zmenšíme font o 1px, pro SEO irelevantní, vizuálně pomůže hodně */
  }
  .topbar__row {
    gap: 1rem;
  }
}

/* Fáze 2: Agresivní Burger Breakpoint (cca 1200px)
   Když už se to opravdu nevejde, schováme to pod Burger dřív, 
   než to rozjebe hlavičku na dva řádky. */
@media (max-width: 1200px) {
  .nav {
    display: none; /* Skryjeme dlouhé menu */
  }
  .nav-toggle {
    display: inline-flex; /* Ukážeme Burger tlačítko */
  }
}

/* Fáze 3: Mobily - Záchrana CTA tlačítka */
@media (max-width: 640px) {
  .phone-chip {
    min-width: auto;
    padding: 6px 10px;
  }
  .phone-chip__text {
    display: none; /* Na malém mobilu se schová text a zůstane jen ikona telefonu */
  }
}



/* --- YOUR ORIGINAL BASE --- */
.btn {
  position: relative; 
  z-index: 1; 
  overflow: hidden; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 3em;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5em;
  cursor: pointer;
  background: none;
  color: var(--ink);
  white-space: nowrap;
}

/* --- YOUR ORIGINAL PRIMARY TLAČÍTKO --- */
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0; 
  background: var(--double);
  opacity: 0; 
  z-index: -1; 
  transition: opacity 0.2s ease; 
}

.btn--primary:hover::before {
  opacity: 1;
}

/* --- YOUR ORIGINAL GHOST LIGHT TLAČÍTKO --- */
.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.3s ease; 
}
.btn--ghost-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* --- YOUR ORIGINAL GHOST TLAČÍTKO --- */
.btn--ghost {
  border-color: var(--border);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.btn--ghost:hover { 
  border-color: rgba(18, 33, 47, 0.25); 
}

/* =========================================
   NEW MATERIAL UI EFFECTS (JS REQUIRED)
   ========================================= */

/* 1. THE HOVER SPOTLIGHT (Tracks mouse via --x and --y) */
.btn::after {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 150%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1; /* Keeps it under the text but over your background */
}

/* Darker spotlight for the white ghost button so it's visible */
.btn--ghost::after {
  background: radial-gradient(circle closest-side, rgba(0, 0, 0, 0.08), transparent);
}

.btn:hover::after {
  opacity: 1;
}

/* 2. THE CLICK RIPPLE (Injected by JS) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4); 
  pointer-events: none;
  z-index: -1; /* Keeps it under the text */
}

/* Darker ripple for the white ghost button */
.btn--ghost .ripple {
  background-color: rgba(0, 0, 0, 0.15);
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* --------------------*/
/* --- FOOTER BASE --- */
/* --------------------*/

.footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================
   TOP SECTION (PARTNERS)
   ========================================= */
.footer__top {
  /* 1. THE GRADIENT: Starts pure white and gently fades to your soft gray */
  background: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 100%);
  
  /* 2. THE ROUNDED EDGES: Curves only the top left and top right corners */
  border-top-left-radius: 2.5rem;
  border-top-right-radius: 2.5rem;
  
  /* 3. THE LIFT: Replaces the hard orange border with a soft, premium top-shadow */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
  
  padding: 4rem 0;
}

.footer__partners-text {
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #888888; /* Soft gray so it doesn't overpower the logos */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 2.5rem 0;
}

.footer__partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allows logos to wrap to the next line on mobile */
  gap: 3rem;
}

/* Premium Logo Layout (Full Color) */
.partner-logo {
  height: 40px; /* Keeps them all cleanly aligned */
  width: auto;
  max-width: 150px;
  
  /* We removed the grayscale filter so they are 100% recognizable */
  opacity: 0.9; /* Just a tiny bit faded so they don't scream at the user */
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* =========================================
   BOTTOM SECTION (COPYRIGHT)
   ========================================= */
/* =========================================
   BOTTOM SECTION (COPYRIGHT & INFO)
   ========================================= */
.footer__bottom {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 1.5rem 0;
  color: #ffffff;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Flexbox container for the 3 blocks */
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: center;
}

/* On desktop, line them up horizontally */
@media (min-width: 1024px) {
  .footer__bottom-inner {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }
}

/* 1. Brand & Logo Styling */
.footer__brand {
  display: flex;
  align-items: center; /* Centers logo vertically with text */
  gap: 0.75rem;
}

.footer__logo {
  height: 1.25rem; /* Adjust this to make the logo smaller or larger */
  width: auto;
  /* If the logo is colored and looks weird on orange, 
     you can use: filter: brightness(0) invert(1); to make it pure white */
  display: block;
}

.footer__brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.footer__brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.footer__brand-suffix {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

/* 2. Company Info (IČO, Address, ISO) */
.footer__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.95;
}

/* The divider dots */
.footer__dot {
  display: none; /* Hide dots on very small mobile screens */
  opacity: 0.5;
}

@media (min-width: 640px) {
  .footer__info {
    gap: 0.75rem;
  }
  .footer__dot {
    display: inline-block; /* Show dots on tablets and desktops */
  }
}

/* 3. Copyright Text */
.footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px solid rgba(13,25,45,0.06);
  }
  .topbar[data-nav-open="true"] .nav { display: flex; }

  .topbar__cta {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-left: 0;
  }
  .phone-chip { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 960px) {
  .hero__inner { padding-block: 40px; }
  .hero__highlights { flex-direction: column; }
  .contact { grid-template-columns: 1fr; }

  .pagegrid { grid-template-columns: 1fr; }
  .pagegrid__side { position: static; }

  .content-block__grid,
  .content-block__grid--flip {
    grid-template-columns: 1fr;
  }
  .content-block__grid--flip > * { order: unset !important; }
}

@media (max-width: 720px) {
  .brand__logo { height: 22px; }
}

.media__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Třída pro oranžový akcent */
.text-accent {
  color: #ed7d31;
}

/* Styl pro moderní pomlčku před kickerem */
.hero__kicker::before {
  content: "—"; /* Dlouhá pomlčka (em dash) */
  margin-right: 10px;
  font-weight: bold;
}