/* ==========================================================
   DESIGNWEBY.CZ
   CASE STUDY — BFC LIBEREC
   ========================================================== */


/* ==========================================================
   01 — BASE
========================================================== */

.case-study {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  overflow: hidden;
}

.case-study .container {
  width: min(1200px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.case-study img {
  display: block;
  max-width: 100%;
  height: auto;
}

.case-study .case-label {
  display: inline-block;

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #0044CC;
}


/* ==========================================================
   02 — BUTTONS
========================================================== */

.case-study .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0.9rem 2.2rem;

  border: 0;
  border-radius: 999px;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}


/* PRIMARY */

body:not(.dark) .case-study .btn--primary {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #0044CC,
      #0038B3
    );

  box-shadow:
    0 12px 30px rgba(0, 68, 204, 0.30);
}

body:not(.dark) .case-study .btn--primary:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 38px rgba(0, 56, 179, 0.42);
}


/* SECONDARY */

body:not(.dark) .case-study .btn--secondary {
  color: #0044CC;
  background: #ffffff;

  border: 1px solid #D8E1F0;

  box-shadow:
    0 8px 22px rgba(12, 22, 45, 0.10);
}

body:not(.dark) .case-study .btn--secondary:hover {
  transform: translateY(-2px);

  border-color: #0044CC;

  box-shadow:
    0 12px 28px rgba(0, 68, 204, 0.16);
}


/* ==========================================================
   03 — HERO
========================================================== */

.case-hero {
  position: relative;

  width: 100%;

  padding:
    clamp(70px, 8vw, 120px)
    0
    clamp(70px, 8vw, 110px);

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(0, 68, 204, 0.11),
      transparent 32%
    ),
    #F2F4F7;
}

.case-hero__container {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: clamp(45px, 6vw, 90px);

  align-items: center;
}


/* CONTENT */

.case-hero__content {
  max-width: 610px;
}

.case-hero__title {
  margin:
    18px
    0
    22px;

  font-size:
    clamp(2.4rem, 4.6vw, 4.6rem);

  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;

  color: #121417;
}

.case-hero__title span {
  display: block;
}

.case-hero__title span:last-child {
  color: #0044CC;
}

.case-hero__lead {
  max-width: 620px;

  margin: 0;

  font-size:
    clamp(1.05rem, 1.35vw, 1.18rem);

  line-height: 1.75;

  color: #555555;
}


/* ACTIONS */

.case-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 32px;
}


/* VISUAL */

.case-hero__visual {
  position: relative;

  width: 100%;

  padding: 12px;

  border-radius: 26px;

  background: #ffffff;
  border: 1px solid #E5E8EC;

  box-shadow:
    0 24px 60px rgba(12, 22, 45, 0.16);
}

.case-hero__visual::before {
  content: "";

  position: absolute;

  width: 52%;
  height: 52%;

  top: -8%;
  right: -8%;

  border-radius: 50%;

  background:
    rgba(0, 68, 204, 0.13);

  filter: blur(70px);

  z-index: 0;
}

.case-hero__visual img {
  position: relative;
  z-index: 1;

  width: 100%;

  border-radius: 18px;

  object-fit: cover;
}


/* ==========================================================
   04 — PROJECT OVERVIEW
========================================================== */

.case-overview {
  position: relative;

  padding: 0 0 70px;

  background: #F2F4F7;
}

.case-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #E5E8EC;
  border-radius: 20px;

  box-shadow:
    0 14px 34px rgba(12, 22, 45, 0.12);
}

.case-overview__item {
  position: relative;

  padding: 28px 24px;

  text-align: center;
}

.case-overview__item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 24%;
  right: 0;

  width: 1px;
  height: 52%;

  background: #E5E8EC;
}

.case-overview__item span {
  display: block;

  margin-bottom: 7px;

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #777777;
}

.case-overview__item strong {
  display: block;

  font-size: 1rem;
  font-weight: 600;

  color: #121417;
}


/* ==========================================================
   05 — COMMON CASE SECTION
========================================================== */

