/* ============================================================
   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; }

/* === Biele pozadie pre svetlé sekcie === */
body.dark-scheme { background: #ffffff !important; }
header.smaller { background: #101435 !important; }
#wrapper {
  background: #ffffff;
}
html, body { background: #ffffff !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; }
#section-hero .abs-centered { top: 60% !important; }
@media (max-width: 991px) { #section-hero .abs-centered { top: 55% !important; } }
#section-hero .hero-subheadline {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
}
@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 — biele pozadie s jemnými dekoratívnymi akcentmi === */
#section-snapshot,
#section-client-challenge,
#section-results,
#section-related,
#section-venue {
  background: #ffffff !important;
  background-color: #ffffff !important;
  position: relative;
}
/* Striedavý jemný tón pre lepšiu vizuálnu segmentáciu */
#section-client-challenge,
#section-related {
  background: #fafaff !important;
  background-color: #fafaff !important;
}
/* Jemný fialový dekor v rohoch svetlých sekcií */
#section-snapshot::before,
#section-results::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 80% 20%, rgba(140, 90, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
#section-client-challenge::before,
#section-related::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 20% 80%, rgba(180, 141, 255, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
#section-snapshot > .container,
#section-client-challenge > .container,
#section-results > .container,
#section-related > .container,
#section-venue > .container {
  position: relative;
  z-index: 1;
}
/* Jemné oddeľovacie linky medzi svetlými sekciami */
#section-snapshot { border-bottom: 1px solid rgba(180, 141, 255, 0.08); }
#section-client-challenge { border-bottom: 1px solid rgba(180, 141, 255, 0.08); }
#section-results { border-bottom: 1px solid rgba(180, 141, 255, 0.08); }
#section-related { border-bottom: 1px solid rgba(180, 141, 255, 0.08); }
#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;
}
#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 — 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;
  border: 1px solid rgba(255,255,255,0.06);
  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); }
.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 === */
#section-venue { padding-bottom: 80px; }
#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.5); }
#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; }

/* === Kreatívna pätička === */
.footer-creative { position: relative; overflow: hidden; padding-top: 0 !important; }
.footer-creative::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(180, 141, 255, 0.6) 50%, transparent 100%);
}
.footer-creative::after {
  content: ""; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(118, 77, 240, 0.18) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.footer-creative > * { position: relative; z-index: 1; }
.footer-cta-banner { padding: 70px 0 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: relative; }
.footer-cta-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #b48dff; margin-bottom: 12px;
}
.footer-cta-title {
  font-size: 2.2rem; line-height: 1.15; margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #b48dff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@media (max-width: 767px) {
  .footer-cta-title { font-size: 1.6rem; }
  .footer-cta-banner { padding: 50px 0 40px; }
}
.footer-main { padding: 60px 0 50px; }
.footer-heading {
  position: relative; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #b48dff; margin-bottom: 22px; padding-left: 14px;
}
.footer-heading::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 14px; background: linear-gradient(180deg, #764DF0, #b48dff); border-radius: 2px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  position: relative; color: rgba(255, 255, 255, 0.72); text-decoration: none;
  font-size: 0.95rem; padding-left: 0; transition: color .3s ease, padding-left .3s ease;
}
.footer-links a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: #b48dff; transition: width .3s ease;
}
.footer-links a:hover { color: #ffffff; padding-left: 20px; }
.footer-links a:hover::before { width: 14px; }
.footer-contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 141, 255, 0.18);
  border-radius: 14px; padding: 22px 22px; backdrop-filter: blur(8px);
}
.footer-contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; }
.footer-contact-item + .footer-contact-item { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-contact-item .footer-contact-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(118, 77, 240, 0.25), rgba(180, 141, 255, 0.15));
  display: flex; align-items: center; justify-content: center;
  color: #b48dff; font-size: 1rem;
}
.footer-contact-item .footer-contact-text { font-size: 0.92rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.footer-contact-item .footer-contact-text a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color .25s ease; }
.footer-contact-item .footer-contact-text a:hover { color: #b48dff; }
.footer-contact-item .footer-contact-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(180, 141, 255, 0.75); margin-bottom: 2px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid transparent; box-shadow: inset 0 0 0 1px rgba(180, 141, 255, 0.35);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; transition: all .3s ease;
}
.footer-social a:hover {
  background: linear-gradient(135deg, #764DF0, #b48dff);
  border-color: transparent; color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(118, 77, 240, 0.4);
}
.footer-watermark {
  position: absolute; bottom: -9.5vw; left: 50%; transform: translateX(-50%);
  width: 82vw; max-width: 1500px; height: auto;
  opacity: 0.06; pointer-events: none; user-select: none; z-index: 0;
}
.footer-creative .subfooter {
  border-top: none;
  padding: 22px 0; position: relative; z-index: 2;
}
.footer-creative .subfooter a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color .25s ease; }
.footer-creative .subfooter a:hover { color: #b48dff; }
.footer-lang-switcher {
  display: inline-flex; gap: 4px; align-items: center;
  margin-left: 16px; padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(180, 141, 255, 0.2);
  border-radius: 20px; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.5px;
}
.footer-lang-switcher a, .footer-lang-switcher span.active {
  padding: 2px 8px; border-radius: 12px; color: rgba(255, 255, 255, 0.7);
}
.footer-lang-switcher span.active { background: rgba(180, 141, 255, 0.25); color: #ffffff; }
