/* ========================================
   1453 Oto Kaporta ve Çekici — main stylesheet
   Theme: dark, black & red (#E63946) — automotive pro
   Fonts: Barlow Condensed (headings) + Manrope (body)
   ======================================== */

:root {
    --bg: #050505;
    --surface: #121212;
    --surface-2: #1a1a1a;
    --primary: #E63946;
    --primary-hover: #D90429;
    --text: #ffffff;
    --text-muted: #A1A1AA;
    --text-dim: #71717A;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: #27272A;
    --whatsapp: #25D366;
    --whatsapp-hover: #1da851;
    --success: #10B981;
    --warning: #F59E0B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, .heading {
    font-family: 'Barlow Condensed', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 .5em;
    line-height: 0.95;
}

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

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #27272a; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 16px;
}
.brand-name { font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; }
.brand-sub { color: var(--primary); font-size: 11px; letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-hover); }
.btn-lg { padding: 18px 28px; font-size: 13px; }
.btn-sm { padding: 8px 14px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }

.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }

@media (max-width: 900px) {
    .nav-links, .nav-cta .btn { display: none; }
    .mobile-toggle { display: inline-flex; }
    .mobile-menu {
        display: none;
        background: #000; border-top: 1px solid var(--border);
        padding: 16px 24px;
    }
    .mobile-menu.open { display: block; }
    .mobile-menu a { display: block; padding: 14px 0; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--border); }
    .mobile-menu a.active { color: var(--primary); }
    .mobile-menu .btn { width: 100%; justify-content: center; margin-top: 12px; }
}

main { padding-top: 80px; min-height: 60vh; }

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex; align-items: center;
    background: #000;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.65) 55%, rgba(5,5,5,0.3) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 96px 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.hero h1 { font-size: clamp(40px, 6vw, 78px); margin-bottom: 24px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { color: #d4d4d8; font-size: 18px; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    text-transform: uppercase; letter-spacing: 0.3em; font-size: 11px; font-weight: 700;
    margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.5); }
    50%      { box-shadow: 0 0 0 14px rgba(230,57,70,0); }
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.1); align-self: end; }
.stat-cell { background: rgba(0,0,0,0.78); backdrop-filter: blur(8px); padding: 24px; }
.stat-value { font-family: 'Barlow Condensed', sans-serif; color: var(--primary); font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.stat-label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; margin-top: 8px; }

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; padding: 72px 24px; }
    .stats-grid { margin-top: 24px; }
}

/* ========== Sections ========== */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-dark { background: #080808; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.label {
    color: var(--primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}
.section-title { font-size: clamp(32px, 4.5vw, 52px); }
.section-title .accent { color: var(--primary); }

.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--text-muted); }

@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* ========== Service cards ========== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); }
.card-media { position: relative; height: 220px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 0%, transparent 60%); }
.card-body { padding: 28px; }
.card-icon {
    width: 44px; height: 44px;
    background: rgba(230,57,70,0.12);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.card-link { color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; }
.card-link:hover { gap: 12px; }

/* ========== Feature grid ========== */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.06); }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-cell { background: #080808; padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.feature-cell svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse > div:first-child { order: 2; }
@media (max-width: 900px) {
    .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 32px; }
    .two-col.reverse > div:first-child { order: 0; }
}

.media-block { position: relative; height: 400px; overflow: hidden; }
.media-block img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.media-block:hover img { transform: scale(1.05); }
.media-block .tag-icon {
    position: absolute; bottom: 24px; left: 24px;
    width: 56px; height: 56px; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}

