/* ============================================================================
   X RENT A CAR — anasayfa kurumsal bolumleri
   Animasyonlar saf CSS + IntersectionObserver ile calisir (dis kutuphane yok).
   Hareketi azalt tercihine saygi gosterilir.
   ========================================================================= */

/* ------------------------------------------------- SCROLL ILE BELIRME */
/* Gizleme YALNIZCA JS aktifken; js yoksa icerik dogrudan gorunur kalir. */
.js-anim .beliren {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
              transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--gecikme, 0ms);
  will-change: opacity, transform;
}
.js-anim .beliren.gorundu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .beliren { opacity: 1; transform: none; transition: none; }
  .akart, .katkart, .ozkart { transition: none !important; }
}

/* ------------------------------------------------------- NEDEN BIZ */
.neden { background: linear-gradient(180deg, #fff 0%, var(--zemin) 100%); }

.ozizgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ozkart {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
/* Ust kenarda hover ile acilan vurgu cizgisi */
.ozkart::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--turuncu), var(--altin));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.ozkart:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(16, 24, 40, .12);
}
.ozkart:hover::before { transform: scaleX(1); }

.ozikon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef3f6, #dfe9ee);
  color: var(--lacivert);
  font-size: 22px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.ozkart:hover .ozikon {
  background: linear-gradient(135deg, var(--turuncu), #ff9a3c);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}
.ozkart h3 { margin: 0 0 8px; font-size: 18px; }
.ozkart p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--soluk); }

