/* ============================================================
   Prípadové štúdie — zdieľaný svetlý dizajn
   Zhodný s ostatnými podstránkami (references.html, cloud-management.html)
   a so vzorom case-studies/vzor-energetika-cloud.html.
   Jeden zdroj pravdy pre všetky články prípadových štúdií.
   ============================================================ */

/* === Globálne pravidlo: fialové prvky majú vždy biely text === */
#wrapper .btn-main,
#wrapper .btn-main:hover,
#wrapper .btn-main:focus,
#wrapper .btn-main span,
#wrapper .btn-main:hover span,
#wrapper .tech-chip,
#wrapper .tech-chip:hover,
#wrapper .related-card-tag,
#wrapper .related-card-title,
#wrapper .result-icon,
#wrapper .result-icon i,
#wrapper .case-tab-btn.active,
#wrapper .case-tab-btn.active:hover,
#wrapper .case-tab-btn.active span,
#wrapper a.related-card,
#wrapper a.related-card h4,
#wrapper a.related-card span {
  color: #ffffff !important;
}
#wrapper .btn-main.fx-slide:before { color: #ffffff !important; }
#wrapper .btn-main.fx-slide:hover:before { color: #ffffff !important; }

/* === Typografia === */
* {
  --body-font-size: 18px;
  --h1-font-size: 80px;
  --h2-font-size: 64px;
  --h3-font-size: 36px;
  --h4-font-size: 26px;
  --h5-font-size: 22px;
  --h6-font-size: 18px;
}
body { font-size: 18px; }
p { font-size: 18px; }
p.lead { font-size: 22px; line-height: 1.6; }

/* Zmenšenie nadpisov na tabletoch a telefónoch */
@media (max-width: 991px) {
  * {
    --h1-font-size: 56px;
    --h2-font-size: 44px;
    --h3-font-size: 30px;
    --h4-font-size: 22px;
    --h5-font-size: 20px;
  }
  p.lead { font-size: 20px; }
}
@media (max-width: 575px) {
  * {
    --h1-font-size: 40px;
    --h2-font-size: 32px;
    --h3-font-size: 26px;
    --h4-font-size: 20px;
  }
  body { font-size: 17px; }
  p { font-size: 17px; }
  p.lead { font-size: 18px; }
}

/* === Pozadie zhodné s homepage (sekcia „Súčasné výzvy") — svetlá základňa #f6f1fc
   s jemnými fialovými glow-spotmi, nie plochá fialová === */
body.dark-scheme { background: #f4f0fa !important; }
header.smaller { background: #101435 !important; }
#wrapper {
  background:
    radial-gradient(ellipse 55% 25% at 22% 14%, rgba(140,90,255,0.22) 0%, rgba(180,140,255,0.08) 50%, transparent 85%),
    radial-gradient(ellipse 50% 22% at 78% 30%, rgba(190,150,255,0.18) 0%, rgba(210,180,255,0.06) 55%, transparent 88%),
    radial-gradient(ellipse 55% 25% at 22% 48%, rgba(140,90,255,0.20) 0%, rgba(180,140,255,0.07) 55%, transparent 88%),
    radial-gradient(ellipse 50% 22% at 78% 66%, rgba(190,150,255,0.18) 0%, rgba(210,180,255,0.06) 55%, transparent 88%),
    radial-gradient(ellipse 55% 25% at 22% 84%, rgba(140,90,255,0.16) 0%, transparent 85%),
    #f6f1fc;
}
html, body { background: transparent !important; }

/* === Hero === */
#section-hero .sw-overlay {
  opacity: 1 !important;
  background: linear-gradient(135deg, rgba(16, 20, 53, 0.86) 0%, rgba(18, 24, 70, 0.82) 60%, rgba(28, 34, 96, 0.78) 100%) !important;
}
#section-hero .gradient-edge-top.color { opacity: 0.25 !important; }
#section-hero .gradient-edge-bottom { opacity: 0.6 !important; }
/* Hero prípadovej štúdie: obsah bol position:absolute, takže sekciu nevedel
   roztiahnuť. Slovenský nadpis sa pri užšej šírke zalomí do viacerých riadkov,
   blok rastie z vlastného stredu na obe strany a vyliezol z pásu hore aj dole —
   pri 1024 a 1194 bodoch začínal <h1> nad spodnou hranou pevnej hlavičky
   a text presahoval až 179px pod hero. Necháme sekciu, nech sa vysadí sama.
   padding-top musí prekryť pevnú hlavičku: tá má 62px pod 576 bodmi
   a 129 až 140px nad nimi. !important je potrebný, lebo .no-top zo style.css
   nastavuje padding-top: 0 !important; #section-hero (1-0-0) ho prebije. */
