/* ============================================
   STARK LEVEL SOLUTIONS - SNAP SCROLL SITE
   Brand: Red (#E63946), Dark (#0a0a0a), White
   ============================================ */

:root {
    --red: #E63946;
    --red-dark: #c62d39;
    --dark: #0a0a0a;
    --dark-card: #141414;
    --dark-border: #2a2a2a;
    --text: #f0f0f0;
    --text-secondary: #999;
    --white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.3);
}

.loader-bar {
    width: 120px;
    height: 3px;
    background: var(--dark-border);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-fill {
    height: 100%;
    width: 0;
    background: var(--red);
    border-radius: 3px;
    animation: loaderFill 0.8s ease-out forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ===== SNAP SCROLL ===== */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Sections with lots of content get internal scroll */
.services-section,
.spotlight-section,
.contact-section,
.about-section,
.map-section,
.vision-section {
    overflow-y: auto;
    align-items: flex-start;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.theme-toggle:hover {
    color: var(--white);
    border-color: var(--white);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
    --dark: #f5f5f5;
    --dark-card: #ffffff;
    --dark-border: #e0e0e0;
    --text: #1a1a1a;
    --text-secondary: #666;
    --white: #1a1a1a;
}

[data-theme="light"] .navbar {
    background: rgba(245, 245, 245, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-logo { color: #1a1a1a; }
[data-theme="light"] .mobile-menu { background: rgba(245, 245, 245, 0.97); }
[data-theme="light"] .mobile-link { color: #1a1a1a; }
[data-theme="light"] .hamburger span { background: #1a1a1a; }
[data-theme="light"] .ba-label { background: rgba(255, 255, 255, 0.8); color: #1a1a1a; }
[data-theme="light"] .btn-outline { color: #1a1a1a; border-color: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .btn-outline:hover { border-color: #1a1a1a; background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .service-card { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
[data-theme="light"] .service-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
[data-theme="light"] .dot { border-color: rgba(0, 0, 0, 0.25); }
[data-theme="light"] .theme-toggle { border-color: #e0e0e0; color: #666; }
[data-theme="light"] .theme-toggle:hover { color: #1a1a1a; border-color: #1a1a1a; }
[data-theme="light"] .glossary-item:hover { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .glossary-item.active { background: rgba(230, 57, 70, 0.06); }
[data-theme="light"] .contact-service-area { background: rgba(230, 57, 70, 0.05); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea { background: rgba(0, 0, 0, 0.03); color: #1a1a1a; }
[data-theme="light"] .scroll-indicator { color: #999; }
[data-theme="light"] .scroll-arrow { border-color: #999; }
[data-theme="light"] .hero-section { background: #f5f5f5; }
[data-theme="light"] .hero-bg { background: linear-gradient(135deg, rgba(230, 57, 70, 0.06) 0%, transparent 50%); }
[data-theme="light"] .hero-showcase { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
[data-theme="light"] .showcase-caption { color: white; }
[data-theme="light"] .ba-nav-btn { background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.15); }
[data-theme="light"] .ba-nav-btn:hover { background: var(--red); border-color: var(--red); color: white; }
[data-theme="light"] .spec-card { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .upload-zone { border-color: #ccc; }
[data-theme="light"] .upload-zone:hover,
[data-theme="light"] .upload-zone.drag-over { border-color: var(--red); background: rgba(230, 57, 70, 0.03); }
[data-theme="light"] .results-content { background: #fff; }
[data-theme="light"] .page-loader { background: #f5f5f5; }
[data-theme="light"] .site-footer { border-top-color: #e0e0e0; }
[data-theme="light"] .btn-primary { color: white; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-link:hover { color: var(--red); }

/* ===== SECTION DOTS ===== */
.section-dots {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.dot:hover { border-color: var(--white); }
.dot.active {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.3);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--dark);
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    width: 100%;
    padding: 6rem 3rem 3rem;
    align-items: center;
}

.hero-quote {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-service-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.hero-service-area svg { flex-shrink: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn-full { width: 100%; }

/* ===== HERO SHOWCASE GALLERY ===== */
.hero-slider-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.showcase-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.showcase-img.active {
    opacity: 1;
}

.showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Before/After Navigation */
.ba-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.ba-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.ba-nav-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.ba-counter {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Map */
.contact-map {
    margin-top: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s 2s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== SECTION COMMON ===== */
.section-inner {
    max-width: 1200px;
    width: 100%;
    padding: 4.5rem 2rem 2rem;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ===== OUR PROCESS SECTION ===== */
.process-section {
    background: var(--dark);
}

.process-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    width: 100%;
    margin: 2rem 0;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
    border: 2px solid rgba(230, 57, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.process-step:hover .step-icon {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--red);
    transform: scale(1.1);
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 200px;
}

.process-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.3), rgba(230, 57, 70, 0.1));
    margin-top: 46px;
    flex-shrink: 0;
}

.process-cta {
    margin-top: 2rem;
}


/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--dark);
}

.services-grid-view { width: 100%; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(230, 57, 70, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .card-img img {
    transform: scale(1.08);
}

.card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.card-body > p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tag {
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--red);
    letter-spacing: 0.3px;
}

/* ===== CASE STUDY DETAIL VIEW ===== */
.services-detail-view {
    width: 100%;
    height: 100%;
    padding-top: 4rem;
}

.detail-layout {
    display: flex;
    height: calc(100vh - 4rem);
    width: 100%;
}

/* Side Glossary */
.detail-glossary {
    width: 220px;
    flex-shrink: 0;
    background: var(--dark-card);
    border-right: 1px solid var(--dark-border);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.glossary-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--dark-border);
    padding-bottom: 1rem;
}

.glossary-back:hover { color: var(--white); }

.glossary-list {
    display: flex;
    flex-direction: column;
}

.glossary-item {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.glossary-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}

.glossary-item.active {
    color: var(--white);
    border-left-color: var(--red);
    background: rgba(230, 57, 70, 0.08);
}

/* Detail Content */
.detail-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.detail-hero {
    margin-bottom: 2rem;
}

.detail-hero h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.detail-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 700px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.detail-gallery img:hover { transform: scale(1.03); }

.detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 1.25rem;
}

.spec-card h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.spec-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ===== DESIGN VISION SECTION ===== */
.vision-section {
    background: var(--dark);
}

.vision-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-zone {
    border: 2px dashed var(--dark-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--red);
    background: rgba(230, 57, 70, 0.05);
}

.upload-icon {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.upload-zone h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-formats {
    font-size: 0.75rem !important;
    margin-top: 0.5rem;
    opacity: 0.5;
}

.upload-btn {
    margin-top: 1.5rem;
}

/* Preview */
.vision-preview {
    text-align: center;
}

.preview-image-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.preview-image-wrap img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.preview-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.preview-close:hover { background: var(--red); }

.analyze-btn {
    min-width: 250px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.vision-results {
    text-align: left;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.results-content {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    max-height: 350px;
    overflow-y: auto;
}

.results-content h4 {
    font-family: var(--font-heading);
    color: var(--red);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.results-content h4:first-child { margin-top: 0; }

.results-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.results-content li { margin-bottom: 0.4rem; }

.results-cta {
    text-align: center;
    padding-top: 1rem;
}

.results-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== SUPERHERO SPOTLIGHT ===== */
.spotlight-section {
    background: var(--dark);
}

.spotlight-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.spotlight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a1a;
    padding: 0.4rem 1.25rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.spotlight-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.spotlight-info strong { color: var(--white); }

.spotlight-why {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-item strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.why-item p {
    margin: 0 !important;
    font-size: 0.85rem !important;
}

/* Forms */
.spotlight-form, .contact-form {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 2rem;
}

.spotlight-form h3, .contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
}

.req { color: var(--red); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background: none;
    border: 1px dashed var(--dark-border);
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.75rem;
}

.form-disclaimer a {
    color: var(--red);
    text-decoration: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--dark);
}

.contact-inner {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4rem);
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.2);
    flex-shrink: 0;
}

.contact-header .section-title { margin-bottom: 0.25rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.contact-item svg { flex-shrink: 0; }

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover { color: var(--red); }

.site-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-border);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--red);
    transform: translateY(-2px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--red); }

.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ===== CREDENTIALS STRIP (hero footer) ===== */
.credentials-strip {
    position: absolute;
    bottom: 4.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.8rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.cred-label {
    color: var(--red);
    font-weight: 600;
}

.cred-item {
    color: var(--text);
    font-weight: 500;
    opacity: 0.9;
}

.cred-dot {
    color: var(--red);
    opacity: 0.5;
}

[data-theme="light"] .credentials-strip {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .credentials-strip {
        display: none;
    }
}

/* ===== STICKY QUOTE BUTTON (desktop) ===== */
.sticky-quote-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--red);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sticky-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(230, 57, 70, 0.5);
}

@media (max-width: 900px) {
    .sticky-quote-btn {
        display: none;
    }
}

/* ===== CONTACT SUBHEAD ===== */
.contact-subhead {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: -0.75rem 0 1.25rem;
}

/* ===== MOBILE CALL FAB ===== */
.mobile-call-fab {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 5rem 1.5rem 2rem;
        text-align: center;
    }

    .hero-title { font-size: 2.8rem; }
    .hero-cta { justify-content: center; }
    .hero-service-area { justify-content: center; }

    .hero-slider-wrap { order: -1; }

    .before-after-slider { max-width: 100%; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-layout { flex-direction: column; height: auto; }
    .detail-glossary {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
        padding: 0.75rem 0;
    }
    .glossary-list { flex-direction: row; overflow-x: auto; padding: 0 1rem; gap: 0.25rem; }
    .glossary-item { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 0.5rem 1rem; font-size: 0.8rem; }
    .glossary-item.active { border-left-color: transparent; border-bottom-color: var(--red); }
    .glossary-back { padding: 0.5rem 1rem; margin-bottom: 0; border-bottom: none; padding-bottom: 0.5rem; }
    .detail-content { padding: 1.5rem; }

    .process-timeline { flex-direction: column; align-items: center; gap: 1rem; }
    .process-connector { width: 2px; height: 24px; margin-top: 0; }
    .process-step p { max-width: 280px; }

    .spotlight-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-header { flex-direction: column; text-align: center; }
    .contact-inner { height: auto; min-height: 100vh; }

    .section-inner { padding: 4rem 1.25rem; }
    .section-title { font-size: 2rem; }

    .section-dots { right: 0.75rem; }
    .dot { width: 8px; height: 8px; }

    .mobile-call-fab {
        display: flex;
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        z-index: 900;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--red);
        color: white;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
        text-decoration: none;
        animation: fabPulse 2s infinite;
    }

    @keyframes fabPulse {
        0%, 100% { box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4); }
        50% { box-shadow: 0 4px 30px rgba(230, 57, 70, 0.7); }
    }

}

@media (max-width: 500px) {
    .hero-title { font-size: 2.2rem; }
    .hero-tagline { font-size: 0.8rem; letter-spacing: 2px; }

    .services-grid { grid-template-columns: 1fr 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .btn { width: 100%; }

    .nav-logo span { font-size: 0.85rem; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }

/* Form success state */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success h3 {
    color: #4caf50;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

.form-status {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
    min-height: 1.2em;
}

.form-error {
    color: var(--red);
}

/* ===== INTEGRATED DESIGN VISION IN CONTACT FORM ===== */
.form-vision-section {
    margin-bottom: 1rem;
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.form-vision-section > label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.form-upload-zone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-upload-zone:hover,
.form-upload-zone.drag-over {
    border-color: var(--red);
    background: rgba(230, 57, 70, 0.05);
}

.form-upload-zone svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.form-vision-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-thumb-wrap {
    position: relative;
    flex-shrink: 0;
}

.preview-thumb-wrap img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--dark-border);
}

.preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.preview-remove:hover { background: var(--red); color: white; }

.form-vision-results {
    margin-top: 0.75rem;
}

.form-vision-results .results-content {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 1rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.form-vision-results .results-content h4 {
    font-family: var(--font-heading);
    color: var(--red);
    margin: 0.75rem 0 0.3rem;
    font-size: 0.95rem;
}

.form-vision-results .results-content h4:first-child { margin-top: 0; }

.form-vision-results .results-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .form-vision-section { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .form-upload-zone { border-color: #ccc; }
[data-theme="light"] .form-vision-results .results-content { background: #fff; }

/* =========================================================================
   ABOUT / STORY SECTION
   ========================================================================= */
.about-section {
    background: var(--dark);
    padding: 6rem 0 4rem;
}
.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.about-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}
.about-portrait-col {
    position: sticky;
    top: 100px;
}
.about-portrait {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    background: var(--dark-card);
}
.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.about-portrait-caption {
    margin-top: 1rem;
    text-align: center;
}
.about-portrait-caption strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--text);
}
.about-portrait-caption span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}
.about-content-col {
    max-width: 720px;
}
.about-lede {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0.5rem 0 1.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--red);
    font-style: italic;
    opacity: 0.92;
}
.about-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.1rem;
    opacity: 0.88;
}
.about-body strong {
    color: var(--text);
    font-weight: 600;
}
.about-timeline {
    margin: 2.5rem 0 2rem;
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    padding: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.timeline-item {
    display: grid;
    grid-template-columns: 80px 20px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}
.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-align: right;
}
.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-border);
    justify-self: center;
    border: 2px solid var(--dark);
    box-shadow: 0 0 0 1px var(--dark-border);
}
.timeline-item.active .timeline-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}
.timeline-item.active .timeline-year {
    color: var(--red);
}
.timeline-label {
    font-size: 0.95rem;
    color: var(--text);
}
.timeline-label span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
[data-theme="light"] .about-portrait { border-color: #ddd; }
[data-theme="light"] .about-timeline { border-color: #ddd; }
[data-theme="light"] .timeline-dot { border-color: #f5f5f5; box-shadow: 0 0 0 1px #ccc; background: #ccc; }

@media (max-width: 900px) {
    .about-layout { grid-template-columns: 1fr; }
    .about-portrait-col {
        position: static;
        max-width: 260px;
        margin: 0 auto;
    }
    .about-section { padding: 4rem 0 3rem; }
}

/* =========================================================================
   PROJECTS MAP SECTION
   ========================================================================= */
.map-section {
    background: var(--dark);
    padding: 5rem 0 4rem;
    position: relative;
}
.map-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(230, 57, 70, 0.04), transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(230, 57, 70, 0.03), transparent 50%);
    pointer-events: none;
}
.map-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}
.map-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.map-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.map-header .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}
.map-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}
.map-canvas-wrap {
    position: relative;
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    overflow: hidden;
    background: #f5efe4;
    box-shadow: inset 0 0 60px rgba(60, 40, 20, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}
.map-canvas {
    width: 100%;
    height: 580px;
    background: #f5efe4;
}
/* Hand-drawn map marker — elegant on watercolor */
.slv-marker {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease;
}
.slv-marker:hover { transform: scale(1.18); }
.slv-marker.selected { transform: scale(1.3); }
.slv-marker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.18;
    animation: markerPulse 2.6s ease-out infinite;
}
.slv-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--red);
    border: 2.5px solid #fdf8ec;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.15);
}
@keyframes markerPulse {
    0% { transform: scale(0.7); opacity: 0.45; }
    100% { transform: scale(2.4); opacity: 0; }
}
/* Mapbox popup style overrides */
.maplibregl-popup-content {
    background: #fdf8ec !important;
    color: #2a2018 !important;
    border: 1px solid rgba(60, 40, 20, 0.15);
    border-radius: 6px;
    padding: 0.7rem 0.95rem !important;
    font-family: var(--font-body);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.maplibregl-popup-tip {
    border-top-color: #fdf8ec !important;
    border-bottom-color: #fdf8ec !important;
}
.maplibregl-popup-close-button {
    color: rgba(0, 0, 0, 0.4) !important;
    font-size: 1.1rem !important;
    padding: 0.15rem 0.4rem !important;
}
.maplibregl-popup-content strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #2a2018;
    margin-bottom: 0.2rem;
}
.maplibregl-popup-content span {
    font-size: 0.72rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left {
    opacity: 0.5;
}
.map-legend {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: #2a2018;
    background: rgba(253, 248, 236, 0.92);
    padding: 0.5rem 0.95rem;
    border-radius: 100px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(60, 40, 20, 0.18);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
}
.map-detail {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: 2rem;
    min-height: 500px;
    position: sticky;
    top: 100px;
}
.map-detail-empty {
    text-align: center;
    padding: 2rem 0.5rem;
    color: var(--text-secondary);
}
.map-detail-empty svg { margin-bottom: 1rem; }
.map-detail-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.map-detail-empty p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}
.map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--dark-border);
    padding-top: 1.5rem;
}
.map-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.map-stats .stat strong {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--red);
    line-height: 1;
}
.map-stats .stat span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}
.map-detail-content .detail-photo {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--dark);
}
.map-detail-content .detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.map-detail-content .detail-location {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 1rem;
    font-weight: 600;
}
.map-detail-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 1rem;
}
.map-detail-content .detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: rgba(230, 57, 70, 0.05);
    border-left: 2px solid var(--red);
    border-radius: 0 6px 6px 0;
}
.map-detail-content .meta-item {
    font-size: 0.85rem;
}
.map-detail-content .meta-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.map-detail-content .meta-item span {
    color: var(--text);
    font-weight: 500;
}
.map-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--dark-border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.map-detail-close:hover {
    border-color: var(--red);
    color: var(--red);
}
[data-theme="light"] .map-canvas-wrap { background: linear-gradient(135deg, rgba(230, 57, 70, 0.04), rgba(0, 0, 0, 0.02)); border-color: #ddd; }
[data-theme="light"] .map-detail { border-color: #ddd; background: #fff; }
[data-theme="light"] .map-legend { background: rgba(255, 255, 255, 0.85); color: #444; }
[data-theme="light"] .map-detail-content .detail-meta { background: rgba(230, 57, 70, 0.06); }

@media (max-width: 900px) {
    .map-layout { grid-template-columns: 1fr; }
    .map-detail { position: static; min-height: auto; }
}

/* =========================================================================
   AI DESIGN VISION (standalone)
   ========================================================================= */
.vision-section {
    background: var(--dark);
    padding: 5rem 0 4rem;
    position: relative;
}
.vision-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.08), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.06), transparent 50%);
    pointer-events: none;
}
.vision-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}
.vision-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.vision-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 100px;
    color: var(--red);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.vision-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.vision-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.vision-step {
    display: none;
    animation: visionFadeIn 0.35s ease-out;
}
.vision-step.active { display: block; }
@keyframes visionFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.vision-step-header {
    margin-bottom: 1.5rem;
}
.step-badge {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.vision-step-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.vision-step-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.vision-step select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.vision-privacy {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.85rem;
    line-height: 1.4;
}
.vision-upload-zone {
    border: 2px dashed var(--dark-border);
    border-radius: 10px;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}
.vision-upload-zone:hover, .vision-upload-zone.dragover {
    border-color: var(--red);
    background: rgba(230, 57, 70, 0.04);
    color: var(--text);
}
.vision-upload-zone svg { opacity: 0.5; }
.vision-upload-zone:hover svg { opacity: 0.9; color: var(--red); }
.upload-primary {
    font-size: 0.95rem;
    margin-top: 0.25rem;
}
.upload-primary strong { color: var(--red); }
.upload-hint {
    font-size: 0.78rem;
    opacity: 0.7;
}
.vision-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.vision-preview img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}
.vision-preview .preview-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.vision-preview .preview-remove:hover { background: var(--red); }
.vision-back-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}
.vision-back-btn:hover { color: var(--red); }
.vision-results-body {
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    max-height: 420px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}
.vision-results-body h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--red);
    margin: 1rem 0 0.4rem;
}
.vision-results-body h4:first-child { margin-top: 0; }
.vision-results-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}
.vision-results-body p { margin-bottom: 0.6rem; }
.vision-results-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.vision-results-actions .btn { flex: 1; min-width: 160px; }
.vision-features-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.vision-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.vision-feature .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vision-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.vision-feature p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.vision-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(230, 57, 70, 0.04);
    border-left: 2px solid var(--red);
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    font-style: italic;
}
.contact-vision-tip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
    padding: 0.6rem 0.85rem;
    background: rgba(230, 57, 70, 0.05);
    border-radius: 6px;
}
.contact-vision-tip svg { color: var(--red); flex-shrink: 0; }
.contact-vision-tip a { color: var(--red); font-weight: 600; text-decoration: none; }
.contact-vision-tip a:hover { text-decoration: underline; }

[data-theme="light"] .vision-card { border-color: #ddd; background: #fff; }
[data-theme="light"] .vision-upload-zone { border-color: #ccc; }
[data-theme="light"] .vision-step select { background: #fafafa; border-color: #ddd; }
[data-theme="light"] .vision-results-body { background: #fafafa; border-color: #ddd; }
[data-theme="light"] .vision-disclaimer { background: rgba(230, 57, 70, 0.06); }
[data-theme="light"] .contact-vision-tip { background: rgba(230, 57, 70, 0.06); }

@media (max-width: 900px) {
    .vision-layout { grid-template-columns: 1fr; }
    .vision-card { padding: 1.5rem; }
}
