/* RESET & VARIABLES */
:root {
    --primary-color: #00d2ff;
    --primary-dark: #0099cc;
    --accent-color: #ff3d00;
    --dark-bg: #0a0e17;
    --card-bg: #151b2b;
    --text-light: #f0f4f8;
    --text-dim: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(21, 27, 43, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    /* Optional: Subtle repeating logo watermark on body if desired, otherwise just dark bg */
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 125, 70, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    box-shadow: 0 6px 20px rgba(200, 125, 70, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

.btn-block {
    display: block;
    width: 100%;
    margin-left: 0;
    text-align: center;
}

/* TOP BAR */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}



/* TICKER ANIMATION */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 30px;
    margin: 0 20px;
    position: relative;
    /* Mask fade on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
    display: flex;
    position: absolute;
    width: 200%;
    /* Ensure width for scrolling ?? or utilize keyframes translate */
    animation: ticker 30s linear infinite;
    gap: 50px;
    align-items: center;
    height: 100%;
}

.ticker-item {
    font-size: 0.85rem;
    white-space: nowrap;
    color: #ffd700;
    /* Gold/Yellow for alerts */
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(27, 42, 65, 0.98);
    /* Solid Navy */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 3px;
}

.logo-img {
    height: 70px;
    /* Highly visible but not overwhelming */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
}

/* Responsive Nav */
@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
        /* Hide for now on mobile, simplified */
    }

    .menu-toggle {
        display: flex;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Use Logo as Background */
    background: url('assets/hero-bg.jpeg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better text contrast/readability */
    background: rgba(27, 42, 65, 0.92);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.text-gradient {
    /* Updated gradient to match Copper/Bronze */
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

/* FEATURES */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card .icon {
    margin-bottom: 20px;
    color: var(--text-light);
    display: inline-block;
    padding: 15px;
    background: var(--primary-color);
    border-radius: 8px;
}

.feature-card .icon svg {
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* LEAD CAPTURE */
.lead-capture {
    background: radial-gradient(circle at top right, #1a2333, var(--dark-bg));
    position: relative;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
}

.benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.glass-panel h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 15px;
}

/* WHO WE SERVE */
.serve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.serve-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.serve-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.serve-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* PROCESS SECTION */
.process-timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    /* Subtle watermark number */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.process-step h3 {
    color: var(--primary-color);
    margin-top: 40px;
    /* Clear the number */
    position: relative;
    z-index: 1;
}

.process-step p {
    position: relative;
    z-index: 1;
}

/* FAQ SECTION */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

/* PROCESS SECTION */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    /* Increased opacity for visibility */
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    z-index: 0;
    transition: color 0.3s;
}

.process-step:hover .step-num {
    color: var(--primary-color);
    opacity: 0.8;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.process-step p {
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}

.faq-answer p {
    margin-bottom: 20px;
    color: var(--text-dim);
}

/* TRUST BAR */
.bg-dark-2 {
    background-color: #142032;
    /* Slightly Lighter Navy */
}

.trust-bar {
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.trust-text {
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* BEFORE & AFTER SLIDER */
.ba-slider-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 400px;
    /* Adjust based on valid image aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    cursor: col-resize;
}

.ba-image-before,
.ba-image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-image-after {
    width: 100%;
    /* Initially full width but clipped */
}

.ba-image-before {
    /* Overlaying, will be clipped */
    width: 50%;
    /* JS will update this */
    border-right: 2px solid #fff;
    z-index: 10;
    overflow: hidden;
}

.ba-image-before img,
.ba-image-after img {
    width: 100%;
    /* Important: Images must stretch to container width */
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-image-before img {
    /* Counteract the container width to keep image static */
    width: 200%;
    /* Since container is 50%, 200% makes it look full width relative to viewport */
}


/* REVISED SLIDER USING CLIP-PATH (CLEANER) */
.ba-slider {
    position: relative;
    height: 400px;
}

.ba-image-after {
    /* Background Layer (Restored) */
    position: absolute;
    width: 100%;
    height: 100%;
}

.ba-image-before {
    /* Foreground Layer (Damage) */
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
    /* Show left 50% initially */
}

.ba-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    pointer-events: none;
    /* Let clicks pass through */
}

.ba-image-after .ba-label {
    right: 20px;
}

.ba-image-before .ba-label {
    left: 20px;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    cursor: col-resize;
    z-index: 20;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* REVIEWS */
.reviews-section {
    width: 100%;
}

.review-card {
    padding: 25px;
    margin-bottom: 20px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-light);
}

.review-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* FOOTER EXPANDED */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

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

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

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
}

/* MOBILE STICKY BUTTON */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: var(--card-bg);
    /* Dark background behind button */
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    display: none;
    /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }

    #chatbot-widget {
        bottom: 80px;
        /* Move chat up so it doesn't overlap button */
    }

    .serve-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .ticker-wrap {
        display: none;
        /* Hide ticker on mobile to save space */
    }

    .roof-stack {
        width: 200px;
        height: 200px;
    }

    .anatomy-visual {
        height: 300px;
    }
}

/* --- ANATOMY SECTION 3D --- */
.anatomy-section {
    overflow: hidden;
    /* Prevents 3D elements from scrolling page */
}

.anatomy-visual {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Essential for 3D effect */
}

.roof-stack {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* Hovering the whole stack expands it (Exploded View) */
.roof-stack:hover .stack-layer.layer-5 {
    transform: translateZ(160px);
}

.roof-stack:hover .stack-layer.layer-4 {
    transform: translateZ(120px);
}

.roof-stack:hover .stack-layer.layer-3 {
    transform: translateZ(80px);
}

.roof-stack:hover .stack-layer.layer-2 {
    transform: translateZ(40px);
}

/* Hovering a specific layer lifts it higher */
.stack-layer:hover {
    filter: brightness(1.2);
    border-color: var(--secondary) !important;
}

.stack-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* Layer Colors & Z-Index */
.layer-5 {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    z-index: 5;
    transform: translateZ(40px);
}

.layer-4 {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    z-index: 4;
    transform: translateZ(30px);
}

.layer-3 {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    z-index: 3;
    transform: translateZ(20px);
}

.layer-2 {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    z-index: 2;
    transform: translateZ(10px);
}

.layer-1 {
    background: linear-gradient(135deg, #c05621, #9c4221);
    z-index: 1;
    transform: translateZ(0px);
}

/* Layer Text Content - Counteract rotation to make text readable */
.layer-content {
    transform: rotateZ(45deg) rotateX(-60deg) translateY(-20px);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.roof-stack:hover .layer-content {
    opacity: 1;
}

.interaction-hint {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Info Cards Styling */
.anatomy-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.info-card p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.info-icon {
    font-size: 1.5rem;
}

/* Active State for Info Cards */
.info-card.active {
    background: rgba(0, 123, 255, 0.15);
    border-color: var(--primary);
    transform: translateX(10px);
}

.info-card.active h3 {
    color: var(--primary);
}

/* ANATOMY GRAPHIC */
/* See 3D Section Below */

/* ZIP CHECKER */
.zip-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.zip-input-group input {
    background: #fff;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 4px;
    width: 200px;
    font-size: 1rem;
    text-align: center;
}

/* REFERRAL WIDGET */
.referral-widget {
    transition: transform 0.3s;
}

.referral-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 61, 0, 0.2);
}

/* MOBILE STICKY BUTTON */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: var(--card-bg);
    /* Dark background behind button */
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    display: none;
    /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }

    #chatbot-widget {
        bottom: 80px;
        /* Move chat up so it doesn't overlap button */
    }

    .serve-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }
}

