/* Coosada 911 Communications District - Professional Modern Design */

/* Color Variables - Professional Patriotic Palette */
:root {
    --red: #C8102E;
    --blue: #003DA5;
    --white: #FFFFFF;
    --light-blue: #F0F7FF;
    --dark-red: #A01D28;
    --dark-blue: #002D72;
    --accent-blue: #0052CC;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    padding: 32px 0 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tagline {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.emergency-contact-header {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-bottom: 0;
    font-size: 0.9375rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.emergency-contact-header strong {
    font-weight: 600;
    font-size: 0.9375rem;
}

.emergency-contact-header a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 14px;
    background-color: rgba(255,255,255,0.25);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.9375rem;
}

.emergency-contact-header a:hover {
    background-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

nav {
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

nav ul li {
    margin: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--white);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

nav a:hover::after,
nav a:focus::after {
    transform: scaleX(1);
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Services Preview */
.services-preview {
    padding: 100px 24px;
    background-color: var(--gray-50);
}

.services-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.services-preview .container > p {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: var(--blue);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.service-card h3 {
    color: var(--blue);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
}

/* Info Section */
.info-section {
    padding: 100px 24px;
    background-color: var(--white);
}

.info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.info-section p {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--red);
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

.link:hover {
    color: var(--red);
    border-bottom-color: var(--blue);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

/* Content Section */
.content-section {
    padding: 80px 24px;
    background-color: var(--white);
}

.content-block {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 48px;
    background-color: var(--light-blue);
    border-radius: 16px;
    border-left: 4px solid var(--red);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.content-block h3 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1.0625rem;
}

.content-block ul {
    margin-left: 24px;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.content-block li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.content-block h4 {
    color: var(--blue);
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.training-section-title {
    color: var(--blue);
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.training-section-title.advanced-training {
    margin-top: 32px;
}

.training-list-two-column {
    columns: 2;
    column-gap: 32px;
    list-style-position: inside;
}

.training-list-two-column li {
    break-inside: avoid;
    page-break-inside: avoid;
}

.document-link {
    margin-top: 32px;
    text-align: center;
}

/* Service Detail */
.service-detail {
    max-width: 900px;
    margin: 0 auto 64px;
    padding: 48px;
    background-color: var(--light-blue);
    border-radius: 16px;
    border-top: 4px solid var(--red);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-detail:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(0, 61, 165, 0.2);
}

.service-icon-large {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.service-detail h3 {
    color: var(--blue);
    font-size: 2.25rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1.0625rem;
}

/* Info Box */
.info-box {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 40px;
    background-color: var(--light-blue);
    border-radius: 16px;
    border-left: 4px solid var(--blue);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.info-box h3 {
    color: var(--blue);
    font-size: 1.75rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.info-box p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1.0625rem;
}

/* Echo911 Service Box Styling */
.echo911-box {
    background: linear-gradient(135deg, #f8fbff 0%, var(--light-blue) 100%);
    border-left: 5px solid var(--blue);
    border-top: 2px solid rgba(0, 61, 165, 0.1);
}

.echo911-services-list {
    margin: 28px 0;
    margin-left: 0;
    list-style: none;
    padding-left: 0;
}

.echo911-services-list li {
    padding: 12px 0 12px 40px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 61, 165, 0.08);
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--gray-800);
}

.echo911-services-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.echo911-services-list li:hover {
    background-color: rgba(255, 255, 255, 0.6);
    padding-left: 44px;
    border-radius: 8px;
}

.service-icon-bullet {
    position: absolute;
    left: 0;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 61, 165, 0.2);
}

.echo911-partnership {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid rgba(0, 61, 165, 0.15);
    font-style: italic;
    color: var(--gray-700);
}

.emergency-box {
    border-left-color: var(--red);
    background: linear-gradient(135deg, #fff5f5 0%, var(--light-blue) 100%);
}

.emergency-number {
    font-size: 1.75rem;
    color: var(--red);
    font-weight: 700;
    margin: 20px 0;
    letter-spacing: 0.02em;
}

.contact-details {
    margin-top: 24px;
    padding: 32px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-details p {
    margin-bottom: 12px;
    font-size: 1.0625rem;
}

.phone-number {
    font-size: 1.25rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--blue);
}

.phone-number a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.phone-number a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 60px 24px 40px;
    text-align: center;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.emergency-contact-footer {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 0.9375rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.emergency-contact-footer strong {
    font-weight: 600;
    font-size: 0.9375rem;
}

.emergency-contact-footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 14px;
    background-color: rgba(255,255,255,0.25);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.9375rem;
}

.emergency-contact-footer a:hover {
    background-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

footer p {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.footer-contract {
    margin: 32px 0 24px;
    padding: 24px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-contract p {
    margin-bottom: 16px;
    font-size: 0.9375rem;
    opacity: 0.95;
}

.footer-contract .link {
    color: var(--white);
    border-bottom-color: var(--white);
}

.footer-contract .link:hover {
    color: var(--white);
    opacity: 1;
    border-bottom-color: var(--white);
}

.footer-echo-logo {
    display: inline-block;
    margin-top: 16px;
    width: 250px;
    height: 65px;
}

.footer-echo-logo a {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.95;
    transition: opacity 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.footer-echo-logo a:hover {
    opacity: 1;
}

.footer-echo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-links {
    margin-top: 24px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 8px;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.footer-links a:hover {
    background-color: rgba(255,255,255,0.15);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .emergency-contact-header {
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
        border-radius: 12px;
    }

    .hero {
        padding: 60px 24px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.125rem;
    }

    .services-preview,
    .info-section,
    .content-section {
        padding: 60px 24px;
    }

    .services-preview h2,
    .info-section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 0 auto;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .content-block,
    .service-detail,
    .info-box {
        padding: 32px 24px;
    }

    .training-list-two-column {
        columns: 1 !important;
    }

    .emergency-contact-footer {
        flex-direction: column;
        gap: 8px;
        padding: 16px 24px;
        border-radius: 12px;
    }

    .footer-contract {
        padding: 20px;
    }

    .footer-echo-logo {
        width: 200px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    nav a {
        text-align: center;
        padding: 12px;
    }

    nav a::after {
        display: none;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .page-header {
        padding: 60px 16px;
    }

    .page-header h2 {
        font-size: 1.75rem;
    }
}
