/* Color Variables */
:root {
    --brown: #442F32;
    --blue: #8B9CBB;
    --light-tan: #F7F4F0;
    --warm-tan: #EDE8E3;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.brown {
    color: var(--brown);
}

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

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--light-tan) 0%, #D9D2CA 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo-abbr {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.navbar .logo-abbr {
    color: white !important;
}

.logo-abbr:hover {
    transform: scale(1.05);
    letter-spacing: 5px;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--brown);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.company-name {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-align: left;
}

.company-name .line-1 {
    margin-left: 0;
}

.company-name .line-2 {
    margin-left: 2rem;
}

.company-name .line-3 {
    margin-left: 4rem;
}

.animate-letter {
    display: inline-block;
    opacity: 0;
}

/* Brown letters appear first with fade in */
.brown.animate-letter {
    animation: brownLetterAppear 0.6s ease forwards;
}

/* Blue letters expand from brown with delay */
.blue.animate-letter {
    animation: blueLetterExpand 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered delays for brown letters */
.line-1 .brown:nth-child(1) { animation-delay: 0.2s; }

.line-2 .brown:nth-child(1) { animation-delay: 0.25s; }

.line-3 .brown:nth-child(1) { animation-delay: 0.3s; }

/* Blue letters appear after brown with expanding effect */
.line-1 .blue:nth-child(2) { animation-delay: 0.8s; }
.line-1 .blue:nth-child(3) { animation-delay: 0.85s; }
.line-1 .blue:nth-child(4) { animation-delay: 0.9s; }
.line-1 .blue:nth-child(5) { animation-delay: 0.95s; }
.line-1 .blue:nth-child(6) { animation-delay: 1s; }

.line-2 .blue:nth-child(2) { animation-delay: 1.05s; }
.line-2 .blue:nth-child(3) { animation-delay: 1.1s; }
.line-2 .blue:nth-child(4) { animation-delay: 1.15s; }
.line-2 .blue:nth-child(5) { animation-delay: 1.2s; }
.line-2 .blue:nth-child(6) { animation-delay: 1.25s; }
.line-2 .blue:nth-child(7) { animation-delay: 1.3s; }
.line-2 .blue:nth-child(8) { animation-delay: 1.35s; }
.line-2 .blue:nth-child(9) { animation-delay: 1.4s; }
.line-2 .blue:nth-child(10) { animation-delay: 1.45s; }
.line-2 .blue:nth-child(11) { animation-delay: 1.5s; }
.line-2 .blue:nth-child(12) { animation-delay: 1.55s; }
.line-2 .blue:nth-child(13) { animation-delay: 1.6s; }

.line-3 .blue:nth-child(2) { animation-delay: 1.65s; }
.line-3 .blue:nth-child(3) { animation-delay: 1.7s; }
.line-3 .blue:nth-child(4) { animation-delay: 1.75s; }
.line-3 .blue:nth-child(5) { animation-delay: 1.8s; }
.line-3 .blue:nth-child(6) { animation-delay: 1.85s; }
.line-3 .blue:nth-child(7) { animation-delay: 1.9s; }

@keyframes brownLetterAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blueLetterExpand {
    from {
        opacity: 0;
        transform: scale(0) translateX(-10px);
    }
    60% {
        transform: scale(1.1) translateX(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: var(--brown);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(68, 47, 50, 0.3);
}

.cta-button:hover {
    background: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 156, 187, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--brown);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--brown);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 6rem 5%;
    background: white;
}

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

.about-content {
    margin-top: 2rem;
}

.about-text {
    text-align: center;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-mission,
.about-approach {
    background: linear-gradient(135deg, rgba(68, 47, 50, 0.05) 0%, rgba(139, 156, 187, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-mission h3,
.about-approach h3 {
    color: var(--brown);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-mission p,
.about-approach p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(68, 47, 50, 0.2);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(68, 47, 50, 0.3);
}

.value-card h4 {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: white;
    line-height: 1.6;
    opacity: 0.95;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background: white;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brown);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0EBE6 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(68, 47, 50, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: var(--brown);
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Services Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(68, 47, 50, 0.3);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--blue) 0%, #6b7fa8 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 156, 187, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0EBE6 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(68, 47, 50, 0.08);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-slide.active {
    opacity: 1;
}

.service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 156, 187, 0.1) 0%, rgba(68, 47, 50, 0.05) 100%);
    border-radius: 50%;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-slide:hover .placeholder-image {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(68, 47, 50, 0.15);
}

.placeholder-image svg {
    width: 100%;
    height: 100%;
}

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

.service-content h3 {
    font-size: 2rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.more-info-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(68, 47, 50, 0.3);
}

.more-info-btn:hover {
    background: linear-gradient(135deg, var(--blue) 0%, #6b7fa8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 156, 187, 0.5);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(68, 47, 50, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(68, 47, 50, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--brown);
    width: 30px;
    border-radius: 6px;
}

/* Security Analytics Section */
.security-analytics {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    color: white;
}

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

.security-analytics .section-title {
    color: white;
    opacity: 1;
    position: relative;
}

.info-icon {
    font-size: 0.6em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Small info icons for crime categories */
.info-icon-small {
    font-size: 0.75em;
    cursor: help;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-left: 3px;
    color: var(--blue);
}

.info-icon-small:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Data source info icon - clickable */
.data-source-info {
    cursor: pointer;
    font-size: 0.7em;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.data-source-info:hover {
    opacity: 1;
    transform: scale(1.3);
    color: var(--blue);
}

/* Data Source Popup */
.data-source-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(135deg, rgba(68, 47, 50, 0.98), rgba(139, 156, 187, 0.95));
    border: 2px solid var(--blue);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.data-source-popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: popupSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupSlideIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.popup-content {
    color: #fff;
    position: relative;
}

.popup-content h4 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(139, 156, 187, 0.5);
    padding-bottom: 0.5rem;
}

.popup-content p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.popup-content strong {
    color: var(--blue);
}

.popup-content a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
    transition: border-color 0.3s ease;
}

.popup-content a:hover {
    border-color: #fff;
}

.popup-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 156, 187, 0.3);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

/* Overlay backdrop */
.data-source-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.analytics-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Crime Stats Grid */
.crime-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-trend {
    display: block;
    font-size: 0.9rem;
    color: #a8d5ba;
    opacity: 0.8;
}

.live-indicator {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.chart-container canvas {
    max-height: 300px;
}

.chart-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

/* Area Lookup Container */
.area-lookup-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
}

.area-lookup-container h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.area-lookup-container > p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
    text-align: center;
}

.location-select-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.location-select {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brown);
    width: 220px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.location-select:hover:not(:disabled) {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.location-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(139, 156, 187, 0.2);
}

.rates-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
}

