/* ==========================================================================
   Kabuk bileşenleri — header, navigasyon, mobil menü, hero, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  /* Amblem header'ın altına sarkar */
  overflow: visible;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-slow) var(--ease),
              border-color var(--t-slow) var(--ease),
              backdrop-filter var(--t-slow) var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: var(--ss-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled::before { opacity: 0; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h-mobile);
  transition: height var(--t-slow) var(--ease);
}

@media (min-width: 992px) {
  .site-header__inner { height: var(--header-h); }
}

/* --------------------------------------------------------------------------
   2. Amblem — ortalı, kaydırınca küçülür (resmi sitedeki davranış)
   -------------------------------------------------------------------------- */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  line-height: 0;
  transition: transform var(--t-slow) var(--ease-out);
}

.brand__mark {
  width: auto;
  height: 46px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
  transition: height var(--t-slow) var(--ease-out);
}

@media (min-width: 992px) {
  .brand { top: 100%; transform: translate(-50%, -46%); }
  .brand__mark { height: 108px; }

  .site-header.is-scrolled .brand {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .site-header.is-scrolled .brand__mark { height: 54px; }
}

/* Amblemin arkasındaki yumuşak yeşil ışık */
.brand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--ss-glow-green), transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--t-slow) var(--ease);
}

.site-header.is-scrolled .brand::after { opacity: 0; }

/* --------------------------------------------------------------------------
   3. Masaüstü navigasyon
   -------------------------------------------------------------------------- */
.nav-main {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

@media (min-width: 992px) {
  .nav-main { display: flex; }
  /* Ortadaki amblemin altını boş bırak */
  .nav-main--left  { padding-right: 4.5rem; }
  .nav-main--right { padding-left: 4.5rem; }
}

.nav-link-ss {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  padding-block: 0.25rem;
  color: var(--ss-text-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: none;
  border: 0;
  transition: color var(--t-base) var(--ease);
}

.nav-link-ss::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--ss-neon);
  transition: width var(--t-base) var(--ease-out);
}

.nav-link-ss:hover,
.nav-link-ss[aria-expanded="true"] { color: var(--ss-text); }

.nav-link-ss:hover::after,
.nav-link-ss[aria-expanded="true"]::after { width: 100%; }

/* Bulunulan sayfa / bölüm — renk tek gösterge değil, alt çizgi de kalıcı.
   aria-current="page" bağlantılarda, ="true" ise Kurumsal grubunun butonunda. */
.nav-link-ss[aria-current] { color: var(--ss-text); }
.nav-link-ss[aria-current]::after { width: 100%; background: var(--ss-green-text); }

/* Dış bağlantı işareti */
.nav-link-ss .icon-ext {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}

.nav-link-ss:hover .icon-ext { opacity: 1; transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   4. Kurumsal açılır menüsü
   -------------------------------------------------------------------------- */
.dropdown-menu-ss {
  --bs-dropdown-min-width: 16rem;
  padding: 0.5rem;
  margin-top: 0.75rem !important;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ss-line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
}

.dropdown-menu-ss .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--ss-text-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}

.dropdown-menu-ss .dropdown-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ss-green);
  flex: none;
  transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.dropdown-menu-ss .dropdown-item:hover,
.dropdown-menu-ss .dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ss-text);
}

.dropdown-menu-ss .dropdown-item:hover::before { background: var(--ss-neon); transform: scale(1.6); }
.dropdown-menu-ss .dropdown-item[aria-current="page"] { color: var(--ss-text); }
.dropdown-menu-ss .dropdown-item[aria-current="page"]::before { background: var(--ss-neon); }

/* --------------------------------------------------------------------------
   5. Mobil menü tetikleyicisi
   -------------------------------------------------------------------------- */
.nav-toggle,
.header-cta-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ss-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ss-text);
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.nav-toggle:hover,
.header-cta-mobile:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ss-line-strong);
  color: var(--ss-text);
}

.header-cta-mobile {
  width: auto;
  padding-inline: 1rem;
  background: var(--ss-green);
  border-color: transparent;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-cta-mobile:hover { background: var(--ss-green-hover); border-color: transparent; }

@media (min-width: 992px) {
  .nav-toggle, .header-cta-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   6. Mobil tam ekran menü (offcanvas)
   -------------------------------------------------------------------------- */
.menu-panel {
  width: 100% !important;
  background: var(--ss-bg);
  border: 0;
}

.menu-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 1rem clamp(1.25rem, 5vw, 2rem);
  border-bottom: 1px solid var(--ss-line);
}

.menu-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.menu-panel__brand img { height: 44px; width: auto; }

.menu-panel__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ss-text);
  line-height: 1.2;
}

.menu-panel__tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ss-green-text);
}

.menu-panel__body {
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
  overflow-y: auto;
}

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

.menu-list > li + li { border-top: 1px solid var(--ss-line); }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 60px;
  padding: 0.875rem 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ss-text-soft);
  font-size: clamp(1.375rem, 6vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color var(--t-base) var(--ease);
}

.menu-item:hover,
.menu-item[aria-expanded="true"] { color: var(--ss-text); }
.menu-item[aria-current="page"] { color: var(--ss-neon); }

