/* ============================================================
   Moment Medya — Yerleşim (konteyner, bölüm, header, footer, grid)
   ============================================================ */

/* --- Konteyner --- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Bölümler --- */
.section {
  padding: var(--space-20) 0;
}

.section--alt {
  background: var(--gray-50);
}

.section--dark {
  background: var(--navy-950);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: var(--gray-400);
}

.section--tight {
  padding: var(--space-16) 0;
}

.section--compact {
  padding: var(--space-8) 0;
}

.hero--light--compact {
  padding: var(--space-12) 0 var(--space-8);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-head h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

.section-head__bar {
  width: 48px;
  height: 4px;
  background: var(--orange-500);
  border-radius: 2px;
  margin: var(--space-4) auto 0;
}

.section-head p {
  color: var(--gray-500);
  margin-top: var(--space-4);
  font-size: var(--text-base);
}

/* --- Grid yardımcıları --- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Hero --- */
.hero {
  background: var(--gray-50);
  color: var(--gray-900);
  padding: var(--space-20) 0 var(--space-12);
}

.hero__inner {
  max-width: 760px;
}

.hero h1 {
  color: var(--gray-900);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.hero__sub {
  color: var(--gray-500);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  margin-top: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* Hero görseli (varsayılan temsili görsel / admin'den değiştirilebilir) */
.hero__media {
  margin-top: var(--space-8);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
}

.hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 1;
  object-fit: cover;
}

/* Açık hero (iç sayfalar) */
.hero--light {
  background: var(--gray-50);
  padding: var(--space-12) 0 var(--space-8);
}

/* Hero'yu izleyen ilk bölüm: üst boşluk hero ile toplanır (çift boşluk olmasın) */
.hero + .section,
.hero--light + .section {
  padding-top: var(--space-12);
}

.hero--light h1 {
  color: var(--gray-900);
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

.hero--light__sub {
  color: var(--gray-500);
  font-size: var(--text-base);
  margin-top: var(--space-4);
  max-width: 72ch;
}

/* Koyu hero (ana sayfa) */
.hero--dark {
  background: var(--navy-950);
}

.hero--dark h1 {
  color: var(--white);
}

.hero--dark .hero__sub {
  color: var(--gray-400);
}

/* Ana sayfa hero: solda metin, sağda carousel (şeffaf arka planlı görseller) */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

.hero__carousel {
  position: relative;
}

.hero__carousel-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero__dot.is-active {
  background: var(--orange-500);
  transform: scale(1.25);
}

/* Dar ekranlarda (≤480px) başlıktaki CTA gizlenir; telefon/WhatsApp
   üst çubukta ve hero CTA'larında zaten erişilebilir durumdadır. */
@media (max-width: 480px) {
  .site-header__actions .btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--orange-600);
}

.breadcrumb__sep {
  margin: 0 var(--space-2);
  color: var(--gray-400);
}

.breadcrumb [aria-current="page"] {
  color: var(--gray-900);
  font-weight: var(--weight-medium);
}

/* --- Detay sayfa düzeni (içerik + yapışkan kenar çubuğu) --- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}

.detail-layout__main {
  display: grid;
  gap: var(--space-6);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  display: grid;
  gap: var(--space-6);
}

/* --- Üst bilgi çubuğu --- */
.topbar {
  background: var(--navy-900);
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--topbar-height);
}

.topbar__link {
  color: var(--white);
  font-weight: var(--weight-medium);
}

.topbar__link:hover {
  color: var(--orange-500);
}

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar__sep {
  color: var(--gray-500);
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}


.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--orange-500);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.brand__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand--light .brand__name {
  color: var(--white);
}

.site-nav {
  display: flex;
  gap: var(--space-8);
}

.site-nav a {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--gray-700);
  padding: var(--space-2) 0;
}

.site-nav a:hover {
  color: var(--orange-600);
}

.site-nav a[aria-current="page"] {
  color: var(--orange-600);
  font-weight: var(--weight-semibold);
}

/* Alt menüler (Hizmetler, Ürünler) */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 2px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: var(--space-2) 0;
  display: none;
}

/* Fare boşlukta gezinirken menünün kapanmaması için görünmez köprü */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--gray-50);
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  display: block;
}

/* Geniş alt menü (Ürünler) — iki sütun */
.nav-dropdown--wide {
  min-width: 460px;
}

.nav-item:hover > .nav-dropdown--wide,
.nav-item:focus-within > .nav-dropdown--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-8);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-400);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-12);
  padding: var(--space-16) 0 var(--space-12);
}

.site-footer h3 {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-6);
}

.site-footer ul {
  display: grid;
  gap: var(--space-3);
}

.site-footer a {
  color: var(--gray-400);
  font-size: var(--text-md);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__brand p {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  margin-top: var(--space-4);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0;
  font-size: var(--text-sm);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--container-pad) var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-card);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .site-nav > a:last-child {
    border-bottom: 0;
  }

  /* Mobil alt menüler: içe gömülü liste */
  .nav-item > a {
    padding: var(--space-3) 0;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    background: var(--gray-50);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 var(--space-6) var(--space-2);
    display: block;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown a {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--gray-500);
  }

  .nav-dropdown a:hover {
    background: none;
    color: var(--orange-600);
  }

  /* Mobil başlık CTA'sı: hamburger ile aynı yükseklikte kompakt buton */
  .site-header__actions .btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: var(--text-sm);
    white-space: nowrap;
  }

  .nav-toggle {
    min-height: 40px;
    min-width: 40px;
    justify-content: center;
    padding: 10px;
  }
}

@media (max-width: 400px) {
  .site-header__inner {
    gap: var(--space-2);
  }

  .site-header__actions {
    gap: var(--space-2);
  }

  .site-header__actions .btn {
    padding: 8px 10px;
  }

  .nav-toggle {
    padding: 10px 6px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }

  .hero {
    padding: var(--space-16) 0 var(--space-8);
  }

  .hero--light {
    padding: var(--space-8) 0 var(--space-6);
  }

  .hero + .section,
  .hero--light + .section {
    padding-top: var(--space-8);
  }

  /* İç sayfa hero şeritleri (5:1) mobilde okunabilir yüksekliğe kırpılır */
  .hero__media img {
    aspect-ratio: 16 / 10;
  }

  /* Mobil hero CTA'ları tam genişlikte alt alta */
  .hero__actions > * {
    flex: 1 1 100%;
  }

  .section--compact {
    padding: var(--space-8) 0;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero--light h1 {
    font-size: var(--text-2xl);
  }

  .section-head h2 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .topbar__text {
    display: none;
  }

  /* Mobil: tek satıra sığan kompakt kontak çubuğu */
  .topbar {
    font-size: var(--text-xs);
    line-height: 1.4;
  }

  .topbar__inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-1) 0;
  }

  .topbar__contacts {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px var(--space-4);
  }

  .topbar__sep {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
