/* ============================================
   NATHI PROJECTS - COMPLETE STYLESHEET v3
   Features: Dark Mode, Loader, Promo Banner, 
   Calculator, Gallery Lightbox, FAQ Accordion,
   Progress Tracker, Map, Partners, Callback,
   WhatsApp Widget, Scroll to Top, Before/After
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
    /* Light Theme (Default) */
    --color-bg: #ffffff;
    --color-bg-alt: #f6f7f9;
    --color-bg-elevated: #eef0f3;
    --color-dark: #12181f;
    --color-red: #e2211c;
    --color-red-dark: #b81812;
    --color-red-light: rgba(226, 33, 28, 0.08);
    --color-grey: #4a4e57;
    --color-text: #1b2027;
    --color-muted: #5c6472;
    --color-border: #e2e6ed;
    --color-card: #ffffff;
    --color-card-shadow: rgba(0, 0, 0, 0.04);
    --color-overlay: rgba(18, 24, 31, 0.85);
    --color-header-bg: rgba(255, 255, 255, 0.92);
    --color-input-bg: #ffffff;
    --color-progress-bg: #e8ecf1;
    --color-success: #25D366;
    --color-warning: #f5b342;

    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 32px;
    --container-max: 1280px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.12);
    --shadow-red: 0 8px 24px rgba(226, 33, 28, 0.2);
    --shadow-red-hover: 0 12px 32px rgba(226, 33, 28, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ----- Dark Theme ----- */
[data-theme="dark"] {
    --color-bg: #0f1318;
    --color-bg-alt: #161b22;
    --color-bg-elevated: #1c2129;
    --color-dark: #e8ecf1;
    --color-text: #e8ecf1;
    --color-muted: #8a929e;
    --color-border: #2a3039;
    --color-card: #1a1f27;
    --color-card-shadow: rgba(0, 0, 0, 0.3);
    --color-overlay: rgba(0, 0, 0, 0.92);
    --color-header-bg: rgba(15, 19, 24, 0.92);
    --color-input-bg: #1a1f27;
    --color-progress-bg: #2a3039;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background var(--transition-base), color var(--transition-base);
}

body.modal-open,
body.lightbox-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
p { color: var(--color-muted); font-size: 1rem; }

/* ----- Layout ----- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-padding { padding: var(--section-padding); }
.bg-alt { background: var(--color-bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title { margin-bottom: 12px; }
.section-title span { color: var(--color-red); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
}

.btn-icon { font-size: 1.1rem; }

.btn-red {
    background: var(--color-red);
    color: white;
    border-color: var(--color-red);
    box-shadow: var(--shadow-red);
}

.btn-red:hover {
    background: var(--color-red-dark);
    border-color: var(--color-red-dark);
    box-shadow: var(--shadow-red-hover);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-border);
}

.btn-outline-dark:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: var(--color-red-light);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    animation: loaderPulse 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--color-progress-bg);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--color-red);
    border-radius: 10px;
    animation: loaderBar 2s ease forwards;
}

@keyframes loaderBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: var(--color-red);
    color: white;
    padding: 12px 0;
    position: relative;
    z-index: 1001;
    transition: all var(--transition-base);
}

.promo-banner.hidden {
    display: none;
}

.promo-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.promo-banner p {
    color: white;
    font-size: 0.95rem;
    margin: 0;
}

.promo-link {
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.promo-link:hover {
    background: rgba(255,255,255,0.4);
}

.promo-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.promo-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-area { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--color-card-shadow);
    flex-shrink: 0;
    background: var(--color-dark);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-full);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-dark);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--color-muted);
    letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-muted);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width var(--transition-base);
}

.nav-link:hover { color: var(--color-red); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle */
.theme-toggle {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--color-red-light);
    border-color: var(--color-red);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 200px 0 80px;
    position: relative;
    overflow: hidden;
}

.circuit-stripe {
    position: absolute;
    right: -40px;
    top: 10%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-red-light);
    color: var(--color-red);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; color: var(--color-dark); }
.hero h1 span { color: var(--color-red); }

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 28px;
    max-width: 500px;
    line-height: 1.7;
}

.badge-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.accred-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-alt);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: var(--radius-full);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    zoom: 100000%;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    scale: 1.5;
}

.hero-image-wrapper:hover .hero-image { transform: scale(1.05); }

/* Stat Strip */
.stat-strip {
    background: var(--color-dark);
    margin-top: 64px;
    border-radius: var(--radius-lg);
    padding: 36px 48px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.stat-item { text-align: center; flex: 1; min-width: 150px; }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    display: inline-block;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-red);
    margin-left: 4px;
}

.stat-label { color: #b0b8c1; font-weight: 500; font-size: 0.95rem; margin-top: 4px; }

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    color: var(--color-muted);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.social-icon { width: 20px; height: 20px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: #8a929e;
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    background: var(--color-red);
    color: white;
    transform: translateY(-3px);
}

.footer-social-link svg { width: 20px; height: 20px; }

/* ============================================
   SERVICES
   ============================================ */
.service-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.service-filter-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.service-filter-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

.service-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    box-shadow: var(--shadow-red);
    transform: translateY(-6px);
}

