/*
 * Aken Enerji - Ortak Stil Dosyası
 * ------------------------------------------------------------
 * Bu dosya hem index.html ana sayfa slider yapısını hem de iç
 * sayfaların içerik stillerini barındırır. Header, sidebar ve
 * mobil menü yapısı tüm sayfalarda index.html ile ortaktır.
 */

/* Raleway değişken yazı tipinin Türkçe karakterleri kapsayan Latin genişletilmiş kümesini yükle. */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/raleway/raleway-latin-ext-variable.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Raleway değişken yazı tipinin temel Latin kümesini diğer karakterler için yükle. */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/raleway/raleway-latin-variable.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --sidebar-w: clamp(290px, 20.1vw, 386px);
  --aken: #201943;
  --cyan: #15a6d2;
  --text: #2f2f2f;
  --muted: #a1a1a1;
  --card-gap: clamp(46px, 4.7vw, 90px);
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --aken-2: #2c2458;
  --yellow: #f2cf32;
  --menu: #303030;
  --line: #e9e9e9;
  --soft: #f7f7f7;
  --white: #fff;
  --shadow: 0 18px 50px rgba(30, 24, 63, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #fff;
}

body {
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Ana sayfa tam ekran slider kullandığı için viewport sabitlenir. */
body.home-page {
  overflow: hidden;
  min-width: 1024px;
}

/* İç sayfalar normal dikey kaydırma davranışını korur. */
body.inner-page {
  min-width: 0;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==============================
       SOL MENÜ
       ============================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar-w);
  height: 100vh;
  background: #fff;
  padding: 2px 0 32px 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aken-logo {
  display: block;
  width: 152px;
  height: 197px;
  margin-left: calc((var(--sidebar-w) - 42px - 152px) / 2 - 21px);
}

.aken-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.main-nav {
  margin-top: 56px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ana menü bağlantılarında bütün ekranlarda aynı yazı ölçüsü ve satır yüksekliğini kullan. */
.main-nav a {
  display: inline-block;
  font-size: 15px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0.15px;
  color: #303030;
  transition: color 0.2s ease;
}

/* Etkin menü öğesini ve üzerine gelinen bağlantıyı marka lacivertiyle vurgula. */
.main-nav li.active a,
.main-nav a:hover {
  color: #20193c;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 27px;
  color: #a7a7a7;
}

.social-links a {
  font-size: 17px;
  line-height: 1;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--cyan);
}

/* Dil bayraklarını sosyal medya ikonlarının altında küçük ve dengeli bir satırda göster. */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

/* Bayrağın tamamını tıklanabilir tutup etkin dili marka rengiyle belirt. */
.language-button {
  position: relative;
  width: 29px;
  height: 20px;
  padding: 0;
  overflow: hidden;
  appearance: none;
  border: 1px solid rgba(32, 25, 67, 0.18);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(32, 25, 67, 0.08);
  cursor: pointer;
  opacity: 0.65;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Bayrak görselini düğme sınırları içinde kırpmadan doldur. */
.language-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Görsel bayrak yeterli olduğu için kısa kodu yalnız ekran okuyucularına bırak. */
.language-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fare ve klavye etkileşiminde seçili bayrağı belirginleştir. */
.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  opacity: 1;
  transform: translateY(-1px);
  width: 34px;
  height: auto;
}

/* Klavye odağını renk vurgusuna ek olarak kesintisiz bir dış çizgiyle göster. */
.language-button:focus-visible {
  outline: 2px solid var(--aken);
  outline-offset: 2px;
}

.eine-link {
  position: static;
  display: block;
  width: 120px;
  margin-top: 72px;
  line-height: 1;
}

.eine-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* Kenar çubuğu alt bilgisinde bütün ekranlarda aynı okunaklı yazı boyutunu kullan. */
.sidebar-footer {
  position: static;
  margin-top: auto;
  padding-top: 28px;
  color: #4b4b4b;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: block;
}

.footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Çeviri motorunun teknik seçicisini ve üst bildirim katmanlarını marka arayüzünün dışında tut. */
#google_translate_element {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Google'ın eski ve güncel yardımcı katmanlarını sayfanın görünen düzeninden kaldır. */
body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.goog-logo-link {
  display: none !important;
}

/* Google çevirisinin gövdeye eklediği üst boşluğu bütün sayfalarda sıfırla. */
body {
  top: 0 !important;
}

/* ==============================
       4 DİKEY KART
       ============================== */
.slider-stage {
  position: fixed;
  inset: 0 0 0 var(--sidebar-w);
  height: 100vh;
  padding: 40px 20px 44px 25px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
  background: #fff;
  overflow: hidden;
}

/* Kapak yüklenene kadar kart arka planını site zeminiyle aynı tut. */
.card-slider {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

/* Kayan kapakların arka planını görselle aynı kart sınırlarında tut. */
.card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 100%, 0);
  transition: transform 900ms var(--ease);
  will-change: transform;
  background: #fff;
}

