/*
Theme Name: otomobilivar Site
Description: otomobilivar.com için özel tema. "otomobilivar Teklif Sistemi" eklentisiyle birlikte çalışır ve ana sayfada teklif formunu otomatik gösterir. Eklentinin dosyalarına dokunmaz.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: otomobilivar-site
*/

/* Renkler logodan alındı: derin lacivert zemin, parlak mavi vurgu, beyaz yazı. */

:root {
  --lacivert: #061233;
  --lacivert-2: #0a1c4a;
  --lacivert-3: #123163;
  --asfalt: #0f1b33;
  --soluk: #5a6580;
  --cizgi: #d3d9e6;
  --beton: #eef1f7;
  --mavi: #0051f5;
  --mavi-koyu: #0040c4;
  --mavi-acik: #dbe6ff;
  --kap: 1160px;
  --serit: repeating-linear-gradient(90deg, currentColor 0 48px, transparent 48px 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--asfalt);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--mavi); }

.kap { width: min(100% - 40px, var(--kap)); margin-inline: auto; }
.kap--dar { width: min(100% - 40px, 760px); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); border: 0; word-wrap: normal !important;
}
.atla {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 16px; background: #fff; color: var(--asfalt); border-radius: 4px;
}
.atla:focus { left: 8px; }

/* ---------- Butonlar ---------- */

