/* ============================================================
   Ekinci Grup Oto Kurtarma — app.css
   Gece kurtarma teması · Mobil öncelikli · Tam responsive
   ============================================================ */

:root {
    --bg:      #0d0f14;
    --bg-alt:  #12161e;
    --card:    #161a22;
    --line:    #262c38;
    --text:    #f4f4f5;
    --muted:   #9aa3b2;
    --accent:  #e11d2a;   /* kırmızı — ana vurgu */
    --accent-2:#b91520;
    --amber:   #f59e0b;   /* amber — acil aksan */
    --ok:      #22c55e;
    --radius:  14px;
    --wrap:    1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mt { margin-top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.wrap.narrow { max-width: 820px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
    border: 1px solid var(--line); background: var(--card); color: var(--text);
    cursor: pointer; transition: transform .12s, filter .12s, border-color .12s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--amber); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.big { padding: .9rem 1.4rem; font-size: 1.02rem; }
.btn.full { width: 100%; }

/* ---------- Acil bar + header ortak sticky yığın ---------- */
.topbar-stack { position: sticky; top: 0; z-index: 60; }

/* ---------- Acil durum barı ---------- */
.emerg {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: .5rem .9rem; padding: .5rem .8rem;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    color: #fff; font-size: .88rem; text-align: center;
}
.emerg-pulse {
    width: 10px; height: 10px; border-radius: 50%; background: var(--amber);
    box-shadow: 0 0 0 0 rgba(245,158,11,.7); animation: pulse 1.6s infinite;
}
.emerg-txt { font-weight: 500; }
.emerg-call, .emerg-wa {
    font-weight: 700; padding: .15rem .55rem; border-radius: 8px;
    background: rgba(0,0,0,.22);
}
.emerg-wa { background: rgba(255,255,255,.18); }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.7); }
    70%  { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ---------- Header ---------- */
.site-head {
    position: relative; /* mobil menü açılırken referans */
    background: rgba(13,15,20,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
             box-shadow: 0 0 14px var(--accent); flex: none; }
.brand-name { font-size: 1.02rem; }

.nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 40px; padding: 0 10px; background: transparent;
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
    display: flex; flex-direction: column; gap: .2rem;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.4);
    padding: .6rem 1rem 1rem;
}
.site-nav a { padding: .7rem .4rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a.active, .site-nav a:hover { color: var(--text); }
.nav-cta { color: var(--accent) !important; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(225,29,42,.28), transparent 60%),
        radial-gradient(700px 380px at 0% 20%, rgba(245,158,11,.12), transparent 60%),
        var(--bg);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { filter: brightness(1); }
    to   { filter: brightness(1.18); }
}
.hero-slider { position: relative; }
.hero-slide {
    display: none; position: relative;
    min-height: 74vh; padding: 3rem 0;
    align-items: center;
}
.hero-slide.is-active { display: flex; animation: fadeIn .6s ease; }
.hero-slide[style*="--slide-img"]::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: var(--slide-img); background-size: cover; background-position: center;
    opacity: .28;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
    display: inline-block; padding: .3rem .7rem; border-radius: 20px; margin-bottom: 1rem;
    background: rgba(245,158,11,.14); color: var(--amber); font-size: .82rem; font-weight: 700;
    border: 1px solid rgba(245,158,11,.35);
}
.hero-inner h1 { font-size: clamp(1.8rem, 6vw, 3.1rem); }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Bölümler ---------- */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 1.6rem; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }

/* Grid + kartlar */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.3rem; transition: transform .14s, border-color .14s;
}
a.card:hover { transform: translateY(-3px); border-color: var(--accent); }

.svc-card .svc-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.svc-icon.big { font-size: 3rem; }
.svc-more { color: var(--accent); font-weight: 700; font-size: .9rem; }
.feat-icon { font-size: 1.8rem; display: block; margin-bottom: .4rem; }

.review .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: .4rem; }
.review-name { color: var(--muted); font-size: .9rem; }