.card-slide.is-active {
  transform: translate3d(0, 0, 0);
  z-index: 3;
}

.card-slide.is-leaving {
  transform: translate3d(0, -100%, 0);
  z-index: 2;
}

/* Kapakları oranlarını bozmadan kartın tamamını dolduracak biçimde kırp. */
.card-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

/* Gerçek sitedeki gibi kart hover katmanı */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(32, 25, 67, 0.94);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
  text-align: center;
}

.card-slide:hover .slide-overlay {
  opacity: 1;
}

.slide-overlay h5 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 500;
}

.slide-overlay span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.slide-overlay .view {
  margin-top: 18px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 1440px) {
  :root {
    --sidebar-w: 290px;
    --card-gap: 48px;
  }

  .sidebar {
    padding-left: 32px;
  }

  .aken-logo {
    width: 126px;
    height: 163px;
    margin-left: 46px;
  }

  .main-nav {
    margin-top: 42px;
  }

  .social-links {
    margin-top: 20px;
    gap: 15px;
  }

  .eine-link {
    width: 105px;
    margin-top: 54px;
  }

  .sidebar-footer {
    bottom: 22px;
  }

  .slider-stage {
    padding: 30px 18px 32px 22px;
  }
}

@media (max-height: 760px) {
  .eine-link {
    display: none;
  }

  .main-nav {
    margin-top: 25px;
  }

  .slider-stage {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* ==============================
       MOBİL / TABLET
       Masaüstü görünümüne dokunmadan,
       sol menü drawer olur ve kartlar
       yatay swipe ile gezilir.
       ============================== */
/* Masaüstünde mobil üst ve alt gezinme alanlarını görünümden kaldır. */
.mobile-topbar,
.mobile-bottom-nav,
.menu-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  /* Mobil kabuğun iki çubuğuna içerikte ve güvenli ekran payında yer ayır. */
  :root {
    --mobile-header-h: 72px;
    --mobile-bottom-nav-h: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.home-page {
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
  }

  body {
    min-width: 0;
  }

  .mobile-topbar {
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-h);
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #ededed;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* Üst çubuğun göründüğü bütün dar ekranlarda alt kısayolları da erişilebilir tut. */
  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1170;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px;
    height: var(--mobile-bottom-nav-h);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e8e7ee;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(32, 25, 67, 0.08);
  }

  /* Kısayolları simge ve kısa adlarıyla dokunmaya uygun genişlikte göster. */
  .mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 5px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #666777;
    cursor: pointer;
    font: 600 10px/1.15 "Raleway", Arial, sans-serif;
    white-space: nowrap;
  }

  /* Etkin kısayol ve açık WhatsApp panelini marka rengiyle belirt. */
  .mobile-bottom-link.is-active,
  .mobile-whatsapp-toggle[aria-expanded="true"] {
    background: #f0eef8;
    color: var(--aken);
  }

  /* Simge, WhatsApp rengi ve klavye odağını alt çubukta görünür tut. */
  .mobile-bottom-link i {
    font-size: 21px;
    line-height: 1;
  }
  .mobile-whatsapp-toggle i {
    color: #20a751;
  }
  .mobile-bottom-link:focus-visible {
    outline: 2px solid var(--aken);
    outline-offset: -2px;
  }

  /* Logonun dosya içindeki boş üst kısmını görünür alandan kırp. */
  .mobile-brand {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    width: 66px;
    height: 60px;
    overflow: hidden;
  }

  /* Gerçek logo işaretini üst çubukta daha büyük ve dengeli göster. */
  .mobile-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    transform: translateY(-35px);
  }

  .menu-spacer {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .menu-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--aken);
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    display: block;
    background: currentColor;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

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

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

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

  .menu-backdrop {
    position: fixed;
    z-index: 1090;
    inset: var(--mobile-header-h) 0 0 0;
    background: rgba(18, 16, 35, 0.38);
    opacity: 0;
    visibility: hidden;
    display: block;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Çekmeceyi alt kısayolların üstünde bitirerek son bağlantıları erişilebilir tut. */
  .sidebar {
    z-index: 1150;
    top: var(--mobile-header-h);
    bottom: var(--mobile-bottom-nav-h);
    width: min(82vw, 330px);
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-bottom-nav-h));
    padding: 24px 28px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 16px 0 36px rgba(20, 18, 40, 0.12);
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .sidebar.is-open {
    transform: translate3d(0, 0, 0);
  }

  .aken-logo {
    width: 92px;
    height: 119px;
    margin: 0 auto;
  }

  .main-nav {
    margin-top: 28px;
  }

  /* Mobil çekmecede menü bağlantısının bütün satırını tıklanabilir tut. */
  .main-nav a {
    display: block;
  }

  .social-links {
    margin-top: 18px;
    gap: 19px;
  }

  .social-links a {
    font-size: 17px;
  }

  .eine-link {
    position: static;
    display: block;
    width: 105px;
    margin-top: 28px;
  }

  .sidebar-footer {
    position: static;
    margin-top: auto;
    padding-top: 28px;
    padding-bottom: 4px;
    white-space: normal;
  }

  .footer-mark {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .slider-stage {
    position: fixed;
    top: var(--mobile-header-h);
    right: 0;
    bottom: var(--mobile-bottom-nav-h);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-bottom-nav-h));
    padding: 18px 18px 22px;
    display: flex;
    align-items: stretch;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .slider-stage::-webkit-scrollbar {
    display: none;
  }

  .card-slider {
    flex: 0 0 clamp(248px, calc((100dvh - 108px) * 0.36), 326px);
    width: auto;
    min-width: 248px;
    max-width: 326px;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    touch-action: pan-x;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  }

  .slide-overlay h5 {
    font-size: 15px;
  }

  @media (hover: none) {
    .card-slide:hover .slide-overlay {
      opacity: 0;
    }
  }
}

