/* ===========================================================
   AYT MEKANİK — Kurumsal Tema
   Marka renkleri: kırmızı (#E2231A) + antrasit (#1b1b1b)
   =========================================================== */
:root {
    --brand: #E2231A;
    --brand-dark: #b81a13;
    --ink: #17181c;
    --ink-2: #2a2d34;
    --muted: #6b7280;
    --line: #e6e8ec;
    --bg-soft: #f5f6f8;
    --white: #ffffff;
    --header-h: 76px;
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--ink-2);
    background: var(--white);
    margin: 0;
    line-height: 1.65;
    overflow-x: hidden; /* yatay taşma koruması */
}

h1, h2, h3, h4, h5, .display-head {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .2px;
}

a { text-decoration: none; color: var(--brand); transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; }

.container { max-width: 1200px; }

/* ---------- Marka logosu (tipografik) ---------- */
.brand-mark {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--brand);
    letter-spacing: 1px;
}
.brand-sub {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 4px;
    margin-left: 4px;
    align-self: flex-end;
    padding-bottom: 4px;
}

/* ---------- Header sarmalayıcı ---------- */
.header-wrap { position: sticky; top: 0; z-index: 1035; }
body.is-home .header-wrap { position: fixed; left: 0; right: 0; top: 0; }

/* ---------- Üst çubuk ---------- */
.topbar {
    background: var(--ink); color: #cfd2d8; font-size: .85rem;
    max-height: 46px; overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease;
}
.topbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 42px; }
.topbar-info a, .tb-hours { color: #cfd2d8; margin-right: 20px; display: inline-flex; align-items: center; gap: 7px; }
.topbar-info a { transition: color .2s ease; }
.topbar-info a:hover { color: #fff; }
.topbar-info i, .tb-hours i { color: var(--brand); }
.topbar-social a {
    color: #cfd2d8; width: 30px; height: 30px; margin-left: 6px; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.topbar-social a:hover { color: #fff; background: var(--brand); transform: translateY(-2px); }
body.nav-scrolled .topbar { max-height: 0; opacity: 0; }

/* ---------- Ana menü ---------- */
.site-header {
    background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 26px rgba(16,24,40,.07); transition: background .3s ease, box-shadow .3s ease;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; transition: min-height .3s ease; }
body.nav-scrolled .site-header { background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(16,24,40,.10); }
body.nav-scrolled .nav-row { min-height: 62px; }

/* Marka */
.brand { display: inline-flex; align-items: flex-end; gap: 5px; }
.brand .brand-mark { font-size: 1.95rem; transition: transform .3s ease, font-size .3s ease; }
.brand .brand-sub { transition: color .3s ease; }
.brand:hover .brand-mark { transform: translateY(-3px); }
body.nav-scrolled .brand .brand-mark { font-size: 1.7rem; }

/* Menü linkleri (ortadan büyüyen alt çizgi) */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; padding: 12px 16px; font-weight: 600; font-size: .97rem; color: var(--ink); transition: color .25s ease; }
.nav-link::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 7px; height: 2px; background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: center; transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover, .nav-link.active { color: var(--brand); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Aksiyonlar + Teklif Al butonu (hover'da içi dolan sweep) */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn-quote {
    position: relative; overflow: hidden; z-index: 0; display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand); color: #fff !important; font-weight: 600; padding: 11px 24px; border-radius: 999px;
    transition: box-shadow .3s ease;
}
.btn-quote::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
    transform: translateX(-101%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.btn-quote:hover { box-shadow: 0 12px 26px -8px rgba(226,35,26,.6); }
.btn-quote:hover::before { transform: translateX(0); }
.btn-quote i { transition: transform .3s ease; }
.btn-quote:hover i { transform: translateX(4px); }

/* Hamburger (X'e dönüşür) */
.nav-burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.nav-burger span { display: block; width: 24px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--ink);
    transition: transform .3s ease, opacity .25s ease, background .3s ease; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Anasayfa: hero üzerinde şeffaf header (henüz kaydırılmadıysa) */
body.is-home:not(.nav-scrolled) .site-header { background: transparent; box-shadow: none; }
body.is-home:not(.nav-scrolled) .brand-sub,
body.is-home:not(.nav-scrolled) .nav-link { color: #fff; }
body.is-home:not(.nav-scrolled) .nav-burger span { background: #fff; }

/* Mobil off-canvas menü */
.mobile-nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 86vw); z-index: 1050;
    background: #0f1218; color: #fff; padding: 96px 26px 30px; display: flex; flex-direction: column;
    transform: translateX(105%); transition: transform .42s cubic-bezier(.2,.8,.2,1);
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav__links { display: flex; flex-direction: column; }
.m-link {
    display: flex; align-items: center; justify-content: space-between; color: #e7e8ea; font-weight: 600; font-size: 1.12rem;
    padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,.08);
    opacity: 0; transform: translateX(24px); transition: opacity .4s ease, transform .4s ease, color .2s ease;
    transition-delay: calc(var(--k) * .05s);
}
.m-link i { color: var(--brand); font-size: .8rem; }
.m-link:hover, .m-link.active { color: var(--brand); }
body.nav-open .m-link { opacity: 1; transform: none; }
.btn-quote.mobile {
    justify-content: center; margin-top: 26px; padding: 14px;
    opacity: 0; transform: translateX(24px); transition: opacity .4s ease, transform .4s ease, box-shadow .3s ease;
    transition-delay: calc(var(--k) * .05s);
}
body.nav-open .btn-quote.mobile { opacity: 1; transform: none; }
.mobile-nav__contact {
    margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .5s ease; transition-delay: .35s;
}
.mobile-nav__contact a { color: #a9adb6; display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; }
.mobile-nav__contact i { color: var(--brand); }
body.nav-open .mobile-nav__contact { opacity: 1; }
.mobile-backdrop {
    position: fixed; inset: 0; background: rgba(8,10,14,.55); z-index: 1045;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
body.nav-open .mobile-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- Scroll ilerleme çubuğu ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1060; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #ff6a5e); box-shadow: 0 0 10px rgba(226,35,26,.6); }

/* ---------- Topbar aksan çizgisi + ayraç + dil ---------- */
.topbar { position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,35,26,.55), transparent); }
.tb-divider { width: 1px; height: 13px; background: rgba(255,255,255,.16); display: inline-block; margin: 0 16px; vertical-align: middle; }
.tb-lang { color: #cfd2d8; margin-left: 16px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; transition: color .2s ease; }
.tb-lang:hover { color: #fff; }
.tb-lang i { color: var(--brand); }

/* ---------- Header gizle/göster (scroll yönü) ---------- */
.header-wrap { transition: transform .4s cubic-bezier(.4,0,.2,1); }
body.nav-hidden .header-wrap { transform: translateY(-100%); }

/* ---------- Nav link hover pill + focus erişilebilirlik ---------- */
.nav-link { border-radius: 8px; }
.nav-link:hover { background: rgba(226,35,26,.06); }
body.is-home:not(.nav-scrolled) .nav-link:hover { background: rgba(255,255,255,.1); }
.brand:focus-visible, .nav-link:focus-visible, .btn-quote:focus-visible,
.nav-burger:focus-visible, .m-link:focus-visible, .mnav-close:focus-visible,
.dd-item:focus-visible, .tb-lang:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* ---------- Hizmetler açılır menüsü (dropdown) ---------- */
.nav-item.has-dd { position: relative; display: inline-flex; align-items: center; }
.nav-item.has-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 20px; } /* hover köprüsü */
.caret { font-size: .62rem; margin-left: 5px; transition: transform .3s ease; }
.nav-item.has-dd:hover .caret { transform: rotate(180deg); }
.nav-dd {
    position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(10px);
    width: 560px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 60px -18px rgba(16,24,40,.28); padding: 14px; z-index: 40;
    opacity: 0; visibility: hidden; transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}
.nav-dd::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 16px; height: 16px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.nav-item.has-dd:hover .nav-dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; transition: background .2s ease; }
.dd-item:hover { background: var(--bg-soft); }
.dd-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: rgba(226,35,26,.1); color: var(--brand); display: grid; place-items: center; font-size: 1rem; transition: background .2s ease, color .2s ease; }
.dd-item:hover .dd-ico { background: var(--brand); color: #fff; }
.dd-txt { display: flex; flex-direction: column; min-width: 0; }
.dd-txt b { color: var(--ink); font-size: .95rem; line-height: 1.2; }
.dd-txt small { color: var(--muted); font-size: .78rem; line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff !important; font-weight: 600; font-size: .9rem; transition: background .25s ease; }
.dd-all:hover { background: var(--brand); }
.dd-all i { transition: transform .25s ease; }
.dd-all:hover i { transform: translateX(4px); }

/* ---------- Mobil menü: başlık, accordion, sosyal ---------- */
.mobile-nav { padding-top: 0; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 2px 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav__head .brand-mark { font-size: 1.7rem; }
.mobile-nav__head .brand-sub { color: #fff; }
.mnav-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font-size: 1.05rem; cursor: pointer; transition: all .3s ease; }
.mnav-close:hover { background: var(--brand); border-color: var(--brand); transform: rotate(90deg); }
.m-item { opacity: 0; transform: translateX(24px); transition: opacity .4s ease, transform .4s ease; transition-delay: calc(var(--k) * .05s); border-bottom: 1px solid rgba(255,255,255,.08); }
body.nav-open .m-item { opacity: 1; transform: none; }
.m-toggle { width: 100%; background: none; border: 0; cursor: pointer; }
.m-item.open .m-toggle { color: var(--brand); }
.m-item.open .m-toggle .caret { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.m-item.open .m-sub { max-height: 460px; }
.m-sub a { display: flex; align-items: center; gap: 10px; color: #b7bcc6; font-size: .98rem; padding: 11px 0 11px 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.m-sub a:last-child { border-bottom: 0; }
.m-sub a i { color: var(--brand); width: 18px; text-align: center; font-size: .85rem; }
.m-sub a:hover { color: #fff; }
.m-sub__all { color: var(--brand) !important; font-weight: 600; }
.m-link.m-toggle .caret { font-size: .7rem; }
.mobile-nav__social { display: flex; gap: 10px; margin-top: auto; padding-top: 22px; opacity: 0; transition: opacity .5s ease; transition-delay: .3s; }
body.nav-open .mobile-nav__social { opacity: 1; }
.mobile-nav__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease; }
.mobile-nav__social a:hover { background: var(--brand); transform: translateY(-3px); }
.mobile-nav__contact { margin-top: 18px; padding-top: 18px; }

.btn-brand {
    position: relative; overflow: hidden; z-index: 0;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand); color: #fff !important; border: none;
    font-weight: 600; padding: 13px 28px; border-radius: 999px; letter-spacing: .2px;
    transition: box-shadow .3s ease, transform .25s ease;
}
.btn-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
    transform: translateX(-101%); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(226,35,26,.6); }
.btn-brand:hover::before { transform: translateX(0); }
.btn-brand i { transition: transform .3s ease; }
.btn-brand:hover i { transform: translateX(4px); }

.btn-outline-brand {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.7);
    font-weight: 600; padding: 11px 26px; border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-outline-brand:hover { background: #fff; color: var(--ink) !important; border-color: #fff; transform: translateY(-2px); }

/* ---------- Hero / Slider ---------- */
.hero-carousel .carousel-item { height: clamp(460px, 78vh, 760px); }
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,16,20,.82) 0%, rgba(15,16,20,.55) 45%, rgba(15,16,20,.2) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-content .eyebrow {
    display: inline-block;
    color: #fff;
    background: var(--brand);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.hero-content h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-content p { font-size: 1.12rem; color: #e7e8ea; margin-bottom: 28px; }
.hero-carousel .carousel-indicators { margin-bottom: 2rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 40px; height: 4px; border-radius: 0; background: rgba(255,255,255,.5);
}
.hero-carousel .carousel-indicators .active { background: var(--brand); }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 6%; opacity: .8; }

/* ---------- Bölüm başlıkları ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 48px; }
.section-head .eyebrow {
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: .82rem;
    font-family: var(--font-body);
}
.section-head h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    text-transform: uppercase;
    margin: 8px 0 0;
}
.section-head .lead { color: var(--muted); max-width: 720px; margin-top: 12px; }
.section-head.text-center .lead { margin-inline: auto; }
.title-bar { width: 60px; height: 4px; background: var(--brand); margin-top: 16px; }
.text-center .title-bar { margin-inline: auto; }

/* ---------- Hizmet kartları ---------- */
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 28px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--brand); transition: width .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.10); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-icon {
    width: 66px; height: 66px; border-radius: 50%;
    background: rgba(226,35,26,.10); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 22px;
    transition: background .25s ease, color .25s ease;
}
.service-card:hover .service-icon { background: var(--brand); color: #fff; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.service-card .more { font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.service-card .more i { transition: margin-left .2s ease; }
.service-card:hover .more i { margin-left: 6px; }

/* ---------- Hakkımızda teaser ---------- */
.about-media { position: relative; }
.about-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.about-badge {
    position: absolute; right: -18px; bottom: -18px;
    background: var(--brand); color: #fff; padding: 22px 28px; text-align: center;
}
.about-badge .num { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; font-weight: 700; }
.about-badge .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: var(--brand); position: absolute; left: 0; top: 6px;
}

/* ---------- İstatistik şeridi ---------- */
.stats {
    background: linear-gradient(rgba(15,16,20,.86), rgba(15,16,20,.86)),
                url('https://picsum.photos/seed/ayt-stats/1920/600') center/cover fixed;
    color: #fff; padding: 70px 0;
}
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #fff; }
.stat-item .num .plus { color: var(--brand); }
.stat-item .lbl { text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; color: #c9cbd1; }

/* ---------- Proje kartları ---------- */
.project-card {
    position: relative; overflow: hidden; display: block; background: var(--ink); border-radius: 20px;
}
.project-card img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .92; }
.project-card:hover img { transform: scale(1.08); opacity: .55; }
.project-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 26px; z-index: 2;
    background: linear-gradient(transparent 40%, rgba(15,16,20,.85));
}
.project-overlay .cat {
    color: #fff; background: var(--brand); align-self: flex-start;
    font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; margin-bottom: 10px;
}
.project-overlay h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.project-overlay .meta { color: #c9cbd1; font-size: .85rem; margin-top: 4px; }
.project-card .plus-ico {
    position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; z-index: 3;
    background: rgba(255,255,255,.15); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(-6px); transition: all .3s ease;
}
.project-card:hover .plus-ico { opacity: 1; transform: translateY(0); }

/* ---------- CTA şeridi ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 54px 0; }
.cta-band h2 { color: #fff; text-transform: uppercase; margin: 0; }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.9); }

/* ---------- Referans logoları ---------- */
.ref-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 16px;
    filter: grayscale(1); opacity: .7; transition: all .3s ease; height: 110px;
}
.ref-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); box-shadow: 0 12px 30px -14px rgba(16,24,40,.25); }
.ref-logo img { max-height: 60px; object-fit: contain; }

