
/* Design Tokens */
:root {
    --brand: #222831;          /* Dark Navy from palette */
    --brand-700: #393E46;      /* Slate from palette */
    --accent: #FFD369;         /* Warm yellow from palette */
    --accent-600: #E6C24F;     /* Darker accent for hover */
    --text: #222831;
    --muted-text: #393E46;
    --surface: #EEEEEE;        /* Light gray from palette */
    --surface-2: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 25px rgba(2, 6, 23, 0.15);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..800&display=swap');

html, body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand);
    letter-spacing: 0.1px;
    font-weight: 700;
}

/* Modern type scales */
.display-1 { font-size: clamp(2rem, 3.6vw + 1rem, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.display-2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted-text); }
.lead-lg { font-size: 1.1rem; line-height: 1.75; }

p { color: var(--muted-text); }

.text-warning { color: var(--accent) !important; }

/* Navigation */
.color-picker {
    background: linear-gradient(90deg, var(--brand), var(--brand-700));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    position: relative;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: color .2s ease;
}

.navbar .nav-link:hover {
    color: #fff !important;
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    color: #fff !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.9), rgba(255,255,255,.0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.navbar-brand img {
    height: 56px;
    width: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.logo-wrap {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05);
}

.logo-wrap img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    box-shadow: none;
}

/* Buttons */
.btn-accent {
    background: var(--accent);
    color: #1f1300;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-weight: 600;
}

.btn-accent:hover { background: var(--accent-600); color: #1a1200; }

/* Cards / Surfaces */
.surface {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Modern Carousel */
.modern-carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.modern-carousel .carousel-item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators .active { background-color: #fff; }

/* Footer */
footer.footer { padding: 1.25rem 0; }
footer.footer a { opacity: 0.9; }
footer.footer a:hover { opacity: 1; }

/* Split color effect for ÖZKAN USTA */
.split-color-text {
    display: inline-block;
    position: relative;
    font-weight: bold;
}

.split-color-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    color: var(--accent);
    overflow: hidden;
    z-index: 1;
}

.split-color-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: inherit;
    z-index: 2;
}

.call-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.call-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Images */
img.rounded, .img-fluid.rounded { border-radius: 14px !important; }

/* Utilities */
.section-title {
    font-weight: 700;
    color: var(--brand);
}

.lead-lg { font-size: 1.15rem; }

/* Home additions */
.brand-strip i { color: rgba(255,255,255,0.9); }
.surface p { color: var(--muted-text); }
.surface h5, .surface h3 { color: var(--brand); }

/* Before/After thumbnails */
.surface .row.g-2 img { width: 100%; height: 120px; object-fit: cover; }

@media (max-width: 767.98px) {
    .surface .row.g-2 img { height: 100px; }
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .navbar-brand img { height: 44px; }
    .logo-wrap { height: 44px; width: 44px; }
    .logo-wrap img { height: 28px; width: 28px; }
}

@media (max-width: 767.98px) {
    .lead-lg { font-size: 1rem; }
}

/* Enhanced Navbar Styles */
/* Palette unify for navbar */
.custom-navbar {
    background: linear-gradient(90deg, var(--brand), var(--brand-700));
}

.custom-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-navbar .navbar-brand img {
    height: 50px;
    width: auto;
    max-width: 80px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.custom-navbar .navbar-brand-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.custom-navbar .contact-button {
    background-color: var(--accent);
    color: #1f1300;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.custom-navbar .contact-button:hover {
    background-color: var(--accent-600);
    color: #1a1200;
}

.custom-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.custom-navbar .nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.custom-navbar .nav-links a:hover,
.custom-navbar .nav-links a.active {
    color: white;
}

.custom-navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.custom-navbar .nav-links a:hover::after,
.custom-navbar .nav-links a.active::after {
    transform: scaleX(1);
}

.custom-navbar .navbar-toggler {
    border: none;
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-brand-text {
        font-size: 1rem;
    }

    .custom-navbar .nav-links {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
        align-items: flex-start;
    }

    .custom-navbar .nav-links a {
        padding: 0.25rem 0;
    }

    .custom-navbar .collapse.navbar-collapse {
        width: 100%;
    }
}

/* === Global Design Refinements === */
:root {
    --space-1: .25rem;  /* 4px */
    --space-2: .5rem;   /* 8px */
    --space-3: .75rem;  /* 12px */
    --space-4: 1rem;    /* 16px */
    --space-5: 1.5rem;  /* 24px */
    --space-6: 2rem;    /* 32px */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --elev-1: 0 8px 20px rgba(2,6,23,.10);
    --elev-2: 0 12px 30px rgba(2,6,23,.16);
}

body { line-height: 1.6; }

h1 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + .9rem, 2rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + .8rem, 1.4rem); }

.container, .container-fluid { max-width: 1280px; }
.section { padding-block: var(--space-6); }

.surface {
    border-radius: var(--radius-md);
    box-shadow: var(--elev-1);
    transition: transform .15s ease, box-shadow .15s ease;
}
.surface:hover {
    transform: translateY(-2px);
    box-shadow: var(--elev-2);
}

.btn-ghost  { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--surface); box-shadow: var(--elev-1); }

.custom-navbar { position: sticky; top: 0; z-index: 1030; backdrop-filter: saturate(120%) blur(6px); }
.custom-navbar.elevated { box-shadow: 0 6px 18px rgba(2,6,23,.18); }
.custom-navbar .nav-links a { letter-spacing: .2px; }
.custom-navbar .nav-links a::after { height: 2px; background-color: var(--accent); }
@media (max-width: 991.98px) { .custom-navbar .nav-links a { padding-block: .35rem; } }