@media (max-width: 575.98px) {
  /* Telefon genişliğinde üst çubuğu logo için biraz yükselt. */
  :root {
    --mobile-header-h: 78px;
  }

  .mobile-topbar {
    height: var(--mobile-header-h);
    padding: 0 14px;
  }

  /* Telefonda 100 piksellik logonun üst boşluğunu istenen ölçüde kırp. */
  .mobile-brand {
    width: 68px;
    height: 76px;
  }
  .mobile-brand-logo {
    width: auto;
    height: 100px;
    margin-top: -24px;
    transform: none;
  }

  .menu-toggle {
    left: 7px;
  }

  .menu-spacer {
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .slider-stage {
    padding: 14px 14px 18px;
    gap: 14px;
    scroll-padding-inline: 14px;
  }

  .card-slider {
    flex-basis: clamp(236px, 72vw, 300px);
    min-width: 236px;
    max-width: 300px;
  }

  .sidebar {
    bottom: var(--mobile-bottom-nav-h);
    width: min(86vw, 318px);
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-bottom-nav-h));
    padding: 22px 25px 26px;
  }
}

@media (max-width: 1100px) and (orientation: landscape) and (max-height: 560px) {
  :root {
    --mobile-header-h: 54px;
  }

  .mobile-topbar {
    height: var(--mobile-header-h);
  }

  /* Kısa yatay ekranda logo kırpmasını daha alçak üst çubuğa uyarla. */
  .mobile-brand {
    width: 60px;
    height: 50px;
  }
  .mobile-brand-logo {
    height: 90px;
    margin-top: -31px;
  }

  .slider-stage {
    padding: 10px 14px 12px;
    gap: 14px;
  }

  .card-slider {
    flex-basis: clamp(180px, 27vw, 250px);
    min-width: 180px;
    max-width: 250px;
  }

  .aken-logo {
    width: 70px;
    height: 91px;
  }

  .main-nav {
    margin-top: 16px;
  }

  .eine-link {
    display: block;
    width: 90px;
    margin-top: 18px;
  }

  .sidebar-footer {
    display: block;
    padding-top: 18px;
  }
}

/* ==========================================================================
   İÇ SAYFA İÇERİK STİLLERİ
   ========================================================================== */
