/* ═══════════════════════════════════════════════════════════════
   Hero Section — full-bleed parallax with image/video media
   ═══════════════════════════════════════════════════════════════ */

.cc_xcxanevt_CxJoaihAy4 .hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-section-height, 100vh);
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  display: flex;
}

.cc_xcxanevt_CxJoaihAy4 .hero--height-auto { min-height: auto; }
.cc_xcxanevt_CxJoaihAy4 .hero--height-80vh { min-height: 80vh; }
.cc_xcxanevt_CxJoaihAy4 .hero--height-100vh { min-height: 100vh; }

.cc_xcxanevt_CxJoaihAy4 .hero--tuck-under {
  margin-top: calc(-1 * var(--header-height, 0px));
}

/* Mobile: frame the hero at 4:5 instead of a tall viewport-height crop. Height
   derives from the width; the `.hero.hero--height-*` selectors (0,2,0) outrank
   the base height modifiers so this wins. Desktop keeps its original behaviour.
   `auto` height stays content-driven. */
@media (max-width: 767px) {
  .cc_xcxanevt_CxJoaihAy4 .hero, .cc_xcxanevt_CxJoaihAy4 .hero.hero--height-100vh, .cc_xcxanevt_CxJoaihAy4 .hero.hero--height-80vh {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .cc_xcxanevt_CxJoaihAy4 .hero.hero--height-auto {
    aspect-ratio: auto;
    min-height: auto;
  }
}

/* ─── Background media layer ─────────────────────────────── */

.cc_xcxanevt_CxJoaihAy4 .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.cc_xcxanevt_CxJoaihAy4 .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cc_xcxanevt_CxJoaihAy4 .hero-media--video {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cc_xcxanevt_CxJoaihAy4 .hero-bg { transform: none !important; }
}

/* ─── Overlay layer ──────────────────────────────────────── */

.cc_xcxanevt_CxJoaihAy4 .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cc_xcxanevt_CxJoaihAy4 .hero-overlay--bottom-up {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, var(--hero-overlay-opacity, 0.30)) 0%,
    rgba(0, 0, 0, calc(var(--hero-overlay-opacity, 0.30) * 0.6)) 45%,
    rgba(0, 0, 0, calc(var(--hero-overlay-opacity, 0.30) * 0.25)) 100%
  );
}

.cc_xcxanevt_CxJoaihAy4 .hero-overlay--center {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, calc(var(--hero-overlay-opacity, 0.30) * 0.2)) 0%,
    rgba(0, 0, 0, var(--hero-overlay-opacity, 0.30)) 75%,
    rgba(0, 0, 0, calc(var(--hero-overlay-opacity, 0.30) * 1.1)) 100%
  );
}

/* ─── Hero image/background click target ─────────────────── */

/* Sits between the overlay (z-index:1, pointer-events:none) and the content
   wrap (z-index:2). Only rendered at all when a usable link is configured, so
   it never affects layout/behavior when heroLinkType="none". */
.cc_xcxanevt_CxJoaihAy4 .hero-link-target {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  appearance: none;
  cursor: pointer;
}

.cc_xcxanevt_CxJoaihAy4 .hero-link-target:focus-visible {
  outline: 2px solid var(--color-accent-light, var(--color-accent-light));
  outline-offset: -3px;
}

/* When a hero link is active, let clicks on the content wrap (heading/eyebrow/
   subtext included — those are plain text, not separately interactive) pass
   THROUGH to .hero-link-target beneath. .hero-actions re-enables pointer
   events so the CTA elements keep capturing their own clicks first — nothing
   is ever nested, the CTA link and the hero link are independent siblings in
   the stacking order. */
.cc_xcxanevt_CxJoaihAy4 .hero--has-link .hero-content-wrap {
  pointer-events: none;
}

.cc_xcxanevt_CxJoaihAy4 .hero--has-link .hero-actions {
  pointer-events: auto;
}

/* ─── Content container ──────────────────────────────────── */

.cc_xcxanevt_CxJoaihAy4 .hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl, 64px) clamp(16px, 5vw, 80px);
  display: flex;
  flex-direction: column;
}

.cc_xcxanevt_CxJoaihAy4 .hero--position-top    .hero-content-wrap { justify-content: flex-start; padding-top: clamp(96px, 14vh, 180px); }
.cc_xcxanevt_CxJoaihAy4 .hero--position-center .hero-content-wrap { justify-content: center; }
.cc_xcxanevt_CxJoaihAy4 .hero--position-bottom .hero-content-wrap { justify-content: flex-end; padding-bottom: clamp(96px, 14vh, 180px); }

.cc_xcxanevt_CxJoaihAy4 .hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 24px);
  width: 100%;
  /* Per-instance vertical nudge (Dikey Konum prop, px). 0 = no shift. Applied on
     top of the justify-content position so each banner can sit a little higher
     or lower without changing the base center/top/bottom position. */
  transform: translateY(var(--hero-content-offset-y, 0px));
}

