/*
Theme Name: Carav Parke Premium Theme
Theme URI: https://caravparke.com
Description: Carav Parke için özel olarak tasarlanmış, Apple ve Linear tasarım dilini yansıtan ultra-premium WordPress teması.
Author: Harun Carav & Antigravity
Author URI: https://caravparke.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, custom-menu, post-thumbnails, translation-ready, woocommerce
Text Domain: carav-parke
*/

/* -------------------------------------------------------------
 * PREMIUM COLOR PALETTE & DESIGN TOKENS
 * ------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --color-primary: #3d2516;        /* Warm Dark Walnut Oak */
    --color-primary-rgb: 61, 37, 22;
    --color-secondary: #cfa87c;      /* Premium Golden Oak/Brass */
    --color-secondary-rgb: 207, 168, 124;
    --color-accent: #e5c199;         /* Soft Cream Oak */
    --color-accent-rgb: 229, 193, 153;
    
    /* Neutral Dark (Linear/Apple style) */
    --color-bg-dark: #0a0908;
    --color-card-dark: #12100e;
    --color-text-dark: #f5f5f7;
    
    /* Neutral Light (Apple style) */
    --color-bg-light: #faf9f6;       /* Alabaster warm white */
    --color-card-light: #ffffff;
    --color-text-light: #1d1d1f;      /* Apple deep charcoal */
    --color-text-muted: #86868b;      /* Muted gray */
    
    /* State Colors */
    --color-success: #25d366;        /* WhatsApp Green */
    --color-warning: #ff9500;
    --color-error: #ff3b30;
    --color-info: #007aff;
    
    /* Layout & Spacing */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Transitions & Micro-Interactions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elastic: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --blur-overlay: blur(20px);
}

/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary);
}

/* Container Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Next.js-like Loading Mask */
body.is-loading {
    opacity: 0;
}

body.js-ready {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

/* -------------------------------------------------------------
 * PREMIUM CORE LAYOUT UTILITIES
 * ------------------------------------------------------------- */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-overlay);
    -webkit-backdrop-filter: var(--blur-overlay);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------------------------------------------------
 * BUTTONS
 * ------------------------------------------------------------- */
.btn-premium {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 12px 24px;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-premium-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
}

.btn-premium-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(207, 168, 124, 0.25);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-premium-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * GLASSMORPHISM FIXED HEADER
 * ------------------------------------------------------------- */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-header.header-scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* Logo Design */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-branding .site-title-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.site-branding .site-title-link .logo-accent {
    color: var(--color-secondary);
}

/* Navigation Menu */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 18px;
    height: 100%;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem; /* Sized down slightly for optimal fit */
    color: var(--color-text-light);
    position: relative;
    padding: 8px 0;
    white-space: nowrap; /* Prevent items from wrapping into 2 lines */
    display: block;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--color-secondary);
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-actions .call-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    white-space: nowrap; /* Prevent phone number wrapping */
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.header-actions .call-btn:hover {
    color: var(--color-secondary);
}

.header-cta-btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    border-radius: var(--border-radius-full) !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.menu-toggle .hamburger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

/* Hamburger transition to close X */
.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------------------------------
 * PREMIUM DARK FOOTER
 * ------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    padding: 80px 0 100px 0; /* Add bottom padding to avoid mobile sticky bar block */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--color-text-dark);
}

.site-footer a:hover {
    color: var(--color-secondary);
}

.main-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col .footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--color-secondary);
}

.brand-col .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 16px;
}

.brand-col .footer-logo span {
    color: var(--color-secondary);
}

.brand-col .brand-tagline {
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 20px;
}

.brand-col .trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-col .rating-stars {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.brand-col .rating-text {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.contact-col .contact-detail {
    opacity: 0.8;
    line-height: 1.7;
}

.contact-col .footer-tel {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-socials .social-icon {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-secondary);
}

/* Map placeholder */
.footer-map-placeholder {
    display: block;
    background: linear-gradient(135deg, #181512 0%, #2b1f15 100%);
    border: 1px solid rgba(255,255,255,0.1);
    height: 120px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-map-placeholder:hover {
    transform: scale(1.02);
    border-color: var(--color-secondary);
}

.footer-map-placeholder .map-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

/* Programmatic SEO districts link block */
.districts-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    margin-bottom: 40px;
}

.districts-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
}

.districts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.district-link {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.district-link:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

.bottom-footer p {
    margin: 0;
}

/* -------------------------------------------------------------
 * MOBILE STICKY CRO BOTTOM ACTION BAR
 * ------------------------------------------------------------- */
.mobile-sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-overlay);
    -webkit-backdrop-filter: var(--blur-overlay);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.sticky-action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text-light);
}

