/**
 * Anasayfa — tema (--accent) ile uyumlu katman; animasyonlar transform/opacity.
 * Performans: content-visibility, reduced-motion / save-data kısıtları.
 */
.home {
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ——— Hero ——— */
.home .home-hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent) 12%);
}

.home .home-hero .hero__bg {
  overflow: hidden;
}

.home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% -5%, #000 25%, transparent 70%);
}

.home .hero__gradient {
  background:
    radial-gradient(900px 420px at 8% 18%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%),
    radial-gradient(680px 380px at 94% 6%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 52%),
    linear-gradient(188deg, color-mix(in srgb, var(--bg) 62%, #fff) 0%, var(--bg) 100%);
}

.home .hero__photo {
  opacity: 0.26;
  transform: none;
  filter: saturate(1.06) contrast(1.03);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Kenarlardan kırpma yok — görsel hero alanına tam oturur */
  mask-image: none;
  -webkit-mask-image: none;
}

.home .home-hero__shine {
  position: absolute;
  inset: -20% -30%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background: linear-gradient(
    118deg,
    transparent 36%,
    color-mix(in srgb, var(--surface) 55%, transparent) 48%,
    transparent 58%
  );
  animation: home-shine 11s var(--home-ease) infinite;
}

@keyframes home-shine {
  0%,
  100% {
    transform: translate3d(-8%, 0, 0) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(8%, 2%, 0) rotate(0deg);
    opacity: 0.55;
  }
}

.home .home-hero__intro {
  position: relative;
  z-index: 2;
}

.home .home-hero__intro-desktop > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: home-rise 0.58s var(--home-ease-out) forwards;
}

.home .home-hero__intro-desktop > *:nth-child(1) {
  animation-delay: 0.04s;
}
.home .home-hero__intro-desktop > *:nth-child(2) {
  animation-delay: 0.1s;
}
.home .home-hero__intro-desktop > *:nth-child(3) {
  animation-delay: 0.16s;
}
.home .home-hero__intro-desktop > *:nth-child(4) {
  animation-delay: 0.22s;
}
.home .home-hero__intro-desktop > *:nth-child(5) {
  animation-delay: 0.28s;
}
.home .home-hero__intro-desktop > *:nth-child(6) {
  animation-delay: 0.34s;
}
.home .home-hero__intro-desktop > *:nth-child(7) {
  animation-delay: 0.4s;
}

/* Mobil hero: kısa metin + temaya uyumlu “Filoyu incele” + WhatsApp (masaüstünde gizli) */
.home .home-hero__intro-mobile {
  display: none;
}

.home-hero__intro-mobile-title {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-size: clamp(1.85rem, 7.2vw, 2.55rem);
  text-wrap: balance;
  background: linear-gradient(
    118deg,
    var(--text) 0%,
    color-mix(in srgb, var(--text) 52%, var(--accent)) 48%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .home-hero__intro-mobile-title {
    color: var(--text);
    background: none;
  }
}

.home-hero__intro-mobile-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.home-hero__fleet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.82rem 1.75rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--surface) 40%, #fff) inset,
    0 10px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  transition:
    transform 0.2s var(--home-ease),
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.home-hero__fleet-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 85%, var(--text));
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--surface) 50%, #fff) inset,
    0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.home-hero__fleet-btn:active {
  transform: translateY(0);
}

.home-hero__fleet-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-hero__fleet-btn__ico {
  display: flex;
  line-height: 0;
  color: currentColor;
}

.home-hero__fleet-btn__ico svg {
  display: block;
}

.home-hero__wa-btn {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.home-hero__wa-btn svg {
  flex-shrink: 0;
}

@keyframes home-rise {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.home .hero__title {
  text-wrap: balance;
  background: linear-gradient(120deg, var(--text) 0%, color-mix(in srgb, var(--text) 72%, var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .home .hero__title {
    color: var(--text);
    background: none;
  }
}

.home .hero__ticks li {
  transition: color 0.2s ease;
}

.home .hero__ticks li::before {
  border-radius: 4px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent);
  transition: transform 0.2s var(--home-ease), box-shadow 0.2s ease;
}

.home .hero__ticks li:hover {
  color: var(--text);
}

.home .hero__ticks li:hover::before {
  transform: scale(1.08);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 48%, transparent);
}

.home-trust__item {
  transition: color 0.2s ease, transform 0.2s var(--home-ease);
}

.home-trust__item:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.home .home-hero__panel {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: home-rise 0.62s var(--home-ease-out) 0.12s forwards;
}

.home .book-form--hero {
  position: relative;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: color-mix(in srgb, var(--line) 65%, var(--accent) 18%);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home .book-form--hero:hover {
  border-color: color-mix(in srgb, var(--line) 50%, var(--accent) 28%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 22px 50px color-mix(in srgb, var(--accent) 14%, transparent);
}

.home .book-form--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 35%, transparent) inset;
}

.home .field__control {
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home .field__control:hover {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}

.home .field__control:focus {
  transform: translateY(-1px);
}

[data-theme="midnight"] .home .field__control {
  background: color-mix(in srgb, var(--surface) 92%, #020617);
}

.home .home-hero__submit {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--home-ease), box-shadow 0.2s ease;
}

.home .home-hero__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, #fff 35%, transparent),
    transparent
  );
  transition: left 0.55s var(--home-ease);
  pointer-events: none;
}

.home .home-hero__submit:hover::after {
  left: 100%;
}

.home .home-hero__submit:hover {
  transform: translateY(-1px);
}

.home .home-hero__submit:active {
  transform: translateY(0);
}

.home .home-hero__submit-label {
  position: relative;
  z-index: 1;
}

/* ——— Featured filo ——— */
.home-featured {
  position: relative;
}

.home-featured__head {
  position: relative;
  padding-bottom: 0.25rem;
}

.home-featured__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 220px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.home-featured__titles .section__title {
  margin-top: 0.15rem;
}

.home-featured__cta {
  transition: transform 0.2s var(--home-ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-featured__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-featured__fleet {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

/* ——— Scroll reveal ——— */
.home-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.5s var(--home-ease),
    transform 0.5s var(--home-ease);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-reveal--stagger-1 {
  transition-delay: 0.05s;
}

.home-reveal--stagger-2 {
  transition-delay: 0.1s;
}

.home-reveal--stagger-3 {
  transition-delay: 0.15s;
}

/* ——— Why ——— */
.home-why__head .section__title {
  max-width: 20ch;
}

.home .home-why__grid {
  position: relative;
}

.home .home-why__grid::before {
  content: "";
  position: absolute;
  inset: -1rem -4vw auto;
  height: 120px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, var(--accent-soft), transparent 72%);
  pointer-events: none;
  opacity: 0.65;
}

.home .home-why .why-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--home-ease);
}

.home .home-why .why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.home .home-why .why-card:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-4px);
}

