/* KARTAP CMS 2.8.1 — mobile hero, Then & Now archive, floating actions, delayed consent polish */

/* Hero safety: long slider headings must never expand the mobile viewport. */
html,
body,
#root {
  max-width: 100%;
  overflow-x: clip;
}

.hero-section,
.hero-section .page-shell,
.hero-copy,
.hero-title {
  min-width: 0;
  max-width: 100%;
}

.hero-title {
  text-wrap: balance;
  overflow-wrap: normal;
}

/* Floating actions are important utilities; keep their touch targets comfortably visible. */
.floating-stack {
  width: 58px !important;
  gap: 14px !important;
  right: 22px !important;
  bottom: 22px !important;
}

.floating-button {
  width: 58px !important;
  height: 58px !important;
  flex-basis: 58px !important;
  box-shadow: 0 13px 34px rgb(4 25 35 / 30%) !important;
}

.floating-button svg {
  width: 27px !important;
  height: 27px !important;
}

.floating-action--collapsed {
  height: 0 !important;
  flex-basis: 0 !important;
}

.whatsapp-pulse::before {
  inset: -6px !important;
}

/* Then & Now archive — clearer hierarchy, calmer cards, responsive comparison stage. */
.before-after-archive {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgb(12 145 169 / 9%), transparent 28rem),
    linear-gradient(180deg, #f8f6f0 0%, #f3efe6 100%);
}

.before-after-archive::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgb(23 53 68 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(23 53 68 / 4%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 58%);
}

.before-after-archive > .page-shell {
  position: relative;
  z-index: 1;
}

.before-after-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
  padding: 28px 30px;
  border: 1px solid rgb(23 53 68 / 12%);
  border-radius: calc(var(--site-radius, 4px) + 8px);
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 16px 45px rgb(13 44 58 / 6%);
  backdrop-filter: blur(12px);
}

.before-after-kicker {
  margin: 0 0 10px;
  color: #0c8196;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.before-after-intro h2 {
  margin: 0;
  max-width: 780px;
  color: #173544;
  font: 400 clamp(2rem, 4vw, 3.8rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.before-after-intro p:not(.before-after-kicker) {
  max-width: 760px;
  margin: 15px 0 0;
  color: #66777e;
  font-size: 14px;
  line-height: 1.8;
}

.before-after-summary {
  display: grid;
  min-width: 132px;
  padding: 18px 20px;
  border-left: 3px solid #d3af6c;
  background: #071f2d;
  color: #fff;
}

.before-after-summary strong {
  font: 400 38px/1 Georgia, "Times New Roman", serif;
  color: #d8bb7d;
}

.before-after-summary span {
  margin-top: 7px;
  color: rgb(255 255 255 / 62%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.before-after-grid .before-after-card {
  height: 100%;
  border-radius: calc(var(--site-radius, 4px) + 8px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.before-after-grid .before-after-card:hover {
  transform: translateY(-3px);
  border-color: rgb(12 129 150 / 26%);
  box-shadow: 0 22px 62px rgb(13 44 58 / 12%);
}

.before-after-grid .before-after-stage {
  min-height: 290px !important;
  aspect-ratio: 16 / 10;
}

.before-after-grid .before-after-card h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.65rem) !important;
  line-height: 1.05;
}

.before-after-grid .before-after-card .prose-kartap {
  font-size: 13px;
}

.before-after-divider span {
  width: 52px;
  height: 52px;
  box-shadow: 0 10px 32px rgb(4 22 32 / 42%);
}

/* Give the comparison labels a consistent, readable treatment. */
.before-after-stage > div:last-of-type > span {
  min-width: 58px;
  text-align: center;
  box-shadow: 0 5px 18px rgb(4 22 32 / 18%);
}

@media (max-width: 900px) {
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .before-after-grid .before-after-stage {
    min-height: 320px !important;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 650px !important;
  }

  .hero-section .page-shell {
    min-height: 650px !important;
    padding-top: 132px !important;
    padding-bottom: 86px !important;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-title {
    width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 3.8rem) !important;
    line-height: .9 !important;
    letter-spacing: -.035em !important;
  }

  .hero-copy > p.mt-7 {
    margin-top: 20px !important;
    font-size: .95rem !important;
    line-height: 1.65 !important;
  }

  .hero-copy .mt-9 {
    width: 100%;
    margin-top: 26px !important;
  }

  .hero-copy .primary-button,
  .hero-copy .outline-button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-section .absolute.bottom-7.left-1\/2 {
    bottom: 18px !important;
    width: calc(100% - 34px);
    justify-content: center;
  }

  .floating-stack {
    width: 56px !important;
    right: 16px !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .floating-button {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
  }

  .before-after-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
    padding: 22px 20px;
  }

  .before-after-summary {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
  }

  .before-after-summary strong {
    font-size: 30px;
  }

  .before-after-summary span {
    margin-top: 0;
  }

  .before-after-grid {
    gap: 18px;
  }

  .before-after-grid .before-after-stage {
    min-height: 225px !important;
    aspect-ratio: 4 / 3;
  }

  .before-after-divider span {
    width: 44px;
    height: 44px;
  }

  .before-after-grid .before-after-card > div:last-child {
    padding: 20px !important;
  }

  .before-after-grid .before-after-card h2 {
    font-size: 1.8rem !important;
  }

  .cookie-layer {
    padding: 12px;
  }

  .cookie-card {
    max-height: min(82svh, 720px);
    overflow-y: auto;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(2.35rem, 11.8vw, 3.2rem) !important;
    overflow-wrap: anywhere;
  }
}
