/* =========================================================
   Coşkun Oto Servis — Tasarım Sistemi
   ========================================================= */

:root {
    --bg:          #0c0f14;
    --bg-soft:     #11161f;
    --surface:     #161c27;
    --surface-2:   #1d2533;
    --line:        rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text:        #eef2f7;
    --muted:       #9aa6b6;
    --muted-2:     #6c7685;

    --accent:      #e11d2a;   /* yarış kırmızısı */
    --accent-2:    #ff4b57;
    --gold:        #c9a24b;

    --radius:      16px;
    --radius-sm:   10px;
    --maxw:        1180px;
    --shadow:      0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-sm:   0 10px 30px -12px rgba(0, 0, 0, 0.6);

    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700;
    color: var(--accent-2); margin-bottom: 1rem;
}
.eyebrow::before {
    content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block;
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--flush { padding-top: 0; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1.8rem; }
.mt-block { margin-top: 4.5rem; }
.btn-block { width: 100%; }
.eyebrow--light { color: #fff !important; }
.hours--tight { gap: .55rem; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; box-shadow: 0 12px 30px -10px rgba(225, 29, 42, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(225, 29, 42, .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-2); color: #fff; background: rgba(255,255,255,.04); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12, 15, 20, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(10, 12, 17, 0.95); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #7a0c14); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-text strong { color: var(--accent-2); font-weight: 800; }

.primary-nav { display: flex; align-items: center; gap: .35rem; }
.primary-nav > a {
    padding: .55rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .97rem;
    transition: color .2s ease, background .2s ease;
}
.primary-nav > a:hover { color: #fff; background: rgba(255,255,255,.05); }
.primary-nav > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.nav-cta { margin-left: .6rem; }
.nav-cta[aria-current="page"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important; color: #fff; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(120% 80% at 80% 0%, rgba(225,29,42,.25), transparent 55%),
        linear-gradient(180deg, rgba(12,15,20,.55), rgba(12,15,20,.92) 70%, var(--bg));
}
.hero-inner { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); max-width: 720px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.03em; }
.hero h1 .hl { color: transparent; background: linear-gradient(120deg, var(--accent-2), var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); opacity: .85; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; }
.hero-stats .stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; letter-spacing: -0.03em; }
.hero-stats .stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Brand strip ---------- */
.brandstrip { border-block: 1px solid var(--line); background: var(--bg-soft); }
.brandstrip-inner { display: flex; align-items: center; gap: 2.5rem; padding: 1.6rem 0; flex-wrap: wrap; justify-content: center; }
.brandstrip-inner span.label { color: var(--muted-2); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.brandstrip-inner .marque { color: var(--muted); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; opacity: .8; transition: color .2s ease, opacity .2s ease; }
.brandstrip-inner .marque:hover { color: #fff; opacity: 1; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .ic {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
    background: rgba(225,29,42,.12); color: var(--accent-2); border: 1px solid rgba(225,29,42,.25);
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Service media cards ---------- */
.svc-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.svc {
    position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    min-height: 320px; display: flex; align-items: flex-end; isolation: isolate;
}
.svc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,15,20,.1), rgba(12,15,20,.92)); }
.svc:hover img { transform: scale(1.06); }
.svc-body { padding: 1.6rem; }
.svc-body h3 { font-size: 1.3rem; }
.svc-body p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
    position: absolute; bottom: -18px; left: -18px; background: var(--surface-2); border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); padding: 1rem 1.3rem; box-shadow: var(--shadow-sm);
}
.split-media .badge strong { display: block; font-size: 1.6rem; color: var(--gold); }
.split-media .badge span { color: var(--muted); font-size: .85rem; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text); }
.checklist li::before {
    content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(225,29,42,.15); color: var(--accent-2); font-weight: 700; font-size: .8rem; margin-top: 2px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.08); position: absolute; top: .6rem; right: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .8rem; }
.quote p { font-size: 1.02rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); display: grid; place-items: center; font-weight: 700; color: #fff; }
.quote .who b { display: block; font-size: .95rem; }
.quote .who span { color: var(--muted); font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); isolation: isolate; }
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(122,12,20,.9), rgba(12,15,20,.85)); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Page hero (alt sayfalar) ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,15,20,.6), var(--bg)); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }
.breadcrumb { color: var(--muted-2); font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ---------- Values / stats counters ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-box { text-align: center; padding: 1.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-box strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent-2); letter-spacing: -0.03em; }
.stat-box span { color: var(--muted); font-size: .92rem; }

/* ---------- Pricing/list ---------- */
.price-list { display: grid; gap: 1rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.price-row b { font-weight: 600; }
.price-row .price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.price-note { color: var(--muted-2); font-size: .85rem; margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .45rem; color: var(--text); }
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--bg);
    border: 1px solid var(--line-strong); color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(225,29,42,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: var(--accent-2); font-size: .82rem; margin-top: .35rem; display: block; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); }
/* Honeypot — insanlar görmez, botlar doldurur */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.4rem; border: 1px solid; }
.alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); color: #b9f6ca; }
.alert-error { background: rgba(225,29,42,.12); border-color: rgba(225,29,42,.4); color: #ffc4c8; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.info-card h3 { font-size: 1.05rem; }
.info-card .row { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .row .ic { color: var(--accent-2); flex: none; margin-top: 3px; }
.info-card .row b { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.info-card .row a, .info-card .row span { color: var(--text); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.brand--footer { font-size: 1.2rem; margin-bottom: 1rem; }
.footer-about { color: var(--muted); font-size: .95rem; max-width: 32ch; }
.footer-col h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer-links, .footer-contact, .footer-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-links a, .footer-contact a { color: var(--muted); transition: color .2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { color: var(--muted); }
.footer-hours li { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; gap: 1rem; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0; color: var(--muted-2); font-size: .85rem; }
.footer-credit a {
    display: inline-flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
    color: var(--muted); transition: color .2s ease;
}
.footer-credit .credit-brand {
    font-weight: 700; letter-spacing: -0.01em;
    color: transparent; background: linear-gradient(120deg, var(--accent-2), var(--gold));
    -webkit-background-clip: text; background-clip: text;
}
.footer-credit .credit-role {
    position: relative; padding-left: .65rem; color: var(--muted-2); font-size: .8rem;
}
.footer-credit .credit-role::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 12px; background: var(--line-strong);
}
.footer-credit a:hover .credit-role { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .grid-3, .svc-grid, .steps, .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
        transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow);
        max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav > a { padding: .9rem .6rem; border-radius: 10px; border-bottom: 1px solid var(--line); }
    .nav-cta { margin: .8rem 0 0; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .grid-3, .svc-grid, .steps, .stat-grid, .grid-2 { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .svc:hover img { transform: none; }
}
