/* ================================================
   ELITE ROOFING - PREMIUM STYLESHEET
   $25k Agency-Quality Dark Theme
   ================================================ */

/* === ROOT VARIABLES === */
:root {
    /* Colors - Exact from brief */
    --bg-dark: #0B0F1A;
    --primary-blue: #1D4ED8;
    --secondary-blue: #38BDF8;
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;

    /* Additional Colors */
    --card-bg: rgba(20, 24, 38, 0.6);
    --border-color: rgba(56, 189, 248, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Effects */
    --glow: 0 0 30px rgba(29, 78, 216, 0.5);
    --glow-strong: 0 0 40px rgba(56, 189, 248, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === CONTAINER === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(11, 15, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 2rem;
}

.highlight {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--glow);
}

.nav-cta::after {
    display: none;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition);
    border-radius: 3px;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 26, 0.85) 0%, rgba(29, 78, 216, 0.3) 100%);
    z-index: 1;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B0F1A 0%, #1a2332 100%);
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-white);
}

.btn-primary.glow {
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-blue);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-blue);
    border-radius: 20px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--secondary-blue);
    border-radius: 3px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scrollDot {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* === ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* === TRUST BADGES === */
.trust-section {
    padding: 4rem 0;
    background: rgba(20, 24, 38, 0.4);
}

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

.trust-badge {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.trust-badge:hover {
    border-color: var(--secondary-blue);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 3rem;
}

.badge-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.badge-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === SECTIONS === */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* === GLASS CARD === */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--secondary-blue);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--secondary-blue);
    font-weight: 600;
    transition: var(--transition);
}

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

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--secondary-blue);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

.before-after {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.ba-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ba-after {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid var(--text-white);
    pointer-events: none;
    box-shadow: var(--glow);
}

.gallery-caption {
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2.5rem;
    text-align: center;
}

.feature-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.8;
}

/* === REVIEWS === */
.reviews-carousel {
    position: relative;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 400px;
    padding: 2.5rem;
    scroll-snap-align: start;
}

.review-stars {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === MAP === */
.map-container {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.michigan-map {
    width: 100%;
    height: auto;
}

.map-region {
    fill: rgba(29, 78, 216, 0.3);
    stroke: var(--primary-blue);
    stroke-width: 2;
    cursor: pointer;
    transition: var(--transition);
    animation: mapPulse 3s infinite;
}

.map-region:hover {
    fill: rgba(56, 189, 248, 0.6);
    stroke: var(--secondary-blue);
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.8));
}

@keyframes mapPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.map-label {
    fill: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
}

/* === ABOUT === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    padding: 3rem;
}

.founder-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-description {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* === CONTACT FORM === */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    padding: 3rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 4rem 3rem;
}

.contact-success.show {
    display: block;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
}

.contact-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-success p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* === FOOTER === */
.footer {
    background: rgba(11, 15, 26, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-list li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-list .emergency {
    color: var(--secondary-blue);
    font-weight: 600;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

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

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

/* === MOBILE BAR === */
.mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    padding: 1rem;
    z-index: 999;
}

.mobile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
}

.mobile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: var(--glow);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: rgba(11, 15, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

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

    .review-card {
        min-width: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-bar {
        display: flex;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .trust-badge {
        padding: 1.5rem;
    }

    .mobile-btn span {
        display: none;
    }
}

/* === SCROLL REVEAL === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   CALCULATOR SECTION
   ================================================ */

.calculator-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg,
        rgba(29, 78, 216, 0.05) 0%,
        rgba(11, 15, 26, 0) 100%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

/* === CALCULATOR INPUTS === */
.calculator-inputs {
    padding: 3rem;
}

.calc-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-group {
    margin-bottom: 2.5rem;
}

.calc-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.value-highlight {
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* === ROOF TYPE OPTIONS === */
.calc-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.calc-option {
    cursor: pointer;
}

.calc-option input[type="radio"] {
    display: none;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(20, 24, 38, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.option-icon {
    font-size: 2rem;
    filter: grayscale(100%);
    transition: var(--transition);
}

.option-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.calc-option input[type="radio"]:checked + .option-card {
    background: rgba(29, 78, 216, 0.2);
    border-color: var(--secondary-blue);
    box-shadow: var(--glow);
}

.calc-option input[type="radio"]:checked + .option-card .option-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.calc-option input[type="radio"]:checked + .option-card .option-name {
    color: var(--secondary-blue);
    font-weight: 600;
}

.option-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* === SLIDER === */
.calc-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg,
        var(--primary-blue) 0%,
        var(--secondary-blue) 100%);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--secondary-blue);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
    transition: var(--transition);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--secondary-blue);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
    transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--glow-strong);
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--glow-strong);
}