.sticky-action-item svg {
    color: var(--color-primary);
}

.sticky-action-item.whatsapp-action {
    background-color: var(--color-success);
    color: #ffffff;
}

.sticky-action-item.whatsapp-action svg {
    color: #ffffff;
}

.sticky-action-item.quote-action {
    background-color: var(--color-primary);
    color: #ffffff;
}

.sticky-action-item.quote-action svg {
    color: var(--color-secondary);
}

/* -------------------------------------------------------------
 * ARTICLE & MAIN CONTENT BLOG GRID
 * ------------------------------------------------------------- */
.theme-default-index {
    max-width: 1100px;
}

.posts-grid article {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.posts-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(61, 37, 22, 0.08);
    border-color: rgba(207, 168, 124, 0.3);
}

.posts-grid article.glassmorphism {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* -------------------------------------------------------------
 * RESPONSIVENESS & MEDIA QUERIES
 * ------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Header menu styling on tablet / mobile overlay */
    .menu-toggle {
        display: flex;
        z-index: 1100;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        z-index: 1099;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        padding: 100px 40px 40px 40px;
        transition: var(--transition-smooth);
    }
    
    .main-navigation.menu-open {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
    }
    
    .header-actions .call-btn {
        display: none; /* Hide on smaller header to fit content */
    }
    
    /* Footer layout on tablet */
    .main-footer {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    /* Show mobile sticky CRO bar */
    .mobile-sticky-action-bar {
        display: flex;
    }
    
    .header-cta-btn {
        display: none; /* Hidden on mobile to let sticky action bar handle it */
    }
    
    /* Footer columns merge to single column */
    .main-footer {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bottom-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* -------------------------------------------------------------
 * WP ADMIN BAR OFFSET & MAIN CONTENT PADDING
 * ------------------------------------------------------------- */
#primary.site-main {
    padding-top: 80px; /* Leave space for the fixed header */
    min-height: 70vh;
}

body.admin-bar .premium-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .premium-header {
        top: 46px;
    }
    #primary.site-main {
        padding-top: 64px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .premium-header {
        position: absolute;
        top: 0;
    }
}

/* -------------------------------------------------------------
 * HOMEPAGE SPECIFIC STYLING
 * ------------------------------------------------------------- */
 
/* 1. Hero Section */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 1;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.google-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(207, 168, 124, 0.15);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(207, 168, 124, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.google-badge-inline .stars {
    color: #ffcc00;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-whatsapp-hero:hover {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: #ffffff !important;
}

/* 2. Brands Marquee */
.brands-marquee-section {
    padding: 40px 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-micro-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.brands-marquee-track {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    opacity: 0.45;
}

/* 3. Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 80px auto 48px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 4. Why Us Grid */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.why-card {
    padding: 40px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-4px);
}

.why-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.why-card p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* 5. Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-card {
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-secondary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 24px;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.service-link:hover {
    color: var(--color-primary);
}

/* 6. Calculator Section */
.calculator-section {
    padding: 80px 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    margin-top: 80px;
    margin-bottom: 80px;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-form-block {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.premium-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.premium-form input,
.premium-form select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.premium-form input:focus,
.premium-form select:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.1);
}

.premium-form select option {
    background-color: var(--color-bg-dark);
    color: #fff;
}

/* 7. AI Visualizer Section */
.ai-assistant-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 80px;
}

.ai-form-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.ai-placeholder-msg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--color-text-muted);
}

