/* =========================================================
   Önerler Otomotiv — Modern Stylesheet
   Palette: brand red, charcoal ink, light surfaces
   ========================================================= */

:root {
  --red: #d6001c;
  --red-dark: #a80016;
  --ink: #14181d;
  --ink-2: #1d242c;
  --muted: #6b7480;
  --line: #e7eaee;
  --surface: #ffffff;
  --bg: #f5f6f8;
  --bg-soft: #fafbfc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, .06), 0 2px 8px rgba(20, 24, 29, .05);
  --shadow-md: 0 10px 30px rgba(20, 24, 29, .10);
  --shadow-lg: 0 24px 60px rgba(20, 24, 29, .16);
  --maxw: 1200px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
  background: rgba(214, 0, 28, .08); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .98rem; padding: 14px 26px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(214,0,28,.32); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(214,0,28,.4); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #07321a; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.btn--wa:hover { background: #1fc05c; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
  background: rgba(20, 24, 29, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(20, 24, 29, .96); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a {
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: 10px; transition: color .15s ease, background .15s ease;
}
.nav__menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px;
  background: var(--red); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; font-size: .92rem;
  transition: background .15s ease, transform .15s ease; }
.nav__cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, rgba(20,24,29,.86) 0%, rgba(20,24,29,.62) 45%, rgba(20,24,29,.9) 100%),
              url("../img/hero.jpg") center 38% / cover no-repeat;
  background-color: var(--ink);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: -10%; bottom: -30%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(214,0,28,.5), transparent 70%);
  filter: blur(20px); opacity: .55; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; padding-block: 60px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(214,0,28,.25); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 900; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.86); margin-top: 22px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; }
.hero__stats .stat strong { display: block; font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; }
.hero__stats .stat span { color: rgba(255,255,255,.7); font-size: .9rem; }
.hero__stats .stat strong .accent { color: var(--red); }

/* ---------- Trust strip ---------- */
.marquee-wrap { background: var(--ink); color: #fff; padding: 18px 0; border-top: 3px solid var(--red); }
.marquee { display: flex; gap: 48px; align-items: center; justify-content: center; flex-wrap: wrap; }
.marquee span { font-weight: 700; letter-spacing: .02em; opacity: .9; display: inline-flex; align-items: center; gap: 10px; }
.marquee span::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__grid h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.about__lead { color: var(--ink); font-size: 1.12rem; font-weight: 600; margin: 14px 0 18px; }
.about p { color: var(--muted); margin-bottom: 16px; }
.timeline { display: grid; gap: 16px; }
.timeline li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px 18px 76px; box-shadow: var(--shadow-sm);
}
.timeline li .year {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-weight: 900; color: var(--red); font-size: 1rem; letter-spacing: -.02em;
}
.timeline li h4 { font-size: 1rem; font-weight: 800; margin-bottom: 2px; }
.timeline li p { margin: 0; font-size: .92rem; }

/* ---------- Stocked makes ---------- */
.makes { background: var(--surface); }
.makes__card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.makes__card img { margin: 0 auto; max-width: 760px; width: 100%; }
.make-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.make-chips span {
  font-weight: 700; font-size: .9rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
}

/* ---------- Suppliers / brand grid ---------- */
.suppliers { background: var(--bg); }
.brand-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.brand-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 16px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand-card img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.95); transition: transform .25s ease; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(214,0,28,.3); }
.brand-card:hover img { transform: scale(1.06); }

/* ---------- ÖN-PAR / B2B ---------- */
.onpar { background: var(--ink); color: #fff; }
.onpar__card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #1d242c, #14181d); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.onpar__card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(214,0,28,.45), transparent 70%); filter: blur(10px);
}
.onpar__media { background: #fff; border-radius: var(--radius-sm); padding: 26px; display: flex; align-items: center; justify-content: center; }
.onpar__body h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.onpar__body p { color: rgba(255,255,255,.75); margin: 14px 0 24px; }
.onpar__body .tag { color: var(--red); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(214,0,28,.1); color: var(--red);
}
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.info-item p, .info-item a { font-weight: 600; color: var(--ink); }
.info-item a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: transform .18s ease, background .18s ease;
}
.socials a:hover { transform: translateY(-3px); background: var(--red); }
.socials a svg { width: 20px; height: 20px; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 420px; }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 40px; margin-bottom: 18px; }
.footer__brand p { max-width: 360px; font-size: .95rem; }
.footer h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer__links a { display: block; padding: 6px 0; font-size: .95rem; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 22px 0; font-size: .85rem; }
.footer__bottom a { color: rgba(255,255,255,.85); }
.footer__bottom a:hover { color: var(--red); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.5);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Content is visible by default; only hidden when JS is active, so the
   page stays fully readable without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid, .contact__grid, .onpar__card { grid-template-columns: 1fr; }
  .onpar__card { gap: 28px; padding: 30px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #14181d; backdrop-filter: blur(12px);
    padding: 14px 18px 24px; border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 18px 30px rgba(0,0,0,.35);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav__menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a { padding: 14px 12px; font-size: 1.05rem; }
  .nav__cta { margin: 8px 0 0; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .hero__stats { gap: 26px; }
}
@media (max-width: 480px) {
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
}