/* ---------- Sayfa başlığı (iç sayfalar) — modern koyu banner ---------- */
.page-hero {
    position: relative; overflow: hidden; background: #0b0f19; color: #fff;
    padding: clamp(70px, 9vw, 104px) 0 clamp(56px, 7vw, 72px); text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .5;
    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: 60px 60px; mask-image: radial-gradient(75% 70% at 50% 20%, #000, transparent 82%); }
.page-hero::after { content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 640px; height: 420px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(226,35,26,.32), transparent 70%); filter: blur(20px); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.breadcrumb-bar .breadcrumb { margin: 0; padding: 16px 0; font-size: .9rem; }
.breadcrumb-item a { color: var(--muted); transition: color .2s ease; }
.breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }

/* ---------- İletişim ---------- */
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; height: 100%; text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(16,24,40,.22); border-color: transparent; }
.contact-card .ico {
    width: 62px; height: 62px; border-radius: 16px; background: rgba(226,35,26,.1); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 18px;
    transition: background .3s ease, color .3s ease;
}
.contact-card:hover .ico { background: var(--brand); color: #fff; }
.form-control, .form-select {
    border-radius: 11px; border: 1px solid var(--line); padding: 13px 16px;
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .18rem rgba(226,35,26,.12); }
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; border-radius: 18px; }