/* 8. Before After Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 80px;
}

.before-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.after-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: 205px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 3;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-secondary);
}

.slider-handle .handle-line {
    position: absolute;
    top: -205px;
    bottom: -205px;
    left: 17px;
    width: 2px;
    background-color: var(--color-secondary);
    pointer-events: none;
}

/* 9. FAQ Section Accordion */
.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.faq-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 0;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.faq-answer {
    padding-top: 15px;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* -------------------------------------------------------------
 * RESPONSIVENESS FOR HOMEPAGE
 * ------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-assistant-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .before-after-slider {
        height: 350px;
    }
    
    .slider-handle {
        margin-top: 155px;
    }
    
    .slider-handle .handle-line {
        top: -155px;
        bottom: -155px;
    }
}

/* -------------------------------------------------------------
 * SEGMENTED CONTROL / RADIO CARDS
 * ------------------------------------------------------------- */
.segmented-control {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.segment-item input[type="radio"] {
    display: none;
}

.segment-item {
    cursor: pointer;
    display: block;
}

.segment-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: #ffffff;
    border: 2px solid rgba(61, 37, 22, 0.08);
    border-radius: var(--border-radius-md);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.segment-item input[type="radio"]:checked + .segment-label {
    background: var(--color-primary);
    border-color: var(--color-secondary);
    color: #ffffff !important;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(207, 168, 124, 0.2);
}

.form-group-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* -------------------------------------------------------------
 * DROPDOWN / SUB-MENU DEFAULT STYLING
 * ------------------------------------------------------------- */
.nav-menu > li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(61, 37, 22, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    padding: 15px 0;
    min-width: 240px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 9999;
    pointer-events: none;
    display: block;
}

/* Pseudo-element bridge to prevent hover loss across translate gaps */
.nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
    display: block;
}

/* Hover display trigger */
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Sub-menu list items */
.nav-menu .sub-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
    display: block;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary) !important;
    transition: var(--transition-smooth);
}

.nav-menu .sub-menu a:after {
    display: none !important;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(61, 37, 22, 0.03);
    color: var(--color-secondary) !important;
}

/* -------------------------------------------------------------
 * MEGAMENU / MULTI-COLUMN DROPDOWN (39 DISTRICTS)
 * ------------------------------------------------------------- */
@media screen and (min-width: 992px) {
    .nav-menu li.hizmet-bolgeleri-dropdown {
        position: static;
    }
    
    .nav-menu li.hizmet-bolgeleri-dropdown > .sub-menu {
        left: 50%;
        transform: translateX(-50%);
        width: 800px;
        max-height: 400px;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 24px;
        scrollbar-width: thin;
        scrollbar-color: var(--color-secondary) rgba(0,0,0,0.05);
    }
    
    .nav-menu li.hizmet-bolgeleri-dropdown:hover > .sub-menu {
        transform: translateX(-50%);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li.hizmet-bolgeleri-dropdown > .sub-menu a {
        padding: 8px 12px;
        border-radius: var(--border-radius-sm);
        font-size: 0.85rem;
        background: rgba(0,0,0,0.01);
        border: 1px solid rgba(0,0,0,0.03);
    }
    
    .nav-menu li.hizmet-bolgeleri-dropdown > .sub-menu a:hover {
        background-color: var(--color-primary);
        color: #ffffff;
        border-color: var(--color-secondary);
    }
}

/* -------------------------------------------------------------
 * PREMIUM SEO HIGHLIGHTS & NEIGHBORHOOD GRIDS
 * ------------------------------------------------------------- */
.entry-content strong, 
.seo-content-body strong {
    color: #cfa87c; /* Gold Oak */
    font-weight: 700;
}

/* Custom Checkmarks */
.entry-content ul, 
.seo-content-body ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li, 
.seo-content-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.entry-content ul li::before, 
.seo-content-body ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Neighborhood directory grid */
.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 30px 0;
}

.neighborhood-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgba(61, 37, 22, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.neighborhood-btn:hover {
    background: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 37, 22, 0.15);
}

/* Clickable phone links within entry/seo contents */
.entry-content a.phone-link, 
.seo-content-body a.phone-link {
    color: var(--color-secondary) !important;
    text-decoration: none;
    border-bottom: 1.5px dashed var(--color-secondary);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.entry-content a.phone-link:hover, 
.seo-content-body a.phone-link:hover {
    color: var(--color-primary) !important;
    border-bottom-style: solid;
    border-bottom-color: var(--color-primary);
}