/* === DAMAGE LEVEL RADIOS === */
.calc-radios {
    display: flex;
    gap: 1rem;
}

.calc-radio {
    cursor: pointer;
    flex: 1;
}

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

.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(20, 24, 38, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.radio-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.calc-radio input[type="radio"]:checked + .radio-card {
    background: rgba(29, 78, 216, 0.2);
    border-color: var(--secondary-blue);
    box-shadow: var(--glow);
}

.calc-radio input[type="radio"]:checked + .radio-card .radio-name {
    color: var(--secondary-blue);
    font-weight: 600;
}

.radio-card:hover {
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* === CHECKBOXES === */
.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-checkbox {
    cursor: pointer;
}

.calc-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(20, 24, 38, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 500;
}

.checkbox-price {
    font-size: 0.95rem;
    color: var(--secondary-blue);
    font-weight: 600;
}

.calc-checkbox input[type="checkbox"]:checked + .checkbox-card {
    background: rgba(29, 78, 216, 0.2);
    border-color: var(--secondary-blue);
    box-shadow: var(--glow);
}

.calc-checkbox input[type="checkbox"]:checked + .checkbox-card .checkbox-label {
    color: var(--secondary-blue);
}

.checkbox-card:hover {
    border-color: var(--secondary-blue);
    transform: translateX(5px);
}

/* === CALCULATOR RESULTS === */
.calculator-results {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.price-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg,
        rgba(29, 78, 216, 0.2) 0%,
        rgba(56, 189, 248, 0.2) 100%);
    border-radius: 16px;
    border: 2px solid var(--secondary-blue);
    box-shadow: var(--glow);
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.price-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === URGENCY BADGE === */
.urgency-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22C55E;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #22C55E;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.urgency-badge.moderate {
    background: rgba(251, 146, 60, 0.2);
    border-color: #FB923C;
    color: #FB923C;
}

.urgency-badge.heavy {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

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

/* === BREAKDOWN === */
.calc-breakdown {
    background: rgba(20, 24, 38, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
}

.breakdown-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breakdown-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

/* === CALC SUMMARY === */
.calc-summary {
    padding: 1.5rem;
    background: rgba(29, 78, 216, 0.1);
    border-left: 4px solid var(--secondary-blue);
    border-radius: 8px;
}

.calc-summary p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* === RESPONSIVE CALCULATOR === */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-results {
        position: static;
    }

    .calc-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-inputs,
    .calculator-results {
        padding: 2rem;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .calc-options {
        grid-template-columns: 1fr;
    }

    .calc-radios {
        flex-direction: column;
    }
}

/* ================================================
   HOMEPAGE CITY CARDS
   ================================================ */

.city-card-home {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.city-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(56, 189, 248, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.city-card-home:hover::before {
    opacity: 1;
}

.city-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.5);
    border-color: var(--secondary-blue);
}

.city-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.city-emoji {
    font-size: 3rem;
    transition: transform 0.3s;
    display: block;
}

.city-card-home:hover .city-emoji {
    transform: scale(1.2) rotate(-5deg);
}

.city-badge {
    position: absolute;
    right: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--glow);
}

.city-name-home {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.city-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.city-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.city-highlights li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
    padding-left: 0.5rem;
    transition: color 0.3s;
}

.city-card-home:hover .city-highlights li {
    color: var(--text-white);
}

.city-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s;
    position: relative;
    z-index: 1;
}

.city-card-home:hover .city-cta {
    gap: 1rem;
}

.city-cta svg {
    transition: transform 0.3s;
}

.city-card-home:hover .city-cta svg {
    transform: translateX(5px);
}

/* Responsive city cards */
@media (max-width: 768px) {
    .city-card-home {
        padding: 2rem;
    }

    .city-emoji {
        font-size: 2.5rem;
    }

    .city-name-home {
        font-size: 1.5rem;
    }
}

/* ================================================
   ANIMATED ROOFING HELPER CHARACTER
   ================================================ */

.roofing-helper {
    position: fixed;
    bottom: 100px;
    right: -400px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.roofing-helper.show {
    right: 30px;
}

.roofing-helper.minimized {
    right: 30px;
}

.roofing-helper.minimized .helper-bubble {
    display: none;
}

.helper-character {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.6);
    cursor: pointer;
    transition: transform 0.3s;
    animation: helperFloat 3s ease-in-out infinite;
    flex-shrink: 0;
}

.helper-character:hover {
    transform: scale(1.1);
}

@keyframes helperFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.helper-emoji {
    font-size: 2.5rem;
    animation: helperWave 2s ease-in-out infinite;
}

@keyframes helperWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.helper-shine {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: helperShine 2s ease-in-out infinite;
}

@keyframes helperShine {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.helper-bubble {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--secondary-blue);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 280px;
    box-shadow: var(--glow);
    position: relative;
    animation: helperBubbleIn 0.5s ease-out 0.5s both;
}

@keyframes helperBubbleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.helper-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--secondary-blue);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.helper-text {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.helper-actions {
    display: flex;
    gap: 0.75rem;
}

.helper-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.helper-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.helper-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.helper-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-blue);
    border: 1px solid var(--secondary-blue);
}

