/* FINAL CORRECTED STYLE CSS - NO BLUE - SOLID FOOTER */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800&display=swap');

:root {
    /* RENK PALETİ: MAVİ YOK - SADECE ANTRASİT VE GRİ */

    /* Ana Renk (Primary) */
    --primary-color: #333333;
    /* Antrasit */
    --primary-hover: #111111;

    /* Vurgu (Accent) */
    --accent-color: #666666;
    --accent-light: #999999;

    /* Zeminler */
    --bg-body: #ffffff;
    --bg-light: #f4f4f4;

    /* Metinler */
    --text-main: #333333;
    --text-muted: #777777;

    --border-color: #e5e5e5;
}

body {
    font-family: 'Hanken Grotesk', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

/* --- BOOTSTRAP OVERRIDES --- */
.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.badge-primary {
    background-color: var(--primary-color) !important;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* --- HERO CAROUSEL --- */
#heroCarousel .carousel-item {
    background: #fff;
}

#heroCarousel .carousel-item:not(.active) {
    visibility: hidden;
}

#heroCarousel .carousel-item.active,
#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev {
    visibility: visible;
}

#heroCarousel .hero-wrapper {
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
}

@media (max-width: 768px) {
    #heroCarousel .hero-wrapper {
        min-height: auto;
        max-height: none;
    }
}

/* --- COMPONENTS --- */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    z-index: 1050 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
}

/* Force all content sections below navbar in stacking order */
section,
header.hero-wrapper,
.page-header {
    position: relative;
    z-index: 0;
}

footer.footer-solid {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 1.5rem;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn {
    border-radius: 4px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.page-header {
    background-color: var(--bg-light);
    padding: 80px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.card {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Proje Kartları - Görseller her zaman alana tam oturur */
.group img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background: #fff;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.card:hover .icon-box {
    background-color: var(--primary-color);
    color: #fff;
}

.grayscale-img {
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.group:hover .grayscale-img {
    filter: grayscale(0%);
}

/* --- FOOTER SOLID (Concrete Style) --- */
footer.footer-solid {
    background-color: #e9ecef;
    /* Beton Grisi / Açık Gri - İç karartmaz */
    color: #495057;
    /* Koyu Gri Metin - Okunabilir */
    padding-top: 0;
    /* Üstteki renkli şerit için */
    border-top: 4px solid var(--primary-color);
    /* Üstte sağlam bir çizgi */
}

.footer-cta {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: #fff;
}

.footer-content {
    padding: 60px 0 30px;
}

footer.footer-solid h5,
footer.footer-solid h6 {
    color: #212529 !important;
    /* Başlıklar Simsiyah */
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer.footer-solid a {
    color: #495057 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

footer.footer-solid a:hover {
    color: #000 !important;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #ced4da;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Sosyal İkonlar (Koyu) */
footer .btn-social {
    color: #333;
    border: 2px solid #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    /* Köşeli/Sağlam */
    transition: all 0.2s ease;
}

footer .btn-social:hover {
    background-color: #333;
    color: #fff;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- GALLERY --- */
.gallery-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-img {
    height: 280px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-caption {
    color: #ccc;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* --- TEAM CARDS --- */
.team-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #fff;
}

.team-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.team-card:hover .team-img-wrapper {
    border-color: var(--primary-color);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

/* --- COUNTER --- */
.counter-box {
    padding: 1rem;
}

/* --- GLOBAL RESPONSIVE FIX --- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

.container {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .page-header {
        padding: 50px 0;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .footer-content {
        padding: 40px 0 20px;
    }
    .footer-cta h3 {
        font-size: 1.3rem;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .display-5 {
        font-size: 1.8rem;
    }
    #heroCarousel .hero-wrapper {
        min-height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-content { max-width: 95%; }
    .lightbox-close { top: -40px; font-size: 2rem; }

    .gallery-img { height: 200px; }

    .team-img-wrapper { width: 140px; height: 140px; }

    /* Hero mobile */
    .display-3 {
        font-size: 1.6rem;
    }
    #heroCarousel .hero-wrapper .col-lg-7 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .page-header {
        padding: 40px 15px;
    }
    .page-header h1 {
        font-size: 1.75rem;
    }
    .page-header .lead {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }
    .display-5 {
        font-size: 1.5rem;
    }
    .fs-3 {
        font-size: 1.2rem !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 8px 0;
    }

    .card-service {
        padding: 1.5rem;
    }

    .footer-cta {
        padding: 25px 0;
    }
    .footer-cta h3 {
        font-size: 1.1rem;
    }
    .footer-cta p {
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 30px 0 15px;
    }

    footer.footer-solid .row.g-5 {
        --bs-gutter-y: 2rem;
    }

    .group img {
        height: 220px !important;
    }

    section.py-5, section.py-6 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }

    /* iframe maps */
    iframe {
        max-width: 100%;
    }

    /* Process steps - stack on mobile */
    .step-container .col-md-3 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 30px 10px;
    }
    .page-header h1 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }
    .display-5 {
        font-size: 1.3rem;
    }

    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .group img {
        height: 180px !important;
    }

    .icon-box {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .team-img-wrapper {
        width: 120px;
        height: 120px;
    }

    .team-card {
        padding: 1.5rem 1rem;
    }

    .gallery-img {
        height: 160px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    footer .btn-social {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}