/* Mobile brand inline call link */
.call-inline { color: rgba(255,255,255,.95); text-decoration: none; font-weight: 600; }
.call-inline i { margin-right: 6px; color: var(--accent); }
.call-inline:hover { text-decoration: underline; }

.modern-carousel { border-radius: var(--radius-lg); height: 100%; }
.modern-carousel .carousel-inner { height: 100%; }
.modern-carousel .carousel-item { height: 100%; }
.modern-carousel .carousel-item img { height: 100%; object-fit: cover; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

.gallery-thumb { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); width: 100%; }
.modal .carousel-item img { max-height: 80vh; object-fit: contain; background: #000; }

.icon-box { text-align: center; padding: var(--space-4); }
.icon-box i { color: var(--accent); margin-bottom: var(--space-2); }
.icon-box h5, .icon-box h3 { color: var(--brand); margin-bottom: var(--space-2); }
.icon-box p { color: var(--muted-text); margin: 0; }

.accordion.surface .accordion-item { border: none; }
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--surface); color: var(--brand); }

footer.footer { border-top: 1px solid rgba(255,255,255,.08); }
footer.footer .pill {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff; border-radius: 12px; padding: .55rem .85rem; display: inline-flex; gap: 8px;
    transition: background-color .2s ease, transform .1s ease;
}
footer.footer .pill:hover { background: var(--accent); color: #1a1200; transform: translateY(-1px); }
@media (max-width: 767.98px) { footer.footer .row > [class^='col'] { text-align: center; margin-bottom: .75rem; } }

.on-dark h3,.on-dark h4 { color: #fff; }
.on-dark p, .on-dark a { color: rgba(255,255,255,.9); }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.max-w-prose { max-width: 70ch; }
.shadow-1 { box-shadow: var(--elev-1); }
.round-lg { border-radius: var(--radius-lg); }

/* Before/After slider */
.ba-slider { position: relative; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--elev-1); }
.ba-slider img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-slider .ba-after img { width: 200%; height: 100%; object-fit: cover; transform: translateX(-50%); }
.ba-slider .ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba-slider .ba-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: var(--elev-1); }
.ba-slider input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; background: transparent; cursor: ew-resize; }
.ba-slider input[type="range"]::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; background: transparent; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* Counters */
.counter { font-size: clamp(1.4rem, 2.4vw + .8rem, 2rem); font-weight: 800; color: var(--brand); }
.counter-label { color: var(--muted-text); }

/* Compact metric cards */
.metric { display: flex; align-items: center; gap: 12px; padding: .75rem 1rem; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--elev-1); }
.metric i { color: var(--accent); font-size: 1.25rem; animation: pulse 2.2s ease-in-out infinite; }
.metric .counter { line-height: 1; margin: 0; font-size: clamp(1.3rem, 2vw + .7rem, 1.75rem); }
.metric .meta { display: flex; flex-direction: column; }
.metric .meta .counter-label { font-size: .9rem; margin: 0; }
.metric small { color: var(--muted-text); font-size: .85rem; }

@keyframes pulse { 0%,100%{ transform: translateZ(0) scale(1);} 50%{ transform: translateZ(0) scale(1.06);} }

/* Back to top */
.back-to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--accent); color: #1a1200; box-shadow: var(--elev-2); z-index: 1040; }
.back-to-top.show { display: inline-flex; }

/* Blur-up images */
.blur-up { filter: blur(8px); transform: scale(1.02); transition: filter .4s ease, transform .4s ease; }
.blur-up.lazyloaded { filter: blur(0); transform: none; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 12px; display: none; gap: 8px; justify-content: center; z-index: 1040; }
.sticky-cta .cta { background: var(--accent); color: #1a1200; border: none; border-radius: 999px; padding: .6rem .9rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--elev-2); }
.sticky-cta .cta.whatsapp { background: #25D366; color: #092b17; }
.sticky-cta .cta.directions { background: #60a5fa; color: #041422; }
@media (max-width: 991.98px) { .sticky-cta { display: flex; } }

/* Parts (Yedek Parça) cards */
.part-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); box-shadow: var(--elev-1); padding: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.part-card:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }
.part-card .brand { display: inline-flex; align-items: center; gap: 6px; padding: .25rem .5rem; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: var(--brand); font-weight: 600; font-size: .85rem; }
.part-card .status { position: absolute; top: 10px; right: 10px; border-radius: 999px; padding: .25rem .6rem; font-size: .8rem; border: 1px solid var(--border); background: var(--surface); }
.part-card .status.new { background: #dcfce7; border-color: #86efac; color: #065f46; }
.part-card .status.used { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
.part-card .status.repaired { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.part-card h5 { margin: .5rem 0 .25rem; color: var(--brand); }
.part-card ul { list-style: none; padding: 0; margin: .25rem 0 .75rem; }
.part-card ul li { display: flex; align-items: center; gap: 8px; color: var(--muted-text); font-size: .95rem; }
.part-card ul li i { color: var(--accent); }

/* Footer modern styles */
footer.footer {
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.footer h3 {
    color: #fff;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

footer.footer p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

/* Social links container */
footer.footer .d-flex {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Social link pills */
footer.footer .d-flex a {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}

footer.footer .d-flex a:hover {
    background: var(--accent);
    color: #1a1200 !important;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Footer responsiveness */
@media (max-width: 767.98px) {
    footer.footer .row > [class^="col"] {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    footer.footer .d-flex {
        justify-content: center;
    }
}