.dugme {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  border: 0; border-radius: 6px;
  background: var(--mavi); color: #fff;
  font: 600 17px "Barlow", system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.dugme:hover { background: var(--mavi-koyu); color: #fff; }
.dugme:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dugme--kucuk { height: 42px; padding: 0 18px; font-size: 16px; }
.dugme--beyaz { background: #fff; color: var(--lacivert); }
.dugme--beyaz:hover { background: var(--mavi-acik); color: var(--lacivert); }

/* ---------- Logo ---------- */

.logo, .custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.logo {
  color: #fff;
  font-weight: 700;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo-vurgu { color: #2f7bff; }
.logo-com { color: #93a3c4; font-weight: 500; }
.custom-logo-link img { max-height: 46px; width: auto; }

/* ---------- Üst bölüm ---------- */

.site-ust {
  position: relative; z-index: 20;
  background: var(--lacivert);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-ust-ic { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.ana-nav { margin-left: auto; }
.ana-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ana-nav li { position: relative; }
.ana-nav a {
  display: block; padding: 10px 12px; border-radius: 4px;
  color: #dce3f2; font-weight: 500; text-decoration: none;
}
.ana-nav a:hover,
.ana-nav .current-menu-item > a { color: #fff; }
.ana-nav a:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.ana-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  flex-direction: column; padding: 8px;
  background: var(--lacivert-2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
}
.ana-nav li:hover > .sub-menu,
.ana-nav li:focus-within > .sub-menu { display: flex; }

.ust-cta { margin-left: auto; }
.ana-nav + .ust-cta { margin-left: 8px; }

.menu-dugme {
  display: none; height: 42px; padding: 0 14px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px;
  font: 600 16px "Barlow", system-ui, sans-serif; cursor: pointer;
}
.menu-dugme:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Ana sayfa: hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 112px;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(0, 81, 245, 0.42) 0%, rgba(6, 18, 51, 0) 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(18, 49, 99, 0.85) 0%, rgba(6, 18, 51, 0) 62%),
    linear-gradient(168deg, var(--lacivert-2) 0%, var(--lacivert) 62%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 44px; height: 4px;
  background: var(--serit); color: rgba(255, 255, 255, 0.28);
}
.hero-ic {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.hero-metin { padding: 20px 0 0; }
.hero h1 {
  max-width: 13ch; margin: 0 0 22px;
  color: #fff;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700;
  font-size: clamp(42px, 5.6vw, 72px); line-height: 0.98; letter-spacing: -0.005em;
}
.hero-alt { max-width: 40ch; margin: 0 0 28px; color: #c3d0ea; font-size: 19px; }
.hero-maddeler { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-maddeler li { position: relative; padding-left: 32px; font-weight: 500; }
.hero-maddeler li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 18px; height: 4px; background: #4d8bff; border-radius: 1px;
}

.hero-form { position: relative; z-index: 2; scroll-margin-top: 24px; }

/* Eklentinin formunu hero içinde kart gibi öne çıkar (eklenti dosyasına dokunmadan) */
.hero-form .at-app .at-form,
.hero-form .at-app .at-sonuc {
  border-color: transparent;
  box-shadow: 0 36px 70px -34px rgba(0, 10, 40, 0.85), 0 2px 6px rgba(0, 10, 40, 0.2);
}
/* Hero'da büyük başlık zaten var; formun ilk adımındaki başlığı gizle */
.hero-form .at-app .at-adim[data-adim="0"] > .at-baslik,
.hero-form .at-app .at-adim[data-adim="0"] > .at-alt { display: none; }

.form-uyari {
  padding: 24px; background: #fff; color: var(--asfalt);
  border-left: 4px solid #b42318; border-radius: 6px;
}

/* ---------- Bölümler ---------- */

.bolum { padding: 88px 0; }
.bolum-baslik {
  margin: 0 0 40px;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.04;
}

/* Nasıl çalışır: adımlar bir yol şeridiyle bağlanır */
.adim-listesi {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  margin: 0; padding: 0; list-style: none;
}
.adim-listesi::before {
  content: ""; position: absolute; top: 26px; left: 28px; right: 28px; height: 4px;
  background: var(--serit); color: var(--cizgi);
}
.adim-listesi li { position: relative; }
.adim-no {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 22px;
  background: var(--mavi); color: #fff; border-radius: 8px;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: 28px;
  box-shadow: inset 0 0 0 3px var(--mavi), inset 0 0 0 5px #fff, 0 0 0 10px #fff;
}
.adim-listesi h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.adim-listesi p { max-width: 34ch; margin: 0; color: var(--soluk); }

/* SSS */
.sss { background: var(--beton); }
.sss-liste details { border-top: 1px solid var(--cizgi); }
.sss-liste details:last-child { border-bottom: 1px solid var(--cizgi); }
.sss-liste summary {
  position: relative; padding: 22px 48px 22px 0;
  font-size: 19px; font-weight: 600;
  list-style: none; cursor: pointer;
}
.sss-liste summary::-webkit-details-marker { display: none; }
.sss-liste summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--mavi); font-size: 30px; font-weight: 500; line-height: 1;
}
.sss-liste details[open] summary::after { content: "−"; }
.sss-liste summary:focus-visible { outline: 3px solid var(--mavi); outline-offset: 4px; }
.sss-liste details p { max-width: 64ch; margin: 0 0 24px; color: var(--soluk); }

/* Son çağrı */
.son-cagri {
  position: relative; padding: 72px 0; color: #fff;
  background:
    radial-gradient(100% 120% at 85% 0%, rgba(0, 81, 245, 0.45) 0%, rgba(6, 18, 51, 0) 60%),
    linear-gradient(100deg, var(--lacivert) 0%, var(--lacivert-2) 100%);
}
.son-cagri-ic { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.son-cagri h2 {
  max-width: 22ch; margin: 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05;
}

/* ---------- Hakkımızda ---------- */

.hakkimizda { padding-top: 64px; }
.hak-blok {
  position: relative;
  padding: 32px 0 32px 92px;
  border-top: 1px solid var(--cizgi);
}
.hak-blok:first-child { border-top: 0; padding-top: 8px; }
.hak-no {
  position: absolute; left: 0; top: 34px;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: 44px;
  line-height: 1; color: var(--mavi); opacity: 0.35;
}
.hak-blok:first-child .hak-no { top: 10px; }
.hak-blok h2 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.05;
}
.hak-blok p { margin: 0; max-width: 60ch; font-size: 18px; color: #3c4761; }

/* ---------- İç sayfalar ---------- */

.sayfa-bas { margin-bottom: 48px; padding: 56px 0 40px; background: var(--beton); border-bottom: 1px solid var(--cizgi); }
.sayfa-bas h1 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.02;
}
.sayfa-bas--koyu {
  margin-bottom: 0; border-bottom: 0; color: #fff;
  background:
    radial-gradient(110% 120% at 80% 0%, rgba(0, 81, 245, 0.4) 0%, rgba(6, 18, 51, 0) 60%),
    linear-gradient(160deg, var(--lacivert-2) 0%, var(--lacivert) 70%);
}
.sayfa-bas-alt { margin: 12px 0 0; max-width: 48ch; color: #c3d0ea; font-size: 19px; }
.meta { margin: 8px 0 0; color: var(--soluk); font-size: 15px; }

.icerik { padding-bottom: 88px; }
.icerik--ust { padding: 48px 0 0; }
.bolum .icerik { padding-bottom: 0; }
.icerik > :first-child { margin-top: 0; }
.icerik h2 {
  margin: 48px 0 14px;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.1;
}
.icerik h3 { margin: 36px 0 10px; font-size: 22px; font-weight: 600; }
.icerik p, .icerik ul, .icerik ol { margin: 0 0 1.2em; }
.icerik a { text-underline-offset: 3px; }
.icerik blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mavi); }
.icerik img { border-radius: 6px; }
.icerik table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.icerik th, .icerik td { padding: 10px 12px; border: 1px solid var(--cizgi); text-align: left; }
.icerik .alignwide { width: min(100vw - 40px, var(--kap)); margin-left: 50%; transform: translateX(-50%); }
.icerik .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.icerik .aligncenter { margin-inline: auto; }
.one-cikan { margin: 0 0 32px; }
.yazi-sonu { margin-top: 48px; }

.yazi-ozet { padding: 28px 0; border-top: 1px solid var(--cizgi); }
.yazi-ozet h2 { margin: 0 0 4px; font-size: 30px; }
.yazi-ozet h2 a { color: var(--asfalt); text-decoration: none; }
.yazi-ozet h2 a:hover { color: var(--mavi); }
.nav-links { display: flex; gap: 8px; margin-top: 32px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--cizgi); border-radius: 4px; text-decoration: none; }
.nav-links .current { background: var(--mavi); border-color: var(--mavi); color: #fff; }

.bos { padding: 120px 0; }
.bos h1 {
  margin: 0 0 16px;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1;
}
.bos p { max-width: 52ch; margin: 0 0 28px; color: var(--soluk); }

/* ---------- Alt bilgi ---------- */

.site-alt { position: relative; padding: 64px 0 28px; background: var(--lacivert); color: #b7c2da; font-size: 15px; }
.site-alt::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--serit); color: rgba(255, 255, 255, 0.28);
}
.alt-ic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.alt-marka p { max-width: 40ch; margin: 18px 0 0; }
.alt-marka .logo { font-size: 24px; }
.alt-baslik { margin: 0 0 12px; color: #fff; font-weight: 600; }
.site-alt a { color: #fff; text-decoration: none; }
.site-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-alt .logo:hover { text-decoration: none; }
.alt-nav ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.alt-iletisim p { margin: 0 0 10px; }
.alt-adres { max-width: 30ch; color: #b7c2da; }
.alt-sosyal { margin-top: 14px; }
.alt-sosyal a { display: inline-flex; align-items: center; gap: 9px; color: #b7c2da; }
.alt-sosyal a:hover { color: #fff; text-decoration: none; }
.alt-sosyal svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.5;
}
.alt-sosyal svg .dolu { fill: currentColor; stroke: none; }
.alt-telif { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #8e9ab5; font-size: 14px; }
.alt-telif p { margin: 0; }

/* ---------- Duyarlı ---------- */

@media (max-width: 960px) {
  .hero { padding: 40px 0 80px; }
  .hero-ic { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-metin { padding: 0; }
  .hero h1 { max-width: 16ch; }
  .hero::after { bottom: 28px; }
  .adim-listesi { grid-template-columns: 1fr; gap: 32px; }
  .adim-listesi::before { top: 28px; bottom: 28px; left: 26px; right: auto; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--cizgi) 0 28px, transparent 28px 48px); }
  .adim-listesi li { padding-left: 84px; }
  .adim-no { position: absolute; left: 0; top: 0; }
  .adim-listesi li:last-child::after {
    content: ""; position: absolute; left: 18px; top: 66px; bottom: -32px; width: 20px; background: #fff;
  }
  .alt-ic { grid-template-columns: 1fr 1fr; }
  .alt-marka { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-dugme { display: inline-flex; align-items: center; order: 3; }
  .ust-cta, .ana-nav + .ust-cta { order: 2; margin-left: auto; }
  .ana-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--lacivert-2); border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .ana-nav.acik { display: block; }
  .ana-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .ana-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .ana-nav .sub-menu { display: flex; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; background: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-ust-ic { gap: 10px; min-height: 66px; }
  .logo { font-size: 18px; letter-spacing: -0.02em; }
  .dugme--kucuk { padding: 0 14px; }
  .bolum { padding: 64px 0; }
  .hak-blok { padding-left: 0; }
  .hak-no { position: static; display: block; margin-bottom: 6px; font-size: 32px; }
  .hak-blok h2 { font-size: 30px; }
  .alt-ic { grid-template-columns: 1fr; }
  /* Eklenti formundaki alanlar dar ekranda taşmasın (eklenti dosyasına dokunmadan) */
  body .at-app .at-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Çok dar telefonlarda üst bar sığsın diye uzantıyı gizle */
@media (max-width: 380px) {
  .site-ust .logo-com { display: none; }
  .site-ust-ic { gap: 8px; }
  .site-ust .dugme--kucuk { padding: 0 12px; }
  .menu-dugme { padding: 0 10px; }
}

/* 340 px altındaki telefonlarda üst bardaki teklif butonu sığmıyor; form zaten hemen altta */
@media (max-width: 340px) {
  .site-ust .ust-cta { display: none; }
  .site-ust .logo { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