.home .home-why .why-card:hover::before {
  opacity: 1;
}

.home .home-why .why-card__icon {
  transition: transform 0.25s var(--home-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home .home-why .why-card:hover .why-card__icon {
  transform: scale(1.06);
  color: color-mix(in srgb, var(--accent) 88%, #fff);
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent-2) 85%, var(--accent)));
  border-color: transparent;
}

.home .home-why .why-card:hover .why-card__icon .why-card__svg {
  color: #fff;
  stroke: #fff;
}

/* ——— Blog strip ——— */
.home-blog {
  position: relative;
}

.home-blog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-soft) 35%, transparent) 0%,
    transparent 42%,
    color-mix(in srgb, var(--accent-2) 8%, transparent) 100%
  );
  pointer-events: none;
}

.home-blog .container {
  position: relative;
  z-index: 1;
}

.home-blog__actions {
  gap: 0.85rem;
}

.home-blog__btn {
  position: relative;
  transition: transform 0.2s var(--home-ease), box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-blog__btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ——— CTA ——— */
.home .home-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, #0f172a 55%, var(--accent)) 0%,
    color-mix(in srgb, #0f172a 72%, var(--accent-2)) 100%
  );
  color: rgba(248, 250, 252, 0.95);
}

.home .home-cta .cta-band__title {
  color: #fff;
}

.home .home-cta .cta-band__lead {
  color: rgba(226, 232, 240, 0.88);
}

.home .home-cta::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto;
  height: 140%;
  background: radial-gradient(ellipse 55% 45% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 55%);
  pointer-events: none;
}

.home .home-cta::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -8%;
  bottom: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 68%);
  pointer-events: none;
  opacity: 0.5;
}

.home .home-cta__inner {
  position: relative;
  z-index: 1;
}

.home .home-cta__wa {
  transition: transform 0.2s var(--home-ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.home .home-cta__wa:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

/* ——— Erişilebilirlik & veri tasarrufu ——— */
@media (prefers-reduced-motion: reduce) {
  .home .home-hero__shine {
    animation: none;
    opacity: 0.25;
  }

  .home .home-hero__intro-desktop > *,
  .home .home-hero__panel {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .home .home-hero__intro-mobile {
    opacity: 1;
    transform: none;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home .hero__ticks li:hover::before,
  .home-trust__item:hover,
  .home-featured__cta:hover,
  .home .vehicle-grid--home .vehicle-card:hover,
  .home .home-why .why-card:hover,
  .home-blog__btn:hover,
  .home .home-cta__wa:hover {
    transform: none;
  }
}

@media (prefers-reduced-data: reduce) {
  .home .hero__photo {
    opacity: 0.14;
  }

  .home .home-hero__shine {
    display: none;
  }

  .home .book-form--hero {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 959px) {
  /* Mobil hero görseli — tam genişlik/yükseklik, merkez crop */
  .home .home-hero .hero__photo {
    background-image: url("/assets/img/home-hero-mobile.jpg") !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    opacity: 0.42;
    filter: saturate(1.06) contrast(1.03);
    transform: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* Görselin oturacağı yeterli yükseklik (içerik + arka plan) */
  .home .home-hero {
    min-height: min(76vh, 600px);
  }

  .home .home-hero__intro-desktop {
    display: none;
  }

  .home .home-hero__intro-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    padding: 0.15rem 0 0.75rem;
  }

  .home .home-hero__panel-desktop {
    display: none;
  }

  .home-hero__fleet-btn {
    width: 100%;
    max-width: 20rem;
  }

  .home-hero__wa-btn {
    width: 100%;
    max-width: 20rem;
  }
}

@media (max-width: 720px) {
  .home .book-form--hero {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .home .hero__title {
    font-size: clamp(1.75rem, 6.5vw, 2.75rem);
  }
}
