﻿/* Ziyaretçi sitesi.
   Harici CSS çatısı yok: site hızı hedefi (Lighthouse 90+) için
   gereken en az CSS elle yazıldı. */

:root {
    --brand: #f5a623;
    --brand-dark: #b8760a;
    /* Beyaz zemin üzerinde okunabilir turuncu — WCAG AA için --brand-dark yeterince koyu değil */
    --brand-text: #8a5a00;
    --ink: #1c2431;
    --ink-soft: #4a5567;
    --muted: #5c6675;
    --line: #e3e7ec;
    --bg: #ffffff;
    --bg-soft: #f6f8fa;
    --bg-dark: #1c2431;
    --success: #1a7f4b;
    --danger: #b3261e;
    --radius: 10px;
    --container: 1200px;
    --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* Klavye kullanıcıları için içeriğe atlama bağlantısı */
.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------------------------------------- Üst CTA barı */

.topbar {
    background: var(--bg-dark);
    color: #dfe5ee;
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    flex-wrap: wrap;
}

.topbar-claim { color: #aeb8c7; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.topbar-phone, .topbar-wa { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar-phone:hover, .topbar-wa:hover { color: var(--brand); }

/* ---------------------------------------------------------------- Başlık */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.brand { display: flex; align-items: center; }
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-list > li > a {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
}

.nav-list > li > a:hover { background: var(--bg-soft); }

/* Açılır alt menü */
.has-children { position: relative; }

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(28, 36, 49, .12);
    list-style: none;
    margin: 0;
    padding: 6px;
    display: none;
    z-index: 110;
}

.has-children:hover .submenu,
.has-children:focus-within .submenu { display: block; }

.submenu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14.5px; }
.submenu a:hover { background: var(--bg-soft); }

.nav-lang { display: flex; gap: 6px; }

.nav-lang a {
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    border-radius: 4px;
}

.nav-lang a.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* Arama: başlıkta ikon, tıklanınca tam genişlikte şerit açılır */
.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.header-search-toggle:hover { background: var(--bg-soft); color: var(--ink); }

/* Arama katmanı — ekranın ortasında, karartılmış zemin üzerinde */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(28, 36, 49, .55);
}

/* display:flex olduğu için hidden özniteliğini elle geri getirmek gerekiyor */
.search-overlay[hidden] { display: none; }

.search-overlay-box {
    position: relative;
    width: min(100%, 620px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(28, 36, 49, .28);
    padding: 26px;
}

.search-overlay-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 6px;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.search-overlay-close:hover { background: var(--bg-soft); color: var(--ink); }

.search-overlay-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.header-search-row { display: flex; gap: 8px; }

/* Kutu boşluğu yesin, "Ara" düğmesi daralmasın */
.header-search-row .form-input { flex: 1 1 auto; min-width: 0; }
.header-search-row .btn { flex: none; }

/* ---------------------------------------------------------------- Butonlar */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, color .15s ease;
}

.btn-cta { background: var(--brand); color: var(--ink); }
.btn-cta:hover { background: var(--brand-dark); color: #fff; }

.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; }

/* ---------------------------------------------------------------- Breadcrumb */

.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    font-size: 13.5px;
    color: var(--muted);
}

.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Bölümler */

.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #e7ecf3; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-dark .section-head p { color: #aeb8c7; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-text);
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------- Hero */

.hero {
    background: linear-gradient(180deg, #1c2431 0%, #232e3f 100%);
    color: #fff;
    padding: 64px 0 72px;
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: #c3ccd9; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { padding-left: 26px; position: relative; color: #c3ccd9; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------------------------------------------------------------- Hero slider */

/* Slayt varsa hero'nun kendisi konumlandırma bağlamı olur */
.hero-has-slider { position: relative; overflow: hidden; }

.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/*
   Fotoğrafın üstüne koyu perde: metin her fotoğrafta okunabilir kalsın.
   Perde olmadan açık renkli bir şantiye fotoğrafında beyaz başlık kaybolur.
*/
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 26, 36, .93) 0%, rgba(20, 26, 36, .78) 45%, rgba(20, 26, 36, .55) 100%);
}