.case-section {
  position: relative;

  padding:
    clamp(70px, 8vw, 110px)
    0;
}

.case-section:nth-of-type(even) {
  background: #ffffff;
}

.case-section__container {
  display: grid;

  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(0, 1.18fr);

  gap: clamp(45px, 7vw, 100px);

  align-items: start;
}


/* HEADING */

.case-section__heading {
  position: relative;
}

.case-section__number {
  display: block;

  margin-bottom: 12px;

  font-size:
    clamp(3.8rem, 7vw, 6.5rem);

  font-weight: 700;
  line-height: 0.9;

  color: rgba(0, 68, 204, 0.10);
}

.case-section__heading .case-label {
  margin-bottom: 14px;
}

.case-section__heading h2 {
  max-width: 520px;

  margin: 0;

  text-align: left;

  font-size:
    clamp(1.9rem, 3vw, 2.8rem);

  line-height: 1.2;
  letter-spacing: -0.02em;

  color: #0044CC;
}


/* CONTENT */

.case-section__content {
  max-width: 680px;

  padding-top: 18px;
}

.case-text {
  margin: 0;

  font-size: 1.05rem;
  line-height: 1.8;

  color: #555555;
}

.case-text + .case-text {
  margin-top: 22px;
}

.case-text--lead {
  font-size:
    clamp(1.08rem, 1.4vw, 1.2rem);

  font-weight: 500;

  color: #30343A;
}


/* ==========================================================
   06 — LIST
========================================================== */

.case-list {
  display: grid;

  gap: 14px;

  margin: 30px 0 0;
  padding: 0;

  list-style: none;
}

.case-list li {
  position: relative;

  padding:
    15px
    18px
    15px
    48px;

  font-size: 1rem;
  line-height: 1.5;

  color: #333333;

  background: #ffffff;

  border: 1px solid #E5E8EC;
  border-radius: 14px;

  box-shadow:
    0 8px 18px rgba(12, 22, 45, 0.07);
}

.case-list li::before {
  content: "✓";

  position: absolute;

  left: 18px;
  top: 14px;

  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #0044CC;

  font-size: 0.95rem;
  font-weight: 700;
}


/* ==========================================================
   07 — DESIGN SHOWCASE
========================================================== */

.case-design {
  background: #ffffff;
}

.case-design .case-section__heading,
.case-responsive .case-section__heading {
  max-width: 760px;

  margin: 0 auto 50px;

  text-align: center;
}

.case-design .case-section__number,
.case-responsive .case-section__number {
  text-align: center;
}

.case-design .case-label,
.case-responsive .case-label {
  display: block;

  text-align: center;
}

.case-design .case-section__heading h2,
.case-responsive .case-section__heading h2 {
  max-width: 760px;

  margin: 0 auto;

  text-align: center;
}


/* SHOWCASE */

.case-showcase {
  width: 100%;
}

.case-showcase__large {
  position: relative;

  width: 100%;
  max-width: 1200px;
  height: 760px;

  margin: 0 auto;
  padding: 12px;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #E5E8EC;
  border-radius: 24px;

  box-shadow:
    0 22px 55px rgba(12, 22, 45, 0.15);
}

.case-showcase__large img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 16px;

  transform: translateY(0);
  transition: transform 8s ease-in-out;
}


/* ==========================================================
   FULL PAGE SCREENSHOT — SCROLL PREVIEW
========================================================== */

@media (hover: hover) and (pointer: fine) {

  .case-showcase__large:hover img {
    transform: translateY(
      calc(-100% + 736px)
    );
  }

}

/* ==========================================================
   08 — RESPONSIVE SHOWCASE
========================================================== */

.case-responsive {
  background:
    linear-gradient(
      180deg,
      #F2F4F7 0%,
      #EAF0FA 100%
    );
}


/* ==========================================================
   RESPONSIVE GRID
========================================================== */

.case-responsive__visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
}


/* ==========================================================
   MOBILE PREVIEW
========================================================== */