/* ---------- Geri dön butonu ---------- */
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
    background: var(--brand); color: #fff; border-radius: 3px;
    display: flex; align-items: center; justify-content: center; z-index: 1040;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Footer (modern) ---------- */
.site-footer { background: var(--ink); color: #a9adb6; font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), transparent 60%); }

/* üst iletişim şeridi */
.footer-top { border-bottom: 1px solid rgba(255,255,255,.08); padding: 34px 0; }
.footer-top__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.ft-item { display: flex; align-items: center; gap: 14px; }
.ft-item .ft-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; background: rgba(226,35,26,.12); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; transition: background .3s ease, color .3s ease; }
.ft-item:hover .ft-ico { background: var(--brand); color: #fff; }
.ft-item h6 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 3px; }
.ft-item p { margin: 0; color: #a9adb6; font-size: .9rem; }
.ft-item a { color: #a9adb6; }
.ft-item a:hover { color: var(--brand); }

/* ana footer */
.footer-main { padding: 56px 0 42px; }
.footer-brand { display: inline-flex; align-items: flex-end; gap: 5px; margin-bottom: 18px; }
.footer-brand .brand-sub { color: #fff; }
.footer-about { color: #9aa0aa; max-width: 340px; line-height: 1.7; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-cert { font-size: .72rem; font-weight: 600; color: #cfd2d8; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 12px; }
.footer-title { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--brand); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #a9adb6; display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease, padding-left .2s ease; }
.footer-links a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .72rem; color: var(--brand); opacity: 0; transition: opacity .2s ease; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

/* bülten */
.footer-news { position: relative; margin: 4px 0 20px; max-width: 320px; }
.footer-news input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #fff; padding: 13px 54px 13px 18px; font-size: .9rem; outline: none; transition: border-color .2s ease; }
.footer-news input::placeholder { color: #8b909a; }
.footer-news input:focus { border-color: var(--brand); }
.footer-news button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 42px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.footer-news button:hover { background: var(--brand-dark); transform: scale(1.05); }

/* sosyal */
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }

/* alt bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; color: #8b909a; }
.footer-bottom__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: #8b909a; transition: color .2s ease; }
.footer-legal a:hover { color: var(--brand); }

/* ---------- Sayfa Loader'ı (premium perde/curtain reveal) ---------- */
.page-loader {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    /* JS devre dışıysa güvenli otomatik gizleme */
    animation: loaderAutohide 0s linear 8s forwards;
}
/* Not: nihai visibility:hidden CSS transition-delay yerine JS ile (inline style)
   uygulanıyor — .page-loader'ın kendisindeki loaderAutohide animasyonu da aynı
   şekilde visibility'yi hedeflediğinden, CSS transition Firefox'ta hiç tetiklenmiyordu
   (animasyon/transition çakışması), loader süresiz "visible" kalıyordu. */
.page-loader.loaded { pointer-events: none; }
@keyframes loaderAutohide { to { opacity: 0; visibility: hidden; } }

/* iki panelli perde — açılışta ekranı kaplar, kapanışta ortadan ikiye ayrılıp sahneyi açar */
.pl-panel {
    position: absolute; top: 0; bottom: 0; width: 50%; z-index: 0; overflow: hidden;
    background: #0a0b0f;
    transition: transform .6s cubic-bezier(.65,0,.15,1) .05s;
}
.pl-panel::before {
    content: ""; position: absolute; inset: -2px; opacity: .55;
    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: 46px 46px;
}
.pl-panel::after {
    content: ""; position: absolute; top: 50%; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(226,35,26,.35), transparent 70%);
    filter: blur(34px); transform: translateY(-50%);
}
.pl-panel--l { left: 0; }
.pl-panel--l::after { right: -190px; }
.pl-panel--r { right: 0; }
.pl-panel--r::after { left: -190px; }
.page-loader.loaded .pl-panel--l { transform: translateX(-100%); }
.page-loader.loaded .pl-panel--r { transform: translateX(100%); }

.loader-inner { position: relative; z-index: 2; text-align: center; animation: loaderPop .5s cubic-bezier(.2,.8,.2,1) both; }
/* giriş animasyonu (loaderPop) çakışmasın diye önce .loaded ile iptal edilir,
   fade-out transition'ı ise bir kare sonra .pl-closing ile ayrı bir adımda tetiklenir
   (aynı anda yapılırsa tarayıcı transition'ı atlayıp doğrudan zıplıyor) */
.page-loader.loaded .loader-inner { animation: none; }
.page-loader.pl-closing .loader-inner {
    opacity: 0; transform: translateY(-16px) scale(.92);
    transition: opacity .35s ease, transform .35s ease;
}
@keyframes loaderPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* dönen dişli + gerçek yükleme yüzdesini gösteren ışıklı halka */
.pl-ring { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; }
.pl-ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring__track { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 3; }
.pl-ring__prog {
    fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
    transition: stroke-dashoffset .3s ease;
    filter: drop-shadow(0 0 7px rgba(226,35,26,.75));
}
.pl-ring__gear {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: var(--brand); font-size: 1.65rem; text-shadow: 0 0 18px rgba(226,35,26,.55);
    animation: plGearSpin 1.8s linear infinite;
}
@keyframes plGearSpin { to { transform: rotate(360deg); } }

.loader-brand { display: inline-flex; align-items: flex-end; gap: 6px; line-height: 1; }
.loader-brand .lb-mark {
    display: inline-flex;
    font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 8vw, 3.6rem);
    color: var(--brand); letter-spacing: 2px;
    animation: loaderGlow 1.4s ease-in-out .5s infinite alternate;
}
.loader-brand .lb-mark span {
    display: inline-block; opacity: 0; transform: translateY(18px);
    animation: plLetterIn .38s cubic-bezier(.2,.8,.2,1) forwards;
}
.loader-brand .lb-mark span:nth-child(1) { animation-delay: .04s; }
.loader-brand .lb-mark span:nth-child(2) { animation-delay: .08s; }
.loader-brand .lb-mark span:nth-child(3) { animation-delay: .12s; }
@keyframes plLetterIn { to { opacity: 1; transform: none; } }
.loader-brand .lb-sub {
    font-family: var(--font-head); font-weight: 600; font-size: clamp(.92rem, 3vw, 1.25rem);
    color: #fff; letter-spacing: 6px; padding-bottom: 6px;
    opacity: 0; animation: plFadeIn .36s ease .16s forwards;
}
@keyframes plFadeIn { to { opacity: 1; } }
@keyframes loaderGlow {
    from { text-shadow: 0 0 0 rgba(226,35,26,0); }
    to   { text-shadow: 0 0 26px rgba(226,35,26,.65); }
}

.pl-percent {
    margin-top: 20px; font-family: var(--font-head); font-variant-numeric: tabular-nums;
    letter-spacing: 1px; color: #666b76; opacity: 0; animation: plFadeIn .36s ease .2s forwards;
}
.pl-percent span:first-child { color: #fff; font-weight: 700; font-size: 1.05rem; }
.pl-percent .pl-percent__sign { font-size: .78rem; margin-left: 1px; }

.loader-tag {
    color: #8b909a; font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 14px;
    opacity: 0; animation: plFadeIn .36s ease .24s forwards;
}
@media (prefers-reduced-motion: reduce) {
    .loader-brand .lb-mark, .loader-brand .lb-mark span, .loader-brand .lb-sub,
    .pl-percent, .loader-tag, .pl-ring__gear, .loader-inner { animation: none !important; opacity: 1 !important; transform: none !important; }
    .pl-panel { transition: transform .3s ease; }
}

/* ---------- Yardımcılar ---------- */
.text-brand { color: var(--brand) !important; }
.bg-ink { background: var(--ink) !important; }

@media (max-width: 991.98px) {
    .nav-menu { display: none; }
    .nav-actions .btn-quote:not(.mobile) { display: none; }
    .nav-burger { display: block; }
    .btn-brand { display: inline-block; margin-top: 8px; }
    .stats { background-attachment: scroll; }
    .about-badge { position: static; margin-top: 16px; display: inline-block; }
    .footer-top__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobilde üst siyah çubuk (telefon/e-posta/sosyal) kaldırılır — telefon/e-posta zaten
   footer'da, sosyal ikonlar mobil menüde mevcut; dar ekranda yer kaplamasın diye gizleniyor. */
@media (max-width: 767.98px) {
    .topbar { display: none; }
}
@media (max-width: 575.98px) {
    .footer-top__grid { grid-template-columns: 1fr; }
    .footer-bottom__row { justify-content: center; text-align: center; }
}
