:root {
    /* Color Variables */
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --secondary-dark: #137333;
    --accent-color: #ff6f00;
    --text-primary: #1f1f1f;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --text-muted: #9aa0a6;
    --surface: #f8f9fa;
    --background: #ffffff;
    --border: #e8eaed;
    --border-light: #f1f3f4;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --emergency-red: #ea4335;
    --emergency-red-dark: #d33b2c;
    --warning-amber: #fbbc04;
    --success-green: #34a853;
    
    /* Typography Scale - Perfect Fourth (1.333) */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-secondary: 'Inter', system-ui, sans-serif;
    
    /* Font Sizes - Modular Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px - Base */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;

    /* Spacing Scale */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 3rem;      /* 48px */
    --spacing-3xl: 4rem;      /* 64px */
    --spacing-4xl: 6rem;      /* 96px */

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--background);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 100vh;
    background: rgba(26, 115, 232, 0.1);
    z-index: 1001;
    border-radius: 0 4px 4px 0;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.dot-info {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--surface);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--surface);
    font-weight: var(--font-weight-semibold);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--surface);
    color: var(--primary-color);
}

.mobile-menu-btn .material-icons {
    font-size: 24px;
}

/* Hero Section - Smaller and with integrated emergency */
.hero {
    padding: calc(80px + var(--spacing-2xl)) var(--spacing-md) var(--spacing-3xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Modern Minimalist Hero Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(26, 115, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(255, 111, 0, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: linear-gradient(45deg, rgba(26, 115, 232, 0.05), rgba(52, 168, 83, 0.03));
    border-radius: 50% 30% 70% 40%;
    transform: rotate(-15deg);
    z-index: 1;
}

/* Geometric Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    top: 15%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.3), rgba(26, 115, 232, 0.1));
    animation: float-1 6s ease-in-out infinite;
}

.shape-2 {
    top: 60%;
    left: 20%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.3), rgba(52, 168, 83, 0.1));
    animation: float-2 8s ease-in-out infinite;
}

.shape-3 {
    top: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.2), rgba(255, 111, 0, 0.05));
    animation: float-3 7s ease-in-out infinite;
}

.shape-4 {
    bottom: 20%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.2), rgba(26, 115, 232, 0.05));
    animation: float-4 9s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-8deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(12deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-15deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: var(--spacing-2xl);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

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

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    opacity: 0.3;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Integrated Emergency Section in Hero */
.hero-emergency {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
}

.emergency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-snug);
}

.emergency-header i {
    color: #ff4444;
    font-size: 24px;
}

.emergency-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
}

.emergency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.emergency-item.urgent {
    border-color: rgba(255, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.02), white);
}

.emergency-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.emergency-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.emergency-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    color: var(--text-secondary);
}

.emergency-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    color: var(--primary-color);
}

.emergency-item.urgent .emergency-number {
    color: #ff4444;
}

/* Quick Access Cards */
.quick-access {
    padding: var(--spacing-xxl) 0;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.quick-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.card-icon i {
    font-size: 32px;
    color: white;
}

.quick-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.quick-card p {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-2xl);
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

/* Inline Category Navigation */
.category-nav-container {
    margin: var(--spacing-2xl) 0 var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.category-nav-inline {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.category-nav-inline .category-nav-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
}

.category-nav-inline .category-nav-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.category-nav-inline .category-nav-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.category-nav-inline .category-nav-button i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Services Section */
.services-section {
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
}

.service-category {
    margin-bottom: var(--spacing-3xl);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
}

.category-title i {
    color: var(--secondary-color);
}

/* Service Cards - Grid Layout with Fixed Widths */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: cardSlideIn 0.5s ease forwards;
}

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

.service-card.animate-in {
    animation: cardSlideIn 0.5s ease forwards;
}

.service-card.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered animation delays for category population */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
.service-card:nth-child(10) { animation-delay: 1.0s; }

/* Enhanced hover animations */
.service-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color);
}

/* Category transition animation */
.service-category {
    opacity: 0;
    transform: translateY(20px);
    animation: categoryFadeIn 0.4s ease forwards;
}

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

/* Loading state animation */
.service-grid.loading {
    position: relative;
    min-height: 200px;
}

.service-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll reveal animations for other elements */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Quick cards scroll reveal */
.quick-card.scroll-reveal {
    transform: translateY(30px) scale(0.9);
}

.quick-card.scroll-reveal.visible {
    transform: translateY(0) scale(1);
}

/* Emergency cards scroll reveal */
.emergency-item.scroll-reveal {
    transform: translateY(20px) scale(0.95);
}

.emergency-item.scroll-reveal.visible {
    transform: translateY(0) scale(1);
}

