/* =========================================================
   Taş Oto Kurtarma ve Vinç Hizmetleri
   Tasarım dili: editöryel, sıcak nötr kâğıt + hi-vis amber
   Tipografi: Space Grotesk (display) + Hanken Grotesk (body)
========================================================= */

:root {
  /* Renk — amaçlı palet */
  --paper: #fbf9f4;          /* sıcak kâğıt zemin */
  --paper-2: #f1ede4;        /* ikincil bölüm zemini */
  --ink: #16130d;            /* sıcak grafit, ana metin */
  --ink-soft: #38342a;       /* ikincil başlık */
  --muted: #635d4f;          /* gövde ikincil — AA (≈5.5:1) */
  --line: rgba(22, 19, 13, 0.12);
  --line-strong: rgba(22, 19, 13, 0.22);
  --accent: #ffb200;         /* hi-vis güvenlik amberi */
  --accent-press: #e09c00;
  --accent-wash: #fff4d6;
  --urgent: #d23b1e;         /* aciliyet — çok seyrek */
  --whatsapp: #1faa53;

  /* Tipografi */
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  /* Ölçek */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(40px, 4.5vw, 68px);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 48px); }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }

/* Accessibility helpers */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000; transform: translateY(-150%);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); font-weight: 600;
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout primitives */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.section-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); max-width: 18ch; }
.lead { font-size: clamp(1.12rem, 1.04rem + 0.5vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--lg { padding: 17px 28px; font-size: 1.05rem; }
.btn--call { background: var(--accent); color: var(--ink); }
.btn--call:hover { background: var(--accent-press); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===== Top bar ===== */
.topbar { background: var(--ink); color: var(--paper); font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar__hours { display: inline-flex; align-items: center; gap: 9px; color: #d8d3c6; letter-spacing: 0.01em; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 178, 0, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(255, 178, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 178, 0, 0); } }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }
.topbar__phone:hover { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center; background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 19, 13, 0.5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.05; letter-spacing: -0.02em; }
.brand__name small { display: block; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 9px 14px; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); }

.site-header__cta { padding: 10px 18px; }
.nav-toggle { display: none; font-size: 1.7rem; line-height: 1; color: var(--ink); }

/* ===== Hero ===== */
.hero { padding-block: clamp(48px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem); letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 1.6rem; }
.hero__title em {
  font-style: normal;
  background-image: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 92%, transparent 92%);
  padding-inline: 2px;
}
.hero__lead { max-width: 46ch; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 0; }
.hero__meta li { font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); padding-inline: 18px; border-left: 1px solid var(--line-strong); }
.hero__meta li:first-child { padding-left: 0; border-left: 0; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.hero__media figcaption {
  position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius); box-shadow: 0 10px 30px -16px rgba(22, 19, 13, 0.6);
}

/* ===== Stats ===== */
.stats { border-block: 1px solid var(--line); background: var(--paper-2); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__fig { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; }
.stat__label { display: block; margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(28px, 4vw, 48px); align-items: end; }
.about__head { grid-column: 1 / 2; }
.about__media { grid-column: 2 / 3; grid-row: 1 / 3; }
.about__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.about__body { grid-column: 1 / 2; }
.about__body .lead { margin-bottom: 1.2rem; }
.about__body p { color: var(--muted); }
.about__points { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.about__points li { display: flex; align-items: center; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--line); font-weight: 500; }
.about__points .tick { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 0.7rem; }

/* ===== Services — numaralı editöryel liste ===== */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); transition: padding-left 0.3s ease; }
.svc:hover { padding-left: 18px; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease; }
.svc:hover::before { transform: scaleY(1); }
.svc__no { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem); color: var(--muted); font-variant-numeric: tabular-nums; }
.svc__title { font-size: clamp(1.3rem, 0.9rem + 1.4vw, 2rem); margin-bottom: 0.4rem; }
.svc__title a { display: inline; }
.svc__title a::after { content: ""; position: absolute; inset: 0; }
.svc__desc { color: var(--muted); max-width: 60ch; }
.svc__go { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 1.1rem; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s; }
.svc:hover .svc__go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateX(4px); }

