/* =====================================================
   Konmaz Otomotiv – kurumsal site stilleri
   Renkler logodan türetildi: antrasit #31343B, kırmızı #E3161B
   ===================================================== */

:root {
  --dark: #31343B;        /* logo antrasit */
  --dark-2: #22252B;
  --red: #E3161B;         /* logo kırmızı */
  --red-hover: #C41217;
  --text: #2B2E34;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(49, 52, 59, .08);
  --shadow-lg: 0 24px 60px rgba(49, 52, 59, .14);
  --container: 1180px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 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 { margin: 0; line-height: 1.2; color: var(--dark); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn--lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 22, 27, .25); }
.btn--primary:hover { background: var(--red-hover); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--ghost:hover { background: var(--dark); color: #fff; }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* ---------- Üst bar ---------- */
.topbar { background: var(--dark); color: #D1D5DB; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar__left { display: flex; gap: 1.5rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar .ico { color: var(--red); font-size: 1rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(49, 52, 59, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__img { height: 58px; width: auto; }
.logo__text { flex-direction: column; line-height: 1; }
.logo__text strong { font-size: 1.35rem; font-weight: 800; color: var(--dark); letter-spacing: .02em; }
.logo__text em { font-style: normal; font-size: .8rem; color: var(--red); letter-spacing: .28em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { font-weight: 500; font-size: .95rem; color: var(--dark); position: relative; padding: .3rem 0; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .25s;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { margin-left: .5rem; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__inner { position: relative; }
.hero__content { max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.eyebrow::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--red); vertical-align: middle; margin-right: .6rem; }
.accent { color: var(--red); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-top: 1.2rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__points { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.3rem; font-weight: 500; color: var(--dark); }
.hero__points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__points .ico { color: var(--red); font-size: 1.2rem; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 2.6rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-top: .8rem; }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hakkımızda ---------- */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: center; }
.about__visual { position: relative; }
.about__visual::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 12px); z-index: 0;
}
.about__card {
  position: relative; z-index: 1; background: var(--dark); color: #fff; border-radius: var(--radius);
  padding: 3rem 2.4rem; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.about__card::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--red); opacity: .18; top: -110px; right: -90px;
}
.about__icon { width: 64px; height: 64px; fill: var(--red); margin-bottom: 1.4rem; }
.about__card p { font-size: 1.15rem; font-weight: 500; margin: 0; line-height: 1.5; }
.about__text h2 { margin-bottom: 1.2rem; }
.about__text p { color: var(--muted); }
.about__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.value { border-left: 3px solid var(--red); padding-left: .9rem; }
.value strong { display: block; color: var(--dark); margin-bottom: .2rem; }
.value span { font-size: .88rem; color: var(--muted); }

/* ---------- Ürün kartları ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; background: rgba(227, 22, 27, .1); color: var(--red);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card__icon svg { width: 28px; height: 28px; fill: currentColor; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Markalar ---------- */
.brands { margin-top: 3.5rem; }
.brands__title { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.4rem; }
.brands__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.brand {
  background: #fff; border: 1px dashed #CBD0D8; border-radius: 10px; height: 72px;
  display: grid; place-items: center; color: #9CA3AF; font-weight: 600; font-size: .9rem;
}

/* ---------- Neden biz ---------- */
.feature { padding: 1.6rem; border-radius: var(--radius); background: var(--bg-alt); position: relative; }
.feature__num { font-size: 2.4rem; font-weight: 800; color: rgba(49, 52, 59, .12); line-height: 1; margin-bottom: .8rem; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--red) 0%, #B5121A 100%); color: #fff; padding: 3.2rem 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; opacity: .9; font-size: 1.05rem; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; }
.info { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.info__icon { width: 46px; height: 46px; flex: none; border-radius: 10px; background: rgba(227, 22, 27, .1); color: var(--red); display: grid; place-items: center; }
.info__icon svg { width: 24px; height: 24px; fill: currentColor; }
.info strong { display: block; color: var(--dark); margin-bottom: .15rem; }
.info span { color: var(--muted); }
.info a:hover { color: var(--red); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--dark); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid #D4D8DF; border-radius: 10px; font: inherit; color: var(--text);
  background: #FAFBFC; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 22, 27, .12); background: #fff; }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--red); }
textarea { resize: vertical; }
.form__note { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.form__note.ok { color: #15803D; }
.form__note.err { color: var(--red); }

.map { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #C4C8CF; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 20px 2.5rem; }
.footer__brand p { margin-top: 1rem; max-width: 320px; font-size: .95rem; }
.logo--footer .logo__img { height: 70px; }
.logo--footer .logo__text strong { color: #fff; }
.footer__links h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .04em; }
.footer__links a, .footer__links span { display: block; margin-bottom: .55rem; font-size: .93rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; font-size: .85rem; }

/* ---------- Yukarı çık ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; z-index: 90;
}
.totop svg { width: 22px; height: 22px; fill: currentColor; }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Kaydırma animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .brands__row { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar__right { display: none; }
  .burger { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav__link { padding: .9rem 20px; border-top: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: .8rem 20px 1rem; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__card { min-height: 260px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar__left { flex-direction: column; gap: .15rem; padding: .3rem 0; }
  .logo__img { height: 48px; }
  .grid--3, .grid--4, .about__values, .form__row { grid-template-columns: 1fr; }
  .brands__row { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__actions .btn { width: 100%; }
}