.hero-has-slider .hero-grid { position: relative; z-index: 1; }

/* Metin blokları üst üste durur, aktif olan görünür */
.hero-copy { position: relative; }

.hero-has-slider .hero-text {
    display: none;
    animation: heroFade .55s ease;
}

.hero-has-slider .hero-text.is-active { display: block; }

@keyframes heroFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.hero-controls { display: flex; align-items: center; gap: 14px; margin-top: 28px; }

.hero-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.hero-arrow:hover { background: rgba(255, 255, 255, .2); }

.hero-dots { display: flex; gap: 8px; }

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}

.hero-dot.is-active { background: var(--brand); width: 26px; border-radius: 5px; }

/* Koyu zeminde turuncu etiket: --brand-text çok koyu kalıyor */
.eyebrow-on-dark { color: var(--brand); }

/* Hero içindeki hızlı teklif formu */
.hero-form {
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.hero-form h2 { font-size: 19px; margin-bottom: 4px; }
.hero-form .form-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ---------------------------------------------------------------- Kartlar */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.card:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(28,36,49,.08); }

.card-media {
    aspect-ratio: 4 / 3;
    /*
        Yüklenen makine görsellerinin neredeyse tamamı beyaz zeminli ürün
        çekimi. Kutu gri olduğunda görselin kendi beyaz zemini kartın içinde
        ayrı bir dikdörtgen gibi görünüyordu; beyaz zemin ikisini kaynaştırıyor.
        Görsel alanı gövdeden ince bir çizgiyle ayrılıyor.
    */
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    /*
        minmax(0, 1fr) olmadan satır "auto" kalıyor ve görselin doğal
        yüksekliğine göre büyüyor; kapsayıcı ise aspect-ratio ile sabit
        olduğundan taşan kısım overflow:hidden ile kesiliyordu. 4:3'ten dar
        her görsel (kare, dikey) alttan kırpılmış görünüyordu.
    */
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    overflow: hidden;
}

/*
    align-self/justify-self olmadan görsel kutuyu taşıyıp alttan kesiliyordu:
    kapsayıcıda "place-items: center" olduğu için grid öğesi esnetilmiyor,
    yüzdeli height çözülemeyip auto'ya düşüyor ve görsel doğal oranında uzuyor.
    Stretch ile alan kesinleşiyor, kırpmayı da object-fit değil kutu belirliyor.
*/
.card-media img {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

/* Hizmet kapakları ürün fotoğrafı değil, tam kanayan geniş görsel: boşluksuz ve kırpılarak. */
.card-media-wide { aspect-ratio: 16 / 9; background: var(--bg-dark); border-bottom: 0; }
.card-media-wide img { object-fit: cover; padding: 0; }

.card-media-empty { color: #4a5567; font-size: 13px; }

.card-body { padding: 16px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.card-title a { color: inherit; }
.card-text { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }

/* Ürün kartındaki teknik değerler */
.card-specs {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 4px;
    font-size: 13.5px;
}

.card-specs li { display: flex; justify-content: space-between; gap: 10px; }
.card-specs dt, .card-specs .spec-label { color: var(--muted); }
.card-specs .spec-value { font-weight: 600; }

.card-foot { margin-top: auto; }

/* ---------------------------------------------------------------- Ürün detay */

.product-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }

.gallery-main {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.gallery-thumbs button {
    width: 72px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-soft);
    padding: 4px;
    cursor: pointer;
}

.gallery-thumbs button.is-active { border-color: var(--brand); border-width: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 45%; color: var(--ink-soft); font-weight: 600; }
.spec-table td { font-weight: 600; }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }

/* Ürün sayfasındaki yapışkan teklif kutusu */
.quote-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    background: #fff;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    box-shadow: 0 6px 24px rgba(28,36,49,.06);
}

.quote-box h2 { font-size: 18px; margin-bottom: 4px; }
.quote-box .form-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.no-price-note {
    background: var(--bg-soft);
    border-left: 3px solid var(--brand);
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--ink-soft);
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}

/* ---------------------------------------------------------------- Formlar */

.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.form-label .req { color: var(--danger); }