.helper-btn-secondary:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.helper-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 10;
}

.helper-close:hover {
    background: var(--secondary-blue);
    transform: rotate(90deg);
}

/* Mobile responsive helper */
@media (max-width: 768px) {
    .roofing-helper {
        bottom: 80px;
        right: -350px;
    }

    .roofing-helper.show {
        right: 15px;
    }

    .roofing-helper.minimized {
        right: 15px;
    }

    .helper-character {
        width: 70px;
        height: 70px;
    }

    .helper-emoji {
        font-size: 2rem;
    }

    .helper-bubble {
        max-width: 240px;
        padding: 1.25rem;
    }

    .helper-text {
        font-size: 0.9rem;
    }

    .helper-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .helper-btn {
        width: 100%;
    }
}

/* ===========================
   Owner Welcome Video Section
   =========================== */

.video-welcome-section {
    padding: 100px 0;
    background: linear-gradient(135deg,
        rgba(29, 78, 216, 0.05) 0%,
        rgba(56, 189, 248, 0.05) 100%);
}

.video-welcome-container {
    margin-top: 4rem;
}

/* Video Player Wrapper */
.video-player-wrapper {
    padding: 0;
    overflow: hidden;
    margin-bottom: 3rem;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1f35 0%, #0f1219 100%);
    border-radius: 20px;
    overflow: hidden;
}

/* Video Placeholder */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(29, 78, 216, 0.2) 0%,
        rgba(56, 189, 248, 0.2) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23ffffff" fill-opacity="0.03" width="100" height="100"/></svg>');
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg,
        rgba(29, 78, 216, 0.3) 0%,
        rgba(56, 189, 248, 0.3) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23ffffff" fill-opacity="0.03" width="100" height="100"/></svg>');
}

/* Play Button */
.video-play-button {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1D4ED8, #38BDF8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.4),
                0 10px 30px rgba(0, 0, 0, 0.3);
    animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.4),
                    0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(56, 189, 248, 0.6),
                    0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

.video-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.6),
                0 15px 40px rgba(0, 0, 0, 0.4);
}

.play-icon {
    font-size: 3rem;
    color: white;
    margin-left: 8px;
}

/* Owner Info on Video */
.video-owner-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(11, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-avatar {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.owner-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
}

.owner-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
    font-size: 1rem;
}