/* ===================== CONTENT ===================== */
.page-shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: #fff;
}
.inner-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--aken);
  color: #fff;
}
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(32, 25, 67, 0.99) 0%,
    rgba(32, 25, 67, 0.94) 44%,
    rgba(32, 25, 67, 0.57) 72%,
    rgba(32, 25, 67, 0.24) 100%
  );
  z-index: 1;
}
/* Hero görselini yalnız aynı kaynaklı yönetilebilir içerik alanından al. */
.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(
    --hero-image,
    linear-gradient(135deg, #3b326d, #17122f)
  );
  background-size: cover;
  background-position: center 50%;
  opacity: 0.42;
  filter: saturate(0.8);
  z-index: 0;
}
/* İç sayfa başlığını kaldırılan kod kutusundan bağımsız tek sütunda göster. */
.inner-hero .hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 7.5% 58px;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 40px;
  align-items: end;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 15px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--yellow);
}
.inner-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -2px;
}
.inner-hero h1 strong {
  font-weight: 600;
}
.hero-sub {
  max-width: 580px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.8;
}
.section {
  padding: 72px 7.5%;
}
.section.soft {
  background: var(--soft);
}
.section.tight {
  padding-top: 48px;
  padding-bottom: 48px;
}
.section-label {
  color: var(--aken);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.section-title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 24px;
  color: #232323;
}
.section-title strong {
  font-weight: 600;
}
.lead-copy {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  max-width: 880px;
}
.body-copy {
  font-size: 14px;
  line-height: 1.9;
  color: #656565;
}
.body-copy p:last-child {
  margin-bottom: 0;
}
.yellow-rule {
  width: 58px;
  height: 4px;
  background: var(--yellow);
  margin: 24px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: start;
}
/* Hakkımızda metniyle yönetilebilir bina fotoğrafını dengeli iki sütuna yerleştir. */
.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}
/* Görsel kaldırıldığında tanıtım metnini boş sütun bırakmadan göster. */
.about-story-grid.is-text-only {
  grid-template-columns: minmax(0, 780px);
}
/* Uzun kurumsal metni dar satırlara ayırıp paragrafları belirginleştir. */
.about-story-copy .body-copy {
  font-size: 15px;
  line-height: 1.85;
}
.about-story-copy .body-copy p {
  margin: 0 0 20px;
}
/* Fotoğrafı kırpmadan, kurumsal renkte ince bir çerçeveyle sun. */
.about-story-visual {
  margin: 0;
  padding: 10px;
  background: #eef2f7;
  box-shadow: var(--shadow);
}
.about-story-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.about-panel {
  background: var(--aken);
  color: #fff;
  padding: 46px 44px;
  position: relative;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.about-panel::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -16px;
  bottom: -16px;
  background: var(--yellow);
  z-index: -1;
}
.about-panel .big {
  font-size: 66px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
}
.about-panel h3 {
  font-size: 20px;
  margin: 14px 0 25px;
  font-weight: 500;
}
.about-panel p {
  color: rgba(255, 255, 255, 0.69);
  font-size: 13px;
  line-height: 1.85;
}
.fact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.fact-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 0;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.77);
}
.fact-list li i {
  color: var(--yellow);
  margin-top: 3px;
}
/* Tecrübe bilgisini metin ve görsel satırının altında yatay bir kurumsal bantta topla. */
.about-story-panel {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(190px, 1fr) minmax(220px, 1.1fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
  min-height: 0;
  margin-top: 44px;
  padding: 32px 38px;
}
.about-story-panel h3 {
  margin: 8px 0 0;
}
.about-story-panel p,
.about-story-panel .fact-list {
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 38px;
}
.service-item {
  background: #fff;
  padding: 30px 30px 28px;
  min-height: 150px;
}
.service-item .no {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 2px;
}
.service-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 23px 0 8px;
  color: #303030;
}
.service-item p {
  font-size: 12px;
  line-height: 1.7;
  color: #838383;
  margin: 0;
}

/* ===================== PRICE LIST ===================== */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}
.filter-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--aken);
  border-color: var(--aken);
  color: #fff;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.price-card {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 240px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.brand-word {
  height: 88px;
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-word.eaton {
  color: #176cab;
}
.brand-word.phoenix {
  color: #292929;
  font-size: 23px;
}
.brand-word.phoenix span {
  color: #00a68d;
}
.brand-word.eine {
  color: #222;
  font-size: 39px;
}
.brand-word.wieland {
  color: #333;
}
.brand-word.sigma {
  color: #65a448;
}
.brand-word.tense {
  color: #2d9c64;
}
.brand-word.gewiss {
  color: #e75928;
}
.brand-word.other {
  color: #52656d;
}
.price-card .meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #aaa;
}
.price-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 9px 0 6px;
}
.price-card p {
  font-size: 11px;
  line-height: 1.65;
  color: #888;
  margin: 0 0 18px;
}
.download-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--aken);
}
.download-link i {
  font-size: 12px;
}
.download-link:hover {
  color: #7a6eaa;
}

