/**
 * Section: Single Brand Section
 *
 * Marka sayfası için tek marka odaklı bölüm.
 *
 * @package Alpaya_x_Retodi
 */

.entry-content .section--single-brand,
.entry-content .wp-block-alpaya-section .section--single-brand {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  box-sizing: border-box;
}

.section--single-brand {
  padding: calc(var(--spacing, 1rem) * 3) 0;
  position: relative;
}

/* Hero yokken sonraki buton - section altında (section > next-btn-wrap) */
.section--single-brand > .section__next-btn-wrap {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section__single-brand-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero wrapper - relative for logo overlay & next button */
.section__single-brand-hero-wrap {
  position: relative;
  margin-bottom: 2rem;
  line-height: 0;
}

/* Hero / Featured Image - 1950 x 772 oranına uygun */
.section__single-brand-hero {
  width: 100%;
  aspect-ratio: 1950 / 772;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.section__single-brand-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tam geniş hero - container dışına taşar */
.section--single-brand-hero-fullwidth .section__single-brand-hero-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
}

.section--single-brand-hero-fullwidth .section__single-brand-hero {
  border-radius: 0;
}


/* Logo hero üzerinde - ortada */
.section__single-brand-logo--on-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 5;
  pointer-events: none;
}

.section__single-brand-logo--on-hero img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Sonraki buton - hero bottom 0 */
.section--single-brand .section__single-brand-hero-wrap .section__next-btn-wrap {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.section--single-brand .section__single-brand-hero-wrap .section__next-btn-wrap .section__next-btn-inner {
  pointer-events: auto;
}

.section--single-brand .section__next-btn-inner .btn {
  scroll-margin-top: 2rem;
}

/* Tam ekran & Header altında */
.section--single-brand-fullscreen .section__single-brand-hero-wrap {
  min-height: 100vh;
  margin-bottom: 0;
}

.section--single-brand-fullscreen .section__single-brand-hero,
.section--single-brand-fullscreen .section__single-brand-hero img {
  height: 100%;
  min-height: 100vh;
  max-height: none;
}

.section--below-header.section--single-brand {
  margin-top: calc(-1 * var(--header-height, 190px));
}

.section--single-brand-fullscreen.section--below-header .section__single-brand-hero-wrap {
  min-height: 100vh;
}

/* Content wrapper */
.section__single-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo */
.section__single-brand-logo {
  margin-bottom: 1.5rem;
  line-height: 0;
}

.section__single-brand-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Title */
.section__single-brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--sb-title-color, var(--color-primary, #2c3e50));
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

/* Subtitle */
.section__single-brand-subtitle {
  font-size: 1.1rem;
  color: var(--sb-subtitle-color, #64748b);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

/* Content text */
.section__single-brand-text {
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
  color: var(--sb-content-color, var(--color-text, #334155));
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.section__single-brand-text p {
  margin: 0 0 1em 0;
}

.section__single-brand-text p:last-child {
  margin-bottom: 0;
}

/* CTA */
.section__single-brand-cta {
  margin: 0;
}

.section__single-brand-cta .btn {
  text-decoration: none;
}

/* Split layout: logo+title left, content right */
.section--single-brand--split .section__single-brand-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  align-items: start;
  text-align: left;
}

.section--single-brand--split .section__single-brand-logo {
  margin-bottom: 1rem;
}

.section--single-brand--split .section__single-brand-logo,
.section--single-brand--split .section__single-brand-title,
.section--single-brand--split .section__single-brand-subtitle,
.section--single-brand--split .section__single-brand-cta {
  grid-column: 1;
}

.section--single-brand--split .section__single-brand-text {
  grid-column: 2;
  grid-row: 1 / -1;
  margin: 0;
  text-align: left;
}

.section--single-brand--split .section__single-brand-cta {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .section__single-brand-title {
    font-size: 1.75rem;
  }

  .section--below-header.section--single-brand {
    margin-top: calc(-1 * var(--header-height, 100px));
  }

  .section--single-brand .section__single-brand-hero-wrap .section__next-btn-wrap,
  .section--single-brand > .section__next-btn-wrap {
    bottom: 1rem;
  }

  .section--single-brand--split .section__single-brand-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section--single-brand--split .section__single-brand-logo,
  .section--single-brand--split .section__single-brand-title,
  .section--single-brand--split .section__single-brand-subtitle,
  .section--single-brand--split .section__single-brand-cta {
    grid-column: 1;
  }

  .section--single-brand--split .section__single-brand-text {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .section--single-brand--split .section__single-brand-content {
    text-align: center;
  }

  .section--single-brand--split .section__single-brand-text {
    text-align: center;
  }
}