#chat-trigger {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2101;
}

#chat-trigger:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 2100;
}

#chat-window.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: var(--primary-color);
    padding: 15px;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-controls {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.calculator-grid {
    gap: 30px;
    align-items: start;
}

.calc-inputs h3,
.calc-results h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* Dark input bg */
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(200, 125, 70, 0.2);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.pitch-toggles {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pitch-btn {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pitch-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.hidden {
    display: none;
}

.material-options {
    display: grid;
    gap: 10px;
}

.material-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.material-card.selected {
    border-color: var(--primary-color);
    background: rgba(200, 125, 70, 0.1);
}

.material-card h4 {
    margin: 0;
    font-size: 1rem;
}

.material-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.calc-results {
    text-align: center;
    border: 1px solid var(--primary-color);
    /* Highlight result box */
}

.total-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(200, 125, 70, 0.3);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--glass-border);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* FOOTER */
.footer {
    background: #05070a;
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.footer-links a {
    color: var(--text-dim);
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    color: #555;
    font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Initial state */
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        /* Add hamburger styling here usually */
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        margin-bottom: 6px;
    }

    /* Mobile 3D Anatomy Fixes */
    .roof-stack {
        transform: rotateX(60deg) rotateZ(-30deg) scale(0.65);
        /* Even smaller on mobile */
        margin-left: -20px;
    }

    .stack-layer {
        width: 160px;
        /* Smaller layers */
        height: 160px;
    }

    .stack-layer:hover,
    .stack-layer:active,
    .stack-layer.touched {
        transform: translateZ(30px);
    }

    .info-card {
        padding: 15px;
        font-size: 0.9rem;
    }

    /* General Mobile Cleanup */
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Prevent overflow */
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
    }
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

/* MAP WIDGET STYLES */
#service-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* BOOKING MODAL STYLES */
#booking-modal {
    animation: fadeIn 0.3s ease;
}

#booking-modal h2 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

#booking-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    transition: transform 0.2s;
}

#booking-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 125, 70, 0.4);
}