/* Alan altındaki açıklama. Gövde metni boyutunda kalırsa forma karışıyor. */
.form-note { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 5px; }

/*
    Form alanlarının yan yana dizildiği ızgara. Filtre çubuğundan (.filter-grid)
    ayrı: orada hücreler eşit yükseklikte olduğu için alta hizalanır, formda ise
    bir alanın altında açıklama olabildiğinden hücreler üstten hizalanmalı.
    Aksi halde açıklamalı alan yukarı kayıp komşu alanların üstüne biner.
*/
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: start;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--brand);
    outline: 2px solid rgba(245,166,35,.35);
    outline-offset: 0;
}

.form-textarea { min-height: 110px; resize: vertical; }

.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; display: block; }

.form-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }

/* Metin bloğu içindeki linkler renk körü kullanıcılar için altçizgiyle de ayrılmalı */
.form-consent a,
.no-price-note a,
.card-text a { text-decoration: underline; }
.form-consent input { margin-top: 3px; }

/* Bot tuzağı: gerçek kullanıcı görmez, doldurulursa istek reddedilir */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/*
    Doğrulama özeti hata yokken de <div> olarak basılıyor; .alert kutusu boş
    ve kırmızı görünmesin diye gizleniyor. Hata varsa sınıf "-errors" olur.
*/
.validation-summary-valid { display: none; }

.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #e7f6ee; color: var(--success); border: 1px solid #b7e2c9; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2be; }

/* ---------------------------------------------------------------- Filtre çubuğu */

.filter-bar {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: #fff;
    margin-bottom: 24px;
}

.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }

/* ---------------------------------------------------------------- İçerik metni */

.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand-dark); text-decoration: underline; }

/* ------------------------------------------------------------------- S.S.S. */

/* Ana sayfadaki ve S.S.S. sayfasındaki açılır soru kutusu. */
.faq-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    margin: 0 0 10px;
}

.faq-item > summary {
    /* Tarayıcının varsayılan üçgen işareti kaldırılıp yerine kendi okumuz konuyor. */
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 15px 52px 15px 18px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}

.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--brand-dark); }
.faq-item > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 10px; }

/* Sağdaki ok: kapalıyken aşağı, açıkken yukarı bakar. */
.faq-item > summary::after {
    content: "";
    position: absolute;
    right: 21px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--brand-dark);
    border-bottom: 2px solid var(--brand-dark);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.faq-item[open] > summary { border-bottom: 1px solid var(--line); }
.faq-item[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }

.faq-item > div { padding: 16px 18px; color: var(--ink-soft); font-size: 15px; }
.faq-item > div > :last-child { margin-bottom: 0; }

/* Soru kutuları .prose içinde de kullanılıyor; oradaki metin genişliği sınırı burada istenmiyor. */
.prose .faq-item > div { max-width: none; }

@media (prefers-reduced-motion: reduce) {
    .faq-item > summary::after { transition: none; }
}

/* ---------------------------------------------------------------- Altbilgi */

