/* public/css/style.css - Comprehensive Modern CSS for Elektrik Platform */
:root {
    --primary: #f59e0b;
    --primary-rgb: 245, 158, 11;
    --primary-hover: #d97706;
    --secondary: #0f172a;
    --secondary-rgb: 15, 23, 42;
    --secondary-dark: #020617;
    --accent: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===================================================
   6 DISTINCT THEME PALETTES & STYLES
   =================================================== */

/* Theme 1: Volt Pro (Emergency Amber & Deep Navy) */
.theme-1 {
    --primary: #f59e0b;
    --primary-rgb: 245, 158, 11;
    --primary-hover: #d97706;
    --secondary: #0f172a;
    --secondary-rgb: 15, 23, 42;
    --secondary-dark: #020617;
    --hero-bg: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    --header-bg: #0f172a;
    --header-text: #ffffff;
    --card-radius: 16px;
    --accent-badge: #f59e0b;
}

/* Theme 2: Usta Modern (Clean Teal & Slate) */
.theme-2 {
    --primary: #0d9488;
    --primary-rgb: 13, 148, 136;
    --primary-hover: #0f766e;
    --secondary: #1e293b;
    --secondary-rgb: 30, 41, 59;
    --secondary-dark: #0f172a;
    --hero-bg: linear-gradient(135deg, #042f2e 0%, #134e4a 50%, #0f172a 100%);
    --header-bg: #ffffff;
    --header-text: #1e293b;
    --card-radius: 20px;
    --accent-badge: #0d9488;
}

/* Theme 3: Acil Elektrik (Urgent Crimson Red & Carbon Black) */
.theme-3 {
    --primary: #dc2626;
    --primary-rgb: 220, 38, 38;
    --primary-hover: #b91c1c;
    --secondary: #111827;
    --secondary-rgb: 17, 24, 39;
    --secondary-dark: #030712;
    --hero-bg: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
    --header-bg: #111827;
    --header-text: #ffffff;
    --card-radius: 12px;
    --accent-badge: #ef4444;
}

/* Theme 4: Power Tech (Cyber Electric Blue & Ultra Dark) */
.theme-4 {
    --primary: #0284c7;
    --primary-rgb: 2, 132, 199;
    --primary-hover: #0369a1;
    --secondary: #0a0e1a;
    --secondary-rgb: 10, 14, 26;
    --secondary-dark: #030712;
    --hero-bg: linear-gradient(180deg, #0a0e1a 0%, #0f172a 100%);
    --header-bg: #0a0e1a;
    --header-text: #f8fafc;
    --card-radius: 18px;
    --accent-badge: #38bdf8;
}

/* Theme 5: Eco Volt (Master Electrician Emerald Green & Gold) */
.theme-5 {
    --primary: #16a34a;
    --primary-rgb: 22, 163, 74;
    --primary-hover: #15803d;
    --secondary: #14532d;
    --secondary-rgb: 20, 83, 45;
    --secondary-dark: #052e16;
    --hero-bg: linear-gradient(135deg, #052e16 0%, #14532d 50%, #064e3b 100%);
    --header-bg: #ffffff;
    --header-text: #14532d;
    --card-radius: 14px;
    --accent-badge: #eab308;
}

/* Theme 6: Flash Master (Industrial High-Contrast Yellow & Jet Black) */
.theme-6 {
    --primary: #eab308;
    --primary-rgb: 234, 179, 8;
    --primary-hover: #ca8a04;
    --secondary: #18181b;
    --secondary-rgb: 24, 24, 27;
    --secondary-dark: #09090b;
    --hero-bg: repeating-linear-gradient(45deg, #18181b, #18181b 15px, #27272a 15px, #27272a 30px);
    --header-bg: #18181b;
    --header-text: #fef08a;
    --card-radius: 10px;
    --accent-badge: #eab308;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Top Notification Bar */
.top-bar {
    background: var(--secondary-dark);
    color: #94a3b8;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a:hover {
    color: #ffffff;
}
.top-bar .pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Main Header */
.main-header {
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-brand .brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.site-brand .brand-text {
    display: flex;
    flex-direction: column;
}
.site-brand .brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: inherit;
}
.site-brand .brand-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
    padding: 6px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    opacity: 1;
    color: var(--primary);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}
.theme-1 .btn-primary, .theme-6 .btn-primary {
    color: #0f172a;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.45);
}
.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.btn-whatsapp:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.45);
}
.btn-call {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    animation: callPulse 1.8s infinite;
}
.btn-call:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

@keyframes callPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: inherit;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: var(--hero-bg);
    color: #ffffff;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('/uploads/7-24-elektrikci.jpg') center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.theme-1 .hero-badge, .theme-6 .hero-badge {
    color: #fef08a;
    border-color: #fef08a;
}
.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}
.hero-title span {
    color: var(--primary);
}
.hero-description {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 28px;
    max-width: 600px;
    line-height: 1.6;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}
.feature-item i {
    color: var(--primary);
    font-size: 18px;
}

/* Hero Quick Lead Form Card */
.hero-form-card {
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--card-radius, var(--radius-md));
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.hero-form-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-form-card h3 i {
    color: var(--primary);
}
.hero-form-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #334155;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
select.form-control {
    cursor: pointer;
}

/* Fast Search & Neighborhood Finder Bar */
.search-strip {
    background: var(--bg-card);
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.search-input-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}
.search-input-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}
.search-input-box input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 15px;
    outline: none;
}
.search-input-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.search-results-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-result-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
.search-result-item:hover {
    background: #f8fafc;
    color: var(--primary);
}
.search-result-item .badge-side {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

/* Sections Common */
.section {
    padding: 70px 0;
}
.section-gray {
    background-color: #f1f5f9;
}
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}
.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    border-radius: var(--card-radius, var(--radius-md));
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0f172a;
}
.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-thumb img {
    transform: scale(1.08);
}
.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}
.service-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.service-card:hover .service-title {
    color: var(--primary);
}
.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}
.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 8px;
}
.service-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-phone-btn {
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: #334155;
}
.service-phone-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Why Choose Us & Trust Badges */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: var(--card-radius, var(--radius-md));
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.why-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Istanbul Districts & Neighborhoods Explorer */
.districts-section {
    background: #ffffff;
}
.districts-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.district-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.district-pill:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.district-pill .pill-count {
    font-size: 11px;
    color: #94a3b8;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.district-pill:hover .pill-count {
    color: var(--primary);
    border-color: var(--primary);
}

