/**
 * 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);
}

/* ══════════════════════════════════════════
   INNER PAGE (page-inner.html → page.php)
   About / Why Agentex / Sustainability vb.
   ══════════════════════════════════════════ */

.page-hero {
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: 9rem;
    padding-bottom: 3.5rem;
  }
}

.page-hero__title {
  text-align: center;
}

.inner-intro {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Gutenberg / Custom HTML content — full site width */
.inner-page-content {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.inner-page-content > *:first-child {
  margin-top: 0;
}

.inner-page-content > *:last-child {
  margin-bottom: 0;
}

.inner-prose {
  font-size: 0.8rem;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: rgba(74, 74, 78, 0.88);
}

@media (min-width: 768px) {
  .inner-prose {
    font-size: 0.875rem;
    line-height: 1.9;
  }
}

.inner-prose--caps {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  line-height: 1.9;
}

@media (min-width: 768px) {
  .inner-prose--caps {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
}

.inner-block {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .inner-block {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.inner-block--tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .inner-block--tight {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.inner-subheading {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--heading-brown);
  text-align: center;
  margin-bottom: 1.25rem;
}

.inner-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .inner-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.inner-two-col__item h3 {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--heading-brown);
  margin-bottom: 0.75rem;
}

.inner-two-col__item p {
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(74, 74, 78, 0.85);
}

.nav-link--active {
  color: var(--heading-brown);
  opacity: 1;
}

/* ══════════════════════════════════════════
   PRODUCTS PAGE (page-products.html → page-products.php)
   ══════════════════════════════════════════ */

/* Intro: side-by-side, no overlap, ~10px gap */
.products-intro-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.products-intro-grid__media {
  margin: 0;
  width: 100%;
  flex-shrink: 0;
}

.products-intro-grid__media .img-block {
  width: 100%;
  height: 100%;
}

.products-intro-grid__panel {
  background-color: var(--panel-beige, #E5E1DD);
  padding: 2rem 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .products-intro-grid {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
  }

  .products-intro-grid__media {
    width: 42%;
    max-width: 420px;
  }

  .products-intro-grid__panel {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.products-intro-panel {
  text-align: center;
}

.products-intro-panel__title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--panel-charcoal);
}

.products-intro-panel__subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.65rem;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading-brown);
}

.products-intro-panel__text {
  text-align: left;
  margin-bottom: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  line-height: 1.85;
}

.products-intro-panel__expertise,
.products-intro-panel__innovation {
  margin-top: 1.25rem;
}

.products-intro-panel__expertise h3,
.products-intro-panel__innovation h3 {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-charcoal);
}

.products-intro-panel__expertise ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.products-intro-panel__expertise li {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-charcoal);
  line-height: 1.9;
}

.products-intro-panel__expertise li::before {
  content: "• ";
}

@media (min-width: 768px) {
  .products-intro-panel__title {
    font-size: 0.95rem;
  }

  .products-intro-panel__text {
    font-size: 0.65rem;
  }
}

.products-carousel-wrap {
  position: relative;
}

.products-carousel {
  overflow: hidden;
  padding-bottom: 0.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card__link {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}
.product-card__link:focus-visible {
  outline: 2px solid var(--heading-brown);
  outline-offset: 4px;
}
.product-card__image {
  aspect-ratio: 4 / 5;
  width: 100%;
  background-color: #eae7e2;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.25rem;
}
.product-card__title {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--heading-brown);
  text-align: center;
  margin-bottom: 0.5rem;
}
.product-card__desc {
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(74, 74, 78, 0.75);
  text-align: center;
  padding: 0 0.5rem;
}

.products-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.products-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(74, 74, 78, 0.2);
  background: white;
  color: var(--panel-charcoal);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.products-carousel__btn:hover {
  border-color: var(--heading-brown);
  color: var(--heading-brown);
}

.products-carousel__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.products-carousel__pagination {
  position: static !important;
  width: auto !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-carousel__pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(74, 74, 78, 0.25);
  opacity: 1;
  margin: 0 !important;
  transition: background 0.3s ease, transform 0.3s ease;
}

.products-carousel__pagination .swiper-pagination-bullet-active {
  background: var(--heading-brown);
  transform: scale(1.2);
}

/* ══════════════════════════════════════════
   CONTACT PAGE (page-contact.html → page-contact.php)
   ══════════════════════════════════════════ */

.nav-link--underline {
  border-bottom: 1px solid var(--heading-brown);
  padding-bottom: 0.25rem;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-main__grid {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

.contact-main__title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--panel-navy);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .contact-main__title {
    font-size: 0.875rem;
  }
}

.contact-form-vertical {
  margin-bottom: 2rem;
}

.contact-form-vertical__field {
  margin-bottom: 1.5rem;
}

.contact-form-vertical__field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74, 74, 78, 0.7);
  margin-bottom: 0.5rem;
}

.contact-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(74, 74, 78, 0.35);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--panel-charcoal);
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.contact-input:focus {
  border-bottom-color: var(--panel-navy);
}

.contact-input--area {
  resize: vertical;
  min-height: 5rem;
}

.contact-btn-send {
  width: 100%;
  background-color: var(--panel-navy);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.contact-btn-send:hover {
  background-color: var(--panel-charcoal);
}

.contact-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eae7e2;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-info-panel {
  position: relative;
  border: 1px solid rgba(74, 74, 78, 0.15);
  background: #faf9f7;
  padding: 2rem 1.75rem 8rem;
  min-height: 100%;
  overflow: visible;
}

@media (min-width: 768px) {
  .contact-info-panel {
    padding: 2.5rem 2.25rem 9rem;
  }
}

.contact-info-panel__title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--heading-brown);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .contact-info-panel__title {
    font-size: 1.35rem;
  }
}

.contact-info-panel__arrow {
  display: none;
  color: var(--panel-charcoal);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-info-panel__arrow {
    display: block;
    width: 3rem;
    margin-left: -0.25rem;
  }
}

.contact-info-panel__intro {
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(74, 74, 78, 0.85);
  margin-bottom: 2rem;
  max-width: 28rem;
}

.contact-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-details-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background-color: var(--panel-navy);
  color: #fff;
}

.contact-details-list__link,
.contact-details-list__text {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--panel-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-top: 0.35rem;
}

.contact-details-list__text {
  text-decoration: none;
}

.contact-details-list__link:hover {
  color: var(--heading-brown);
}

.contact-info-panel__visuals {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .contact-info-panel__visuals {
    height: 8.5rem;
  }
}

.contact-info-panel__person {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45%;
  max-width: 220px;
  height: 100%;
  background-size: cover;
  background-position: center top;
}

.contact-info-panel__accent {
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  width: 6rem;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

@media (min-width: 768px) {
  .contact-info-panel__accent {
    width: 7.5rem;
    right: 0;
    bottom: -1.25rem;
  }
}

.contact-philosophy-banner {
  background-color: var(--panel-navy);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.contact-philosophy-banner p {
  margin: 0;
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (min-width: 768px) {
  .contact-philosophy-banner {
    padding: 1.5rem 2rem;
  }

  .contact-philosophy-banner p {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
  }
}

 /* Hero mobil: başlık transform'unu sıfırla + boşluğu görsele ver */
@media (max-width: 1023px) {
  #hero h1.section-heading {
    transform: none !important;
    translate: none !important;
    margin-bottom: 0 !important;
  }

  #hero .section-overlap--hero {
    padding-top: 2.5rem !important; /* boşluk — 3rem / 4rem yapabilirsiniz */
  }
}
