/* MOBILE-FIRST CSS - Foundation Site */

/* Reset and base styles for mobile */
* {
    box-sizing: border-box;
}

body {
    font-family: 'proxima-nova', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    min-width: 320px; /* Minimum supported width */
}

/* Mobile-first header */
header {
    background: linear-gradient(135deg, #183661 0%, #2c5aa0 100%);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    left: 0;
}

/* Mobile-first navigation container */
.nav-container {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile-first logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.logo-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-images a {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* PMTNM logo with dark blue background */
.logo-images a[href*="pmtnm"] {
    background-color: #183661;
    border: 2px solid rgba(255,255,255,0.3);
}

/* MTNA logo with red background */
.logo-images a[href*="mtna"] {
    background-color: #cc0000;
    border: 2px solid rgba(255,255,255,0.3);
}

.logo-images a img {
    height: 35px;
    width: auto;
    max-width: 120px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.logo-images a:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.6);
}

.logo-text {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* Mobile-first navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    text-align: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.15);
}

/* Mobile-first container */
.container {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0.75rem;
    padding-top: 80px; /* Increased to ensure hero section is visible below header */
}

/* Mobile-first hero section */
.hero-section {
    background: url('../img/mountain.png') center/cover;
    color: white;
    text-align: center;
    padding: 1.5rem 0.75rem;
    margin: calc(2.5rem + 200px) 0 1rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(24,54,97,0.85), rgba(44,90,160,0.45));
    transition: opacity 3s ease-in-out;
    z-index: -1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Scroll-based gradient animation */
.hero-section.scroll-fade::before {
    background: var(--dynamic-gradient, linear-gradient(rgba(24,54,97,0.10), rgba(44,90,160,0.10)));
    opacity: 1;
    transition: background 0.1s ease-out;
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-logos img {
    height: 50px;
    width: auto;
    max-width: 140px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-section h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.hero-section p {
    font-size: 1rem;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Mobile-first sections */
.section {
    background: white;
    margin: 0.75rem 0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: hidden;
}

.section h2 {
    color: #183661;
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    word-wrap: break-word;
}

/* Mobile-first buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background: #183661;
    color: white;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Mobile-first grid */
.grid {
    display: block; /* Stack on mobile */
    margin: 1rem 0;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5aa0;
    margin-bottom: 1rem;
    width: 100%;
}

.card h3 {
    color: #183661;
    margin-top: 0;
    font-size: 1.1rem;
}

.highlight-box {
    background: #e3f2fd;
    border: 1px solid #2c5aa0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    overflow-x: hidden;
}

.highlight-box h3 {
    color: #183661;
    margin-top: 0;
}

/* Tablet styles (min-width: 768px) */
@media (min-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
    
    .logo {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
    }
    
    .logo-images {
        gap: 0.75rem;
        flex-direction: row; /* Keep side-by-side on tablet+ */
    }
    
    .logo-images a {
        padding: 0.4rem 0.8rem;
    }
    
    .logo-images a img {
        height: 45px;
        max-width: 150px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 1rem;
        width: auto;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 2rem;
        padding-top: 100px;
    }
    
    .hero-section {
        padding: 3rem 2rem;
        margin: 3.75rem 0 2rem 0;
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .hero-logos img {
        height: 60px;
        max-width: 160px;
    }
    
    .section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .card {
        margin-bottom: 0;
    }
}

/* Desktop styles (min-width: 1024px) */
@media (min-width: 1024px) {
    .nav-container {
        padding: 0 3rem;
    }
    
    .logo-images a {
        padding: 0.6rem 1.2rem;
    }
    
    .logo-images a img {
        height: 50px;
        max-width: 180px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
        max-width: 800px;
    }
    
    .hero-logos img {
        height: 70px;
        max-width: 200px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #183661 0%, #2c5aa0 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-donate-btn {
    display: inline-block;
    background: #ffd700;
    color: #183661;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.footer-donate-btn:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-copyright {
    margin: 1rem 0;
    opacity: 0.8;
}

.footer-disclaimer {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}
