/*
Theme Name: NMK Oto Servis
Theme URI: https://nmkotoservis.com/
Author: NMK Oto Servis
Description: Pendik'te kaporta, fırın boya ve boyasız göçük onarımı yapan NMK Oto Servis için hazırlanmış tek sayfa akışlı, siyah temalı kurumsal tema. Telefon, adres ve çalışma saatleri Görünüm > Özelleştir altından değiştirilir.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nmk
Tags: business, one-column, custom-logo, custom-menu, translation-ready
*/

/* NMK Kaporta Boya Onarım — tema stilleri */

:root {
  --black: #000000;
  --near: #080808;
  --line: #232323;
  --line-soft: #1a1a1a;
  --white: #ffffff;
  --muted: #8f8f8f;
  --dim: #6f6f6f;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--white);
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: transparent; color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid #3a3a3a;
  font-weight: 400;
}
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand img { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b0b0b0;
  transition: color .18s ease;
}
.nav a:hover, .nav a.is-active { color: var(--white); }

.nav-phone {
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 11px 18px;
  white-space: nowrap;
}
.nav-phone:hover { background: #d9d9d9; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 9px 12px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #0d0d0d center/cover no-repeat;
  opacity: .52;
}
/* Anasayfa: duvardaki logo başlığın sağında kalsın */
.hero--home .hero-media { background-position: 74% center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.94) 28%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.2) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 24px 96px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: .97;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
  max-width: 12ch;
}
.hero-rule { width: 64px; height: 3px; background: var(--white); margin: 28px 0; }
.hero p {
  font-size: 16px;
  color: #a5a5a5;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}
.stat {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
}

/* ---------- sections ---------- */

.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.05;
}
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 44px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--near);
  padding: 34px 28px;
  transition: background .2s ease;
}
.card:hover { background: #101010; }
.card .ico { font-size: 30px; line-height: 1; }
.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 20px 0 10px;
}
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- galeri ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #131313;
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
  opacity: .92;
}
.shot:hover img { transform: scale(1.04); opacity: 1; }
.shot .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e0e0e0;
}
.shot .tag {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(0,0,0,.72);
  border: 1px solid #3a3a3a;
  color: #c8c8c8;
}
.shot .tag.after { background: var(--white); color: var(--black); border-color: var(--white); }
.shot .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- süreç ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--near); padding: 30px 24px; }
.step b { font-size: 12px; letter-spacing: .2em; color: var(--dim); display: block; margin-bottom: 16px; }
.step h4 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- SSS ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); font-size: 15px; margin: 0 0 22px; max-width: 74ch; }

/* ---------- CTA ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 64px 0;
}
.cta h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.cta span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }

/* ---------- form ---------- */

.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.form-pane { background: var(--near); padding: 40px 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #111;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #5a5a5a; }
.field textarea { resize: vertical; min-height: 110px; }

.info-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); min-width: 96px; padding-top: 2px; }
.info-row .v { font-size: 15px; }
.info-row .v small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.map { border: 1px solid var(--line); margin-top: 1px; filter: grayscale(1) invert(.92) contrast(.85); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- footer ---------- */

.site-footer { padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-top img { height: 54px; width: auto; }
.footer-col h5 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 400; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #b0b0b0; margin: 0 0 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
}

/* ---------- WhatsApp yüzen buton ---------- */

.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,.6);
}
.wa:hover { background: var(--black); color: var(--white); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .steps, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #050505;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-phone { text-align: center; margin-top: 14px; padding: 14px; }
  .header-inner { position: relative; }
  .brand img { height: 38px; }
  .section { padding: 60px 0; }

  /* --- mobil hero ---
     Masaüstündeki yatay karartma dar ekranda fotoğrafın tamamını yutuyordu.
     Telefonda fotoğrafı üstte 16:9 tam genişlik şerit yapıyoruz; alt kenarı
     siyaha eriyor, yazı bunun altında duruyor. Böylece duvardaki logo
     kırpılmadan görünüyor ve başlıkla çakışmıyor. */
  .hero::after { background: none; }
  .hero-media {
    bottom: auto;
    height: 56.25vw;          /* 16:9 — cihaz genişliği ne olursa olsun */
    opacity: 1;
    background-position: center center;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
  .hero--home .hero-media { background-position: center center; }

  .hero-inner { padding: calc(56.25vw + 16px) 22px 52px; }
  .hero h1 { font-size: 29px; letter-spacing: -0.02em; max-width: none; }
  .hero .kicker { font-size: 10px; letter-spacing: .18em; margin-bottom: 12px; }
  .hero-rule { width: 44px; height: 2px; margin: 18px 0; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 13px 20px; font-size: 11px; }
  .grid-3, .steps, .gallery { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .wa { left: 20px; right: 20px; text-align: center; }
}


/* ---------- WordPress'e özel eklemeler ---------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  background: var(--white);
  color: var(--black);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Özel logo yüklendiğinde de aynı ölçüde dursun */
.brand .custom-logo-link { display: block; }
.brand img,
.brand .custom-logo {
  height: 46px;
  width: auto;
  max-width: none;
}

/* Menü öğeleri wp_nav_menu ile <li> içinde gelir */
.nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li { display: block; }
.nav li a { display: inline-block; }

.pane-title { font-size: 26px !important; margin-bottom: 26px !important; }

/* Bal küpü — görünmez ama ekran okuyucuya "boş bırakın" der */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form sonucu bildirimleri */
.notice {
  border: 1px solid var(--line);
  border-left-width: 3px;
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 14px;
  border-radius: 0;
}
.notice-ok { border-left-color: #ffffff; color: #d8d8d8; background: #0d0d0d; }
.notice-hata { border-left-color: #7a7a7a; color: #b8b8b8; background: #0d0d0d; }

/* Sayfa düzenleyicisinden gelen içerik */
.entry-content { color: #b8b8b8; max-width: 74ch; }
.entry-content h2,
.entry-content h3 { color: var(--white); text-transform: none; letter-spacing: -0.01em; }
.entry-content h3 { font-size: 20px; margin: 32px 0 10px; }
.entry-content a { text-decoration: underline; }
.entry-content ul,
.entry-content ol { padding-left: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { margin: 24px 0; }
.entry-content blockquote {
  border-left: 2px solid var(--line);
  margin: 24px 0;
  padding-left: 20px;
  color: var(--muted);
}

/* Sayfalama */
.pagination { margin-top: 44px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13px;
  color: #b0b0b0;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* button öğesi .btn ile aynı görünsün */
button.btn { cursor: pointer; font-family: inherit; }

/* Yönetici çubuğu açıkken sabit başlık altta kalmasın */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
