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

/* palette now lives in tokens.css */


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

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

/* Typography */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Navigation */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

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

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Alert Banner */
.alert-banner {
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
}

.alert {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    gap: 1rem;
}

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

.alert-content {
    flex: 1;
    color: #856404;
}

.alert-link {
    color: #856404;
    font-weight: bold;
    text-decoration: underline;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.gray-bg {
    background: var(--bg-gray);
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Service List */
.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li:before {
    content: "💧";
    position: absolute;
    left: 0;
}

.service-list strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Info Boxes */
.info-box {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ol, .info-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.warning-box strong {
    color: #856404;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.card h3 {
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-details {
    list-style: none;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
}

.card-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.card-details li:last-child {
    border-bottom: none;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.2s;
}

.card-link:hover {
    transform: translateX(4px);
}

/* News Grid */
.news-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.news-item.featured {
    border-left-color: var(--warning-color);
    background: #fffbf0;
}

.news-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    background: var(--primary-color);
    color: white;
}

.news-item.featured .news-tag {
    background: var(--warning-color);
    color: #333;
}

.news-item h3 {
    margin-bottom: 0.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

/* Bill Breakdown */
.bill-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bill-component {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.bill-component.highlight {
    border-color: var(--warning-color);
    background: #fffbf0;
}

.bill-component h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.bill-component .small {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Regional Grid */
.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.regional-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.regional-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.provider-type {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-gray);
}

.regional-card p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.resource-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-gray);
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-gray);
}

.resource-card li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

footer .small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 2rem 0;
    }

    .card-grid,
    .regional-grid,
    .resources-grid,
    .bill-breakdown {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