#section-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 150px !important;
  padding-bottom: 60px !important;
}
#section-hero .abs-centered {
  position: static;
  transform: none;
}
@media (max-width: 575px) {
  #section-hero { padding-top: 80px !important; padding-bottom: 40px !important; }
}
#section-hero .hero-subheadline {
  font-size: 3rem;
  line-height: 1.35;
  font-weight: 700;
  padding-bottom: 0.12em; /* aby sa descendery (g,y) neorezali kvôli background-clip:text */
}
@media (max-width: 991px) { #section-hero .hero-subheadline { font-size: 2rem; } }
@media (max-width: 575px) { #section-hero .hero-subheadline { font-size: 1.4rem; } }

/* === Svetlé sekcie — priehľadné, nech presvitá svetlé pozadie (ako inde na webe) === */
/* #content má v tmavej schéme tmavé pozadie (.dark-scheme #content) — musíme ho zpriehľadniť,
   inak cez priehľadné sekcie presvitá tmavá. */
#content,
.dark-scheme #content {
  background: transparent !important;
}
#section-snapshot,
#section-client-challenge,
#section-results,
#section-related,
#section-venue {
  background: transparent !important;
  background-color: transparent !important;
  position: relative;
}
#section-snapshot > .container,
#section-client-challenge > .container,
#section-results > .container,
#section-related > .container,
#section-venue > .container {
  position: relative;
  z-index: 1;
}
#section-snapshot,
#section-snapshot h1, #section-snapshot h2, #section-snapshot h3,
#section-snapshot h4, #section-snapshot p, #section-snapshot span,
#section-snapshot .subtitle,
#section-client-challenge,
#section-client-challenge h1, #section-client-challenge h2, #section-client-challenge h3,
#section-client-challenge h4, #section-client-challenge p, #section-client-challenge li,
#section-client-challenge span, #section-client-challenge .subtitle,
#section-results,
#section-results h1, #section-results h2, #section-results h3,
#section-results h4, #section-results p, #section-results span,
#section-results .subtitle,
#section-related,
#section-related h1, #section-related h2, #section-related h3,
#section-related h4, #section-related p, #section-related span,
#section-related .subtitle,
#section-venue,
#section-venue h1, #section-venue h2, #section-venue h3,
#section-venue h4, #section-venue p, #section-venue span,
#section-venue .subtitle {
  color: #1a1040 !important;
}
/* Popisky <strong>/<b> v svetlých sekciách — inak by dedili bielu z .dark-scheme strong */
#section-client-challenge strong, #section-client-challenge b,
#section-results strong, #section-results b,
#section-related strong, #section-related b,
#section-venue strong, #section-venue b {
  color: #1a1040 !important;
}
#section-snapshot h1, #section-snapshot h2,
#section-client-challenge h1, #section-client-challenge h2,
#section-results h1, #section-results h2,
#section-related h1, #section-related h2,
#section-venue h1, #section-venue h2 {
  background: linear-gradient(180deg, #1a1040 0%, #7c5cbf 85%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* === Snapshot — rýchle čísla === */
.snapshot-card {
  background: #ffffff;
  border: 1px solid rgba(180, 141, 255, 0.20);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 18px rgba(118, 77, 240, 0.06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.snapshot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 141, 255, 0.4);
  box-shadow: 0 14px 32px rgba(118, 77, 240, 0.12);
}
.snapshot-number {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1040;
  margin-bottom: 6px;
}
.snapshot-number .snapshot-plus { color: #813eed !important; font-weight: 700; }
.snapshot-label {
  font-size: 0.95rem;
  color: #1a1040;
  opacity: 0.85;
}

/* === Bloky "Klient" / "Výzva" === */
.info-block {
  background: #ffffff;
  border: 1px solid rgba(180, 141, 255, 0.22);
  border-radius: 16px;
  padding: 36px;
  height: 100%;
  box-shadow: 0 6px 22px rgba(118, 77, 240, 0.07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.info-block:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 141, 255, 0.4);
  box-shadow: 0 18px 40px rgba(118, 77, 240, 0.13);
}
.info-block h3 {
  color: #1a1040;
  margin-bottom: 12px;
}
.info-block .info-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #764DF0;
  margin-bottom: 12px;
}
.info-block ul { padding-left: 20px; margin: 0; }
.info-block li { margin-bottom: 8px; line-height: 1.6; }

/* === Sekcia Riešenie — súvislý text (zoznam bodov) === */
#section-solution .solution-list {
  max-width: 780px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  text-align: left;
}
#section-solution .solution-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}
#section-solution .solution-list li:last-child { margin-bottom: 0; }
#section-solution .solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #764DF0;
}
#section-solution .solution-list li strong { color: #ffffff; }