/* Staggered delays for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

.service-card h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    color: var(--text-primary);
    margin: 0;
}

.service-card .road-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-secondary);
    margin: 0;
}

.service-card .contact-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    align-items: center;
}

.service-card .no-contact {
    font-size: 10px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.7;
}

.service-card .contact-button {
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-height: 24px;
    flex: 0 1 auto;
}

.service-card .contact-button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.service-card .contact-button i {
    font-size: 12px;
}

.service-card .map-button {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    cursor: pointer;
    min-height: 24px;
    width: fit-content;
    max-width: 100%;
}

.service-card .map-button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.service-card .map-button i {
    font-size: 12px;
}

/* Contact Button Styling - Bigger buttons */
.contact-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: var(--spacing-xs);
    min-height: 40px;
    justify-content: center;
}

.contact-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.contact-button i {
    font-size: 18px;
}

.service-contact .contact-button + .contact-button {
    margin-top: var(--spacing-xs);
}

.no-contact {
    font-size: 10px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.7;
    padding: 0;
}

/* Map Button */
.map-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: var(--spacing-xs);
    text-decoration: none;
}

.map-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
}

.map-button i {
    font-size: 18px;
}

/* About Section */
.about-section {
    padding: var(--spacing-4xl) 0;
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: var(--text-secondary);
}

.about-text p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.2s ease;
}

.feature-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px var(--shadow-hover);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.footer-text {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 800px) {
    .mobile-menu-btn {
        display: block;
    }

    .emergency-grid {
        gap: var(--spacing-sm);
    }

    .emergency-card {
        min-width: 100px;
        max-width: 150px;
        padding: var(--spacing-sm);
    }

    .category-nav-inline {
        gap: var(--spacing-xs);
    }

    .category-nav-inline .category-nav-button {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
        min-height: 40px;
    }

    .category-nav-inline .category-nav-button i {
        font-size: 16px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
        box-shadow: 0 4px 8px var(--shadow);
        border-top: 1px solid var(--border);
        display: none;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-sm);
        text-align: left;
        font-size: var(--font-size-base);
        margin: 0;
    }
    
    .nav-content {
        position: relative;
    }
    
    .hero {
        padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-2xl);
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-content {
        padding: 0 var(--spacing-sm);
    }
    
        .scroll-progress {
        width: 3px;
    }
    
    .hero {
        padding: calc(80px + var(--spacing-sm)) var(--spacing-sm) var(--spacing-lg);
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        justify-content: center;
        width: 100%;
    }
    
    .quick-cards {
        grid-template-columns: 1fr;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        justify-content: center;
    }
    
    .service-card {
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 400px;
    }
    
    .contact-button:not(.service-card .contact-button) {
        justify-content: center;
        width: 100%;
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 44px;
    }
    
    /* Keep service card contact buttons horizontal and compact */
    .service-card .contact-button {
        width: fit-content !important;
        min-width: auto !important;
        flex: 0 1 auto !important;
        font-size: var(--font-size-sm);
        padding: 6px 12px;
        min-height: 24px;
    }

    .category-nav-container {
        margin: var(--spacing-xl) 0 var(--spacing-lg);
        padding: var(--spacing-md);
    }

    .category-nav-inline .category-nav-button {
        padding: var(--spacing-xs);
        font-size: var(--font-size-xs);
        min-height: 36px;
        flex-direction: column;
        gap: 2px;
    }

    .category-nav-inline .category-nav-button i {
        font-size: 14px;
    }

    .category-nav-inline .category-nav-button span {
        font-size: var(--font-size-xs);
        line-height: 1.1;
    }
    
    .map-button:not(.service-card .map-button) {
        justify-content: center;
        width: 100%;
        font-size: var(--font-size-xs);
        padding: 8px 12px;
    }
    
    /* Keep service card map buttons compact */
    .service-card .map-button {
        width: fit-content !important;
        font-size: var(--font-size-xs);
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .map-button i {
        font-size: 16px;
    }

    .category-selection-message {
        padding: var(--spacing-2xl) var(--spacing-md);
        margin: var(--spacing-lg) 0;
    }

    .message-content i {
        font-size: 48px;
    }

    .message-content h3 {
        font-size: var(--font-size-lg);
    }

    .message-content p {
        font-size: var(--font-size-sm);
    }
}

/* No data message styling */
.no-data-message {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-secondary);
    font-style: italic;
}

.no-data-message p {
    margin: 0;
    font-size: var(--font-size-lg);
}

