/* ==========================================================
   Turanlar Otomotiv - Ana stil dosyası
   Renkleri değiştirmek için sadece :root içindeki değerleri düzenleyin.
   ========================================================== */
:root {
  --primary: #d62828;       /* Ana renk (kırmızı) */
  --primary-dark: #a61d1d;
  --dark: #111418;
  --dark-2: #1b2027;
  --text: #2b2f36;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(17, 20, 24, 0.08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.2; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--sm { padding: 9px 20px; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(17, 20, 24, .96); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.logo--footer img { height: 40px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(17,20,24,.95) 0%, rgba(17,20,24,.75) 55%, rgba(17,20,24,.45) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1b2027 0%, #2c1215 100%);
  padding: calc(var(--header-h) + 40px) 0 60px;
}
.hero__content { max-width: 1180px; }
.hero__eyebrow, .section__eyebrow {
  color: var(--primary);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .85rem;
  margin-bottom: 12px;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; max-width: 720px; }
.hero h1 span { color: var(--primary); }
.hero__lead { max-width: 560px; margin: 20px 0 32px; font-size: 1.1rem; color: rgba(255,255,255,.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 48px; margin-top: 60px; }
.hero__stats strong { display: block; font-size: 2rem; color: #fff; }
.hero__stats span { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ---------- Bölümler ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }

/* ---------- Hakkımızda ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__image {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(214, 40, 40, .1); color: var(--primary);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* Fotoğraf yoksa gösterilen yer tutucu */
.is-placeholder {
  background: linear-gradient(135deg, var(--dark-2), #3a1a1d);
  display: grid; place-items: center;
}
.is-placeholder::after {
  content: "Fotoğraf eklenecek";
  color: rgba(255,255,255,.5); font-weight: 600; font-size: .95rem;
}

/* ---------- Hizmetler ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(214, 40, 40, .1);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: background .25s;
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.service:hover .service__icon { background: var(--primary); }
.service:hover .service__icon svg { stroke: #fff; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service { display: flex; flex-direction: column; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.service__cta {
  margin-top: auto; align-self: flex-start;
  color: var(--primary); font-weight: 600; font-size: .95rem;
  padding: 8px 18px; border: 2px solid var(--primary); border-radius: 50px;
  transition: background .2s, color .2s;
}
.service__cta:hover { background: var(--primary); color: #fff; }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; background: var(--dark-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 14px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  z-index: 1;
}
.gallery figure.is-placeholder { cursor: default; }

/* Videolar */
.gallery__subtitle { text-align: center; font-size: 1.5rem; margin: 56px 0 24px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video figcaption {
  position: absolute; inset: 0 0 auto 0;
  padding: 14px 18px 40px; color: #fff; font-weight: 600;
  background: linear-gradient(rgba(0,0,0,.7), transparent);
  pointer-events: none; transition: opacity .3s;
}
.video.is-playing figcaption { opacity: 0; }
.video:hover figcaption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 20px; right: 28px; font-size: 2.6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.5rem; padding: 10px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
.info-item h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 6px; }
.info-item a:hover { color: var(--primary); }
.map { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; height: 260px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-btn { grid-column: 1 / -1; text-align: center; }

.contact__form {
  background: #fff; padding: 36px; border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; gap: 16px;
}
.contact__form h3 { font-size: 1.4rem; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: -10px; }
.contact__form label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; }
.contact__form input, .contact__form select, .contact__form textarea {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.contact__form textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 32px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ---------- WhatsApp butonu ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Kaydırınca beliren animasyon ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Duyarlı (mobil) tasarım ---------- */
@media (max-width: 960px) {
  .services, .gallery { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--dark); flex-direction: column; gap: 0;
    padding: 12px 20px 24px;
    transform: translateY(-120%); transition: transform .3s;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; }
  .header { background: rgba(17, 20, 24, .96); }

  .logo img { height: 36px; }
  .section { padding: 72px 0; }
  .hero__stats { gap: 28px; }
  .services, .gallery { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .contact__info { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