/* ===== Why ===== */
.why__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.why__intro .lead { margin-top: 1.4rem; color: var(--ink-soft); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); }
.why__item { padding-block: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.why__item dt { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
.why__item .idx { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.why__item dd { color: var(--muted); }

/* ===== Gallery ===== */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.filter-btn { position: relative; padding: 12px 4px; margin-right: 18px; font-family: var(--font-display); font-weight: 500; font-size: 0.96rem; color: var(--muted); transition: color 0.2s; }
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); }
.filter-btn.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: pointer; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gallery-item.vinc { aspect-ratio: 3 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px; color: var(--paper);
  background: linear-gradient(0deg, rgba(15, 13, 8, 0.82), transparent);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-item.hide { display: none; }

/* ===== CTA band ===== */
.cta { background: var(--ink); color: var(--paper); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; padding-block: clamp(56px, 8vw, 96px); }
.cta h2 { color: var(--paper); font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem); max-width: 20ch; }
.cta p { color: #cfc9bb; margin-top: 0.8rem; }
.cta :focus-visible { outline-color: var(--accent); }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { margin-top: 0.6rem; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 0.92rem; }
.contact__list dd a:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }
.contact__socials { display: flex; gap: 10px; margin-top: 1.8rem; }
.contact__socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-size: 1.15rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.contact__socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.contact__map iframe { width: 100%; height: 100%; min-height: clamp(340px, 42vw, 480px); border: 1px solid var(--line); border-radius: var(--radius-lg); filter: grayscale(0.35) contrast(1.05); }

/* ===== Footer ===== */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer__brand .brand { margin-bottom: 1.2rem; }
.footer__brand p { color: var(--muted); max-width: 34ch; margin-bottom: 1.4rem; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.footer__socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer__col h4 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { color: var(--ink-soft); transition: color 0.2s; }
.footer__col a:hover { color: var(--accent-press); }
.footer__contact li { display: flex; gap: 10px; color: var(--ink-soft); margin-bottom: 11px; }
.footer__contact i { color: var(--ink); margin-top: 4px; flex-shrink: 0; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 22px; }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer__bottom p { color: var(--muted); font-size: 0.9rem; }

/* ===== Floating actions + scroll top ===== */
.fab-group { position: fixed; right: clamp(14px, 3vw, 22px); bottom: clamp(14px, 3vw, 22px); z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 14px 30px -12px rgba(22, 19, 13, 0.5); transition: transform 0.2s; }
.fab:hover { transform: scale(1.07); }
.fab--whatsapp { background: var(--whatsapp); color: #fff; }
.fab--call { background: var(--accent); color: var(--ink); }
.scroll-top {
  position: fixed; left: clamp(14px, 3vw, 22px); bottom: clamp(14px, 3vw, 22px); z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--line-strong); color: var(--ink); font-size: 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--ink); color: var(--paper); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 13, 8, 0.92); display: none; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 56px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-lg); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(251, 249, 244, 0.12); color: #fff; display: grid; place-items: center; font-size: 1.25rem; transition: background 0.2s, color 0.2s; }
.lightbox button:hover { background: var(--accent); color: var(--ink); }
.lightbox :focus-visible { outline-color: var(--accent); }
.lightbox-close { top: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); }
.lightbox-prev { left: clamp(16px, 3vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(16px, 3vw, 28px); top: 50%; transform: translateY(-50%); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .nav, .site-header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: block; }
  .nav.open {
    position: fixed; inset: calc(var(--header-h)) 0 0 0; z-index: 999; background: var(--paper);
    padding: 16px var(--gutter) 40px; overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav.open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open li { display: block; width: 100%; }
  .nav.open a { display: block; width: 100%; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav.open a.active::after { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__media img { aspect-ratio: 16 / 11; }
  .about__grid { grid-template-columns: 1fr; align-items: start; }
  .about__head, .about__media, .about__body { grid-column: 1 / -1; grid-row: auto; }
  .about__media { order: 3; }
  .about__media img { aspect-ratio: 16 / 10; max-height: 460px; }
  .why__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .stats__row { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-inline: 0; }
  .stat:nth-child(odd) { padding-right: 20px; }
  .stat:nth-child(2) { border-left: 1px solid var(--line); padding-left: 20px; }
  .stat:nth-child(4) { border-left: 1px solid var(--line); padding-left: 20px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc { grid-template-columns: auto 1fr; }
  .svc__go { display: none; }
  .why__list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__hours { display: none; }
  .topbar__inner { justify-content: center; }
  .hero__actions .btn { width: 100%; }
}

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