ul.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; color: #d4d4d8; font-size: 14px; }
ul.checks svg { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* ========== Forms ========== */
.form { background: #0f0f0f; border: 1px solid var(--border); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label, .label-small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}
.field input, .field select, .field textarea, .input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: #fff;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.field-check input { width: 18px; height: 18px; accent-color: var(--primary); }

.divider-or {
    display: flex; align-items: center; gap: 16px;
    color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
    margin: 16px 0;
}
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ========== Alerts / flash ========== */
.flash { padding: 14px 18px; margin-bottom: 20px; border: 1px solid; font-size: 14px; }
.flash-success { color: #6ee7b7; border-color: #064e3b; background: rgba(16,185,129,0.08); }
.flash-error   { color: #fca5a5; border-color: #7f1d1d; background: rgba(230,57,70,0.08); }
.flash-info    { color: #93c5fd; border-color: #1e3a8a; background: rgba(59,130,246,0.08); }

/* ========== Footer ========== */
footer.site {
    background: #080808;
    border-top: 1px solid var(--border);
    margin-top: 120px;
}
footer .container { padding-top: 64px; padding-bottom: 32px; }
footer .grid-4 { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { footer .grid-4 { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { footer .grid-4 { grid-template-columns: 1fr; } }
footer h4 { font-size: 14px; margin-bottom: 18px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 6px 0; color: var(--text-muted); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
footer ul li a { color: var(--text-muted); transition: color .2s; }
footer ul li a:hover { color: var(--primary); }
.wa-text { color: var(--whatsapp) !important; }
.wa-icon-color { color: var(--whatsapp); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.footer-bottom small { color: #52525B; text-transform: uppercase; letter-spacing: 0.15em; font-size: 11px; }

/* ========== Blog ========== */
.blog-meta { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; display: flex; gap: 12px; align-items: center; }
.blog-tag {
    display: inline-block;
    background: var(--primary); color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}
.blog-hero-img { height: 60vh; object-fit: cover; width: 100%; }
.blog-article { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.blog-article .content { white-space: pre-wrap; color: #d4d4d8; font-size: 17px; line-height: 1.85; }

/* ========== WhatsApp FAB ========== */
.wa-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
    z-index: 40;
    transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.06); background: var(--whatsapp-hover); }
.wa-fab::before {
    content: ''; position: absolute; inset: 0;
    background: var(--whatsapp); border-radius: 50%;
    opacity: 0.55; animation: pulse-wa 2.6s infinite;
    z-index: -1;
}
@keyframes pulse-wa {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ========== Admin layout ========== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
    background: #0a0a0a;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.admin-brand { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.admin-nav { flex: 1; padding: 16px; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: background .15s, color .15s;
    margin-bottom: 4px;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-bottom { padding: 16px; border-top: 1px solid var(--border); }
.admin-bottom a, .admin-bottom button {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: none; border: none; width: 100%;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.admin-bottom a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-bottom button:hover { background: var(--primary); color: #fff; }

.admin-main { background: var(--bg); }
.admin-header {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex; justify-content: space-between; align-items: center;
}
.admin-header .crumb { font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--text-dim); }
.admin-content { padding: 32px; }
.admin-content h1 { font-size: 40px; margin-bottom: 32px; }

.admin-login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, rgba(230,57,70,0.18), transparent 70%), var(--bg);
    padding: 24px;
}
.admin-login-card { width: 100%; max-width: 420px; }

@media (max-width: 800px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Tables */
.table-wrap { background: #0f0f0f; border: 1px solid var(--border); overflow: auto; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table.admin-table th { background: #0a0a0a; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-dim); font-weight: 700; }
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table .row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.icon-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.empty-state { background: #0f0f0f; border: 1px solid var(--border); padding: 64px 32px; text-align: center; color: var(--text-muted); }

/* Stat cards on dashboard */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card {
    background: #0f0f0f; border: 1px solid var(--border);
    padding: 28px;
    transition: border-color .2s;
}
.stat-card:hover { border-color: var(--primary); }
.stat-card.alert { border-color: var(--primary); }
.stat-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.stat-card .big { font-family: 'Barlow Condensed', sans-serif; font-size: 56px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.stat-card .sub { color: var(--text-muted); font-size: 13px; }
.stat-card .sub.alert { color: var(--primary); }

/* Quote/contact rows */
.q-row, .m-row { background: #0f0f0f; border: 1px solid var(--border); margin-bottom: 12px; }
.q-row.unread, .m-row.unread { border-color: var(--primary); }
.q-row summary { padding: 18px 22px; cursor: pointer; display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr auto; gap: 16px; align-items: center; list-style: none; }
.q-row summary::-webkit-details-marker { display: none; }
.q-row[open] summary { border-bottom: 1px solid var(--border); }
.q-row .name { color: #fff; font-weight: 600; }
.q-row .small-info { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.q-row .body { padding: 22px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.q-row .body .detail-item { display: flex; gap: 12px; margin-bottom: 14px; }
.q-row .body .detail-item svg { color: var(--primary); margin-top: 2px; }
.q-row .body .detail-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 2px; }
.q-row .body .actions { display: flex; flex-direction: column; gap: 10px; }
.q-row .msg-block { background: #0a0a0a; border: 1px solid var(--border); padding: 14px; white-space: pre-wrap; color: #d4d4d8; }

.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }

.m-row { padding: 22px; }
.m-row .head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.m-row .head .who { color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.m-row .new-tag { background: var(--primary); color: #fff; font-size: 10px; padding: 2px 8px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.m-row .contact-line { color: var(--text-muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.m-row .when { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.m-row .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 700px) {
    .q-row summary { grid-template-columns: 1fr; }
    .q-row .body { grid-template-columns: 1fr; }
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid var(--border);
    padding: 56px;
    display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; padding: 32px; } }
.cta-banner h2 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 8px; }
.cta-banner .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-banner .actions .btn { justify-content: center; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease-out both; }

/* Utility */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-wa { color: var(--whatsapp); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