/* === Sekcia Riešenie — tmavé pozadie === */
#section-solution .solution-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 141, 255, 0.18);
  border-radius: 16px;
  padding: 30px 26px;
  height: 100%;
  backdrop-filter: blur(8px);
  transition: transform .35s ease, box-shadow .45s ease, border-color .35s ease;
}
#section-solution .solution-step:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 141, 255, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
#section-solution .solution-step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #b48dff;
  margin-bottom: 10px;
}
#section-solution .solution-step h4 {
  color: #ffffff;
  margin-bottom: 10px;
}
#section-solution .solution-step p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* === Tech stack — chip tagy === */
.tech-chip {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(180, 141, 255, 0.3);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all .25s ease;
}
.tech-chip:hover {
  background: rgba(118, 77, 240, 0.2);
  border-color: #b48dff;
  transform: translateY(-2px);
}

/* === Výsledky — karty s metrikami === */
.result-card {
  background: #ffffff;
  border: 1px solid rgba(180, 141, 255, 0.22);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  text-align: left;
  box-shadow: 0 6px 22px rgba(118, 77, 240, 0.07);
  transition: transform .35s ease, box-shadow .45s ease, border-color .35s ease;
}
.result-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 141, 255, 0.4);
  box-shadow: 0 24px 50px rgba(118, 77, 240, 0.18);
}
.result-card .result-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #764DF0, #b48dff);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 1.5rem;
  margin-bottom: 16px;
}
.result-card .result-value {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1040;
  margin-bottom: 6px;
}
.result-card .result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1040;
  margin-bottom: 8px;
}
.result-card .result-desc {
  font-size: 0.95rem;
  color: rgba(26, 16, 64, 0.75);
  margin: 0;
}

/* === Citát klienta === */
.testimonial-card {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(180, 141, 255, 0.25);
  border-radius: 20px;
  padding: 48px 44px;
  backdrop-filter: blur(10px);
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -20px; left: 30px;
  font-size: 7rem;
  line-height: 1;
  color: rgba(180, 141, 255, 0.35);
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 1.35rem;
  line-height: 1.55;
  color: #ffffff;
  font-weight: 400;
  margin: 0 0 26px 0;
}
.testimonial-author {
  display: flex; align-items: center; gap: 16px;
}
.testimonial-author-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(180, 141, 255, 0.45);
}
.testimonial-author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.testimonial-author-role {
  font-size: 0.9rem;
  color: rgba(180, 141, 255, 0.85);
  margin: 0;
}
@media (max-width: 575px) {
  .testimonial-card { padding: 40px 24px; }
  .testimonial-text { font-size: 1.1rem; }
}

/* === Súvisiace prípadovky — karty === */
.related-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0c1530;
  transition: transform .35s ease, box-shadow .45s ease;
  text-decoration: none;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.related-card .related-card-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform .8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.related-card:hover .related-card-bg { transform: scale(1.1); }
