/* ===================================
   RESET & BASE STYLES
   =================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #4299e1;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

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

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

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

a:hover {
    color: var(--secondary-color);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0 3rem;
    text-align: center;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 500;
    color: #ffffff;
}

/* ===================================
   FEATURED ARTICLE
   =================================== */
.featured-article {
    padding: 3rem 0;
    background: var(--bg-light);
}

.featured-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-meta .separator {
    opacity: 0.5;
}

.excerpt {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.badge-development { color: #c05621; }
.badge-dining { color: #d69e2e; }
.badge-transportation { color: #3182ce; }
.badge-community { color: #38a169; }
.badge-neighborhoods { color: #805ad5; }

/* ===================================
   BUTTONS
   =================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===================================
   CATEGORY NAVIGATION
   =================================== */
.category-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-white);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.category-tab:hover,
.category-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* ===================================
   MAIN CONTENT & GRID
   =================================== */
.main-content {
    padding: 3rem 0 4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* ===================================
   SEARCH BAR
   =================================== */
.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-primary);
}

.search-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* ===================================
   ARTICLES GRID
   =================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-content h3 a {
    color: var(--text-dark);
}

.article-content h3 a:hover {
    color: var(--accent-color);
}

.article-content .excerpt {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

.load-more-container {
    text-align: center;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Trending Widget */
.trending-list {
    list-style: none;
}

.trending-list li {
    margin-bottom: 1rem;
}

.trending-list li:last-child {
    margin-bottom: 0;
}

.trending-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-dark);
}

.trending-list a:hover {
    background: var(--bg-light);
}

.trending-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.trending-title {
    font-weight: 500;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form button {
    width: 100%;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-widget h3,
.cta-widget p {
    color: white;
}

.cta-widget .btn-primary {
    width: 100%;
    background: white;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
    margin-bottom: 0;
}

.cta-widget .btn-primary:hover {
    background: var(--bg-light);
    cursor: pointer;
}

.cta-widget .form-note {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    position: relative;
    z-index: 0;
}

/* Neighborhoods Widget */
.neighborhoods-list {
    list-style: none;
}

.neighborhoods-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.neighborhoods-list li:last-child {
    border-bottom: none;
}

.neighborhoods-list a {
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neighborhoods-list a:hover {
    color: var(--accent-color);
}

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-benefits {
    list-style: none;
    margin: 1.5rem 0;
}

.modal-benefits li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-medium);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-form input {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.lead-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.lead-form button {
    width: 100%;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }

    .featured-content {
        padding: 2rem;
    }

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

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

}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.hidden {
    display: none !important;
}

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

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