/* Kardeşler Tesisat - Plumbera-Inspired Design System */
:root {
    --primary-blue: #1b5bf7;
    --primary-blue-hover: #1449cf;
    --primary-yellow: #feca00;
    --primary-yellow-hover: #dfb200;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
}
/* ========== UTILITIES & REFACTORING ========== */
.top-bar-link { color: inherit !important; transition: color 0.2s; }
.top-bar-link:hover { color: var(--primary-blue) !important; }

.section-badge-premium { color: #0f766e; letter-spacing: 1px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.section-title-xl { font-size: 2.8rem; line-height: 1.1; font-weight: 800; }
.section-title-lg { font-size: 2.6rem; font-weight: 800; }
.text-gray-muted { color: var(--text-gray); }

.footer-brand-logo { color: var(--primary-blue) !important; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.footer-description { font-size: 0.95rem; line-height: 1.6; color: var(--text-gray); }
.footer-contact-item strong { color: var(--text-dark); }
.footer-address { line-height: 1.5; }

.contact-card-box { background: var(--bg-light); border-radius: 12px; padding: 35px 25px; text-align: center; height: 100%; }
.contact-card-link { color: var(--primary-blue); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.contact-card-text { color: var(--text-gray); margin: 0; font-weight: 600; }
.contact-card-subtext { color: var(--text-gray); margin: 0; font-size: 0.95rem; }

.nav-call-text { text-align: left; line-height: 1.2; }
.nav-call-small { font-weight: 600; font-size: 1rem; }

.map-container-box { border-radius: 15px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========== TOP BAR ========== */
.top-bar {
    background-color: var(--white);
    font-size: 0.85rem;
    color: var(--text-gray);
    padding: 0.8rem 0;
}
.top-bar a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.top-bar a:hover { color: var(--primary-blue); }
.top-bar-icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 6px;
}

/* ========== NAVBAR (Contained, Sticky, Overlapping Hero) ========== */
.navbar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    position: sticky;
    top: 10px;
    z-index: 1030;
    margin-bottom: -30px; /* Pull next section up so navbar overlaps hero */
}
.navbar-main {
    background-color: var(--primary-yellow);
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.navbar-brand {
    font-weight: 800;
    color: var(--text-dark) !important;
    font-size: 1.4rem;
    padding: 0 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand img {
    height: 40px;
}
.nav-link {
    font-weight: 800;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1.4rem 0.5rem !important;
    position: relative;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--text-dark) !important; }

.btn-nav-call {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    border-radius: 0 12px 12px 0;
    font-weight: 800;
    padding: 1.15rem 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: none;
}
.btn-nav-call:hover { background-color: var(--primary-blue-hover); }
.btn-nav-call svg { width: 22px; height: 22px; }

/* ========== HERO SECTION ========== */
.hero-section {
    background-color: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: 60px; /* Space for the overlapping navbar */
}
.hero-blob {
    position: absolute;
    top: 55%;
    right: 5%; 
    transform: translateY(-50%);
    width: 45%; /* Smoothed down from 55% */
    max-width: 650px; /* Scaled down from 800px */
    aspect-ratio: 4/3;
    z-index: 1;
}
.hero-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 43% 57% 70% 30% / 39% 36% 64% 61%;
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.hero-blob::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    border-radius: 43% 57% 70% 30% / 39% 36% 64% 61%;
    background-color: var(--primary-yellow);
    transform: scale(1.05) translate(-25px, 25px); /* Tightened as requested */
    z-index: 0;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(1.06); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}
.hero-badge {
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.hero-title {
    font-weight: 800;
    font-size: 3.8rem;
    line-height: 1.08;
    margin-bottom: 22px;
    text-transform: uppercase;
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-subtitle {
    font-size: 1.05rem;
    max-width: 460px;
    margin-bottom: 32px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero-cta {
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.btn-yellow {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    border: none;
    font-size: 1rem;
}
.btn-yellow:hover {
    background-color: var(--primary-yellow-hover);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 202, 0, 0.4);
}

@media (max-width: 991px) {
    .navbar-main { border-radius: 8px; flex-wrap: wrap; }
    .btn-nav-call { border-radius: 8px; width: 100%; justify-content: center; margin: 10px; }
    .hero-bg-img { position: relative; width: 100%; height: 280px; }
    .hero-bg-img::before { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-section { min-height: auto; }
}

/* ========== PAGE SECTIONS ========== */
.page-section {
    padding: 100px 0;
}
.section-badge-outline {
    border: 1px solid var(--border);
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ABOUT SECTION ========== */
.about-img-block {
    position: relative;
    display: inline-block;
}
.about-img-block img {
    border-radius: 15px;
    position: relative;
    z-index: 2;
}
.about-img-block::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-yellow);
    border-radius: 15px;
    z-index: -1;
}
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 35px;
}
.about-feature { flex: 1 1 40%; }
.about-feature-icon {
    width: 45px; height: 45px;
    border-radius: 8px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.about-feature-icon svg {
    width: 20px; height: 20px;
    stroke: #334155;
    fill: none;
    stroke-width: 1.5;
}
.about-feature h6 { font-weight: 800; font-size: 1rem; }
.about-feature p { font-size: 0.88rem; color: var(--text-gray); line-height: 1.5; }

/* ========== SERVICE DETAIL SECTIONS ========== */
.service-detail-section {
    padding: 90px 0;
}
.service-detail-section.bg-alt {
    background-color: var(--bg-light);
}
.service-detail-title {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.service-detail-title span {
    color: var(--text-gray);
}
.service-detail-text {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}
.service-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.service-check-list li {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.service-check-list li svg {
    color: var(--primary-yellow);
    stroke: var(--primary-yellow);
    flex-shrink: 0;
}

/* ========== BLOB IMAGE MASKS ========== */
.blob-mask {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}
.blob-mask img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}
.blob-1 img { border-radius: 43% 57% 70% 30% / 39% 36% 64% 61%; }
.blob-2 img { border-radius: 65% 35% 33% 67% / 51% 65% 35% 49%; }
.blob-3 img { border-radius: 30% 70% 32% 68% / 54% 28% 72% 46%; }
.blob-4 img { border-radius: 56% 44% 69% 31% / 30% 48% 52% 70%; }

.blob-mask::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

/* Yellow backgrounds match shape exactly, scale up, project bottom-left */
.blob-bg-yellow.blob-1::after { background-color: var(--primary-yellow); border-radius: 43% 57% 70% 30% / 39% 36% 64% 61%; transform: scale(1.05) translate(-15px, 15px); }
.blob-bg-yellow.blob-2::after { background-color: var(--primary-yellow); border-radius: 65% 35% 33% 67% / 51% 65% 35% 49%; transform: scale(1.05) translate(-15px, 15px); }
.blob-bg-yellow.blob-3::after { background-color: var(--primary-yellow); border-radius: 30% 70% 32% 68% / 54% 28% 72% 46%; transform: scale(1.05) translate(-15px, 15px); }
.blob-bg-yellow.blob-4::after { background-color: var(--primary-yellow); border-radius: 56% 44% 69% 31% / 30% 48% 52% 70%; transform: scale(1.05) translate(-15px, 15px); }

/* Blue backgrounds match shape exactly, scale up, project top-right */
.blob-bg-blue.blob-1::after { background-color: var(--primary-blue); border-radius: 43% 57% 70% 30% / 39% 36% 64% 61%; transform: scale(1.05) translate(15px, -15px); }
.blob-bg-blue.blob-2::after { background-color: var(--primary-blue); border-radius: 65% 35% 33% 67% / 51% 65% 35% 49%; transform: scale(1.05) translate(15px, -15px); }
.blob-bg-blue.blob-3::after { background-color: var(--primary-blue); border-radius: 30% 70% 32% 68% / 54% 28% 72% 46%; transform: scale(1.05) translate(15px, -15px); }
.blob-bg-blue.blob-4::after { background-color: var(--primary-blue); border-radius: 56% 44% 69% 31% / 30% 48% 52% 70%; transform: scale(1.05) translate(15px, -15px); }

/* ========== GALLERY ========== */
.gallery-section {
    background-color: var(--white);
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
}

/* ========== COUNTER SECTION ========== */
.counter-section {
    background-color: #1e293b;
    color: var(--white);
    padding: 100px 0;
}
.counter-item { text-align: center; }
.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary-yellow);
}
.counter-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ========== FAQ ========== */
.faq-section {
    background-color: var(--bg-light);
}
.faq-section .accordion-item {
    border: 1px solid var(--border);
    border-radius: 10px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-section .accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 1.2rem 1.5rem;
    background-color: var(--white);
}
.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: none;
}
.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border);
}
.faq-section .accordion-body {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 1.5rem 1.2rem;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0;
}
.cta-banner h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== INNER PAGE HEADER ========== */
.inner-header {
    background-color: var(--bg-light);
    padding: 100px 0 40px;
    border-bottom: 1px solid var(--border);
}
.inner-header h1 {
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 60px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}
footer h5 {
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ========== NEW ABOUT US LAYOUT ========== */
.stats-block {
    background-color: #eef5e9;
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: -80px; /* Overlap with huge cover image slightly if desired, or keep as a block */
    position: relative;
    z-index: 5;
}
.stats-number {
    color: #0f766e;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
}
.stats-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 5px;
}
.story-collage {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    justify-content: flex-end;
}
.story-collage img {
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.story-img-1 { width: 30%; height: 250px; }
.story-img-2 { width: 35%; height: 350px; border-radius: 20px 60px 20px 20px !important; }
.story-img-3 { width: 30%; height: 280px; border-radius: 20px 20px 60px 20px !important; }

@media (max-width: 991px) {
    .stats-block { margin-top: 0; padding: 40px 20px; }
    .story-collage { justify-content: center; margin-top: 40px; }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FLOATING CONTACT BUTTONS ========== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}
.floating-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    border: none;
    outline: none;
}
.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: #fff !important;
}
.floating-btn.wp { background-color: #25D366; }
.floating-btn.phone { background-color: var(--primary-blue); }
.floating-btn svg {
    width: 30px;
    height: 30px;
}
.floating-btn:active { transform: scale(0.9); }

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .navbar-main { 
        border-radius: 8px; 
        flex-wrap: wrap; /* Allow wrapping for the collapse */
        justify-content: space-between;
        padding: 8px 15px;
        min-height: 60px;
    }
    .navbar-brand { 
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
    }
    .navbar-brand img.mobile-logo { 
        height: 30px; 
        width: auto; 
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px;
        margin: 0 !important;
    }

    .navbar-collapse {
        flex-basis: 100%;
        text-align: left;
        padding: 15px 15px 25px;
        max-height: 85vh; /* Ensure it stays within viewport */
        overflow-y: auto; /* Enable scrolling if content is too tall */
    }
    
    .btn-mobile-nav {
        background-color: var(--primary-blue);
        color: var(--white) !important;
        font-weight: 800;
        padding: 1rem 1.5rem;
        border-radius: 50px;
        text-align: center;
        text-decoration: none;
        display: block;
        margin-bottom: 25px;
        transition: background-color 0.2s;
    }
    .btn-mobile-nav:hover {
        background-color: var(--primary-blue-hover);
    }
    
    .mobile-nav-info {
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 20px;
        font-size: 0.85rem;
        color: var(--text-dark);
        text-align: left;
    }
    .mobile-nav-info p {
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    .mobile-nav-info a {
        color: inherit;
        text-decoration: none;
    }

    .btn-nav-call { 
        border-radius: 8px; 
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 0 0 auto;
    }
    .btn-nav-call span br, .btn-nav-call span small { display: none; }

    .hero-section { 
        min-height: auto; 
        padding-top: 100px;
        padding-bottom: 60px;
        flex-direction: column;
        text-align: center;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { margin: 0 auto 30px; }
    
    .hero-blob {
        position: relative;
        top: 0; right: 0;
        transform: none;
        width: 85%;
        max-width: 400px;
        margin: 40px auto 0;
        display: block !important;
    }
    
    .about-img-block {
        padding: 0 15px;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .service-detail-title { font-size: 1.8rem; text-align: center; }
    .service-detail-text { text-align: center; }
    .service-check-list { display: inline-block; text-align: left; }
    
    .blob-mask {
        margin: 0 auto 30px;
        max-width: 85%;
    }
    
    .counter-number { font-size: 2.2rem; }
    .page-section { padding: 60px 0; }
    .service-detail-section { padding: 40px 0; }
    
    .service-detail-section .btn-yellow {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 30px auto 0;
        text-align: center;
    }
    
    .cta-banner { padding: 60px 0; }
    .cta-banner h2 { font-size: 1.8rem; }
    
    footer .navbar-brand img {
        height: 25px;
        width: auto;
    }
}
