/* --- GENEL AYARLAR (RESET & BASE) --- */
:root {
  --beko-blue: #01004e;
  --beko-light-blue: #005bc4;
  --text-dark: #1a1a1a;
  --text-grey: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--beko-blue);
}

p {
  margin-bottom: 1rem;
  color: var(--text-grey);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================
   HEADER ALANI STİL AYARLARI
   ========================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--beko-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0 22px;
  border-bottom: 1px solid var(--white);
}

/* 2. Ana Navbar */
.navbar {
  padding: 15px 0;
  background-color: var(--beko-blue);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-highlight {
  color: var(--beko-light-blue);
  margin-left: 5px;
}

/* Masaüstü Menü Linkleri */
.nav-list {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--beko-light-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--beko-light-blue);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* WhatsApp Butonu */
.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Hamburger Menü */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--beko-blue);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-only {
  display: none;
}

/* --- RESPONSIVE HEADER (992px altı) --- */
@media (max-width: 992px) {
  .desktop-only {
    display: none;
  }
  .hamburger {
    display: block;
    background-color: #fff;
    border-radius: 8px;
  }
  .mobile-only {
    display: block;
    margin-top: 20px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    width: 100%;
  }
  .nav-link {
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--beko-blue);
  }
  .nav-link::after {
    display: none;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- SLIDER (SLAYT) ALANI --- */
.swiper {
  width: 100%;
  height: 85vh;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  max-width: 650px;
}

.slider-content h1 {
  color: #fff;
  font-size: 4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.5s;
}

.slider-content p {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.7s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.swiper-pagination-bullet-active {
  background-color: #fff !important;
}

/* --- PROMOSYON ŞERİTLERİ --- */
.promo-strips {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
}

.strip-item {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.strip-item:hover img {
  transform: scale(1.05);
}

.strip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 40, 85, 0.95) 0%,
    rgba(0, 40, 85, 0.6) 40%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  padding-left: 60px;
  z-index: 2;
}

.strip-overlay h3 {
  color: #fff;
  font-size: 2.2rem;
  text-transform: uppercase;
  max-width: 600px;
  position: relative;
}

.strip-overlay h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  background-color: #005eb8;
  margin-top: 15px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.strip-item:hover h3::after {
  width: 150px;
}

/* --- ŞUBELER (BRANCHES) --- */
.branches-section {
  padding: 60px 5%;
  background-color: #f8f9fa;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #002f6c;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  background: #002f6c;
  margin: 10px auto 0;
  border-radius: 2px;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.branch-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  flex: 0 0 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.branch-card:hover .card-img-top img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
  text-align: left;
}

.card-body h4 {
  color: #002f6c;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card-body p {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 992px) {
  .branch-card {
    flex: 0 0 calc(50% - 15px);
  }
}
@media (max-width: 768px) {
  .branch-card {
    flex: 0 0 100%;
  }
}

/* --- SPLIT SECTION (VİDEO VE YAZI İKİYE BÖLME) --- */
.split-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 550px;
  background-color: var(--beko-blue);
  overflow: hidden; /* Taşmaları önler */
}

.split-video,
.split-content {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
}

/* Video ve Resim Ayarları (Masaüstü için) */
.split-video video,
.split-video img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 10%;
  background-color: var(--beko-blue);
  color: var(--white);
}

.split-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.split-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.split-content a {
  display: inline-block;
  color: #4da6ff;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.split-content a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
  transform: translateX(5px);
}

/* --- ZİKZAK BÖLÜMÜ --- */
.zigzag-section {
  padding: 80px 5%;
}
.zigzag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 50px;
}
.zigzag-row:last-child {
  margin-bottom: 0;
}
.zigzag-row:nth-child(even) {
  flex-direction: row-reverse;
}

.zigzag-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.zigzag-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}
.zigzag-row:hover .zigzag-img img {
  transform: scale(1.03);
}

.zigzag-text {
  flex: 1;
}
.zigzag-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.zigzag-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- FOOTER --- */
.main-footer {
  margin-top: 44px;
  background-color: var(--beko-blue);
  color: #ccc;
  padding: 60px 5% 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-left: 3px solid var(--beko-blue);
  padding-left: 10px;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #fff;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.footer-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  text-align: center;
  transition: var(--transition);
}

.phone-btn {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--beko-light-blue);
}
.phone-btn:hover {
  background-color: var(--beko-light-blue);
}