/* ===================== CONTACT ===================== */
/* Haritalı şube kartlarını gömüye yer bırakan esnek sütunlara dağıt. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: #fff;
  min-height: 270px;
}
.contact-card .city {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--aken);
}
.contact-card h3 {
  font-size: 21px;
  font-weight: 500;
  margin: 12px 0 20px;
}
/* Şube haritasını kart sınırları içinde taşmadan ve okunabilir yükseklikte göster. */
.contact-map {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f7;
}
.contact-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #727272;
}
.contact-row i {
  width: 18px;
  color: var(--aken);
  margin-top: 4px;
}
.contact-row a:hover {
  color: var(--aken);
}
/* Adres altındaki iki harita eylemini dar kartlarda da satır kaydırarak koru. */
.contact-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 3px 30px;
}

/* Harita ve yol tarifi bağlantılarını klavye odağıyla birlikte belirginleştir. */
.contact-map-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aken);
  font-size: 11px;
  font-weight: 700;
}
.contact-map-links a:hover { color: var(--cyan); }
.contact-map-links a:focus-visible { outline: 2px solid var(--aken); outline-offset: 3px; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.contact-form .full {
  grid-column: 1/-1;
}
.field {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px 15px;
  font-size: 12px;
  outline: 0;
}
.field:focus {
  border-color: var(--aken);
}
textarea.field {
  min-height: 140px;
  resize: vertical;
}
.submit-btn {
  border: 0;
  background: var(--aken);
  color: #fff;
  padding: 14px 21px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.submit-btn:hover {
  background: var(--aken-2);
}

/* ===================== BRAND DETAIL ===================== */
/* Ürün açıklaması ile marka bilgilerini detay gövdesinde birlikte düzenle. */
.brand-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 56px;
  align-items: start;
}
.brand-aside {
  position: sticky;
  top: 32px;
  border: 1px solid var(--line);
  padding: 28px;
  background: #fff;
}
.aside-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--aken);
  margin-bottom: 16px;
}
.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-list li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  color: #6e6e6e;
}
.aside-list li:first-child {
  border-top: 0;
}
.aside-list i {
  color: var(--aken);
  width: 20px;
}
.catalog-box {
  margin-top: 22px;
  background: var(--aken);
  color: #fff;
  padding: 25px;
}
.catalog-box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.catalog-box p {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}
.catalog-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 10px 13px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.product-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.product-group {
  background: var(--soft);
  padding: 22px;
  border-left: 3px solid var(--yellow);
}
.product-group h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
.product-group p {
  font-size: 11px;
  line-height: 1.65;
  color: #777;
  margin: 0;
}