.case-responsive__phone {
  position: relative;

  height: 650px;

  padding: 8px;

  overflow: hidden;

  background: #111;

  border: 1px solid #E5E8EC;
  border-radius: 28px;

  box-shadow:
    0 20px 50px rgba(12, 22, 45, 0.18);
}

.case-responsive__phone img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 20px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

  .case-responsive__visual {
    gap: 18px;
  }

  .case-responsive__phone {
    height: 560px;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

  .case-responsive__visual {
    grid-template-columns: 1fr;

    max-width: 390px;

    gap: 24px;
  }

  .case-responsive__phone {
    height: 650px;
  }

}


/* ==========================================================
   09 — TECHNOLOGIES
========================================================== */

.case-tech {
  padding: 55px 0;

  text-align: center;

  background: #ffffff;

  border-top: 1px solid #E5E8EC;
  border-bottom: 1px solid #E5E8EC;
}

.case-tech .case-label {
  margin-bottom: 22px;
}

.case-tech__list {
  display: flex;
  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 12px;
}

.case-tech__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 9px 18px;

  color: #0044CC;

  font-size: 0.92rem;
  font-weight: 600;

  background: #F2F4F7;

  border: 1px solid #DCE3EE;
  border-radius: 999px;
}


/* ==========================================================
   10 — RESULT
========================================================== */

.case-result {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 68, 204, 0.08),
      transparent 28%
    ),
    #F2F4F7;
}

.case-result .btn {
  margin-top: 30px;
}


/* ==========================================================
   11 — FINAL CTA
========================================================== */

.case-cta {
  padding:
    clamp(80px, 9vw, 125px)
    0;

  background: #ffffff;
}

.case-cta__container {
  position: relative;

  overflow: hidden;

  padding:
    clamp(45px, 6vw, 75px)
    clamp(25px, 6vw, 80px);

  text-align: center;

  background:
    linear-gradient(
      135deg,
      #F8FAFC,
      #EEF3FC
    );

  border: 1px solid #DCE3EE;
  border-radius: 26px;

  box-shadow:
    0 18px 45px rgba(12, 22, 45, 0.12);
}

.case-cta__container::before {
  content: "";

  position: absolute;

  width: 320px;
  height: 320px;

  top: -190px;
  right: -100px;

  border-radius: 50%;

  background:
    rgba(0, 68, 204, 0.09);
}

.case-cta .case-label {
  position: relative;

  margin-bottom: 18px;
}

.case-cta h2 {
  position: relative;

  max-width: 760px;

  margin: 0 auto 18px;

  font-size:
    clamp(2rem, 3.5vw, 3rem);

  line-height: 1.2;

  color: #0044CC;
}

.case-cta p {
  position: relative;

  max-width: 680px;

  margin: 0 auto 30px;

  font-size: 1.08rem;
  line-height: 1.7;

  color: #555555;
}

.case-cta .btn {
  position: relative;
}


/* ==========================================================
   12 — DARK MODE
========================================================== */

body.dark .case-study {
  color: #f5f5f5;
}


/* HERO */

body.dark .case-hero {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(168, 50, 214, 0.20),
      transparent 34%
    ),
    #0b0012;
}

body.dark .case-label {
  color: #ffcc00;
}

body.dark .case-hero__title {
  color: #ffffff;
}

body.dark .case-hero__title span:last-child {
  color: #ffcc00;
}

body.dark .case-hero__lead {
  color: #e6e6e6;
}

body.dark .case-hero__visual {
  background: #1a001f;

  border-color:
    rgba(255, 204, 0, 0.22);

  box-shadow:
    0 0 40px rgba(168, 50, 214, 0.25);
}

body.dark .case-hero__visual::before {
  background:
    rgba(255, 204, 0, 0.12);
}


/* BUTTONS */

body.dark .case-study .btn--primary {
  color: #111111;

  background:
    linear-gradient(
      135deg,
      #a832d6,
      #ffcc00
    );

  box-shadow:
    0 0 30px rgba(255, 204, 0, 0.28);
}

