/*
 * İzmir Mobil Lastik — Yeniden kullanılabilir fotoğraflı sayfa hero'su
 * template-parts/page-hero.php ile birlikte kullanılır. Sitewide enqueue
 * (functions.php). Şeffaf overlay header'la (header.php) uyumlu.
 */

.iml-phero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 44vh;
  min-height: 44svh;
  padding-block: calc(64px + var(--space-12, 48px)) var(--space-12, 48px);
  overflow: hidden;
  background-color: #060607;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .iml-phero {
    min-height: 46vh;
    min-height: 46svh;
    padding-block: calc(80px + var(--space-16, 64px)) var(--space-16, 64px);
  }
}

.iml-phero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.iml-phero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, 0.35) 0%, rgba(6, 6, 7, 0.55) 45%, rgba(6, 6, 7, 0.95) 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.75) 0%, rgba(6, 6, 7, 0.25) 68%, transparent 100%);
}

.iml-phero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin-inline: auto;
  padding-inline: var(--space-4, 16px);
}

@media (min-width: 1024px) {
  .iml-phero__inner {
    padding-inline: var(--space-8, 32px);
  }
}

/* Breadcrumb (fotoğraf üstünde açık renk) */
.iml-phero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 8px);
  font-family: var(--font-body);
  font-size: var(--fs-small, 0.875rem);
  color: rgba(245, 245, 246, 0.75);
  overflow-x: auto;
  white-space: nowrap;
}

.iml-phero__crumbs a {
  color: rgba(245, 245, 246, 0.75);
  text-decoration: none;
}

.iml-phero__crumbs a:hover {
  color: var(--color-primary);
}

.iml-phero__crumbs-sep {
  color: rgba(245, 245, 246, 0.45);
}

.iml-phero__crumbs [aria-current] {
  color: #fff;
  font-weight: 600;
}

.iml-phero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: var(--space-4, 16px) 0 var(--space-3, 12px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.iml-phero__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.iml-phero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.iml-phero__lead {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg, 1.125rem);
  line-height: var(--lh-body, 1.6);
  color: rgba(245, 245, 246, 0.92);
  max-width: 60ch;
  margin: var(--space-3, 12px) 0 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* İçerik hero'ya yapışmasın — hero'yu takip eden ilk blok için üst boşluk */
.iml-phero + .iml-container,
.iml-phero + .iml-hb-section,
.iml-phero + .iml-service-page,
.iml-phero + .iml-contact-channels,
.iml-phero + .iml-sss-layout {
  padding-top: var(--space-10, 40px);
}

@media (min-width: 1024px) {
  .iml-phero + .iml-container,
  .iml-phero + .iml-service-page,
  .iml-phero + .iml-contact-channels,
  .iml-phero + .iml-sss-layout {
    padding-top: var(--space-14, 56px);
  }
}