/* --------------------------------------------------- ISTATISTIK SERIDI */
.serit {
  position: relative;
  padding: 54px 0;
  background: linear-gradient(120deg, var(--lacivert-koyu) 0%, var(--lacivert) 55%, var(--petrol) 100%);
  overflow: hidden;
}
/* Hafif hareketli isik dokusu */
.serit-desen {
  position: absolute; top: -50%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .10), transparent);
  animation: seritKay 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes seritKay {
  from { transform: translateX(0) rotate(0deg); }
  to   { transform: translateX(70%) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .serit-desen { animation: none; } }

.sayizgara {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.saykart { text-align: center; color: #fff; }
.saykart b {
  display: block;
  font-family: var(--baslikYazi);
  font-size: 42px; line-height: 1.1; font-weight: 700;
  letter-spacing: -.02em;
}
.saykart span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* -------------------------------------------------------- KATEGORILER */
.katizgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.katkart {
  position: relative;
  display: block;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: var(--lacivert-koyu);
  box-shadow: var(--golge);
  transition: transform .22s ease, box-shadow .22s ease;
}
.katkart:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(16, 24, 40, .18); text-decoration: none; }

.katgorsel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.katgorsel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.katkart:hover .katgorsel img { transform: scale(1.09); }

.katperde {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(12, 32, 42, .12) 0%, rgba(12, 32, 42, .55) 48%, rgba(12, 32, 42, .93) 100%);
  transition: background .3s ease;
}
.katkart:hover .katperde {
  background: linear-gradient(180deg, rgba(12, 32, 42, .22) 0%, rgba(12, 32, 42, .62) 45%, rgba(12, 32, 42, .96) 100%);
}

.katyazi {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 18px;
  color: #fff;
}
.katyazi strong {
  display: block; font-family: var(--baslikYazi);
  font-size: 20px; line-height: 1.25; margin-bottom: 6px;
}
.katyazi em {
  display: block; font-style: normal; font-size: 13px; line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .32s ease, opacity .32s ease, margin .32s ease;
}
.katkart:hover .katyazi em { max-height: 60px; opacity: 1; margin-bottom: 10px; }

.katok {
  position: absolute; top: 18px; right: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 12px; font-style: normal;
  transition: background .25s ease, transform .25s ease;
}
.katkart:hover .katok { background: var(--turuncu); border-color: var(--turuncu); transform: translateX(3px); }

/* ------------------------------------------------------ NASIL CALISIR */
.adimlar { background: linear-gradient(180deg, var(--zemin) 0%, #fff 100%); }

.adimizgara {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
/* Adimlari birlestiren kesikli cizgi */
.adimizgara::before {
  content: '';
  position: absolute; top: 27px; left: 16%; right: 16%;
  border-top: 2px dashed #d9d5cc;
  z-index: 0;
}
.adim { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.adimno {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--lacivert); color: #fff;
  font-family: var(--baslikYazi); font-size: 22px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--zemin);
  transition: background .25s ease, transform .25s ease;
}
.adim:hover .adimno { background: var(--turuncu); transform: translateY(-3px); }
.adim h3 { margin: 0 0 8px; font-size: 19px; }
.adim p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--soluk); }

.adimcta { margin-top: 40px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ SSS */
.sssbolum { background: var(--zemin); }
.sssbolum .sss { max-width: 820px; margin: 0 auto; }

.sssoge {
  background: #fff;
  border: 1px solid var(--cizgi);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.sssoge[open] { border-color: #d8d3c8; box-shadow: 0 8px 24px rgba(16, 24, 40, .07); }
.sssoge > summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  font-size: 15.5px; font-weight: 600; color: var(--lacivert);
  cursor: pointer; list-style: none;
}
.sssoge > summary::-webkit-details-marker { display: none; }
.sssoge > summary::after {
  content: '';
  position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--soluk); border-bottom: 2px solid var(--soluk);
  transform: rotate(45deg);
  transition: transform .25s ease, border-color .25s ease;
}
.sssoge[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--turuncu); }
.sssoge > summary:hover { color: var(--turuncu); }
.sssic { padding: 0 20px 18px; }
.sssic p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #4b5563; }

/* --------------------------------------------------------------- MOBIL */
@media (max-width: 991px) {
  .ozizgara, .sayizgara, .katizgara { grid-template-columns: repeat(2, 1fr); }
  .adimizgara { grid-template-columns: 1fr; gap: 30px; }
  .adimizgara::before { display: none; }
  .saykart b { font-size: 34px; }
}

@media (max-width: 575px) {
  .ozizgara, .katizgara { grid-template-columns: 1fr; }
  .sayizgara { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .saykart b { font-size: 30px; }
  .katkart { height: 210px; }
  .katyazi em { max-height: 60px; opacity: 1; margin-bottom: 10px; }
  .ozkart { padding: 24px 20px 22px; }
  .adimcta { flex-direction: column; }
  .adimcta .dbtn { width: 100%; }
  .sssoge > summary { font-size: 15px; padding: 15px 46px 15px 16px; }
  .sssic { padding: 0 16px 16px; }
}

/* RTL */
[dir="rtl"] .ozkart::before { transform-origin: right; }
[dir="rtl"] .katok { right: auto; left: 18px; }
[dir="rtl"] .sssoge > summary { padding: 17px 20px 17px 52px; }
[dir="rtl"] .sssoge > summary::after { right: auto; left: 20px; }

/* -------------------------------------------- KARTTA VALE HIZMETI SERIDI */
.vale {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #eef6f0, #f4faf5);
  border-top: 1px solid #dcece1;
  border-bottom: 1px solid #dcece1;
  color: #1f7a4d;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.vale .glyphicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: #1f9d5b; color: #fff; font-size: 8px;
}
[dir="rtl"] .vale { background: linear-gradient(270deg, #eef6f0, #f4faf5); }

/* ======================= HABER & DUYURULAR ======================= */
.haberler { background: linear-gradient(180deg, #fff 0%, var(--zemin) 100%); }

.hizgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.hkart {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--golge);
  transition: transform .22s ease, box-shadow .22s ease;
}
.hkart:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(16, 24, 40, .13); }

.hbag { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.hbag:hover, .hbag:focus { text-decoration: none; }

.hgorsel { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f2f1ed; }
.hgorsel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.hkart:hover .hgorsel img { transform: scale(1.07); }

/* Tarih rozeti */
.htarih {
  position: absolute; left: 14px; bottom: -1px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; padding: 8px 0 7px;
  background: var(--turuncu); color: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -3px 14px rgba(16, 24, 40, .2);
}
.htarih b { font-family: var(--baslikYazi); font-size: 21px; line-height: 1; }
.htarih i { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }

.hic { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.hic h3 {
  margin: 0 0 8px; font-size: 17.5px; line-height: 1.4; color: var(--lacivert);
  transition: color .2s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hkart:hover .hic h3 { color: var(--turuncu); }
.hic p {
  margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: var(--soluk);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.hdevam {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 13px;
  border-top: 1px solid var(--cizgi);
  color: var(--lacivert); font-size: 13.5px; font-weight: 600;
}
.hok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #f1f0ec; color: var(--lacivert); font-size: 10px; font-style: normal;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.hkart:hover .hdevam { color: var(--turuncu); }
.hkart:hover .hok { background: var(--turuncu); color: #fff; transform: translateX(3px); }

@media (max-width: 991px) { .hizgara { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 575px) { .hizgara { grid-template-columns: 1fr; } }

[dir="rtl"] .htarih { left: auto; right: 14px; }