.owner-experience {
    color: var(--secondary-blue) !important;
    font-weight: 600;
}

/* Actual Video Element */
#ownerVideo {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Video Info */
.video-info {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
}

.video-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.video-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.video-highlights li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Video Stats */
.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .video-welcome-section {
        padding: 60px 0;
    }

    .video-player {
        aspect-ratio: 4 / 3;
    }

    .video-play-button {
        width: 90px;
        height: 90px;
    }

    .play-icon {
        font-size: 2.5rem;
    }

    .video-owner-info {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .owner-avatar {
        font-size: 3rem;
    }

    .owner-details h3 {
        font-size: 1.25rem;
    }

    .video-info {
        padding: 2rem;
    }

    .video-highlights {
        grid-template-columns: 1fr;
    }

    .video-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .video-stats {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Blog Styles
   =========================== */

/* Blog Hero */
.blog-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg,
        rgba(29, 78, 216, 0.1) 0%,
        rgba(56, 189, 248, 0.1) 100%);
    text-align: center;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38BDF8, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.blog-hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.blog-card-category {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-card-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.blog-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.blog-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.blog-card-link {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: #60D5FD;
    transform: translateX(5px);
}

/* Blog CTA Section */
.blog-cta-section {
    padding: 60px 0 100px;
}

.blog-cta {
    text-align: center;
    padding: 4rem 3rem;
}

.blog-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid var(--secondary-blue);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button-secondary:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Blog Article Page */
.blog-article {
    padding: 120px 0 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.article-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-category {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-date,
.article-reading-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.article-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* Article Content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.content-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.lead-paragraph {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.75rem;
}

.content-section a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #60D5FD;
}

/* Table of Contents */
.table-of-contents {
    padding: 2.5rem;
    margin: 3rem 0;
}

.table-of-contents h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 1rem;
}

.table-of-contents a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.table-of-contents a:before {
    content: "→";
    color: var(--secondary-blue);
    font-weight: bold;
}

.table-of-contents a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: white;
    padding-left: 1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    padding: 2rem;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-card strong {
    color: var(--secondary-blue);
}

/* Material/Tips Grid */
.material-comparison,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.material-card,
.tip-card {
    padding: 2rem;
}

.material-card h3,
.tip-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.rating {
    color: #FCD34D;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.material-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 1rem 0;
}

.material-brands {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-style: italic;
}

/* Pricing Table */
.pricing-table {
    padding: 2.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.pricing-table h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: rgba(56, 189, 248, 0.1);
    color: var(--secondary-blue);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-blue);
}

.pricing-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Warning/Info Boxes */
.warning-box,
.cost-factors,
.checklist,
.red-flags,
.cta-box {
    padding: 2.5rem;
    margin: 2rem 0;
}

.warning-box {
    border-left: 4px solid #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.warning-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.checklist {
    border-left: 4px solid #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.red-flags {
    border-left: 4px solid #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.cta-box {
    border: 2px solid var(--secondary-blue);
    background: rgba(56, 189, 248, 0.1);
    text-align: center;
}

.cta-box h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

/* Neighborhood Insights */
.neighborhood-insights,
.insight-card {
    margin: 2rem 0;
}

.insight-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.insight-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

/* Related Links */
.related-links {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.related-links p {
    margin-bottom: 1rem;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-hero-subtitle {
        font-size: 1.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card {
        padding: 2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1.2rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }

    .info-grid,
    .material-comparison,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        padding: 1.5rem;
    }

    .pricing-table table {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
    }
}

/* ===========================
   Blog Preview Section (Homepage)
   =========================== */

.blog-preview-section {
    padding: 100px 0;
    background: linear-gradient(135deg,
        rgba(29, 78, 216, 0.05) 0%,
        rgba(56, 189, 248, 0.05) 100%);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-preview-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.blog-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-preview-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.blog-preview-category {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.blog-preview-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-preview-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-preview-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.blog-preview-link {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.blog-preview-link:hover {
    color: #60D5FD;
    transform: translateX(5px);
}

.blog-preview-cta {
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .blog-preview-section {
        padding: 60px 0;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-preview-card {
        padding: 2rem;
    }

    .blog-preview-title {
        font-size: 1.5rem;
    }
}

/* ================================================
   AI CHATBOT STYLES
   ================================================ */

.hidden {
    display: none !important;
}

.ai-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

/* Toggle Button */
.chatbot-toggle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.6);
    transition: all 0.3s ease;
    position: relative;
    animation: chatPulse 3s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(56, 189, 248, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 50px rgba(56, 189, 248, 0.8);
    }
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.8);
}

.chat-icon {
    font-size: 2.8rem;
    animation: chatBounce 2s ease-in-out infinite;
}

@keyframes chatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-notification {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: #1a1a2e;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    animation: notificationPulse 2s ease-in-out infinite;
    font-size: 0.9rem;
    font-weight: 500;
}

.chat-notification::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-3px);
        opacity: 0.9;
    }
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 100px;
    right: 0;
    width: 400px;
    height: 600px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ai-chatbot.active .chatbot-window {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.chatbot-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chatbot-controls {
    display: flex;
    gap: 8px;
}

.chatbot-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(10, 10, 20, 0.3);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    color: white;
    line-height: 1.5;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.08);
}