.service-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--color-progress-bg);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image { transform: scale(1.1); }

.service-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.service-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-content p { font-size: 0.9rem; line-height: 1.7; flex: 1; }

.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-elevated));
}

.service-tag {
    display: inline-block;
    background: var(--color-red-light);
    color: var(--color-red);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
    align-self: flex-start;
}

.service-card-cta {
    background: linear-gradient(135deg, var(--color-red-light), var(--color-card));
    border: 2px dashed var(--color-red);
}

.service-cta-content {
    padding: 32px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-icon { font-size: 3rem; margin-bottom: 16px; }

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 48px;
    height: 48px;
    background: var(--color-card);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    color: var(--color-dark);
    transition: all var(--transition-base);
    margin: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--color-red);
    color: white;
}

.swiper-pagination { position: static; width: auto; }

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--color-red);
    width: 28px;
    border-radius: 10px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.about-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-icon { font-size: 2.8rem; margin-bottom: 20px; }
.about-card h3 { margin-bottom: 14px; }
.about-card p { line-height: 1.8; }

/* ============================================
   PROJECTS & MODALS
   ============================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image { transform: scale(1.1); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 50px;
}

.project-info { padding: 20px 24px; }
.project-info h4 { font-size: 1.1rem; margin-bottom: 6px; }
.project-info p { font-size: 0.9rem; margin-bottom: 12px; }

.project-tag {
    display: inline-block;
    background: var(--color-red-light);
    color: var(--color-red);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.projects-cta { text-align: center; padding: 32px 0; }
.projects-cta p { margin-bottom: 16px; font-size: 1.1rem; }

/* Project Modals */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--color-card);
    border-radius: var(--radius-xl);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: sticky;
    top: 16px;
    float: right;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    margin-right: 16px;
}

.modal-close:hover {
    background: var(--color-red);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.modal-gallery {
    background: var(--color-dark);
    padding: 32px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.modal-main-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.modal-thumbnails { display: flex; gap: 12px; }

.modal-thumb {
    width: 70px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.modal-thumb:hover { opacity: 0.8; }
.modal-thumb.active { opacity: 1; border-color: var(--color-red); }

.modal-details { padding: 40px 36px; overflow-y: auto; }

.modal-tag {
    display: inline-block;
    background: var(--color-red-light);
    color: var(--color-red);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-details h2 { font-size: 1.8rem; margin-bottom: 16px; }

.modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.modal-details h4 { font-size: 1.1rem; margin: 20px 0 10px; }
.modal-details p { line-height: 1.8; margin-bottom: 16px; }

.modal-details ul { margin-bottom: 20px; }

.modal-details ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.modal-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: 700;
}

.modal-details blockquote {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-red);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-muted);
}

.modal-details .btn { margin-top: 20px; }

/* ============================================
   PHOTO GALLERY LIGHTBOX
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--color-progress-bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    font-size: 2.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    color: white;
    margin-top: 16px;
    font-size: 1.1rem;
}

.lightbox-counter {
    color: #888;
    font-size: 0.9rem;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 3001;
    transition: all var(--transition-base);
}

.lightbox-close:hover { color: var(--color-red); transform: scale(1.2); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    z-index: 3001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-red);
    color: white;
}

/* ============================================
   PROJECT COST CALCULATOR
   ============================================ */
.calculator-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.calculator-card {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.calc-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-input-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.calc-group select:focus {
    outline: none;
    border-color: var(--color-red);
}

.calc-result {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--color-border);
    text-align: center;
}

.price-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.price-label { font-size: 1rem; color: var(--color-muted); }

.price-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-red);
}

.calc-disclaimer {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 20px;
}

/* ============================================
   LIVE PROJECT STATUS TRACKER
   ============================================ */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.status-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.status-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.status-header h4 { margin: 0; font-size: 1.1rem; }

.status-badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.in-progress { background: rgba(37, 211, 102, 0.15); color: var(--color-success); }
.status-badge.finishing { background: rgba(245, 179, 66, 0.15); color: var(--color-warning); }
.status-badge.planning { background: var(--color-red-light); color: var(--color-red); }

.progress-bar-wrapper {
    height: 28px;
    background: var(--color-progress-bg);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width var(--transition-slow);
    min-width: 40px;
}

.status-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: left;
    font-family: var(--font-body);
    transition: color var(--transition-base);
}

.faq-question:hover { color: var(--color-red); }

.faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p { font-size: 0.95rem; line-height: 1.8; }

