/* CDN Tailwind ile kullanılmayan özel kurallar */

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(184, 115, 51, 0.25);
  color: #12151a;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(
    to bottom,
    rgba(18, 21, 26, 0.82),
    rgba(18, 21, 26, 0)
  );
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(42, 47, 54, 0.55);
  background: rgba(18, 21, 26, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  color: rgba(230, 226, 218, 0.85);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  height: 1px;
  width: 0;
  background: #b87333;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #f4f1ea;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: #d4924a;
}

.nav-link--active::after {
  width: 100%;
}

.reveal-io {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.t-slide {
  position: absolute;
  inset: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.typed-cursor {
  color: #d4924a;
  font-weight: 300;
}

/* Müşteri yorumları: nokta çubuğunda soldan sağa dolma (süre --t-dot-ms ile JS’den) */
[data-testimonial-dots] {
  --t-dot-ms: 6800ms;
}

[data-testimonial-fill].is-filling {
  animation: t-dot-fill var(--t-dot-ms, 6800ms) linear forwards;
}

@keyframes t-dot-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Sabit alt CTA — mobil + masaüstü */
.sticky-cta {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-cta__btn:focus-visible {
  outline: 2px solid #d4924a;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .sticky-cta {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta > div {
    border-radius: 10px 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-io,
  .reveal-io.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-anim {
    animation: none !important;
  }

  .t-slide {
    transition: none !important;
  }

  [data-testimonial-fill].is-filling {
    animation: none;
    width: 100%;
  }
}