/* Dinamik ürün liste kartlarını hazır fiyat kartlarının görsel dilinde düzenle. */
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.product-card {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.product-card-image {
  display: block;
  aspect-ratio: 4/3;
  background: var(--soft);
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-card > .meta {
  padding: 22px 24px 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #aaa;
}
.product-card > strong {
  padding: 8px 24px 0;
  font-size: 20px;
  color: var(--aken);
}
.product-card > span:not(.product-card-image):not(.meta) {
  padding: 9px 24px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #777;
}
.product-card > b {
  margin-top: auto;
  padding: 20px 24px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--aken);
}

/* Fiyat listesi kapaklarını doğal görsel yüksekliğiyle ve kırpmadan göster. */
.price-card-image {
  height: auto;
  margin: -8px -8px 20px;
  padding: 10px;
  background: var(--soft);
  overflow: hidden;
}
.price-card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.price-card .download-link {
  align-self: flex-start;
}

/* Ürün galerisini açıklamanın altında dengeli sütunlarda göster. */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.product-gallery a {
  display: block;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  overflow: hidden;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Yerel e-katalog önizlemesini geniş ekran ve mobilde okunabilir tut. */
.catalog-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0;
  padding: 13px 18px;
  background: var(--aken);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.catalog-frame {
  width: 100%;
  height: min(78vh, 900px);
  border: 1px solid var(--line);
  background: var(--soft);
}
.empty-state {
  padding: 24px;
  border-left: 3px solid var(--yellow);
  background: var(--soft);
  color: #666;
}

/* Gerçek iletişim formu sonucunu tasarımla uyumlu ve erişilebilir durum kutularında göster. */
.form-alert {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.6;
}
.form-alert.success {
  background: #edf8f2;
  border-color: #b9e2ca;
  color: #1f6b3d;
}
.form-alert.error {
  background: #fff0f0;
  border-color: #efc0c0;
  color: #9b2c2c;
}
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* Ana sayfa overlay başlığını yeni dinamik strong etiketiyle eski h5 görünümünde tut. */
.slide-overlay > strong {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 500;
}

/* ===================== İÇ SAYFALAR: RESPONSIVE ===================== */
@media (max-width: 1280px) {
  body.inner-page .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.inner-page .inner-hero .hero-grid,
  body.inner-page .section {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 1100px) {
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* Sabit alt çubuğun iç sayfalardaki son içeriği örtmesini engelle. */
  body.inner-page {
    padding-top: var(--mobile-header-h);
    padding-bottom: var(--mobile-bottom-nav-h);
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* İç sayfa kabuğunu üst ve alt çubuk arasında en az bir ekran boyunda tut. */
  body.inner-page .page-shell {
    margin-left: 0;
    min-height: calc(100dvh - var(--mobile-header-h) - var(--mobile-bottom-nav-h));
  }
  body.inner-page .inner-hero {
    min-height: 310px;
  }
  body.inner-page .inner-hero .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 54px;
    padding-bottom: 44px;
  }
  body.inner-page .about-grid,
  body.inner-page .brand-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* Orta ekranlarda tecrübe bandını iki satıra açarak maddelerin okunurluğunu koru. */
  body.inner-page .about-story-panel {
    grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
  }
  body.inner-page .about-story-panel .fact-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  body.inner-page .brand-aside {
    position: static;
  }
  body.inner-page .contact-grid {
    grid-template-columns: 1fr;
  }
  body.inner-page .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.inner-page .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.inner-page .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
}

@media (max-width: 760px) {
  /* Dar ekranlarda fotoğrafı metnin ardından tam genişlikte göster. */
  body.inner-page .about-story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body.inner-page .inner-hero {
    min-height: 270px;
  }
  body.inner-page .inner-hero h1 {
    font-size: 42px;
  }
  body.inner-page .section {
    padding: 44px 20px;
  }
  body.inner-page .inner-hero .hero-grid {
    padding: 46px 20px 38px;
  }
  body.inner-page .about-panel {
    padding: 34px 28px;
  }
  /* Mobil tecrübe bandını tek sütunda, güven maddeleriyle birlikte oku. */
  body.inner-page .about-story-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 36px;
  }
  body.inner-page .about-story-panel .fact-list {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  body.inner-page .service-grid,
  body.inner-page .price-grid,
  body.inner-page .product-groups {
    grid-template-columns: 1fr;
  }
  body.inner-page .product-card-grid,
  body.inner-page .product-gallery {
    grid-template-columns: 1fr;
  }
  body.inner-page .contact-form {
    grid-template-columns: 1fr;
  }
  body.inner-page .contact-form .full {
    grid-column: auto;
  }
  body.inner-page .price-card {
    min-height: 210px;
  }
}

/* WhatsApp iletişim kutusunu sayfa içeriğinin üstünde ve sağ alt köşede tut. */
.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1160;
  display: grid;
  justify-items: end;
  gap: 12px;
}

/* AKEN renkleriyle uyumlu açma düğmesinde iletişim kanalını açıkça göster. */
.whatsapp-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 7px 18px 7px 8px;
  border: 0;
  border-radius: 999px;
  background: #25b95a;
  box-shadow: 0 12px 30px rgba(20, 90, 47, 0.24);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* Destek simgesini düğme metninden ayırıp kolay seçilir büyüklükte tut. */
.whatsapp-toggle-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

/* Kapsüldeki müşteri hizmetleri başlığını iki okunabilir satırda göster. */
.whatsapp-toggle-copy {
  text-align: left;
  white-space: nowrap;
}

/* Düğme başlığının satır yüksekliğini ikonla dengeli tut. */
.whatsapp-toggle-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.1;
}

/* Fare ve klavye etkileşiminde düğmeyi belirginleştir. */
.whatsapp-toggle:hover,
.whatsapp-toggle:focus-visible {
  background: #1aa34b;
  transform: translateY(-2px);
}
.whatsapp-toggle:focus-visible,
.whatsapp-close:focus-visible,
.whatsapp-topic:focus-visible,
.whatsapp-send:focus-visible {
  outline: 2px solid var(--aken);
  outline-offset: 3px;
}

/* Açılan panelin sınırlı yüksekliğini küçük ekranlarda da kaydırılabilir tut. */
.whatsapp-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: min(610px, calc(100dvh - 112px));
  overflow-y: auto;
  border: 1px solid rgba(32, 25, 67, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(32, 25, 67, 0.22);
}

/* Gizli panelin ızgara yerleşiminde boş yer kaplamasını önle. */
.whatsapp-panel[hidden] {
  display: none;
}

/* Panel başlığında marka ve kapanış eylemini yan yana yerleştir. */
.whatsapp-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  background: var(--aken);
  color: #fff;
}