.rates-info p {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.rates-info strong {
    color: var(--blue);
    font-size: 0.85rem;
}

.rates-info span {
    font-weight: bold;
    color: var(--blue);
}

/* Comparison Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    white-space: nowrap;
    cursor: help;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
}

.badge-high {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.5);
}

.badge-low {
    background: rgba(168, 213, 186, 0.3);
    color: #a8d5ba;
    border: 1px solid rgba(168, 213, 186, 0.5);
}

.badge-neutral {
    background: rgba(139, 156, 187, 0.3);
    color: var(--blue);
    border: 1px solid rgba(139, 156, 187, 0.5);
}

/* Button Container for centering */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.area-stats-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.area-stats-results.hidden {
    display: none;
}

.area-stats-results h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--blue);
    text-align: center;
}

.population-info {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--blue);
    font-weight: bold;
}

.data-source {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
}

/* Property Type Grid (Residential vs Commercial) */
.property-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.property-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--blue);
    text-align: center;
}

.property-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.stat-value {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue);
    margin-right: 0.5rem;
}

.stat-desc {
    display: inline-block;
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
    vertical-align: middle;
}

/* Modern Service Detail Pages */

/* Service Hero Section */
.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    padding: 10rem 5% 6rem;
    position: relative;
    overflow: hidden;
}

.service-hero-content {
    text-align: center;
    z-index: 1;
}

.service-hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 900;
}

.service-hero-subtitle {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 3rem;
}

.hero-visual svg {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Service Container */
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Overview Section */
.service-overview {
    padding: 6rem 0;
    background: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-content h2 {
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 1.5rem;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(68, 47, 50, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: white;
    font-size: 1rem;
    opacity: 0.9;
}

/* Features Section */
.service-features-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-tan) 0%, #D9D2CA 100%);
}

.features-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--brown);
    margin-bottom: 4rem;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(68, 47, 50, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(68, 47, 50, 0.2);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Process Timeline */
.service-process {
    padding: 6rem 0;
    background: white;
}

.process-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--brown);
    margin-bottom: 4rem;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    align-items: center;
}