.menu-item__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--ss-line);
  border-radius: 50%;
  color: var(--ss-text-muted);
  transition: transform var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
}

.menu-item[aria-expanded="true"] .menu-item__chevron {
  transform: rotate(180deg);
  background: var(--ss-green);
  border-color: var(--ss-green);
  color: #fff;
}

.menu-item .icon-ext { width: 14px; height: 14px; opacity: 0.45; }

.menu-sub {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0 0.5rem 1.125rem;
  border-left: 2px solid rgba(8, 115, 53, 0.45);
}

.menu-sub a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  color: var(--ss-text-muted);
  font-size: 1.0625rem;
  font-weight: 600;
}

.menu-sub a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(13, 176, 75, 0.5);
  flex: none;
  transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.menu-sub a:hover { color: var(--ss-text); }
.menu-sub a:hover::before { background: var(--ss-neon); transform: scale(1.5); }
.menu-sub a[aria-current="page"] { color: var(--ss-neon); }

.menu-panel__foot {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ss-line);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Arka plan: mobilde saf CSS (video indirilmez), masaüstünde JS video ekler */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 85% at 18% 12%, rgba(8, 115, 53, 0.42), transparent 62%),
    radial-gradient(90% 70% at 88% 88%, rgba(0, 255, 136, 0.10), transparent 60%),
    linear-gradient(165deg, #0d1a12 0%, #0a0a0a 55%, #06110b 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}

.hero__video.is-ready { opacity: 0.5; }

/* Okunabilirlik katmanı — metin kontrastını garantiler */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 28%, rgba(0, 0, 0, 0.85) 100%);
}

.hero__watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(700px, 82vw);
  opacity: 0.035;
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-block: calc(var(--header-h-mobile) + 3rem) 5.5rem;
}

@media (min-width: 992px) {
  .hero__inner { padding-block: calc(var(--header-h) + 5rem) 7rem; }
}

/* Slaytlar arası yükseklik farkını sabitler — geçişte layout kaymaz (CLS) */
.hero__slide {
  max-width: 46rem;
  min-height: 20rem;
}

@media (min-width: 992px) { .hero__slide { min-height: 23rem; } }

.hero__title { margin-bottom: 1.5rem; }

.hero__title span {
  display: block;
  /* İkinci satır yeşil vurgulu */
}

.hero__title .accent {
  color: var(--ss-green-text);
  text-shadow: 0 0 60px rgba(13, 176, 75, 0.35);
}

.hero__text {
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  color: var(--ss-text-soft);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Carousel geçişi — sadece opacity, layout kaymaz */
.hero .carousel-item {
  transition: opacity var(--t-slow) var(--ease);
}

/* İnce çubuk göstergeler.
   Bootstrap bunları .carousel'e göre absolute konumlar; hero'nun altına değil
   metnin üstüne düşerlerdi. Akışa alıp içeriğin altına yerleştiriyoruz. */
.hero__indicators {
  position: static;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  z-index: 3;
}

/* Görsel olarak 3px çubuk, dokunma alanı 44px (padding + content-box) */
.hero__indicators [data-bs-target] {
  width: 46px;
  height: 3px;
  padding: 20.5px 0;
  background-clip: content-box;
  background-color: rgba(255, 255, 255, 0.28);
  border: 0;
  border-radius: 2px;
  opacity: 1;
  text-indent: -9999px;
  transition: background-color var(--t-base) var(--ease);
}

.hero__indicators [data-bs-target]:hover { background-color: rgba(255, 255, 255, 0.6); }
.hero__indicators .active { background-color: var(--ss-neon); }

/* Aşağı kaydır işareti */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  color: var(--ss-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

@media (min-width: 768px) { .hero__cue { display: flex; } }

.hero__cue-track {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--ss-line-strong);
  border-radius: var(--r-pill);
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero__cue-dot {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--ss-neon);
  animation: cue-bounce 1.8s var(--ease) infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(9px); opacity: 0.35; }
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--ss-bg-alt);
  border-top: 1px solid var(--ss-line);
  overflow: hidden;
}

.site-footer .glow {
  width: 620px;
  height: 620px;
  left: -180px;
  top: -300px;
  opacity: 0.28;
}

.footer-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand__mark { height: 66px; width: auto; margin-bottom: 1.25rem; }

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--ss-text-muted);
  max-width: 30ch;
  margin-bottom: 1.5rem;
}

.footer-col__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ss-text);
  margin-bottom: 1.125rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 44px;
  color: var(--ss-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-links a:hover { color: var(--ss-text); }
.footer-links a[aria-current="page"] { color: var(--ss-neon); }
.footer-links .icon-ext { width: 11px; height: 11px; opacity: 0.5; }

.social-row { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ss-line);
  border-radius: 50%;
  color: var(--ss-text-muted);
  transition: color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
}

.social-btn:hover {
  color: #fff;
  background: var(--ss-green);
  border-color: var(--ss-green);
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--ss-line);
}

.footer-note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ss-text-muted);
  max-width: 62ch;
  margin-bottom: 1.25rem;
}

.footer-note strong { color: var(--ss-text-soft); font-weight: 600; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--ss-text-muted);
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ss-text-muted);
}

.footer-legal a:hover { color: var(--ss-text); }
