/* 
 * Ankara Çatı Yalıtım & Su İzolasyonu
 * Clean Agency Design System (White, Soft Slate, Dark Grey, Crimson Red)
 */

:root {
    --primary-red: #e11d2e;
    --primary-red-hover: #b91221;
    --primary-red-light: #fdf2f2;
    --dark-grey: #111827;
    --light-slate: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #128c7e;
    --whatsapp-soft-bg: rgba(37, 211, 102, 0.09);
    --font-main: 'Outfit', sans-serif;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--dark-grey);
    overflow-x: hidden;
    padding-bottom: 0;
    line-height: 1.6;
}

/* Mobile responsive padding compensation for sticky bottom CTA bar */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;
    }
}

/* Section Backgrounds */
.bg-light-slate {
    background-color: var(--light-slate);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-grey);
    letter-spacing: -0.02em;
}
.text-muted-custom {
    color: var(--text-muted);
}

/* Main Navbar */
.navbar-custom {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.navbar-custom .nav-link {
    color: var(--dark-grey) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--primary-red) !important;
}
/* Alt çizgi animasyonu – yalnızca normal nav-link'ler için */
.navbar-custom .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 15px;
    background-color: var(--primary-red);
    transition: width 0.2s ease;
}
.navbar-custom .nav-link:not(.dropdown-toggle).active::after,
.navbar-custom .nav-link:not(.dropdown-toggle):hover::after {
    width: calc(100% - 30px);
}

/* Dropdown-toggle (Hizmetler): Bootstrap ok işaretini koru, çizgi yalnızca hover'da */
/* NOT: Bootstrap zaten .dropdown-toggle::after ile ok ikonunu ekliyor, biz dokunmuyoruz */
.navbar-custom .nav-item.dropdown:hover > .nav-link.dropdown-toggle,
.navbar-custom .nav-link.dropdown-toggle:hover,
.navbar-custom .nav-link.dropdown-toggle:focus {
    color: var(--primary-red) !important;
}
/* Hizmetler aktif sayfada renk kırmızı olsun ama çizgi yalnızca hover'da */
.navbar-custom .nav-link.dropdown-toggle.active {
    color: var(--primary-red) !important;
}

/* Dropdown Menü Stilleri – Bootstrap mavi renklerini override et */
.navbar-custom .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.12);
    padding: 8px 0;
}
.navbar-custom .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-grey);
    padding: 9px 20px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background-color: var(--primary-red-light) !important;
    color: var(--primary-red) !important;
}
.navbar-custom .dropdown-item:active,
.navbar-custom .dropdown-item.active {
    background-color: var(--primary-red) !important;
    color: #fff !important;
}

