/* =========================================================
   Kahraman Otomotiv Fren Servisi — styles
   Renk paleti tabeladan: antrasit-lacivert + turuncu + beyaz
   ========================================================= */

:root {
  --color-dark: #36404D;
  --color-dark-2: #2A323D;
  --color-accent: #F58220;
  --color-accent-hover: #D96B12;
  --color-accent-soft: #FFE7D1;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F6F8;
  --color-text: #1F2937;
  --color-text-soft: #6B7280;
  --color-border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 70px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scroll-snap-type: y mandatory;
}
.hero, .section, .site-footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; image-orientation: from-image; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--color-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 1rem; }

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; box-shadow: 0 8px 18px rgba(245, 130, 32, .35); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-ghost-dark { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn-ghost-dark:hover { background: var(--color-dark); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-dark);
  color: #fff;
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  font-size: 1.2rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-line1 { font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.brand-line2 { font-weight: 700; font-size: .78rem; color: var(--color-accent); letter-spacing: .08em; }

.mainnav { display: flex; align-items: center; gap: 24px; }
.mainnav ul {
  display: flex; gap: 22px; list-style: none; padding: 0; margin: 0;
}
.mainnav a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
  position: relative;
}
.mainnav a:hover { color: #fff; }
.mainnav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.mainnav a:hover::after { transform: scaleX(1); }

.btn-call-header { padding: 9px 16px; font-size: .9rem; }

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
  background: var(--color-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 35%;
  z-index: -2;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(54,64,77,.92) 0%, rgba(54,64,77,.72) 60%, rgba(54,64,77,.55) 100%);
  z-index: -1;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--color-accent); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--color-accent); }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.92);
  max-width: 600px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-weight: 600; font-size: .92rem;
  color: rgba(255,255,255,.9);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-soft); }
.section-dark { background: var(--color-dark); color: rgba(255,255,255,.92); }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.75); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-sub { color: var(--color-text-soft); font-size: 1.05rem; margin: 0; }

/* ===== Rating badge (Google reviews) ===== */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rating-badge:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.rating-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
}
.rating-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  line-height: 1;
}
.rating-meta {
  font-size: .9rem;
  color: var(--color-text-soft);
}
.rating-meta strong {
  color: var(--color-dark);
  font-weight: 700;
}

/* ===== FAQ accordion ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s ease, background-color .15s ease;
}
.faq details[open] {
  background: rgba(255,255,255,.08);
  border-color: var(--color-accent);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+';
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  line-height: 1;
  transition: transform .25s ease, background-color .15s ease;
}
.faq details[open] summary::before {
  content: '−';
  transform: rotate(180deg);
}
.faq summary:hover { color: var(--color-accent); }
.faq summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.faq-body {
  padding: 0 22px 20px 62px;
  color: rgba(255,255,255,.85);
  font-size: .96rem;
  line-height: 1.65;
}
.faq-body p { margin: 0 0 .8em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong { color: #fff; }
.faq-body em { color: var(--color-accent); font-style: normal; font-weight: 600; }

.section-dark .cta-row { margin-top: 42px; }

.cta-row { text-align: center; margin-top: 36px; }

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--color-dark); }
.card p { color: var(--color-text-soft); margin: 0; font-size: .95rem; }

/* ===== Two-column (about) ===== */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}
.two-col-text h2 { margin-bottom: 18px; }
.two-col-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 460px;
}

.badges {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.badges li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.badges strong { display: block; color: var(--color-dark); font-size: .98rem; }
.badges span { color: var(--color-text-soft); font-size: .8rem; }

/* ===== Checklist (muayene) ===== */
.checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  counter-reset: chk;
}
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.checklist li span {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  font-size: .95rem;
}
.checklist li h4 { font-size: 1rem; margin: 0 0 4px; }
.checklist li p { font-size: .88rem; color: var(--color-text-soft); margin: 0; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-note {
  text-align: center; color: var(--color-text-soft);
  margin-top: 24px; font-size: .9rem;
}

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.review {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.review p {
  font-size: .98rem;
  color: var(--color-text);
  font-style: italic;
}
.review footer { color: var(--color-text-soft); font-size: .85rem; }
.review footer strong { color: var(--color-dark); font-style: normal; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }

.contact-row {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--color-text);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
a.contact-row:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}
.contact-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--color-dark);
  color: var(--color-accent);
  border-radius: 10px;
}
.contact-icon svg { width: 22px; height: 22px; }
a.contact-wa .contact-icon { background: #25D366; color: #fff; }
.contact-row strong { display: block; color: var(--color-dark); font-size: 1rem; line-height: 1.3; }
.contact-row small { color: var(--color-text-soft); font-size: .88rem; line-height: 1.5; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark-2);
  color: rgba(255,255,255,.78);
  padding: 50px 0 20px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
.site-footer strong { color: #fff; display: block; margin-bottom: 6px; }
.site-footer p { font-size: .9rem; margin: 0 0 6px; }
.site-footer a { color: var(--color-accent); }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom small { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-credit { font-size: .72rem; opacity: .7; }
@media (max-width: 600px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ===== Sticky Call (mobile) ===== */
.sticky-call {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(245, 130, 32, .45), 0 4px 12px rgba(0,0,0,.18);
}
.sticky-call:hover { color: #fff; background: var(--color-accent-hover); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 17, 22, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
  .contact-map iframe { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .badges { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .hamburger { display: flex; }

  .mainnav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .mainnav.is-open { transform: translateY(0); }
  .mainnav ul { flex-direction: column; gap: 0; }
  .mainnav li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .mainnav a { display: block; padding: 14px 4px; }
  .mainnav a::after { display: none; }
  .btn-call-header { width: 100%; justify-content: center; margin-top: 12px; }

  .sticky-call { display: flex; }
  body { padding-bottom: 80px; }

  .hero-cta .btn { width: 100%; justify-content: center; }

  .footer-inner { text-align: center; }
  .site-footer nav { align-items: center; }

  .faq summary { padding: 16px 18px; font-size: .95rem; gap: 12px; }
  .faq-body { padding: 0 18px 18px 18px; font-size: .92rem; }
}

@media (max-width: 420px) {
  .brand-line1 { font-size: .85rem; }
  .brand-line2 { font-size: .7rem; }
  .sticky-call span { font-size: .9rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
