/* Çakmak Nakliyat — özel stiller ve animasyonlar */
:root {
  --signal: #e30613;
  --lane: #f5c400;
  --asphalt: #0b0d10;
}

html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }

/* ---------- Header ---------- */
#site-header { background: #fff; box-shadow: 0 1px 0 #e4e4e7; transition: box-shadow .3s; }
#site-header.is-scrolled { box-shadow: 0 1px 0 #e4e4e7, 0 12px 30px -18px rgba(0,0,0,.25); }
/* Logo: üstteyken büyük, kaydırınca biraz küçülür */
.header-bar { height: 6.5rem; transition: height .3s; }
.site-logo { height: 5.5rem; transition: height .3s; }
#site-header.is-scrolled .header-bar { height: 5.5rem; }
#site-header.is-scrolled .site-logo { height: 4.75rem; }
@media (min-width: 768px) {
  .header-bar { height: 7rem; }
  .site-logo { height: 6rem; }
}

.nav-link {
  position: relative; display: block; padding: .5rem 1rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase; color: #3f3f46; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 8px, transparent 8px 12px);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover, .nav-link.is-active { color: #09090b; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.burger { display: grid; gap: 5px; width: 20px; }
.burger span { display: block; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Butonlar ---------- */
.btn-signal, .btn-ghost, .btn-dark, .btn-outline-white {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.4rem; border-radius: .6rem; font-weight: 700;
  transition: transform .25s, box-shadow .25s, background-color .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 10px 30px -10px rgba(227,6,19,.7); }
.btn-signal::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s;
}
.btn-signal:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(227,6,19,.9); }
.btn-signal:hover::before { transform: translateX(120%); }
.btn-signal:hover .btn-arrow { transform: translateX(4px); }
.btn-arrow { transition: transform .3s; }
.btn-ghost { border: 1px solid #d4d4d8; color: #18181b; }
.btn-ghost:hover { border-color: #18181b; background: #f4f4f5; }
.btn-dark { background: #0b0d10; color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-outline-white { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--signal); }

.fab {
  width: 56px; height: 56px; border-radius: 9999px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.5); transition: transform .25s;
}
.fab:hover { transform: scale(1.08); }
.fab-pulse { animation: pulse-ring 2.2s infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(227,6,19,.6); }
  70% { box-shadow: 0 0 0 18px rgba(227,6,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); }
}

/* ---------- Tipografi yardımcıları ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: .9rem;
  letter-spacing: .35em; text-transform: uppercase; color: var(--signal);
}
.eyebrow::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }
.section-title {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  color: #0b0d10; line-height: .95; font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

/* ---------- Hero ---------- */
.hero-media { animation: kenburns 22s ease-out both; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }
.spotlight {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 70% 10%, rgba(227,6,19,.28), transparent 60%),
    radial-gradient(30% 40% at 85% 0%, rgba(255,255,255,.12), transparent 60%);
  animation: sweep 9s ease-in-out infinite alternate; mix-blend-mode: screen;
}
@keyframes sweep { from { transform: translateX(-12%) rotate(-4deg); } to { transform: translateX(10%) rotate(4deg); } }

.split-line { display: block; overflow: hidden; padding-bottom: .04em; }
.split-line > span { display: inline-block; transform: translateY(105%); animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards; }
.split-line:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-kicker, .hero-sub, .hero-cta { opacity: 0; animation: fadeup .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-kicker { animation-delay: .05s; }
.hero-sub { animation-delay: .45s; }
.hero-cta { animation-delay: .6s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.road-stripes {
  background: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 86px);
  background-size: 86px 100%;
  animation: road 1.1s linear infinite;
}
@keyframes road { to { background-position: -86px 0; } }

.drive-truck { left: -12rem; animation: drive 14s linear infinite; }
@keyframes drive {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 14rem)); }
}
.drive-truck svg { animation: bounce .35s ease-in-out infinite alternate; }
@keyframes bounce { to { transform: translateY(-1.5px); } }
.wheel { transform-box: fill-box; transform-origin: center; }

.scroll-line { width: 1px; height: 64px; background: linear-gradient(var(--signal), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; left: 0; top: -30%; width: 100%; height: 30%; background: #fff; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Kayan şerit ---------- */
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; white-space: nowrap; }
.marquee .dot { color: rgba(255,255,255,.55); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hizmet kartları ---------- */
.svc-card {
  position: relative; display: block; min-height: 26rem; border-radius: 1.25rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); isolation: isolate;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(227,6,19,.5); box-shadow: 0 30px 60px -25px rgba(227,6,19,.45); }
.svc-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--signal) 0 22px, transparent 22px 32px);
  transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.svc-card:hover::after { transform: scaleX(1); }