/* Header Buttons */
.btn-outline-red {
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    background-color: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.btn-outline-red:hover {
    color: var(--white);
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-soft-green {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.btn-soft-green:hover {
    background-color: #bcd0c7;
    color: #0c4128;
}

/* Hero Section */
.hero-clean {
    background-color: var(--white);
    padding-top: 100px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}
.hero-image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.hero-image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Card Designs */
.clean-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.clean-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(225, 29, 46, 0.2);
}
.accent-line {
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}
.clean-card:hover .accent-line {
    width: 65px;
}

/* Interactive Before-After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.after-image {
    border-right: 3px solid var(--primary-red);
}
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-red);
    pointer-events: none;
    z-index: 5;
}
.slider-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(225, 29, 46, 0.3);
    z-index: 10;
    border: 3px solid var(--white);
}

/* Call To Action Red-Gradient Banner */
.cta-gradient-section {
    background: linear-gradient(135deg, #e11d2e 0%, #a80e1a 100%);
    color: var(--white);
}

/* Floating Actions */
.whatsapp-float-clean {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    font-size: 30px;
    color: var(--white);
    z-index: 999;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}
.whatsapp-float-clean:hover {
    background-color: var(--whatsapp-green-hover);
    transform: scale(1.08);
}

.call-float-clean {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    font-size: 26px;
    color: var(--white);
    z-index: 999;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(225, 29, 46, 0.3);
}
.call-float-clean:hover {
    background-color: var(--primary-red-hover);
    transform: scale(1.08);
}

/* Mobile Sticky Bottom CTA Bar with 3 Columns */
.mobile-cta-bar-clean {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 60px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}
.mobile-cta-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}
.mobile-cta-call {
    color: var(--primary-red);
    border-right: 1px solid var(--border-color);
}
.mobile-cta-call:hover {
    background-color: var(--primary-red-light);
}
.mobile-cta-whatsapp {
    color: var(--whatsapp-green);
    border-right: 1px solid var(--border-color);
}
.mobile-cta-whatsapp:hover {
    background-color: var(--whatsapp-soft-bg);
}
.mobile-cta-quote {
    color: var(--white);
    background-color: var(--primary-red);
}
.mobile-cta-quote:hover {
    background-color: var(--primary-red-hover);
}

/* Custom Buttons */
.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-red:hover {
    background-color: var(--primary-red-hover);
    color: var(--white);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-10deg) scale(1.05); }
    20% { transform: rotate(10deg) scale(1.05); }
    30% { transform: rotate(-10deg) scale(1.05); }
    40% { transform: rotate(10deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
}
.animate-phone {
    animation: phone-ring 1.8s infinite ease;
}

/* ================================================
   CUSTOM ANIMATED HAMBURGER BUTTON (Mobile Nav)
   ================================================ */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-right: 12px;
}
.nav-hamburger:hover,
.nav-hamburger:focus {
    outline: none;
    border-color: #e11d2e;
    box-shadow: 0 2px 12px rgba(225,29,46,0.13);
    background: #fff0f1;
}

/* The three lines */
.ham-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                opacity 0.25s ease,
                width 0.3s ease;
    transform-origin: center;
}

/* Open / X state */
.nav-hamburger.is-open .ham-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #e11d2e;
}
.nav-hamburger.is-open .ham-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-hamburger.is-open .ham-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #e11d2e;
}
.nav-hamburger.is-open {
    border-color: #e11d2e;
    background: #fff0f1;
}

/* ================================================
   SITE TOPBAR
   ================================================ */
.site-topbar {
    background: var(--primary-red);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 0 0;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    min-height: 36px;
    overflow: hidden;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Topbar links / info items */
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.2px;
}
.topbar-item i {
    font-size: 0.7rem;
    opacity: 0.9;
}
a.topbar-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
}

/* WhatsApp pill */
.topbar-wa {
    background: #ffffff;
    color: var(--dark-grey) !important;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
}
.topbar-wa i { 
    opacity: 1; 
    font-size: 0.85rem;
    color: var(--whatsapp-green) !important;
}
.topbar-wa:hover {
    background: var(--light-slate) !important;
    color: var(--dark-grey) !important;
}

/* Divider */
.topbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.25);
    margin: 0 6px;
}

/* Social icon buttons */
.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.topbar-social:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
}

/* Mobile: scroll horizontally if items overflow */
@media (max-width: 575.98px) {
    .topbar-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .topbar-inner::-webkit-scrollbar { display: none; }
    .topbar-item {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ================================================
   CONTACT PAGE STYLES
   ================================================ */
.contact-form-control {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--dark-grey);
    transition: all 0.25s ease;
}
.contact-form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-red);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.1);
}
.contact-form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.contact-info-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.contact-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.contact-icon-red {
    background-color: var(--primary-red-light);
    color: var(--primary-red);
}
.contact-icon-green {
    background-color: var(--whatsapp-soft-bg);
    color: var(--whatsapp-green);
}
.contact-icon-slate {
    background-color: #f1f5f9;
    color: var(--text-muted);
}

.contact-info-link {
    color: var(--dark-grey);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-info-link:hover {
    color: var(--primary-red);
}
.contact-info-link.wa-link:hover {
    color: var(--whatsapp-green);
}

/* ============================================
   SERVICE DETAIL PAGE - Modern Redesign
   ============================================ */

/* --- Hero Banner --- */
.service-hero {
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}
.service-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    filter: brightness(0.55);
    z-index: 1;
}
.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10,10,20,0.82) 0%, rgba(10,10,20,0.45) 100%);
    z-index: 2;
}
.service-hero-stat {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.12);
}
.min-vh-service {
    min-height: 380px;
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* --- Service Content Cards --- */
.svc-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    overflow: hidden;
}
.svc-card-header {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-grey);
    background: #fafbfc;
}
.svc-card-body {
    padding: 28px;
}

