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

html {
  scroll-behavior: smooth;
}

/* ─── svh fallback: eski tarayıcılar için ─── */
#hero-section {
  min-height: 100vh;
  min-height: 100svh;
}

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

/* ─── Klavye odak halkası ─────────────────── */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid #d4924a;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Tailwind'in ring class'larıyla çakışmasın */
[class*="focus-visible:ring"]:focus-visible {
  outline: none;
}

.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);
}

.scroll-progress-bar {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    transition: none;
  }
}

.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%;
  }
}

/* Proje fotoğraf slider */
.project-slider-viewport {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent 100%
  );
}

.project-slider__track {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 47, 54, 0.4) transparent;
}

.project-slider__track::-webkit-scrollbar {
  height: 5px;
}

.project-slider__track::-webkit-scrollbar-thumb {
  background: rgba(42, 47, 54, 0.42);
  border-radius: 999px;
}

.project-slider__track:focus-visible {
  outline: 2px solid rgba(184, 115, 51, 0.65);
  outline-offset: 2px;
}

.project-slider-nav.is-disabled {
  opacity: 0.22 !important;
  pointer-events: none;
}

/* Sabit alt CTA — boşluk footera eklenir (krem body şeridi olmasın) */
footer.footer--for-sticky {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  footer.footer--for-sticky {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.sticky-cta--await-hizmetler {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.sticky-cta--await-hizmetler.is-revealed {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta--await-hizmetler {
    transition: opacity 0.2s ease;
  }

  .sticky-cta--await-hizmetler:not(.is-revealed) {
    transform: none;
    visibility: hidden;
  }

  .sticky-cta--await-hizmetler.is-revealed {
    transform: none;
    visibility: visible;
  }
}

/* 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;
  }
}

/* ─── Referans galerisi ─────────────────────────────────── */
.gallery-masonry {
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    columns: 3;
  }
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #1a1e25;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  border-color: rgba(184, 115, 51, 0.35);
}

.gallery-card__img-wrap {
  overflow: hidden;
  line-height: 0;
}

.gallery-card__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.04);
}

.gallery-card__caption {
  padding: 0.875rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family:
    "Outfit",
    "DM Sans",
    system-ui,
    sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(230, 226, 218, 0.82);
  letter-spacing: 0.01em;
}

figure.gallery-card.reveal-io {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Müşteri yorumları — stok foto yerine baş harf avatarı */
.testimonial-avatar {
  display: flex;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(230, 226, 218, 0.22);
  background: linear-gradient(
    145deg,
    rgba(184, 115, 51, 0.22) 0%,
    rgba(18, 21, 26, 0.55) 100%
  );
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.95);
}

/* ─────────────────────────────────────────────────────── */

@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%;
  }

  .gallery-card,
  .gallery-card__img {
    transition: none !important;
  }
}