body.dark .case-study .btn--primary:hover {
  transform: translateY(-2px);

  box-shadow:
    0 0 40px rgba(255, 204, 0, 0.45);
}

body.dark .case-study .btn--secondary {
  color: #ffcc00;

  background:
    rgba(26, 0, 31, 0.75);

  border:
    1px solid rgba(255, 204, 0, 0.28);
}

body.dark .case-study .btn--secondary:hover {
  transform: translateY(-2px);

  border-color: #ffcc00;

  box-shadow:
    0 0 25px rgba(255, 204, 0, 0.20);
}


/* OVERVIEW */

body.dark .case-overview {
  background: #0b0012;
}

body.dark .case-overview__grid {
  background:
    linear-gradient(
      145deg,
      rgba(30, 0, 45, 0.94),
      rgba(15, 0, 30, 0.97)
    );

  border-color:
    rgba(255, 204, 0, 0.22);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45);
}

body.dark .case-overview__item:not(:last-child)::after {
  background:
    rgba(255, 204, 0, 0.16);
}

body.dark .case-overview__item span {
  color: #c9c9c9;
}

body.dark .case-overview__item strong {
  color: #ffffff;
}


/* SECTIONS */

body.dark .case-section {
  background: #0b0012;
}

body.dark .case-section:nth-of-type(even) {
  background: #120019;
}

body.dark .case-section__number {
  color:
    rgba(255, 204, 0, 0.12);
}

body.dark .case-section__heading h2 {
  color: #ffcc00;
}

body.dark .case-text {
  color: #d8d8d8;
}

body.dark .case-text--lead {
  color: #ffffff;
}


/* LIST */

body.dark .case-list li {
  color: #eeeeee;

  background:
    rgba(26, 0, 31, 0.75);

  border-color:
    rgba(255, 204, 0, 0.18);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.30);
}

body.dark .case-list li::before {
  color: #ffcc00;
}


/* DESIGN */

body.dark .case-design {
  background: #120019;
}

body.dark .case-showcase__large,
body.dark .case-responsive__visual {
  background: #1a001f;

  border-color:
    rgba(255, 204, 0, 0.20);

  box-shadow:
    0 0 36px rgba(168, 50, 214, 0.22);
}


/* RESPONSIVE */

body.dark .case-responsive {
  background:
    linear-gradient(
      180deg,
      #0b0012,
      #120019
    );
}


/* TECHNOLOGIES */

body.dark .case-tech {
  background: #120019;

  border-color:
    rgba(255, 204, 0, 0.14);
}

body.dark .case-tech__item {
  color: #ffcc00;

  background:
    rgba(26, 0, 31, 0.80);

  border-color:
    rgba(255, 204, 0, 0.22);
}


/* RESULT */

body.dark .case-result {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(168, 50, 214, 0.17),
      transparent 30%
    ),
    #0b0012;
}


/* CTA */

body.dark .case-cta {
  background: #0b0012;
}

body.dark .case-cta__container {
  background:
    linear-gradient(
      145deg,
      rgba(30, 0, 45, 0.95),
      rgba(15, 0, 30, 0.98)
    );

  border-color:
    rgba(255, 204, 0, 0.25);

  box-shadow:
    0 0 36px rgba(168, 50, 214, 0.24);
}

body.dark .case-cta__container::before {
  background:
    rgba(255, 204, 0, 0.08);
}

body.dark .case-cta h2 {
  color: #ffcc00;
}

body.dark .case-cta p {
  color: #eeeeee;
}


/* ==========================================================
   13 — TABLET
========================================================== */