.map-btn {
  background-color: var(--white);
  color: var(--beko-blue);
  border: 1px solid var(--beko-blue);
}
.map-btn:hover {
  background-color: var(--white);
  color: var(--beko-blue);
}

.copyright {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #d0d0d0;
}

.main-footer {
  margin-top: 44px;
  background-color: var(
    --beko-blue,
    #002f6c
  ); /* Renk değişkenin yoksa diye yedek renk ekledim */
  color: #ccc;
  padding: 40px 2% 20px; /* Kenar boşluklarını biraz daralttım ki 5 tanesi sığsın */
}

.footer-columns {
  display: grid;
  /* BURASI ÖNEMLİ: 5 taneyi yan yana zorlar */
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(
    255,
    255,
    255,
    0.05
  ); /* Hafif bir arka plan kutusu (isteğe bağlı) */
  border-radius: 8px;
  padding: 15px;
}

/* Yeni eklenen Resim Stilleri */
.footer-img-wrapper {
  width: 100%;
  height: 160px; /* Footer için ideal yükseklik */
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Görseli bozmadan kutuya doldurur */
  transition: transform 0.3s ease;
}

.footer-col:hover .footer-img-wrapper img {
  transform: scale(1.05); /* Hover efekti */
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem; /* Yan yana 5 tane olduğu için fontu hafif kıstım */
  margin-bottom: 10px;
  border-left: 3px solid var(--beko-blue, #002f6c);
  padding-left: 10px;
  min-height: 40px; /* Başlıklar eşit hizada dursun diye */
}

.footer-col p {
  font-size: 0.85rem;
  margin-bottom: 15px;
  color: #ddd;
  flex-grow: 1; /* Butonları en alta itmek için */
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.footer-btn {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
  text-align: center;
  transition: 0.3s ease;
  display: block;
}

.phone-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid #00b4ff; /* beko-light-blue yedeği */
}
.phone-btn:hover {
  background-color: #00b4ff;
  color: #fff;
}

.map-btn {
  background-color: #fff;
  color: #002f6c;
  border: 1px solid #fff;
}
.map-btn:hover {
  background-color: #e6e6e6;
}

.copyright {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  font-size: 0.85rem;
  color: #d0d0d0;
}

/* Mobil Uyumluluk (Zorunludur, yoksa telefonda çok kötü görünür) */
@media (max-width: 1200px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr); /* Tablette 3 yan yana */
  }
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(1, 1fr); /* Telefondan tek sütun */
  }
  .footer-img-wrapper {
    height: 200px; /* Telefondan resimler daha büyük olsun */
  }
}

/* =========================================================
   MOBİL VE TABLET UYUMLULUK (RESPONSIVE FIX)
   Buradaki ayarlar, üstteki stilleri ezer.
   ========================================================= */

@media (max-width: 768px) {
  /* Slider Font Ayarı */
  .slider-content h1 {
    font-size: 2rem;
  }

  /* Şeritler */
  .strip-item {
    height: 200px;
  }
  .strip-overlay {
    padding-left: 20px;
  }
  .strip-overlay h3 {
    font-size: 1.4rem;
  }

  /* Zikzak Bölümü: Alt alta */
  .zigzag-row,
  .zigzag-row:nth-child(even) {
    flex-direction: column;
  }

  /* -----------------------------------------------
     VİDEO BÖLÜMÜ TAMİR KODU (SPLIT SECTION FIX)
     ----------------------------------------------- */
  .split-section {
    flex-direction: column; /* Yan yana değil alt alta yap */
    height: auto; /* Yükseklik sınırlamasını kaldır */
  }

  /* Video ve Yazı Kutuları %100 Genişlik */
  .split-video,
  .split-content {
    flex: none; /* Flex oranını iptal et */
    width: 100%;
    max-width: 100%;
  }

  /* Video Konteyneri */
  .split-video {
    width: 100%;
    height: 400px; /* Mobilde videonun yüksekliği (Bunu artırabilirsin) */
    position: relative;
    display: block;
    order: -1; /* -1 yaparsan video yazının ÜSTÜNE çıkar. 1 yaparsan altına iner. */
  }

  /* Videonun kendisi */
  .split-video video,
  .split-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Videoyu öne al */
  }

  /* Yazı Alanı */
  .split-content {
    padding: 40px 20px;
  }
}