/* ============================================
   SERVICE AREA MAP
   ============================================ */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.map-branch {
    background: var(--color-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.map-branch h4 { margin-bottom: 8px; }
.map-branch p { margin-bottom: 12px; font-size: 0.95rem; }
.map-branch a { color: var(--color-red); font-weight: 600; }

/* ============================================
   PARTNER LOGOS
   ============================================ */
.partner-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.partner-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.partner-logo {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.partner-card p { font-size: 0.9rem; font-weight: 600; }

/* ============================================
   REQUEST CALLBACK
   ============================================ */
.callback-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.callback-icon { font-size: 3.5rem; margin-bottom: 16px; }
.callback-content h2 { margin-bottom: 12px; }
.callback-content p { margin-bottom: 32px; }

.callback-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.callback-form input,
.callback-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--color-input-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.callback-form input:focus,
.callback-form select:focus {
    outline: none;
    border-color: var(--color-red);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stars {
    color: var(--color-warning);
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-red-light);
    color: var(--color-red);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--color-muted); }

/* ============================================
   CONTACT & WHATSAPP FORM
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-tile {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
    border: 1px solid var(--color-border);
}

.contact-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon { font-size: 2rem; margin-bottom: 16px; }
.contact-tile h4 { margin-bottom: 12px; }

.contact-address {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    color: var(--color-red);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-link:hover { text-decoration: underline; }

.whatsapp-box {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--color-border);
}

.whatsapp-box h3 { margin-bottom: 8px; }
.whatsapp-box > p { margin-bottom: 32px; }

.whatsapp-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { text-align: left; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
    background: var(--color-input-bg);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-red);
}

.form-group textarea { resize: vertical; }

/* ============================================
   WHATSAPP CHAT WIDGET
   ============================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.wa-widget-toggle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--color-success);
    border: none;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wa-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.wa-widget-close {
    display: none;
    font-size: 22px;
}

.whatsapp-widget.open .wa-widget-icon { display: none; }
.whatsapp-widget.open .wa-widget-close { display: block; }

.wa-widget-panel {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.whatsapp-widget.open .wa-widget-panel { display: block; }

.wa-widget-header {
    background: var(--color-success);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-widget-avatar {
    width: 44px;
    height: 44px;
    background: white;
    color: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.wa-widget-header strong { display: block; }
.wa-widget-header small { font-size: 0.8rem; opacity: 0.9; }

.wa-widget-body { padding: 20px; }

.wa-message {
    background: var(--color-bg-alt);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.wa-quick-replies { display: flex; flex-direction: column; gap: 8px; }

.wa-quick-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.wa-quick-btn:hover {
    background: var(--color-red-light);
    border-color: var(--color-red);
    color: var(--color-red);
}

.wa-typing {
    display: flex;
    gap: 6px;
    padding: 12px 0;
}

.wa-typing span {
    width: 8px;
    height: 8px;
    background: var(--color-muted);
    border-radius: var(--radius-full);
    animation: typingBounce 1.4s infinite;
}

.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-red);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: var(--shadow-red);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-red-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red-hover);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.floating-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 997;
    transition: all var(--transition-base);
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-dark);
    color: #ccd2d9;
    padding: 64px 0 32px;
    border-top: 4px solid var(--color-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.footer-logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-full);
}

.footer-logo strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: white; }
.footer-logo span { font-size: 0.8rem; color: #8a929e; }

.footer-description { color: #8a929e; line-height: 1.8; font-size: 0.9rem; }

.footer-links h4,
.footer-accreditations h4 { color: white; margin-bottom: 20px; font-size: 1rem; }

.footer-links a {
    display: block;
    color: #8a929e;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-red); }

.footer-badges { display: flex; flex-direction: column; gap: 12px; }

.footer-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #b0b8c1;
    text-align: center;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    color: #6a7280;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   IMAGE FALLBACK
   ============================================ */
.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    font-size: 3rem;
}

.image-fallback p {
    margin-top: 12px;
    font-weight: 600;
    color: var(--color-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-visual { order: 0; }

    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .badge-row,
    .hero-cta-group,
    .social-links-hero { justify-content: center; }

    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 20px; }
    .modal-main-image img { height: 250px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
        --container-padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-card);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .header-actions .btn-sm { display: none; }

    .hero { padding: 150px 0 60px; }
    .hero-cta-group { flex-direction: column; }
    .btn-lg { width: 100%; }

    .stat-strip {
        padding: 28px 24px;
        flex-direction: column;
        gap: 20px;
    }

    .stat-number { font-size: 2rem; }
    .stat-divider { display: none; }

    .calc-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .service-image-wrapper { height: 180px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-image-wrapper { height: 200px; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

    .wa-widget-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .modal-content {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .modal-details { padding: 24px 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .whatsapp-box { padding: 32px 24px; }
    .callback-wrapper { padding: 32px 24px; }
    .calculator-card { padding: 32px 24px; }

    .lightbox-prev,
    .lightbox-next {
        font-size: 28px;
        padding: 12px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }

    .service-categories { gap: 8px; }
    .service-filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero { padding: 130px 0 48px; }
    .service-image-wrapper { height: 160px; }

    .promo-banner .container { flex-direction: column; gap: 8px; }

    .scroll-top { bottom: 90px; right: 16px; }
    .whatsapp-widget { bottom: 16px; right: 16px; }
}