:root {
  --bg: #070707;
  --bg-2: #101113;
  --panel: #17181b;
  --panel-2: #202226;
  --text: #f7f7f5;
  --muted: #a8abb2;
  --line: rgba(255, 255, 255, .12);
  --gold: #caa45a;
  --red: #b71324;
  --green: #1fbe64;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.container { width: var(--container); margin: 0 auto; }
.visually-hidden, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  z-index: 9999;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: var(--gold);
  color: #111;
}

/* Açılışta kısa bir marka yükleme ekranı gösterilir. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  gap: 24px;
  align-content: center;
  background: #000;
  transition: opacity .45s ease, visibility .45s ease;
}
.loader img,
.brand img,
.footer-logo {
  border-radius: 14px;
}

.loader span {
  width: 190px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .15);
}
.loader span::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, var(--gold));
  animation: loadLine 1s ease-in-out infinite;
}
.loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.scroll-progress {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

/* Header scroll ile cam efektli koyu zemine dönüşür. */
.site-header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  transition: background .35s ease, border .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(8, 8, 9, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.navbar {
  width: var(--container);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 210px; height: auto; }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 22px; padding: 0; margin: 0; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 600;
  transition: color .25s ease;
}
.nav-links a:hover { color: #fff; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-120%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transition: transform .6s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(120%) skewX(-22deg); }
.btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--red), #7c0e18); box-shadow: 0 18px 46px rgba(183, 19, 36, .22); }
.btn-ghost, .btn-call { background: rgba(255, 255, 255, .07); }
.btn-call { border-color: rgba(202, 164, 90, .55); }