/* ---------- Süreç ---------- */
.grid-bg {
  background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.road-draw { stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s cubic-bezier(.4,0,.2,1); }
.road-path.is-in .road-draw { stroke-dashoffset: 0; animation: lanes 1.5s 2.4s linear infinite; }
@keyframes lanes { to { stroke-dashoffset: -52; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.step-pin {
  position: relative; width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; display: grid; place-items: center;
  background: #fff; border: 1px solid #e4e4e7; color: var(--signal); box-shadow: 0 8px 20px -12px rgba(0,0,0,.2);
  transition: background .35s, color .35s, transform .35s;
}
.step:hover .step-pin { background: var(--signal); color: #fff; transform: translateY(-4px) rotate(-4deg); }
.step-num {
  position: absolute; top: -.6rem; right: -.6rem; background: var(--lane); color: #0b0d10;
  font: 800 .8rem/1 "Barlow Condensed", sans-serif; padding: .3rem .45rem; border-radius: .35rem;
}

/* ---------- İstatistik ---------- */
.stat { border-left: 3px solid var(--signal); padding: .25rem 0 .25rem 1rem; }
.stat dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #52525b; }
.stat dd { font: 900 clamp(2.5rem, 5vw, 3.5rem)/1 "Barlow Condensed", sans-serif; color: #0b0d10; order: -1; }
.stat { display: flex; flex-direction: column-reverse; gap: .4rem; }
.float-y { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.spin-slow { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.parallax-wrap { overflow: hidden; }
.parallax { will-change: transform; }

/* ---------- Filo kaydırıcı ---------- */
.fleet-scroller {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(1rem, calc((100vw - 80rem) / 2 + 1.5rem)) 1.5rem; cursor: grab;
  scrollbar-width: thin; scrollbar-color: var(--signal) transparent;
}
.fleet-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.fleet-scroller.is-dragging * { pointer-events: none; }
.fleet-item {
  position: relative; flex: 0 0 auto; width: min(80vw, 420px); aspect-ratio: 4/5;
  border-radius: 1.1rem; overflow: hidden; scroll-snap-align: start;
}
.fleet-item img { transition: transform 1s cubic-bezier(.2,.8,.2,1); user-select: none; -webkit-user-drag: none; }
.fleet-item:hover img { transform: scale(1.07); }
.fleet-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.1rem; font-size: .9rem; color: #e4e4e7;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.fleet-item:hover figcaption { transform: none; }

/* ---------- SSS ---------- */
.faq { border-radius: 1rem; background: #fafafa; border: 1px solid #e4e4e7; transition: border-color .3s; }
.faq[open] { border-color: rgba(227,6,19,.45); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 9999px; display: grid; place-items: center; background: rgba(227,6,19,.12); color: var(--signal); transition: transform .35s, background .35s, color .35s; }
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--signal); color: #fff; }
.faq[open] > p { animation: fadeup .45s ease both; }

/* ---------- Diğer kartlar ---------- */
.value-card { background: #fff; border: 1px solid #e4e4e7; border-radius: 1.1rem; padding: 2rem; transition: transform .4s, border-color .4s; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(227,6,19,.45); }
.contact-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem; border-radius: 1rem; background: #fafafa; border: 1px solid #e4e4e7; transition: border-color .3s, transform .3s; }
a.contact-card:hover { border-color: rgba(227,6,19,.5); transform: translateX(4px); }
.contact-ic { width: 3.25rem; height: 3.25rem; flex-shrink: 0; border-radius: .8rem; display: grid; place-items: center; background: var(--signal); color: #fff; }

.field label { display: block; font-size: .85rem; font-weight: 600; color: #3f3f46; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid #d4d4d8; border-radius: .65rem;
  padding: .85rem 1rem; color: #18181b; transition: border-color .25s, box-shadow .25s; color-scheme: light;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(227,6,19,.18); }
.field [aria-invalid="true"] { border-color: var(--signal); }
.field .err { margin-top: .35rem; font-size: .85rem; color: #c40510; }
.field ::placeholder { color: #a1a1aa; }

.gallery-item { position: relative; overflow: hidden; border-radius: 1rem; cursor: zoom-in; }
.gallery-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; text-align: left; font-size: .9rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
#lightbox.is-open { display: flex; animation: fadeup .3s ease both; }

.footer-title { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #18181b; font-size: 1.15rem; margin-bottom: 1.1rem; }
.footer-link { transition: color .2s; }
.footer-link:hover { color: var(--signal); }

/* ---------- Kaydırınca belirme ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .hero-kicker, .hero-sub, .hero-cta { opacity: 1; }
  .drive-truck { display: none; }
}