.cc_xcxanevt_CxJoaihAy4 .hero--align-left   .hero-content { align-items: flex-start; text-align: left; }
.cc_xcxanevt_CxJoaihAy4 .hero--align-center .hero-content { align-items: center;    text-align: center; }
.cc_xcxanevt_CxJoaihAy4 .hero--align-right  .hero-content { align-items: flex-end;  text-align: right; }

/* ─── Typography ─────────────────────────────────────────── */

.cc_xcxanevt_CxJoaihAy4 .hero-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-accent-light, var(--color-accent-light));
  margin: 0;
}

/* Visually-hidden but accessible/indexable page H1 (not display:none). */
.cc_xcxanevt_CxJoaihAy4 .hero-sr-only-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc_xcxanevt_CxJoaihAy4 .hero-heading {
  font-family: var(--font-display);
  font-weight: 300;
  /* Base (<768px) = mobile. The mobile override (mobileHeadingFontSize) feeds
     ONLY this rule; when unset the property is absent and it falls back to the
     responsive theme default. The desktop override is deliberately NOT
     referenced here, so a desktop font size never leaks onto mobile. */
  font-size: var(--hero-heading-fs-mobile, var(--text-h2));
  line-height: 1.05;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}

.cc_xcxanevt_CxJoaihAy4 .hero-subtext {
  font-family: var(--font-body);
  font-size: var(--hero-subtext-fs-mobile, var(--text-body));
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 560px;
}

.cc_xcxanevt_CxJoaihAy4 .hero--align-left  .hero-subtext { margin-right: auto; margin-left: 0; }
.cc_xcxanevt_CxJoaihAy4 .hero--align-right .hero-subtext { margin-left: auto;  margin-right: 0; }

/* ─── Action buttons ─────────────────────────────────────── */

.cc_xcxanevt_CxJoaihAy4 .hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 16px);
  margin-top: var(--space-xs, 8px);
  width: 100%;
}

.cc_xcxanevt_CxJoaihAy4 .hero--align-center .hero-actions { align-items: center;    justify-content: center; }
.cc_xcxanevt_CxJoaihAy4 .hero--align-left   .hero-actions { align-items: flex-start; justify-content: flex-start; }
.cc_xcxanevt_CxJoaihAy4 .hero--align-right  .hero-actions { align-items: flex-end;   justify-content: flex-end; }

/* .hero-btn is applied to BOTH <a> (link mode) and <button type="button">
   (search mode) — appearance/border/background are reset here so a native
   <button> renders visually identical to the <a> in every state. */
/* Editorial "Jawbreaker" treatment: both buttons share ONE ghost style —
   subtle dark-translucent fill (readable over any image without a solid
   block), a thin light border, white text, sharp corners (no border-radius).
   Primary/secondary stay functionally distinct (different link/label props)
   but are visually a matched pair, side by side. */
.cc_xcxanevt_CxJoaihAy4 .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-label);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  appearance: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  white-space: nowrap;
  /* Explicit stacking above .hero-link-target so the CTA is always what gets
     hit-tested at its own pixels, even though both are positioned siblings. */
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .cc_xcxanevt_CxJoaihAy4 .hero-btn {
    padding: 14px 32px;
  }
}

.cc_xcxanevt_CxJoaihAy4 .hero-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.cc_xcxanevt_CxJoaihAy4 .hero-btn:hover {
  background-color: rgba(0, 0, 0, 0.55);
  border-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .cc_xcxanevt_CxJoaihAy4 .hero-btn { transition: none; }
}

/* ─── Responsive breakpoints ─────────────────────────────── */

/* Tablet (≥768px): bigger heading, row buttons, desktop CTA scale */
@media (min-width: 768px) {
  /* Tablet/desktop = headingFontSize override (or responsive default when 0). */
  .cc_xcxanevt_CxJoaihAy4 .hero-heading { font-size: var(--hero-heading-fs-desktop, var(--text-h1)); }
  .cc_xcxanevt_CxJoaihAy4 .hero-subtext { font-size: var(--hero-subtext-fs-desktop, var(--text-body-lg)); }

  .cc_xcxanevt_CxJoaihAy4 .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cc_xcxanevt_CxJoaihAy4 .hero-btn {
    /* Desktop/tablet CTA scale (desktopButtonScale %), independent from the
       mobile scale below. font-size + padding always run through calc(*scale)
       — at the default (scale=1) this is byte-identical to the original
       fixed values, so 100% never drifts. min-height only appears when the JS
       sets --hero-btn-min-h-desktop (i.e. scale != 100); the `auto` fallback
       means the button keeps its original natural height at 100%, matching
       "100 = mevcut boy" exactly. */
    font-size: calc(var(--text-small) * var(--hero-btn-scale-desktop, 1));
    padding:
      calc(0.625rem * var(--hero-btn-scale-desktop, 1))
      calc(1.5rem * var(--hero-btn-scale-desktop, 1));
    min-height: var(--hero-btn-min-h-desktop, auto);
  }
}