/* Hero görseli video yerine güvenli, yerel ve hızlı açılan sinematik görsel yedeğidir. */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-media, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { object-fit: cover; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .68) 42%, rgba(0, 0, 0, .22) 100%),
    linear-gradient(0deg, #070707 0%, rgba(7, 7, 7, 0) 28%);
}
.section-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(110deg, transparent 0 42%, rgba(202, 164, 90, .18) 42.1%, transparent 43% 100%);
  background-size: 320px 100%;
  animation: lineDrift 12s linear infinite;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 80px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .96;
  font-weight: 900;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.02;
  font-weight: 900;
}
h3 { line-height: 1.2; }
.hero-text {
  max-width: 690px;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(17px, 2vw, 21px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.animate-in { opacity: 0; transform: translateY(24px); animation: enterUp .75s ease forwards; }
.animate-in:nth-child(2) { animation-delay: .12s; }
.animate-in:nth-child(3) { animation-delay: .24s; }
.animate-in:nth-child(4) { animation-delay: .36s; }
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 32px;
  width: 28px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  transform: translateX(-50%);
}
.scroll-cue span {
  display: block;
  width: 2px;
  height: 15px;
  margin: 10px auto;
  background: #fff;
  animation: scrollCue 1.4s ease-in-out infinite;
}

.section { padding: 112px 0; position: relative; }
.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.listing-link { margin-top: 8px; }
.vehicles { background: linear-gradient(180deg, #070707, #101113); }
.inventory-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.search-box {
  flex: 1 1 300px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.search-box svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}
.filter-btn.active, .filter-btn:hover {
  border-color: rgba(202, 164, 90, .55);
  color: #fff;
  background: rgba(202, 164, 90, .12);
}
/* Araç görselleri tek optimize grid asset üzerinden arka plan konumu ile sunulur. */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.vehicle-card:hover { transform: translateY(-7px); border-color: rgba(202, 164, 90, .45); }
.vehicle-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-image: url("assets/vehicle-grid.png");
  background-size: 300% 200%;
  background-position: var(--pos);
}
.vehicle-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .4));
}
.vehicle-media.has-image {
  background-image: none;
}
.vehicle-media.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.vehicle-card:hover .vehicle-media { transform: scale(1.035); transition: transform .45s ease; }
.vehicle-card:hover .vehicle-media.has-image img { transform: scale(1.06); }
.badge, .favorite {
  position: absolute;
  z-index: 1;
  top: 14px;
}
.badge {
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(183, 19, 36, .92);
  font-size: 12px;
  font-weight: 900;
}
.favorite {
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
}
.photo-count {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.favorite.active { color: var(--red); background: rgba(255, 255, 255, .9); }
.vehicle-body { padding: 22px; }
.listing-no {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vehicle-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.price { color: #fff; font-size: 22px; font-weight: 900; }
.listing-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.vehicle-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.empty-state { padding: 28px; border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius); }
.empty-state a { color: var(--gold); font-weight: 900; }

.about { background: #0b0c0e; }
.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.about-visual { position: relative; }
.about-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: min(520px, 92%);
  margin: -70px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 8, 9, .88);
  backdrop-filter: blur(18px);
}
.stat-panel div { padding: 20px; }
.stat-panel strong { display: block; color: var(--gold); font-size: clamp(20px, 2vw, 28px); }
.stat-panel strong {
  background: linear-gradient(90deg, var(--gold), #fff, var(--gold));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: statShine 4.8s ease-in-out infinite;
}
.stat-panel span { color: var(--muted); }

.services { background: linear-gradient(180deg, #101113, #070707); }
.service-grid, .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card, .trust-item, .contact-card, .testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}
.service-card {
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.service-card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(202, 164, 90, .45);
  border-radius: 50%;
  color: var(--gold);
}
.service-card p, .trust-item p { color: var(--muted); }

.why {
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%, rgba(183, 19, 36, .18), transparent 32%), #09090a;
}
.trust-item { padding: 24px; }
.trust-item h3 { color: #fff; }

.sell-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, #151515, #070707 58%, #22070b);
  border-block: 1px solid var(--line);
}
.sell-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.sell-layout p:not(.eyebrow) { color: var(--muted); max-width: 680px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.testimonials { background: #0b0c0e; }
.testimonial-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.testimonial-track {
  display: flex;
  transition: transform .45s ease;
  touch-action: pan-y;
}
.testimonial-card {
  flex: 0 0 100%;
  min-height: 220px;
  padding: clamp(28px, 5vw, 58px);
}
.testimonial-card p { max-width: 820px; font-size: clamp(20px, 3vw, 34px); line-height: 1.25; }
.testimonial-card span { color: var(--gold); font-weight: 900; }
.slider-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 28px;
  transform: translateY(-50%);
}
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.contact { background: linear-gradient(180deg, #070707, #111214); }
.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 22px;
}
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-card { padding: 22px; }
.contact-card span { color: var(--gold); font-size: 24px; }
.contact-card p, .contact-card a { color: var(--muted); }
.map-link { width: max-content; }
.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { display: grid; gap: 8px; margin-bottom: 14px; color: rgba(255, 255, 255, .82); font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  color: #fff;
  padding: 13px 14px;
}
textarea { resize: vertical; }
.check-label { grid-template-columns: 18px 1fr; align-items: start; font-size: 14px; color: var(--muted); }
.check-label input { width: 18px; height: 18px; margin-top: 3px; }
.form-status { min-height: 24px; color: var(--gold); font-weight: 800; }
.map-frame { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(1) invert(.88) contrast(.9); }

.floating-actions {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}
.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 15, 16, .86);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.float-btn:hover { transform: translateY(-3px); }
.float-btn.whatsapp { background: var(--green); border-color: transparent; }
.float-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 58px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.float-btn:hover::before { opacity: 1; transform: translateX(0); }

.site-footer {
  padding: 64px 0 28px;
  background: #030303;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}
.footer-logo { margin-bottom: 18px; }
.site-footer p, .site-footer a { color: var(--muted); }
.site-footer a { display: block; margin: 8px 0; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-bottom button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .74); backdrop-filter: blur(10px); }
.modal-card {
  position: relative;
  width: min(940px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111214;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 28px;
}
.modal-image {
  aspect-ratio: 16 / 9;
  background-image: url("assets/vehicle-grid.png");
  background-size: 300% 200%;
  background-position: var(--pos);
}
.modal-image.has-image {
  background-image: none;
}
.modal-image.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body { padding: 28px; }
.modal-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.modal-specs span {
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes loadLine { to { transform: translateX(250%); } }
@keyframes enterUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollCue { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(14px); opacity: 1; } }
@keyframes lineDrift { to { background-position: 320px 0; } }
@keyframes statShine { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .navbar { min-height: 76px; }
  .brand img { width: 176px; }
  .nav-panel {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: grid;
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 9, .94);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links { display: grid; gap: 4px; }
  .nav-links a { display: block; padding: 13px 0; font-size: 18px; }
  .inventory-tools, .sell-layout, .footer-bottom { flex-direction: column; align-items: stretch; }
  .vehicle-grid, .service-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1180px); }
  .hero { min-height: 88vh; }
  .hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.62)), linear-gradient(0deg, #070707 0%, transparent 28%); }
  .hero-actions, .cta-actions { display: grid; }
  .section { padding: 78px 0; }
  .vehicle-grid, .service-grid, .trust-grid, .form-row, .modal-specs, .stat-panel { grid-template-columns: 1fr; }
  .inventory-tools { display: grid; }
  .filter-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .filter-btn { min-width: 0; }
  .contact-form { padding: 18px; }
  .footer-grid { gap: 18px; }
  .footer-bottom div { display: grid; }
  .floating-actions { right: 12px; bottom: 12px; }
  .float-btn { width: 44px; height: 44px; }
  .slider-btn { top: auto; bottom: 14px; transform: none; }
}

@media (max-width: 360px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .brand img { width: 154px; }
  .btn { padding-inline: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