/* ---------- SSS ---------- */
.faq-list { display: grid; gap: .7rem; }
.faq {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .3rem 1rem;
}
.faq summary {
    cursor: pointer; padding: .8rem 0; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::after { content: "＋"; color: var(--accent); }
.faq[open] summary::after { content: "－"; }
.faq-a { padding-bottom: .9rem; color: var(--muted); }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.cform { display: grid; gap: .9rem; background: var(--card);
         border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field textarea {
    width: 100%; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line);
    background: #0f131a; color: var(--text); font-size: 1rem; font-family: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Konum paylaşımı ---------- */
.loc-card {
    display: grid; gap: 1.4rem; grid-template-columns: 1fr;
    background: linear-gradient(160deg, rgba(225,29,42,.14), var(--card));
    border-color: rgba(225,29,42,.35);
}
.loc-text h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.loc-actions { display: grid; gap: .7rem; align-content: start; }
.loc-select { display: grid; gap: .3rem; }
.loc-select span { font-size: .85rem; color: var(--muted); }
.loc-select select {
    padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line);
    background: #0f131a; color: var(--text); font-size: 1rem;
}
.loc-status { min-height: 1.2em; font-size: .85rem; margin: 0; }

/* ---------- Fiyat tahmin ---------- */
.price-wrap { max-width: 520px; }
.price-form { display: grid; gap: 1rem; }
.price-form select, .price-form input {
    padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line);
    background: #0f131a; color: var(--text); font-size: 1rem; width: 100%;
}
.price-error { color: #fca5a5; font-size: .88rem; margin: 0; min-height: 1em; }
.price-result {
    border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: .3rem;
    animation: fadeIn .3s ease;
}
.price-range {
    font-size: 1.4rem; font-weight: 800; color: var(--amber); margin-bottom: .3rem;
}
.price-note { font-size: .82rem; }
.price-off { max-width: 620px; }
.price-off .contact-actions { margin-top: .5rem; }

/* ---------- Bölge haritası (Leaflet) ---------- */
.area-map {
    height: 340px; width: 100%; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden; z-index: 0;
}
.area-map .leaflet-popup-content { color: #111; }
@media (min-width: 720px) {
    .area-map { height: 440px; }
    .loc-card { grid-template-columns: 1.3fr 1fr; align-items: center; }
}

/* ---------- Blog ---------- */
.blog-card { padding: 0; overflow: hidden; }
.blog-cover { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-body { padding: 1.1rem 1.2rem 1.3rem; }
.blog-date { font-size: .8rem; }
.blog-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius);
             border: 1px solid var(--line); margin-bottom: 1.4rem; }

/* ---------- Galeri + Lightbox ---------- */
.gal-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.gal-item {
    position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; cursor: pointer; background: var(--card); aspect-ratio: 4/3;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-badge {
    position: absolute; top: .5rem; left: .5rem; padding: .15rem .55rem; border-radius: 8px;
    font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff;
}
.lightbox {
    position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.9);
    display: grid; place-items: center; padding: 1rem;
}
.lb-fig { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-fig img { max-width: 92vw; max-height: 80vh; border-radius: 10px; }
.lb-fig figcaption { color: #ddd; margin-top: .6rem; font-size: .9rem; }
.lb-close {
    position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 1.3rem; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
@media (min-width: 720px) {
    .gal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
    .gal-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Breadcrumb / prose ---------- */
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a:hover { color: var(--text); }
.detail-head { margin-bottom: 1.4rem; }
.detail-head .lead, .prose { color: #d7dbe3; }
.prose { line-height: 1.8; }
.detail-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ---------- Flash ---------- */
.flashes { display: grid; gap: .6rem; margin: 1rem auto; }
.flash { padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; border: 1px solid transparent; }
.flash.success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); color: #86efac; }
.flash.error   { background: rgba(225,29,42,.12); border-color: rgba(225,29,42,.4); color: #fca5a5; }
.flash.info    { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.4); color: #93c5fd; }

/* ---------- Footer ---------- */
.site-foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 2rem; }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.foot-col h4 { color: var(--text); margin-bottom: .7rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-bottom {
    border-top: 1px solid var(--line); padding: 1.2rem 1rem; text-align: center; color: var(--muted);
    font-size: .85rem;
}
.foot-bottom p { margin: .2rem 0; }
.foot-credit { color: var(--amber); font-weight: 600; }

/* ---------- Floating butonlar ---------- */
.floating {
    position: fixed; right: 14px; bottom: 16px; z-index: 70;
    display: flex; flex-direction: column; gap: .7rem;
}
.fab {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    font-size: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.fab-wa   { background: #25D366; }
.fab-call { background: var(--accent); }
.fab.pulse { animation: fabPulse 1.5s infinite; }
@keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(225,29,42,.65); }
    70%  { box-shadow: 0 0 0 16px rgba(225,29,42,0); }
    100% { box-shadow: 0 0 0 0 rgba(225,29,42,0); }
}

/* ============================================================
   RESPONSIVE — tablet ve üstü
   ============================================================ */
@media (min-width: 720px) {
    .grid.cards { grid-template-columns: repeat(2, 1fr); }
    .grid.feats { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex !important; position: static; flex-direction: row; align-items: center;
        gap: 1.2rem; background: none; border: 0; padding: 0;
    }
    .site-nav a { border: 0; padding: .3rem 0; }
    .grid.cards { grid-template-columns: repeat(3, 1fr); }
    .grid.feats { grid-template-columns: repeat(4, 1fr); }
    .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}
