/* Main CSS file for St. Joseph Mission Charity */

/* ===== CSS VARIABLES & DESIGN SYSTEM ===== */
:root {
    /* Color Palette */
    --primary-color: #0A2A2F;
    --secondary-color: #164950;
    --accent-color: #FFD700;
    --accent-secondary: #FFA500;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #4a4a4a;
    --text-on-dark: #ffffff;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-text: rgba(0, 0, 0, 0.7);
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;      /* 4px */
    --spacing-sm: 0.5rem;       /* 8px */
    --spacing-md: 1rem;         /* 16px */
    --spacing-lg: 1.5rem;       /* 24px */
    --spacing-xl: 2rem;         /* 32px */
    --spacing-2xl: 3rem;        /* 48px */
    --spacing-3xl: 4rem;        /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;       /* 4px */
    --radius-md: 0.5rem;        /* 8px */
    --radius-lg: 0.75rem;       /* 12px */
    --radius-xl: 1rem;          /* 16px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ===== TYPOGRAPHY SYSTEM ===== */
h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--text-dark);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--text-dark);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-dark);
}

p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-on-dark { color: var(--text-on-dark); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== GENERAL STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-light);
    color: var(--text-dark);
    font-size: var(--font-size-base);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll when sidebar is open */
}

/* ===== MOBILE SIDEBAR NAVIGATION ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    position: fixed;
    top: 20px;
    right: 20px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #0A2A2F;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.mobile-sidebar-header h3 {
    color: var(--text-on-dark);
    font-size: var(--font-size-lg);
    margin: 0 0 var(--spacing-xs) 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mobile-sidebar-header p {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

.mobile-sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.mobile-sidebar-nav a {
    display: block;
    color: var(--text-on-dark);
    text-decoration: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    letter-spacing: 0.5px;
}

.mobile-sidebar-nav a:hover,
.mobile-sidebar-nav a.active {
    background: var(--border-light);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
}

.mobile-sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #FFD700;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-sidebar-nav a:hover::before,
.mobile-sidebar-nav a.active::before {
    transform: scaleY(1);
}

.mobile-sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar-footer .donate-button {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-xl);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.mobile-sidebar-footer .donate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-dark);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== NAVIGATION BAR ===== */
.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Shadow effect when scrolling */
.nav.scrolled {
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-bottom: 10px;
}

.logo {
    height: 80px;
    width: auto;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    object-fit: cover;
}

.nav.scrolled .logo {
    height: 65px;
}

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

.nav-center h1 {
    font-size: var(--font-size-2xl);
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav.scrolled .nav-center h1 {
    font-size: var(--font-size-xl);
}

.nav-center p {
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    font-style: italic;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding-top: 15px;
    border-top: 2px solid #FFD700;
}

.nav-links a {
    color: #0A2A2F;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    background: transparent;
    color: #0A2A2F;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-xl);
    text-decoration: none;
    border-radius: 50px;
    font-size: var(--font-size-lg);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: var(--text-dark);
}

.donate-button {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-dark);
}

/* ===== FOOTER SECTION ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: var(--text-light);
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-base);
}

.footer-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 20px;
    gap: 15px;
}

/* Footer Left: Logo */
.footer-left {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 250px;
}

.footer-logo {
    max-width: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Footer Center: Address */
.footer-center {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.footer-center h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    color: var(--text-on-dark);
    letter-spacing: 0.5px;
    padding-bottom: 6px;
}

.footer-center h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #FFD700;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.footer-center p {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-on-dark);
}

/* Footer Right: Quick Links */
.footer-right {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.footer-right h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    color: white;
}

.footer-right h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #FFD700;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.footer-right a {
    display: block;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 500;
    margin: 6px 0;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.footer-right a:hover {
    color: #FFD700;
}

/* Footer Bottom Note */
.footer-note {
    font-size: var(--font-size-sm);
    color: var(--text-on-dark);
    margin-top: var(--spacing-xl);
    max-width: 1000px;
    margin: auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 1024px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-lg); }
    h4 { font-size: var(--font-size-base); }
    p { font-size: var(--font-size-sm); }
}