/* Testimonials Carousel / Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review-card {
    background: var(--bg-card);
    border-radius: var(--card-radius, var(--radius-md));
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.review-stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 14px;
}
.review-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}
.author-info h5 {
    font-size: 15px;
    font-weight: 700;
}
.author-info span {
    font-size: 12px;
    color: var(--text-muted);
}
.review-date {
    font-size: 12px;
    color: #94a3b8;
}

/* FAQ Accordion */
.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.2s;
}
.faq-question {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}
.faq-question i {
    transition: transform 0.3s;
    color: var(--primary);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Emergency Dispatch Banner */
.emergency-banner {
    background: var(--secondary);
    color: #ffffff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.emergency-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 2;
}
.emergency-text h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}
.emergency-text p {
    color: #94a3b8;
    font-size: 16px;
}
.emergency-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Footer */
.main-footer {
    background: var(--secondary-dark);
    color: #94a3b8;
    padding: 60px 0 20px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--primary);
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #94a3b8;
}
.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-contact-item i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

/* ===================================================
   RESPONSIVE WHATSAPP & HEMEN ARA DOCK / BAR (DESKTOP & MOBILE)
   =================================================== */

/* Desktop Floating Action Dock (>= 769px) */
.desktop-action-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}
.dock-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    max-width: 100%;
}
.dock-btn:hover {
    transform: translateY(-3px) scale(1.02);
}
.dock-btn-call {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}
.dock-btn-wa {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}
.dock-icon-pulse, .dock-icon-wa {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.dock-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.dock-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dock-phone {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

/* Mobile Responsive Action Bar (<= 768px) */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    z-index: 999999;
}
.mobile-action-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.mobile-action-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}
.mobile-btn-call {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.mobile-btn-wa {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* New Responsive Layout Utilities */
.diag-card-wrapper {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    width: 100%;
}
.diag-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.diag-results-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid #cbd5e1;
    margin-bottom: 8px;
    box-sizing: border-box;
    width: 100%;
}
.diag-results-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.diag-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 16px;
    width: 100%;
}
.diag-guarantee-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}
.diag-action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.diag-btn {
    padding: 12px 20px;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}
.process-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}
.process-step-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.process-step-num {
    font-size: 42px;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.15);
    position: absolute;
    top: 10px;
    right: 16px;
    line-height: 1;
}
.process-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}
.theme4-badges-grid,
.theme6-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    width: 100%;
}
.contact-layout-grid,
.detail-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    width: 100%;
}

/* Breadcrumbs */
.breadcrumb {
    padding: 16px 0;
    background: #f1f5f9;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a {
    color: #475569;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    margin: 0 8px;
    color: #94a3b8;
}

/* Detail Page Styles */
.detail-content {
    background: #ffffff;
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.detail-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}
.detail-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 28px 0 14px;
}
.detail-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 18px;
}
.features-checklist {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}
.check-item i {
    color: var(--success);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #94a3b8;
}

/* Admin Dashboard Specific Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}
.admin-main {
    flex: 1;
    background: #f8fafc;
    padding: 30px;
    overflow-y: auto;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}
.admin-nav a:hover, .admin-nav a.active {
    background: #1e293b;
    color: #ffffff;
    border-left: 4px solid var(--primary);
}
.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}
.table-responsive {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.admin-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 36px;
    }
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .process-steps-row,
    .theme4-badges-grid,
    .theme6-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-layout-grid,
    .detail-layout-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .main-nav, .header-actions {
        display: none !important;
    }
    .mobile-nav-toggle {
        display: block !important;
    }
    
    /* Toggle CTA System */
    .desktop-action-dock {
        display: none !important;
    }
    .mobile-action-bar {
        display: block !important;
    }
    
    .hero-title {
        font-size: 28px;
    }
    .hero-features {
        grid-template-columns: 1fr;
    }
    .features-checklist {
        grid-template-columns: 1fr;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsive Grids on Mobile */
    .diag-form-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .diag-results-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .diag-card-wrapper {
        padding: 22px 16px !important;
    }
    .diag-footer-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .diag-action-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    .diag-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .process-steps-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .theme4-badges-grid,
    .theme6-steps-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .hero-ctas a.btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .hero-form-card {
        padding: 20px 14px !important;
    }
    .section-title {
        font-size: 24px !important;
    }
    .container {
        padding: 0 14px !important;
    }
}