.site-footer { background: var(--bg-dark); color: #aeb8c7; margin-top: 64px; font-size: 14.5px; }

/* Sayfa koyu bir bölümle bitiyorsa araya beyaz şerit girmesin, iki koyu alan birleşsin. */
main:has(> .section-dark:last-child) + .site-footer { margin-top: 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0 32px;
}

.footer-brand { color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 10px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; }
.footer-text { color: #aeb8c7; max-width: 42ch; }
.footer-phone { display: block; color: #fff; font-weight: 700; font-size: 18px; margin-top: 12px; }
.footer-mail { display: block; color: #aeb8c7; margin-top: 4px; }
.footer-phone:hover, .footer-mail:hover { color: var(--brand); }

.footer-title { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #aeb8c7; }
.footer-links a:hover { color: var(--brand); }

.footer-regions { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; }

.region-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.region-links a { color: #8d97a6; font-size: 13.5px; }
.region-links a:hover { color: var(--brand); }
.region-all { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 13.5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: #8d97a6; }
.footer-legal a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- Mobil CTA çubuğu */

.mobile-cta { display: none; }

/* ------------------------------------------------------------ Çerez onayı */

/*
    Sayfanın üstüne binen alt şerit. Akışta yer kaplamadığı ve varsayılan olarak
    gizli olduğu için sayfa kaymasına (CLS) yol açmaz.
*/
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    background: var(--bg-dark);
    color: #e7ecf3;
    border-top: 3px solid var(--brand);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .28);
}

.cookie-bar[hidden] { display: none; }

.cookie-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.cookie-bar-text { margin: 0; font-size: 14px; line-height: 1.55; color: #c3ccd9; }
.cookie-bar-text strong { color: #fff; }
.cookie-bar-text a { color: var(--brand); text-decoration: underline; }

.cookie-bar-actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }

/* Reddetmek kabul etmek kadar kolay olmalı: iki düğme de aynı genişlikte. */
.cookie-btn-accept,
.cookie-btn-reject { min-width: 116px; justify-content: center; text-align: center; }

.cookie-btn-accept { background: var(--brand); color: var(--ink); }
.cookie-btn-accept:hover { background: var(--brand-dark); color: #fff; }

.cookie-btn-reject { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cookie-btn-reject:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (max-width: 760px) {
    .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-bar-text { font-size: 13.5px; }
    .cookie-bar-actions { margin-left: 0; }
    .cookie-btn-accept,
    .cookie-btn-reject { flex: 1 1 0; min-width: 0; }

    /* Alttaki mobil iletişim çubuğunun üstünde dursun, onu kapatmasın. */
    .cookie-bar { bottom: 54px; }
}

/* ---------------------------------------------------------------- 404 */

.error-page { text-align: center; padding: 80px 0; }
.error-code { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

.error-suggestions { margin-top: 44px; }
.error-suggestions .card-grid { max-width: 900px; margin-inline: auto; }

/* ---------------------------------------------------------------- Duyarlı */

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-controls { margin-top: 20px; }
    .product-layout { grid-template-columns: 1fr; }
    .quote-box { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 0;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .site-nav.is-open { display: flex; }

    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li > a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }

    .submenu {
        position: static;
        display: block;
        border: 0;
        box-shadow: none;
        padding: 0 0 8px 16px;
    }

    /* Mobilde sıra: logo — TR/EN — arama — menü düğmesi.
       Dil seçici menünün içinde en altta kalıyordu; başlık çubuğunda
       menü açılmadan görünüyor. Dört öğe aynı satıra sığsın diye
       aradaki boşluk ve dil kutucukları burada daraltılıyor. */
    .header-inner { gap: 10px; }

    .brand { order: 1; }
    .nav-lang { order: 2; margin-left: auto; gap: 4px; }
    .nav-lang a { padding: 3px 6px; font-size: 12px; }
    .header-search-toggle { order: 3; margin-left: 0; }
    .nav-toggle { order: 4; margin-left: 0; }

    .topbar-claim { display: none; }
    .topbar-actions { margin-left: 0; width: 100%; justify-content: space-between; }

    .footer-grid { grid-template-columns: 1fr; }

    /* Mobilde ekranın altında sabit dönüşüm çubuğu */
    .mobile-cta {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        z-index: 120;
        box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    }

    .mobile-cta a {
        padding: 12px 6px;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        border-right: 1px solid var(--line);
    }

    .mobile-cta a:last-child { border-right: 0; }
    .mobile-cta-primary { background: var(--brand); color: var(--ink); }

    /* Sabit çubuk içeriği kapatmasın */
    body { padding-bottom: 52px; }
}

/* 320-380 px telefonlarda logo + TR/EN + iki düğme tek satıra sığmıyordu */
@media (max-width: 380px) {
    .brand img { max-height: 32px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }

    /* Otomatik dönen slayt, hareket hassasiyeti olan kullanıcılarda rahatsız edicidir */
    .hero-slide, .hero-text { animation: none !important; }
}

/* Editörden gelen gömülü video: 16:9 oranında, taşmadan. */
.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius);
    margin: 24px 0;
    display: block;
}

/* Yazı içine eklenen görseller metin genişliğini aşmasın. */
.prose img { border-radius: var(--radius); margin: 24px 0; }
