/**
 * Agentex — Section overlap layouts (JPG mockup)
 * Sol/sağ resim + üst üste binen panel yapısı
 */

:root {
  --panel-beige: #E5E1DD;
  --panel-charcoal: #4A4A4E;
  --panel-navy: #2E3B4E;
  --heading-brown: #705448;
  --overlap-pull: 22%;
}

/* ── Section headings (mockup: brown, caps) ── */
.section-heading {
  color: var(--heading-brown);
  font-weight: 600;
}

.section-heading--right {
  text-align: right;
}

.section-heading--left {
  text-align: left;
}

.section-heading--center {
  text-align: center;
}

/* ── Overlap row base ── */
.section-overlap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-overlap__media {
  position: relative;
  z-index: 1;
  width: 100%;
}

.section-overlap__panel {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Panel variants */
.section-overlap__panel--dark {
  background-color: var(--panel-charcoal);
  color: #fff;
}

.section-overlap__panel--beige {
  background-color: var(--panel-beige);
  color: var(--panel-charcoal);
}

.section-overlap__panel--navy {
  background-color: var(--panel-navy);
  color: #fff;
}

/* Panel içi metin — mockup: ortalı, caps */
.panel-copy {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.65rem;
  line-height: 1.9;
  letter-spacing: 0.12em;
}

@media (min-width: 768px) {
  .panel-copy {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }
}

.panel-copy--light {
  color: rgba(255, 255, 255, 0.92);
}

.panel-copy--dark {
  color: rgba(74, 74, 78, 0.9);
}

.panel-copy--justify {
  text-align: justify;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  line-height: 1.75;
}

/* ── HERO: resim sol, koyu kutu sağda — yan yana, kısa panel (JPG) ── */
.section-overlap--hero {
  align-items: center;
}

.section-overlap--hero .section-overlap__panel .panel-copy {
  font-size: 0.58rem;
  line-height: 1.75;
  letter-spacing: 0.11em;
}

@media (min-width: 768px) {
  .section-overlap--hero .section-overlap__panel .panel-copy {
    font-size: 0.62rem;
    line-height: 1.8;
  }
}

@media (min-width: 1024px) {
  .section-overlap--hero {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .section-overlap--hero .section-overlap__media {
    width: 42%;
    max-width: 480px;
    flex-shrink: 0;
  }

  .section-overlap--hero .section-overlap__panel {
    width: 58%;
    flex: 1;
    margin-left: 0;
    align-self: center;
    height: fit-content;
    padding: 1.75rem 2.5rem;
  }
}

@media (min-width: 1280px) {
  .section-overlap--hero .section-overlap__panel {
    padding: 2rem 3rem;
  }
}

@media (max-width: 1023px) {
  .section-overlap--hero .section-overlap__panel {
    margin-top: 1.5rem;
    margin-left: 0;
    width: 100%;
    padding: 1.5rem 1.5rem;
  }

  .section-overlap--hero .section-overlap__media {
    max-width: 100%;
  }
}

/* ── ABOUT: bej kutu sol, resim sağda, kutu resmin üstüne biner ── */
@media (min-width: 1024px) {
  .section-overlap--about {
    flex-direction: row;
    align-items: center;
    min-height: 400px;
  }

  .section-overlap--about .section-overlap__panel {
    width: 46%;
    max-width: 520px;
    flex-shrink: 0;
    order: 1;
    padding: 3rem 3.5rem;
    z-index: 3;
  }

  .section-overlap--about .section-overlap__media {
    width: 58%;
    flex: 1;
    order: 2;
    margin-left: calc(-1 * var(--overlap-pull));
    z-index: 1;
  }
}

@media (max-width: 1023px) {
  .section-overlap--about .section-overlap__panel {
    order: 2;
    margin-top: -2.5rem;
    margin-right: 1.5rem;
    padding: 2rem 1.75rem;
    z-index: 2;
  }

  .section-overlap--about .section-overlap__media {
    order: 1;
    max-width: 90%;
    margin-left: auto;
  }
}

/* ── WHAT WE DO: resim sol (dikey), bej kutu sağda bindirme ── */
@media (min-width: 1024px) {
  .section-overlap--services {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .section-overlap--services .section-overlap__media {
    width: 38%;
    max-width: 380px;
    flex-shrink: 0;
  }

  .section-overlap--services .section-overlap__panel {
    width: 62%;
    flex: 1;
    margin-left: calc(-1 * var(--overlap-pull));
    margin-top: 3rem;
    padding: 3rem 3.5rem;
    align-self: flex-start;
  }
}

@media (max-width: 1023px) {
  .section-overlap--services .section-overlap__panel {
    margin-top: -2rem;
    margin-left: 1.25rem;
    padding: 2rem 1.75rem;
  }

  .section-overlap--services .section-overlap__media {
    max-width: 75%;
  }
}

/* ── Philosophy banner overlay ── */
.philosophy-wrap {
  position: relative;
}

.philosophy-wrap .section-overlap__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: transparent;
  pointer-events: none;
}

.philosophy-wrap .section-overlap__panel > div {
  pointer-events: auto;
  max-width: 640px;
  width: 100%;
  padding: 2.5rem 3rem;
}

@media (max-width: 767px) {
  .philosophy-wrap .section-overlap__panel > div {
    padding: 1.75rem 1.5rem;
  }
}

/* Aspect ratios from mockup */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-wide {
  aspect-ratio: 4 / 3;
}

.aspect-tall {
  aspect-ratio: 3 / 4;
}

/* What we do — alt metin */
.services-footnote {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--heading-brown);
  font-weight: 600;
  max-width: 720px;
  margin: 2.5rem auto 0;
}

@media (min-width: 768px) {
  .services-footnote {
    font-size: 0.7rem;
    margin-top: 3.25rem;
  }
}

.services-sub {
  text-align: center;
  margin-bottom: 1.5rem;
}

.services-sub:last-child {
  margin-bottom: 0;
}

.services-sub h3 {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--panel-charcoal);
}

.services-sub p {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
  color: rgba(74, 74, 78, 0.85);
}