@media (max-width: 768px) {
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-base); }
    h4 { font-size: var(--font-size-sm); }
    p { font-size: var(--font-size-sm); }
}

@media (max-width: 576px) {
    h1 { font-size: var(--font-size-xl); }
    h2 { font-size: var(--font-size-lg); }
    h3 { font-size: var(--font-size-sm); }
    h4 { font-size: var(--font-size-xs); }
    p { font-size: var(--font-size-xs); }
}

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

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    .nav-container {
        width: 95%;
    }
    
    .nav-center h1 {
        font-size: 22px;
    }
    
    .nav-center p {
        font-size: 13px;
    }
    
    .logo {
        height: 70px;
    }
    
    .nav.scrolled .logo {
        height: 60px;
    }
    
    .nav.scrolled .nav-center h1 {
        font-size: 18px;
    }
}

/* Tablets (iPad, etc.) */
@media (max-width: 768px) {
    /* Show mobile menu toggle and hide desktop navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        padding: 15px 10px;
    }
    
    .nav.scrolled {
        padding: 8px 10px;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav-center h1 {
        margin-top: 10px;
        font-size: 20px;
    }
    
    .nav-center p {
        font-size: 12px;
    }
    
    .nav-right {
        margin-top: 15px;
    }
    
    /* Hide desktop navigation links on mobile */
    .nav-links {
        display: none;
    }
    
    .logo {
        height: 65px;
    }
    
    .nav.scrolled .logo {
        height: 55px;
    }
    
    .nav.scrolled .nav-center h1 {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .donate-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .footer {
        padding: 20px 15px 12px;
    }
    
    .footer-container {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .footer-left, .footer-center, .footer-right {
        flex: 1;
        min-width: 0;
    }
    
    .footer-logo {
        max-width: 100px;
    }
    
    .footer-center h3,
    .footer-right h3 {
        font-size: 16px;
    }
    
    .footer-center p,
    .footer-right a {
        font-size: 14px;
    }
}

/* Large Mobile Devices (iPhone Plus, etc.) */
@media (max-width: 576px) {
    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 22px;
    }
    
    .mobile-menu-toggle span {
        height: 2.5px;
    }
    
    .mobile-sidebar {
        width: 280px;
        right: -280px;
    }
    
    .mobile-sidebar-header {
        padding: 25px 15px 15px;
    }
    
    .mobile-sidebar-header img {
        width: 70px;
        height: 70px;
    }
    
    .mobile-sidebar-header h3 {
        font-size: 16px;
    }
    
    .mobile-sidebar-header p {
        font-size: 13px;
    }
    
    .mobile-sidebar-nav a {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .mobile-sidebar-footer {
        padding: 15px;
    }
    
    .mobile-sidebar-footer .donate-button {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .nav {
        padding: 12px 8px;
    }
    
    .nav.scrolled {
        padding: 6px 8px;
    }
    
    .nav-container {
        margin-bottom: 12px;
    }
    
    .nav-center h1 {
        font-size: 18px;
        margin-top: 8px;
    }
    
    .nav-center p {
        font-size: 11px;
    }
    
    .logo {
        height: 60px;
    }
    
    .nav.scrolled .logo {
        height: 50px;
    }
    
    .nav.scrolled .nav-center h1 {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .donate-button {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .footer {
        padding: 15px 10px 10px;
    }
    
    .footer-container {
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .footer-left, .footer-center, .footer-right {
        flex: 1;
        min-width: 0;
    }
    
    .footer-logo {
        max-width: 80px;
    }
    
    .footer-center h3,
    .footer-right h3 {
        font-size: 15px;
    }
    
    .footer-center p,
    .footer-right a {
        font-size: 13px;
    }
    
    .footer-note {
        font-size: 12px;
    }
}

/* Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .mobile-menu-toggle {
        top: 12px;
        right: 12px;
        width: 25px;
        height: 20px;
    }
    
    .mobile-sidebar {
        width: 260px;
        right: -260px;
    }
    
    .mobile-sidebar-header {
        padding: 20px 12px 12px;
    }
    
    .mobile-sidebar-header img {
        width: 60px;
        height: 60px;
    }
    
    .mobile-sidebar-header h3 {
        font-size: 15px;
    }
    
    .mobile-sidebar-header p {
        font-size: 12px;
    }
    
    .mobile-sidebar-nav a {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .mobile-sidebar-footer .donate-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .nav {
        padding: 10px 5px;
    }
    
    .nav.scrolled {
        padding: 5px 5px;
    }
    
    .nav-container {
        margin-bottom: 10px;
    }
    
    .nav-center h1 {
        font-size: 16px;
        margin-top: 6px;
    }
    
    .nav-center p {
        font-size: 10px;
    }
    
    .logo {
        height: 55px;
    }
    
    .nav.scrolled .logo {
        height: 45px;
    }
    
    .nav.scrolled .nav-center h1 {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .donate-button {
        padding: 5px 14px;
        font-size: 12px;
    }
    
    .footer {
        padding: 12px 8px 8px;
    }
    
    .footer-container {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .footer-left, .footer-center, .footer-right {
        flex: 1;
        min-width: 0;
    }
    
    .footer-logo {
        max-width: 70px;
    }
    
    .footer-center h3,
    .footer-right h3 {
        font-size: 14px;
    }
    
    .footer-center p,
    .footer-right a {
        font-size: 12px;
    }
    
    .footer-note {
        font-size: 11px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 320px) {
    .mobile-sidebar {
        width: 240px;
        right: -240px;
    }
    
    .mobile-sidebar-header img {
        width: 55px;
        height: 55px;
    }
    
    .mobile-sidebar-header h3 {
        font-size: 14px;
    }
    
    .mobile-sidebar-header p {
        font-size: 11px;
    }
    
    .mobile-sidebar-nav a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .mobile-sidebar-footer .donate-button {
        padding: 6px 18px;
        font-size: 13px;
    }
    
    .nav {
        padding: 8px 3px;
    }
    
    .nav.scrolled {
        padding: 4px 3px;
    }
    
    .nav-center h1 {
        font-size: 14px;
    }
    
    .nav-center p {
        font-size: 9px;
    }
    
    .logo {
        height: 50px;
    }
    
    .nav.scrolled .logo {
        height: 40px;
    }
    
    .cta-button {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .donate-button {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .footer-logo {
        max-width: 60px;
    }
    
    .footer-center h3,
    .footer-right h3 {
        font-size: 13px;
    }
    
    .footer-center p,
    .footer-right a {
        font-size: 11px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-sidebar-header {
        padding: 15px 20px 10px;
    }
    
    .mobile-sidebar-header img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .mobile-sidebar-header h3 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .mobile-sidebar-header p {
        font-size: 11px;
    }
    
    .mobile-sidebar-nav a {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .nav {
        padding: 8px 10px;
    }
    
    .nav-container {
        margin-bottom: 8px;
    }
    
    .nav-center h1 {
        margin-top: 5px;
        font-size: 16px;
    }
    
    .nav-center p {
        font-size: 10px;
    }
    
    .logo {
        height: 50px;
    }
    
    .nav.scrolled .logo {
        height: 40px;
    }
}

/* High DPI Displays (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo,
    .mobile-sidebar-header img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-links a:hover::after {
        width: 0;
    }
    
    .nav-links a:active::after {
        width: 100%;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .cta-button:active {
        transform: translateY(-1px);
    }
    
    .donate-button:hover {
        transform: none;
    }
    
    .donate-button:active {
        transform: translateY(-1px);
    }
    
    .mobile-sidebar-nav a:hover {
        background: rgba(255, 255, 255, 0.05);
        border-left-color: transparent;
        color: white;
    }
    
    .mobile-sidebar-nav a:active {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: #FFD700;
        color: #FFD700;
    }
    
    .mobile-sidebar-footer .donate-button:hover {
        transform: none;
    }
    
    .mobile-sidebar-footer .donate-button:active {
        transform: translateY(-1px);
    }
}