.process-step {
    grid-column: span 1;
    text-align: center;
    padding: 2rem 1rem;
}

.process-connector {
    grid-column: span 1;
    height: 3px;
    background: linear-gradient(90deg, var(--brown) 0%, var(--blue) 100%);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 20px rgba(68, 47, 50, 0.3);
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.process-step p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Audience Section */
.service-audience-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-tan) 0%, #D9D2CA 100%);
}

.service-audience-section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--brown);
    margin-bottom: 4rem;
}

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

.audience-card-modern {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    border-left: 5px solid var(--blue);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(68, 47, 50, 0.1);
}

.audience-card-modern:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(68, 47, 50, 0.2);
}

.audience-card-modern h3 {
    font-size: 1.6rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.audience-card-modern p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* CTA Section */
.service-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
}

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

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

.cta-box p {
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 2.5rem;
}

.cta-button-large {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--blue) 0%, #6b7fa8 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 156, 187, 0.4);
}

.cta-button-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 156, 187, 0.6);
}

/* Service Request Page */
.request-service-section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    color: white;
}

.request-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--blue);
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.service-request-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.service-request-form .form-group {
    margin-bottom: 2rem;
}

.service-request-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--blue);
}

.required {
    color: #ff6b6b;
}

.service-request-form input,
.service-request-form select,
.service-request-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brown);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.service-request-form input:focus,
.service-request-form select:focus,
.service-request-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(139, 156, 187, 0.3);
    background: white;
}

.service-request-form textarea {
    resize: vertical;
    min-height: 150px;
}

.character-count {
    text-align: right;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.field-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.submit-button {
    background: linear-gradient(135deg, var(--blue) 0%, #6b7fa8 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 156, 187, 0.4);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 156, 187, 0.6);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(168, 213, 186, 0.3);
    border: 2px solid #a8d5ba;
    color: #a8d5ba;
}

.form-message.error {
    background: rgba(255, 107, 107, 0.3);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
}

/* reCAPTCHA styling */
.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.form-group > .g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--brown) 0%, #5a4447 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #D9D2CA;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(139, 156, 187, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--brown);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 156, 187, 0.3);
}

/* Footer */
.footer {
    padding: 2rem 5%;
    background: var(--brown);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-center .logo-abbr {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.footer-center p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-right h4 {
    font-size: 0.95rem;
    color: var(--blue);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.footer-right p {
    font-size: 0.85rem;
    margin: 0.1rem 0;
    opacity: 0.9;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(247, 244, 240, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
    }

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

    .hamburger {
        display: flex;
    }

    .logo-abbr {
        font-size: 1.5rem;
    }

    .footer-logo {
        height: 50px;
        padding: 0.6rem 1.2rem;
    }

    .company-name {
        font-size: 3rem;
    }

    .company-name .line-2 {
        margin-left: 1.5rem;
    }

    .company-name .line-3 {
        margin-left: 3rem;
    }

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

    .charts-section {
        grid-template-columns: 1fr;
    }

    .location-select-group {
        flex-direction: column;
        align-items: stretch;
    }

    .location-select {
        width: 100%;
        min-width: unset;
    }

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

    .property-type-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .carousel-container {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .service-slide {
        padding: 2rem;
    }

    .placeholder-image {
        width: 150px;
        height: 150px;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-content p {
        font-size: 1rem;
    }

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

    .service-request-form {
        padding: 2rem 1.5rem;
    }

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

    .service-hero {
        padding: 8rem 5% 4rem;
    }

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

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

    .hero-visual svg {
        max-width: 200px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .overview-content h2 {
        font-size: 2rem;
    }

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

    .process-connector {
        display: none;
    }

    .features-title,
    .process-title,
    .service-audience-section h2,
    .cta-box h2 {
        font-size: 2rem;
    }

    .cta-box p {
        font-size: 1.1rem;
    }

    .cta-button-large {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-right {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo-abbr {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .footer-logo {
        height: 45px;
        padding: 0.5rem 1rem;
    }

    .company-name {
        font-size: 2rem;
    }

    .company-name .line-2 {
        margin-left: 1rem;
    }

    .company-name .line-3 {
        margin-left: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .service-hero-title {
        font-size: 2rem;
    }

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

    .hero-visual svg {
        max-width: 150px;
    }

    .overview-content h2 {
        font-size: 1.6rem;
    }

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

    .features-title,
    .process-title,
    .service-audience-section h2,
    .cta-box h2 {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .cta-button-large {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}