/* Tablet only (768–1023px): force center alignment */
@media (min-width: 768px) and (max-width: 1023px) {
  .cc_xcxanevt_CxJoaihAy4 .hero--align-left   .hero-content, .cc_xcxanevt_CxJoaihAy4 .hero--align-right  .hero-content {
    align-items: center;
    text-align: center;
  }

  .cc_xcxanevt_CxJoaihAy4 .hero--align-left  .hero-subtext, .cc_xcxanevt_CxJoaihAy4 .hero--align-right .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .cc_xcxanevt_CxJoaihAy4 .hero--align-left  .hero-actions, .cc_xcxanevt_CxJoaihAy4 .hero--align-right .hero-actions {
    align-items: center;
    justify-content: center;
  }
}

/* Desktop (≥1024px): full hero size, scroll indicator visible */
@media (min-width: 1024px) {
  .cc_xcxanevt_CxJoaihAy4 .hero-heading { font-size: var(--hero-heading-fs-desktop, var(--text-hero)); }

  .cc_xcxanevt_CxJoaihAy4 .hero-btn {
    /* Desktop's bigger base padding (12px/28px vs tablet's 10px/24px), scaled
       by the same --hero-btn-scale-desktop so 100% still equals the original
       12px/28px exactly. */
    padding:
      calc(0.75rem * var(--hero-btn-scale-desktop, 1))
      calc(1.75rem * var(--hero-btn-scale-desktop, 1));
  }

  .cc_xcxanevt_CxJoaihAy4 .hero--align-left  .hero-content, .cc_xcxanevt_CxJoaihAy4 .hero--align-right .hero-content {
    max-width: 640px;
  }

  .cc_xcxanevt_CxJoaihAy4 .hero--align-left  .hero-content { margin-right: auto; }
  .cc_xcxanevt_CxJoaihAy4 .hero--align-right .hero-content { margin-left: auto; }
}

/* ─── Mobile-only fine-tuning (<768px) ───────────────────────────
   Independent knobs so the mobile hero's heading/CTA proportions can echo the
   desktop feel without touching desktop. Each value falls back to the current
   mobile default when its prop is 0 / 100, and NONE of these rules exist above
   768px — so desktop/tablet stay pixel-identical. Placed last so it wins over
   the base (mobile-first) rules on small screens. */
@media (max-width: 767px) {
  .cc_xcxanevt_CxJoaihAy4 .hero-content {
    /* Mobile vertical nudge — independent of the desktop contentVerticalOffset. */
    transform: translateY(var(--hero-content-offset-y-mobile, 0px));
    /* Mobile heading/subtext/CTA gap (mobileContentGap). 0 → theme default. */
    gap: var(--hero-content-gap-mobile, var(--space-md, 24px));
  }

  .cc_xcxanevt_CxJoaihAy4 .hero-actions {
    /* Zeroed together with the gap override so the given number IS the
       heading↔button gap; otherwise keeps the default extra 8px. */
    margin-top: var(--hero-actions-mt-mobile, var(--space-xs, 8px));
  }

  .cc_xcxanevt_CxJoaihAy4 .hero-btn {
    /* Mobile CTA total scale (mobileButtonScale %). 1 = unchanged. Every box
       dimension is multiplied by the same factor — font, both padding axes AND
       min-height — so the button shrinks vertically as well as horizontally
       (this min-height scaling is the 22:11 fix; a fixed 2.5rem floor used to
       lock the height). Base mobile CTA = 10px 24px / --text-small / 40px. This
       block is completely independent of --hero-btn-scale-desktop above — the
       desktop var is never referenced here, so it can never leak onto mobile. */
    font-size: calc(var(--text-small) * var(--hero-btn-scale-mobile, 1));
    padding:
      calc(0.625rem * var(--hero-btn-scale-mobile, 1))
      calc(1.5rem * var(--hero-btn-scale-mobile, 1));
    min-height: calc(2.5rem * var(--hero-btn-scale-mobile, 1));
  }

  /* ─── Top (tuck-under-header) hero only — editorial bottom-anchored group ──
     Scoped to .hero--tuck-under (set only when the "Şeffaf Üst Menünün Altına
     Yerleştir" prop is on, which is true ONLY for the homepage's top hero) so
     the other SingleHeroFinalV3-based banners further down the page keep
     their existing mobile behavior untouched. Headline + CTA row live in one
     shared wrapper (.hero-content-wrap > .hero-content) and always move
     together — this only changes how that one wrapper is positioned/sized. */
  .cc_xcxanevt_CxJoaihAy4 .hero--tuck-under.hero--position-bottom .hero-content-wrap {
    /* Snug to the bottom edge instead of the generic clamp(96px,14vh,180px)
       used by other bottom-anchored banners — close to the image edge but not
       touching it. */
    padding-bottom: 28px;
  }

  .cc_xcxanevt_CxJoaihAy4 .hero--tuck-under .hero-content {
    text-align: center;
  }

  /* Buttons stay side by side (never stacked) directly under the headline. */
  .cc_xcxanevt_CxJoaihAy4 .hero--tuck-under .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
}

/* Escape hatch for genuinely tiny screens only (e.g. old/narrow devices) —
   two side-by-side buttons can outgrow the available width below ~340px, so
   wrapping is allowed there and only there. */
@media (max-width: 340px) {
  .cc_xcxanevt_CxJoaihAy4 .hero--tuck-under .hero-actions {
    flex-wrap: wrap;
  }
}