/* Category Selection Message */
.category-selection-message {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin: var(--spacing-2xl) 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-content {
    max-width: 500px;
    margin: 0 auto;
}

.message-content i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.message-content h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.message-content p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Buttons */
.cta-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-wide);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.cta-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Mobile Tab Navigation System */
@media (max-width: 768px) {
    /* Hide hamburger menu completely on mobile */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* Hide desktop navigation */
    .nav-links {
        display: none !important;
    }
    
    /* Hide footer on mobile */
    .footer {
        display: none !important;
    }
    
    /* Mobile Tab Navigation */
    .mobile-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-around;
        padding: var(--spacing-xs) 0 calc(var(--spacing-xs) + env(safe-area-inset-bottom));
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: var(--spacing-xs);
        text-decoration: none;
        color: var(--text-light);
        transition: all 0.2s ease;
        flex: 1;
        border-radius: var(--radius-sm);
        min-height: 60px;
        justify-content: center;
    }
    
    .tab-item.active {
        color: var(--primary-color);
        background: rgba(26, 115, 232, 0.08);
    }
    
    .tab-item i {
        font-size: 24px;
        margin-bottom: 2px;
    }
    
    .tab-item span {
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        line-height: 1;
    }
    
    .tab-item.active span {
        font-weight: var(--font-weight-semibold);
    }
    
    /* Mobile Section Management */
    .mobile-section {
        display: none;
        min-height: 100vh; /* Full screen height */
        padding-bottom: 80px; /* Space for tabs */
        position: relative;
    }
    
    .mobile-section.active {
        display: block;
    }
    
    /* Home Section (Hero) - Full Screen */
    .mobile-section.home .hero {
        min-height: 100vh;
        padding: 80px var(--spacing-md) 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Services Section - Full Screen */
    .mobile-section.services {
        background: white;
        min-height: 100vh;
    }
    
    .mobile-section.services .services-section {
        padding: 80px 0 80px;
        min-height: 100vh;
    }
    
    /* About Section - Full Screen */
    .mobile-section.about {
        background: var(--surface);
        min-height: 100vh;
    }
    
    .mobile-section.about .about-section {
        padding: 80px 0 80px;
        min-height: 100vh;
    }
}

/* Desktop and tablet - show normal layout */
@media (min-width: 769px) {
    .mobile-tabs {
        display: none;
    }
    
    /* Hide mobile sections on desktop */
    .mobile-section {
        display: none !important;
    }
    
    /* Show desktop sections */
    .desktop-services,
    .desktop-about {
        display: block !important;
    }
    
    .desktop-hero {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 70vh;
        padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    }
    
    /* Ensure footer is visible on desktop */
    .footer {
        display: block !important;
    }

}

/* Mobile specific styles for tab sections */
@media (max-width: 768px) {
    /* Hide desktop sections */
    .desktop-hero,
    .desktop-services,
    .desktop-about {
        display: none !important;
    }
    
    /* Mobile Hero Section styling */
    .mobile-section.home .hero-content {
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }

    .mobile-section.home .hero-title {
        font-size: var(--font-size-3xl);
    }

    .mobile-section.home .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }

    .mobile-section.home .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
        width: 100%;
    }

    .mobile-section.home .cta-button {
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    .mobile-section.home .hero-emergency {
        padding: var(--spacing-sm);
        margin: var(--spacing-lg) var(--spacing-xs) 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-md);
    }

    .mobile-section.home .emergency-header {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }

    .mobile-section.home .emergency-header i {
        font-size: 18px;
    }

    .mobile-section.home .emergency-numbers {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .mobile-section.home .emergency-item {
        padding: 6px 4px;
    }

    .mobile-section.home .emergency-info {
        gap: 2px;
    }

    .mobile-section.home .emergency-label {
        font-size: 10px;
    }

    .mobile-section.home .emergency-number {
        font-size: var(--font-size-base);
    }

    /* Services section mobile styling */
    .mobile-section.services .category-nav-inline {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        justify-content: center;
        padding: 0 var(--spacing-sm);
    }

    .mobile-section.services .category-nav-button {
        flex: 0 0 auto;
        min-width: auto;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .mobile-section.services .category-nav-button i {
        font-size: 16px;
    }
    
    .mobile-section.services .category-nav-button span {
        font-size: var(--font-size-xs);
    }

    .mobile-section.services .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .mobile-section.services .service-card {
        padding: 10px 12px;
        gap: 5px;
    }

    .mobile-section.services .service-card h3 {
        font-size: var(--font-size-base);
        line-height: 1.2;
    }

    .mobile-section.services .service-card .road-name {
        font-size: var(--font-size-sm);
    }
}

/* Typography Hierarchy */

/* H1 - Main Page Title */
h1, .h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

/* H2 - Section Titles */
h2, .h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

/* H3 - Subsection Titles */
h3, .h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* H4 - Card Titles */
h4, .h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Body Text */
p, .body {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Large Body Text */
.body-large {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* Small Text */
.text-sm, small {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-light);
}

/* Extra Small Text */
.text-xs {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-muted);
}

/* Caption Text */
.caption {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

/* Button Text */
.button-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3, .h3 {
        font-size: var(--font-size-lg);
    }
    
    h4, .h4 {
        font-size: var(--font-size-base);
    }
} 