/* Fialový filter na obrázku — zhodný s kartami inde na webe (blog, referencie) */
.related-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(92,78,180,0.40) 0%, rgba(40,46,120,0.55) 100%);
  mix-blend-mode: multiply;
}
.related-card .related-card-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 100%);
}
.related-card .related-card-tag {
  position: absolute; top: 18px; left: 18px;
  z-index: 3;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(118, 77, 240, 0.8);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
}
.related-card .related-card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  margin: 0; z-index: 3;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

/* === Kontaktný formulár === */
/* Spodok kontaktnej sekcie je na prípadovej štúdii tesnejší než na stránkach
   služieb (80 px proti 100 px) a to je zámer. Zostup mu ale chýbal: ID prebíja
   `section.pb-80` z css/site.css, takže ako jediný pás držal 80 px aj na
   mobile, kde má vrch tej istej sekcie 32 px. Rovnaký zostup ako pás. */
#section-venue { padding-bottom: var(--space-7xl); }
@media (max-width: 1199px) { #section-venue { padding-bottom: var(--space-5xl); } }
@media (max-width: 767px)  { #section-venue { padding-bottom: var(--space-3xl); } }
#section-venue .contact-form-simple {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0;
}
@media (max-width: 767px) { #section-venue .contact-form-simple { padding: 40px 0; } }
#section-venue .contact-form-simple input[type="text"],
#section-venue .contact-form-simple input[type="email"],
#section-venue .contact-form-simple textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 16, 64, 0.25);
  border-radius: 0;
  color: #1a1040 !important;
  padding: 14px 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .25s ease;
}
#section-venue .contact-form-simple textarea { min-height: 110px; resize: vertical; }
#section-venue .contact-form-simple input::placeholder,
#section-venue .contact-form-simple textarea::placeholder { color: rgba(26, 16, 64, 0.65); }
#section-venue .contact-form-simple input:focus,
#section-venue .contact-form-simple textarea:focus {
  outline: none;
  border-bottom-color: #764DF0;
}
#section-venue .contact-form-simple .form-submit-row {
  margin-top: 28px;
  text-align: center;
}
#section-venue .contact-form-simple button.btn-main,
#section-venue .contact-form-simple button.btn-main:hover,
#section-venue .contact-form-simple button.btn-main:focus {
  background: var(--primary-color);
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  font-family: var(--btn-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  padding: var(--btn-padding);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-rounded);
}
#section-venue .contact-form-simple button.btn-main span { color: #ffffff !important; }
#section-venue .contact-form-simple button.btn-main.fx-slide { position: relative; overflow: hidden; }
#section-venue .contact-form-simple button.btn-main.fx-slide span { display: block; position: relative; transition: all .3s ease-in-out; }
#section-venue .contact-form-simple button.btn-main.fx-slide:hover { background: var(--btn-hover-bg); }
#section-venue .contact-form-simple button.btn-main.fx-slide:hover span { transform: translate(0, 40px); opacity: 0; }
#section-venue .contact-form-simple button.btn-main.fx-slide:before {
  content: attr(data-hover-text);
  color: #ffffff !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 40px));
  opacity: 0;
  transition: all .3s ease-in-out;
}
#section-venue .contact-form-simple button.btn-main.fx-slide:hover:before { opacity: 1; transform: translate(-50%, -50%); }

/* === Breadcrumb === */
.breadcrumb-cs {
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.breadcrumb-cs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .25s ease;
}
.breadcrumb-cs a:hover { color: #ffffff; }
.breadcrumb-cs .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.4); }
.breadcrumb-cs .current { color: #b48dff; font-weight: 600; }

/* Vodoznak v pätičke je na blogu, prípadových štúdiách a domovskej stránke
   výraznejší než inde (0.11 proti 0.06 v css/components/footer.css) a má vlastnú
   mobilnú veľkosť. Zvyšok pätičky je v komponente. */
img.footer-watermark { opacity: 0.11; }
@media (max-width: 767px) { img.footer-watermark { width: 100vw; bottom: -11vw; } }