@media (max-width: 1000px) {

  .case-hero__container {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .case-hero__content {
    max-width: 760px;
  }

  .case-hero__visual {
    max-width: 850px;

    margin: 0 auto;
  }


  .case-overview__grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .case-overview__item:nth-child(2)::after {
    display: none;
  }

  .case-overview__item:nth-child(-n + 2) {
    border-bottom:
      1px solid #E5E8EC;
  }

  body.dark
  .case-overview__item:nth-child(-n + 2) {
    border-bottom-color:
      rgba(255, 204, 0, 0.16);
  }


  .case-section__container {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .case-section__heading h2 {
    max-width: 720px;
  }

  .case-section__content {
    max-width: 760px;

    padding-top: 0;
  }

}


/* ==========================================================
   14 — MOBILE
========================================================== */

@media (max-width: 700px) {

  .case-study .container {
    width: min(100% - 32px, 1200px);
  }


  /* HERO */

  .case-hero {
    padding:
      55px
      0
      60px;
  }

  .case-hero__container {
    gap: 36px;
  }

  .case-hero__content {
    text-align: center;
  }

  .case-hero__title {
    margin-top: 14px;

    font-size:
      clamp(2rem, 10vw, 3rem);
  }

  .case-hero__lead {
    margin-left: auto;
    margin-right: auto;

    font-size: 1rem;
  }

  .case-hero__actions {
    justify-content: center;

    margin-top: 26px;
  }

  .case-hero__visual {
    padding: 8px;

    border-radius: 20px;
  }

  .case-hero__visual img {
    border-radius: 14px;
  }


  /* OVERVIEW */

  .case-overview {
    padding-bottom: 55px;
  }

  .case-overview__grid {
    grid-template-columns: 1fr;
  }

  .case-overview__item {
    padding: 22px 18px;
  }

  .case-overview__item:not(:last-child)::after {
    display: none;
  }

  .case-overview__item:nth-child(-n + 3) {
    border-bottom:
      1px solid #E5E8EC;
  }

  body.dark
  .case-overview__item:nth-child(-n + 3) {
    border-bottom-color:
      rgba(255, 204, 0, 0.16);
  }


  /* SECTIONS */

  .case-section {
    padding: 65px 0;
  }

  .case-section__number {
    font-size: 4rem;
  }

  .case-section__heading {
    text-align: center;
  }

  .case-section__heading .case-label {
    display: block;

    text-align: center;
  }

  .case-section__heading h2 {
    margin-left: auto;
    margin-right: auto;

    text-align: center;

    font-size:
      clamp(1.75rem, 7vw, 2.2rem);
  }

  .case-section__content {
    text-align: left;
  }

  .case-text {
    font-size: 1rem;
  }


  /* LIST */

  .case-list {
    gap: 10px;
  }

  .case-list li {
    padding:
      14px
      15px
      14px
      44px;

    font-size: 0.95rem;
  }

  .case-list li::before {
    left: 15px;
    top: 13px;
  }


  /* SHOWCASE */

  .case-design .case-section__heading,
  .case-responsive .case-section__heading {
    margin-bottom: 32px;
  }

  .case-showcase__large,
  .case-responsive__visual {
    padding: 7px;

    border-radius: 18px;
  }

  .case-showcase__large img,
  .case-responsive__visual img {
    border-radius: 12px;
  }


  /* TECHNOLOGIES */

  .case-tech {
    padding: 45px 0;
  }

  .case-tech__list {
    gap: 9px;
  }

  .case-tech__item {
    padding: 8px 14px;

    font-size: 0.85rem;
  }


  /* CTA */

  .case-cta {
    padding: 65px 0;
  }

  .case-cta__container {
    padding:
      45px
      22px;

    border-radius: 20px;
  }

  .case-cta h2 {
    font-size:
      clamp(1.8rem, 7vw, 2.25rem);
  }

}


/* ==========================================================
   15 — SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

  .case-study .container {
    width: calc(100% - 24px);
  }

  .case-hero__actions {
    flex-direction: column;
  }

  .case-hero__actions .btn {
    width: 100%;
  }

  .case-hero__title {
    font-size: 2rem;
  }

  .case-section__number {
    font-size: 3.5rem;
  }

  .case-overview__grid {
    border-radius: 16px;
  }

  .case-cta__container {
    padding:
      40px
      18px;
  }

}


/* ==========================================================
   16 — REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .case-study *,
  .case-study *::before,
  .case-study *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}