/* Typing Indicator */
.typing-indicator .message-content {
    padding: 16px;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Input Area */
.chatbot-input-area {
    padding: 20px;
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#userInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: all 0.2s ease;
}

#userInput:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
}

#userInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-send-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ai-chatbot {
        bottom: 20px;
        right: 20px;
    }

    .chatbot-toggle {
        width: 60px;
        height: 60px;
    }

    .chat-icon {
        font-size: 2.2rem;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 90px;
        right: -10px;
    }

    .message-content {
        max-width: 85%;
    }
}

/* ================================================
   CITY GUIDE PAGES STYLING
   ================================================ */

.city-guide-hero {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(56, 189, 248, 0.1));
    padding: 140px 0 100px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.city-guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.city-guide-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.city-guide-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF, var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.city-guide-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
}

.content-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-article {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.main-article:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 40px rgba(29, 78, 216, 0.2);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-content h2 {
    color: var(--secondary-blue);
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    color: white;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-content h4 {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: white;
}

.school-list, .contractor-list,
.neighborhood-grid, .tips-section {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.school-item, .contractor-item,
.neighborhood-card, .tip-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.school-item:hover, .contractor-item:hover,
.neighborhood-card:hover, .tip-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.2);
}

.school-rating, .rating {
    color: #FFC107;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #38BDF8, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(56, 189, 248, 0.1));
    border: 2px solid var(--secondary-blue);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-box h3, .cta-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-widget h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

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

.guide-links li {
    margin-bottom: 1rem;
}

.guide-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
}

.guide-links a:hover {
    color: var(--secondary-blue);
    background: rgba(56, 189, 248, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--text-muted);
}

table tr:last-child td {
    border-bottom: none;
}

table td:first-child {
    font-weight: 600;
    color: white;
}

.checklist, .tips-list, .warning-box {
    padding: 2rem;
    margin: 2rem 0;
}

.checklist h4, .tips-list h4, .warning-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.pros-cons {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pros h5 {
    color: #4ade80;
    margin-bottom: 0.75rem;
}

.cons h5 {
    color: #f87171;
    margin-bottom: 0.75rem;
}

.featured {
    border: 2px solid var(--secondary-blue);
    background: rgba(56, 189, 248, 0.05);
}

.contractor-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .main-article {
        padding: 2rem;
    }

    .city-guide-hero .hero-title {
        font-size: 2.5rem;
    }

    .city-guide-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .city-guide-hero {
        padding: 120px 0 80px;
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .city-guide-hero .hero-title {
        font-size: 2rem;
    }

    .city-guide-hero .hero-subtitle {
        font-size: 1rem;
    }

    .main-article, .sidebar-widget {
        padding: 1.5rem;
    }

    .school-item, .contractor-item,
    .neighborhood-card, .tip-card {
        padding: 1.5rem;
    }
}
