/* =====================================================
   BRIDGING AMERICA — Brand Color Palette
   Bridge Red  : #A84032
   Deep Navy   : #1E3557
   Warm Cream  : #F7F1E8
   Steel Gray  : #5F6670
   Forest Green: #556B4D
   ===================================================== */

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F7F1E8;
}

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

/* Header & Navigation */
header {
    background-color: #1E3557;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #ecf0f1;
    text-decoration: none;
}

.nav-home-icon {
    flex-shrink: 0;
}

.nav-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}


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

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #162a47;
}

/* Hero Section */
.hero {
    background: linear-gradient(160deg, #1E3557 0%, #162a47 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-logo {
    display: block;
    margin: 0 auto 2rem;
    max-width: 500px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-tagline {
    font-family: 'Dancing Script', cursive;
    display: block;
    white-space: nowrap;
    margin: 0 auto 2rem;
    font-size: clamp(1.4rem, 5.5vw, 3.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.05;
    color: #F7F1E8;
    opacity: 0.9;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #A84032;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #fff;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1E3557;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #eeeae2;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #1E3557;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #A84032;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1E3557;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.gallery-controls {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #A84032;
    background-color: white;
    color: #A84032;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f0f0;
}

.filter-btn.active {
    background-color: #A84032;
    color: white;
}

.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #A84032;
}

/* Map Styles */
#map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.selected-location {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.selected-location h3 {
    color: #1E3557;
    margin-bottom: 0.5rem;
}

.selected-location p {
    color: #666;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.photo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-info {
    padding: 1rem;
}

.photo-info h4 {
    color: #1E3557;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.photo-info p {
    color: #666;
    font-size: 0.9rem;
}

.photo-location {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #A84032;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Blog Section */
.blog-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.blog-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1E3557;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    color: #1E3557;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content p {
    color: #666;
}

.post-tags {
    margin-top: 0.75rem;
    color: #5F6670;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #1E3557;
    color: #F7F1E8;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    margin: 0;
}

.footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.footer-sitemap a {
    color: #F7F1E8;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-sitemap a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-brand-name {
        font-size: 1rem;
    }
    
    .nav-menu {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: clamp(1rem, 5.5vw, 2.5rem);
    }
    
    .gallery-controls {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-sitemap {
        justify-content: center;
    }
    
    #map {
        height: 400px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

.post-image-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-content a {
    color: #1E3557;
    text-decoration: none;
}

.post-content a:hover {
    color: #A84032;
}

.blog-article {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.blog-article h1 {
    color: #1E3557;
    margin-bottom: 0.75rem;
}

.article-hero {
    width: 100%;
    border-radius: 10px;
    margin: 1rem 0 1.5rem;
    max-height: 480px;
    object-fit: cover;
}

.article-content {
    color: #444;
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    line-height: 1.8;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin-bottom: 1rem;
}

.article-content h2,
.article-content h3 {
    margin: 1.5rem 0 0.75rem;
    color: #1E3557;
}