/* --- Service Content Typography --- */
.service-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.97rem;
}
.service-content p { margin-bottom: 1rem; }
.service-content strong { color: var(--dark-grey); }

/* --- Feature Items --- */
.feature-item {
    transition: all 0.2s ease;
}
.feature-item:hover {
    background: #fff0f1 !important;
    border-left-color: var(--primary-red) !important;
    transform: translateX(3px);
}
.feature-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}
.fw-medium { font-weight: 500; }

/* --- Process Timeline Modern --- */
.process-timeline-modern {
    padding-left: 0;
}
.process-step {
    position: relative;
}
.process-line {
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-red), rgba(225,29,46,0.1));
    z-index: 0;
}
.process-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(225,29,46,0.3);
    z-index: 1;
    position: relative;
}

/* --- Modern FAQ Accordion --- */
.accordion-item-modern {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}
.accordion-item-modern:hover {
    border-color: rgba(225,29,46,0.2);
}
.accordion-btn-modern {
    background: #fafbfc;
    color: var(--dark-grey);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.accordion-btn-modern.expanded,
.accordion-btn-modern[aria-expanded="true"] {
    background: var(--primary-red-light);
    color: var(--primary-red);
}
.accordion-icon-modern {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    color: var(--primary-red);
}
.accordion-btn-modern[aria-expanded="true"] .accordion-icon-modern {
    transform: rotate(180deg);
}

/* --- Trust Bar --- */
.svc-trust-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 28px !important;
    padding: 24px !important;
}
.trust-item {
    flex: 1 0 120px;
    max-width: 150px;
    text-align: center;
}
.trust-item i {
    font-size: 1.75rem !important;
    margin-bottom: 12px !important;
    color: var(--primary-red) !important;
}
.trust-item span {
    color: var(--dark-grey) !important;
    font-size: 0.825rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

/* --- Sidebar --- */
.sidebar-sticky {
    position: sticky;
    top: 130px;
}

.svc-sidebar-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Form card special styling */
.svc-form-card {
    border-top: 3px solid var(--primary-red);
}
.form-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form inputs in sidebar */
.svc-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.875rem;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}
.svc-input:focus {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(225,29,46,0.08);
}

/* Service list links in sidebar */
.svc-list-link {
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 0.88rem;
}
.svc-list-link:hover {
    background: var(--primary-red-light);
    color: var(--primary-red);
}
.svc-list-link-active {
    background: var(--primary-red) !important;
    color: #fff !important;
}
.svc-list-link-active:hover {
    background: var(--primary-red-hover) !important;
    color: #fff !important;
}

/* --- Mobile Adjustments --- */
@media (max-width: 991.98px) {
    .service-hero {
        min-height: 360px;
        padding: 60px 0 50px;
    }
    .sidebar-sticky {
        position: static;
    }
    .svc-trust-bar {
        gap: 20px !important;
    }
}
@media (max-width: 767.98px) {
    .service-hero {
        min-height: 300px;
        padding: 50px 0 40px;
    }
    .service-hero h1 {
        font-size: 1.8rem !important;
    }
    .svc-card-body {
        padding: 20px;
    }
}

/* --- Hero Clean Title Responsiveness --- */
.hero-clean-title {
    font-size: 3.2rem;
    line-height: 1.15;
}
@media (max-width: 991.98px) {
    .hero-clean-title {
        font-size: 2.5rem;
    }
}
@media (max-width: 767.98px) {
    .hero-clean-title {
        font-size: 1.85rem !important; /* Mobile font size reduced to fit in 2 lines */
        line-height: 1.25 !important;
    }
    .hero-clean {
        padding-top: 35px !important;
        padding-bottom: 45px !important;
    }
}