.whatsapp-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #25b95a;
  font-size: 21px;
}

.whatsapp-panel-heading {
  display: grid;
  gap: 4px;
}
.whatsapp-panel-heading strong {
  font-size: 14px;
}
.whatsapp-panel-heading small {
  font-size: 10px;
  opacity: 0.78;
}

/* Kapanış düğmesini başlığın sağ kenarında erişilebilir büyüklükte göster. */
.whatsapp-close {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

/* Konu seçenekleriyle mesaj formunu hafif bir zemin üzerinde grupla. */
.whatsapp-panel-body {
  padding: 17px;
  background: #f7f8fa;
}
.whatsapp-panel-body > p {
  margin: 0 0 14px;
  color: #60666f;
  font-size: 12px;
  line-height: 1.5;
}
.whatsapp-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

/* Hazır konuları tek dokunuşla mesaj alanına aktarılabilecek düğmeler olarak sun. */
.whatsapp-topic {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px;
  border: 1px solid #dce1e8;
  border-radius: 9px;
  background: #fff;
  color: var(--aken);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
}

.whatsapp-topic i {
  color: #1aa34b;
}
.whatsapp-topic:hover,
.whatsapp-topic.is-selected {
  border-color: #25b95a;
  background: #eafaef;
}

/* Mesaj alanını ve gönder düğmesini gerçek WhatsApp formunda dikey sırala. */
.whatsapp-panel form {
  display: grid;
  gap: 10px;
}
.whatsapp-message-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--aken);
}
.whatsapp-panel textarea {
  width: 100%;
  min-height: 100px;
  padding: 11px;
  resize: vertical;
  border: 1px solid #dce1e8;
  border-radius: 10px;
  color: var(--text);
  font:
    12px/1.5 "Raleway",
    Arial,
    sans-serif;
}

.whatsapp-panel textarea:focus {
  outline: 2px solid rgba(21, 166, 210, 0.3);
  border-color: var(--cyan);
}
.whatsapp-send {
  padding: 12px 14px;
  border: 0;
  border-radius: 9px;
  background: #25b95a;
  color: #fff;
  cursor: pointer;
  font:
    700 12px "Raleway",
    Arial,
    sans-serif;
}
.whatsapp-send:hover {
  background: #1aa34b;
}

/* Dar ekranlarda destek düğmesini içeriği örtmeyen yuvarlak simgeye indir. */
@media (max-width: 600px) {
  .whatsapp-widget {
    right: 14px;
  }
  .whatsapp-toggle {
    width: 56px;
    height: 56px;
    min-height: 0;
    padding: 5px;
    justify-content: center;
  }
  .whatsapp-toggle-icon {
    width: 46px;
    height: 46px;
  }
  .whatsapp-toggle-copy {
    display: none;
  }
}

/* Üst ve alt mobil çubuk birlikteyken köşe düğmesi yerine WhatsApp kısayolunu kullan. */
@media (max-width: 1100px) {
  .whatsapp-widget {
    right: 14px;
    bottom: calc(var(--mobile-bottom-nav-h) + 14px);
  }
  .whatsapp-toggle {
    display: none;
  }
  .whatsapp-panel {
    max-height: min(
      610px,
      calc(100dvh - var(--mobile-header-h) - var(--mobile-bottom-nav-h) - 24px)
    );
  }
}
