/* ==========================================================================
   Ünsal Oto - Kurumsal Site Stilleri
   Renkler: derin lacivert (güven), çelik grisi (teknoloji), turuncu (enerji)
   ========================================================================== */

:root {
    --navy: #0d2137;
    --navy-2: #14314f;
    --navy-3: #1d4269;
    --steel: #5a6b7d;
    --steel-light: #8899aa;
    --orange: #e8590c;
    --orange-dark: #c7490a;
    --orange-light: #ff8a3d;
    --paper: #ffffff;
    --bg: #f5f7fa;
    --line: #dde4ec;
    --line-dark: #c6d0dc;
    --text: #17222e;
    --muted: #5a6b7d;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(13, 33, 55, .08);
    --shadow: 0 6px 20px rgba(13, 33, 55, .09);
    --shadow-lg: 0 18px 46px rgba(13, 33, 55, .14);
    --container: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--muted { background: var(--bg); }
.section--navy { background: var(--navy); color: #dce6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- Üst bar */
.topbar { background: var(--navy); color: #b9c9da; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 20px; }
.topbar a { color: #dce6f0; }
.topbar a:hover { color: var(--orange-light); }

/* ---------------------------------------------------------------- Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.logo img { height: 42px; width: auto; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
    display: block; padding: 10px 14px; border-radius: var(--radius);
    color: var(--navy); font-weight: 600; font-size: .94rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--bg); color: var(--orange); }
.main-nav a.active { background: var(--navy); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); 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); }

/* ---------------------------------------------------------------- Butonlar */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: transform .12s ease, background .2s, color .2s, box-shadow .2s;
    text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(232, 89, 12, .28); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-dark); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .86rem; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; overflow: hidden; }
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 64px 64px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(60px, 8vw, 110px) 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero-lead { font-size: clamp(1rem, .95rem + .35vw, 1.18rem); color: #cfdce9; max-width: 60ch; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 7px 15px; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 20px; }
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-light); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-panel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px); }
.hero-panel h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; opacity: .85; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero-panel li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: #dce6f0; }
.hero-panel li::before { content: '▸'; color: var(--orange-light); font-weight: 700; }

/* ---------------------------------------------------------------- İstatistik */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 20px; text-align: center; }
.stat-value { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-label { display: block; font-size: .84rem; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------------------------------------------------------------- Bölüm başlığı */
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: block; color: var(--orange); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.03rem; margin: 0; }
.section--navy .section-head p { color: #b9c9da; }

/* ---------------------------------------------------------------- Izgara */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------------------------------------------------------------- Kart */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-dark); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-block; background: var(--bg); color: var(--steel); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.section--navy .tag { background: rgba(255,255,255,.1); color: #cfdce9; border-color: rgba(255,255,255,.18); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--orange); font-size: .92rem; }

/* ---------------------------------------------------------------- Kabiliyet (yetenek) listesi */
.capability-list { display: grid; gap: 14px; }
.capability {
    display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px;
    transition: border-color .18s, box-shadow .18s;
}
.capability:hover { border-color: var(--orange-light); box-shadow: var(--shadow-sm); }
.capability-num { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); color: var(--navy); display: grid; place-items: center; font-weight: 800; border: 1px solid var(--line); }
.capability h3 { margin: 0 0 4px; font-size: 1.06rem; }
.capability p { margin: 0; color: var(--muted); font-size: .93rem; }
.capability-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.spec { font-size: .78rem; background: var(--navy); color: #cfdce9; padding: 3px 10px; border-radius: 5px; font-weight: 600; }

/* ---------------------------------------------------------------- Referanslar */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ref-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; transition: transform .18s, box-shadow .18s; }
.ref-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ref-name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.ref-sector { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------- İçerik sayfası */
.page-hero { background: var(--navy); color: #fff; padding: clamp(40px, 5vw, 68px) 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfdce9; max-width: 70ch; margin: 12px 0 0; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--steel-light); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: #cfdce9; }
.breadcrumb a:hover { color: var(--orange-light); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--orange); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

/* ---------------------------------------------------------------- Form */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 7px; }
.form-row .req { color: var(--orange); }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius); font: inherit; font-size: .95rem; color: var(--text); background: #fff; transition: border-color .18s, box-shadow .18s; }
.form-control:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29,66,105,.12); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 15px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .94rem; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #86d9a3; color: #14663a; }
.alert-error { background: #fef2f2; border-color: #f5b5b5; color: #a32020; }
.alert-info { background: var(--bg); border-color: var(--line-dark); color: var(--navy); }

/* ---------------------------------------------------------------- Ürün/blog */
.item-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s, box-shadow .18s; color: inherit; }
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.item-media { aspect-ratio: 16/10; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-body { padding: 20px 22px; }
.item-body h3 { font-size: 1.06rem; margin-bottom: .35em; }
.item-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.item-date { font-size: .8rem; color: var(--steel-light); margin-bottom: 6px; display: block; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border: 1px solid var(--line-dark); border-radius: var(--radius); font-size: .9rem; font-weight: 600; color: var(--navy); }
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- CTA bandı */
.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cfdce9; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- ISO kartları */
.iso-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.iso-card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; transition: border-color .18s, transform .18s; }
.iso-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.iso-badge { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .96rem; line-height: 1.1; text-align: center; }
.iso-card h3 { font-size: 1rem; margin-bottom: 6px; }
.iso-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------------- Zaman çizelgesi */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--orange); }
.timeline-year { display: inline-block; background: var(--navy); color: #fff; padding: 2px 11px; border-radius: 5px; font-size: .8rem; font-weight: 700; margin-bottom: 7px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- 404 / boş durum */
.error-page { text-align: center; padding: 40px 0; }
.error-code { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; color: var(--navy); opacity: .12; line-height: 1; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--bg); border-radius: var(--radius-lg); }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: #a8bccf; padding: clamp(40px, 5vw, 64px) 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #a8bccf; }
.site-footer a:hover { color: var(--orange-light); }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; max-width: 38ch; }
.footer-contact li { font-size: .9rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff !important; font-weight: 700; font-size: .78rem; letter-spacing: .02em; transition: background .2s; }
.social-link:hover { background: var(--orange); }
.footer-bottom { margin-top: 34px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 20px; }

.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.4);
    transition: transform .16s;
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }

/* ---------------------------------------------------------------- Duyarlılık */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    .main-nav.open { max-height: 460px; }
    .main-nav ul { flex-direction: column; padding: 10px 20px 18px; gap: 0; }
    .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .header-actions .btn { display: none; }
    .split { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topbar-inner { font-size: .76rem; }
    .topbar-contact { gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .capability { grid-template-columns: 44px 1fr; gap: 14px; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}

@media print {
    .site-header, .site-footer, .whatsapp-float, .topbar { display: none; }
    body { color: #000; }
}
