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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography - Mobile First */
h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ff4444;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #ff4444;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Buttons - Mobile First with Touch-Friendly Sizing */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    min-height: 44px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 200px;
}

.btn-primary {
    background: #ff4444;
    color: white;
    border: 2px solid #ff4444;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #cc3333;
    border-color: #cc3333;
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: white;
    color: #333;
    outline: none;
}

/* Header and Navigation - Mobile First */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff4444;
    line-height: 1.2;
    max-width: 200px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: 0.3s;
    transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg);
}

/* Navigation Links - Mobile */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2rem;
    transition: right 0.3s ease;
    padding: 2rem;
}

.nav-links.active {
    right: 0;
}

.nav-links li {
    width: 100%;
    text-align: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    outline: none;
}

/* Hero Section - Mobile First */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Section Styling - Mobile First */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    color: #555;
}

/* Image Styling */
/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content Images */
.content-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 1rem 0;
}

/* Large Photo for Join the Fight */
.large-photo-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Product Images */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 1rem 0;
}

/* Photo Placeholders - Remove when all images are added */
.photo-placeholder {
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    padding: 2rem 1rem;
    text-align: center;
    margin: 1rem 0;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.4;
}

.large-photo {
    padding: 3rem 1rem;
    margin: 2rem 0;
}

/* Grid Layouts - Mobile First (Stacked) with Button Alignment */
.two-col-grid,
.impact-grid,
.involvement-grid,
.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Mobile cards stack, desktop grids stretch */
.involvement-grid > .involvement-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

.shop-grid > .product-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Cards */
.content-block,
.impact-card,
.involvement-card,
.product-card,
.donation-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Flex layout only for cards that need button alignment */
.involvement-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.involvement-card h4 {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.involvement-card p {
    flex-grow: 1;
    min-height: 80px;
}

.involvement-card .btn {
    width: 100%;
    max-width: 180px;
    margin: 1rem auto 0 auto;
    padding: 0.875rem 1rem;
    min-height: 44px;
    font-size: 0.95rem;
}

.impact-card:hover,
.involvement-card:hover,
.product-card:hover,
.donation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Button Alignment within specific cards */
.involvement-card .btn,
.product-card .btn {
    align-self: center;
}

/* Ensure product cards have proper spacing */
.product-card {
    justify-content: space-between;
}

.product-card .price {
    margin-bottom: auto;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.stats-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Mission Section */
.mission-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.value-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.value-item:last-child {
    border-bottom: none;
}

.value-item h4 {
    color: #ff4444;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Timeline - Mobile Simplified */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ff4444;
}

.timeline-item {
    display: flex;
    margin: 2rem 0;
    position: relative;
    padding-left: 3rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: #ff4444;
    border-radius: 50%;
    border: 3px solid white;
}

.historical-quote {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 12px;
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.quote-emphasis {
    font-size: 1rem;
    font-weight: 600;
    color: #ff4444;
}

/* Support Section */
.support-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.funding-bars {
    margin-top: 2rem;
}

.funding-item {
    margin-bottom: 2rem;
}

.funding-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.funding-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #cc3333);
    transition: width 0.8s ease;
}

.funding-details strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.donation-card.featured {
    border: 2px solid #ff4444;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.transparency-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 12px;
}

/* Shop Section - Consistent card sizes and button alignment */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.product-card .photo-placeholder {
    min-height: 200px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem 0;
}

.product-card h4 {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.product-card p:not(.price) {
    min-height: 60px;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff4444;
    margin: 1rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.product-card .btn {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

.ethics-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.ethics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.ethics-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    color: #28a745;
    font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ff4444;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ff4444;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: #ff4444;
    outline: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-quote {
    margin-bottom: 1.5rem;
}

.footer-quote em {
    font-size: 1rem;
    color: #ccc;
}

.attribution {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

.footer-legal {
    color: #999;
    font-size: 0.875rem;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #ff4444;
}

.tax-info {
    margin-top: 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid #ff4444;
    outline-offset: 2px;
}

/* Smooth Animations */
* {
    transition: transform 0.3s ease;
}

/* TABLET STYLES - 768px and up */
@media (min-width: 48rem) {
    .container {
        padding: 0 2rem;
    }

    /* Typography scaling */
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    /* Buttons wider on tablet+ */
    .btn {
        width: auto;
        min-width: 150px;
    }

    /* Navigation - Hide mobile menu, show horizontal nav */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        flex-direction: row;
        justify-content: flex-end;
        gap: 2rem;
        padding: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        min-height: auto;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    /* Grid layouts - 2 columns with better button alignment */
    .two-col-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .impact-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: stretch;
    }

    .involvement-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        align-items: stretch;
    }
    
    .involvement-grid > .involvement-card {
        height: 100%;
    }

    .shop-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: stretch;
    }
    
    .shop-grid > .product-card {
        height: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ethics-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Timeline - Better layout */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-item:nth-child(odd) {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }

    .timeline-content {
        width: 45%;
    }

    .timeline-content::before {
        top: 2rem;
    }

    .timeline-item:nth-child(odd) .timeline-content::before {
        right: -1.5rem;
        left: auto;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        left: -1.5rem;
    }

    /* Support content side by side */
    .support-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Contact content side by side */
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Footer grid */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* DESKTOP STYLES - 1024px and up */
@media (min-width: 64rem) {
    .container {
        padding: 0 3rem;
    }

    /* Typography scaling */
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

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

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .section {
        padding: 5rem 0;
    }

    /* Grid layouts - More columns with maintained button alignment */
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .involvement-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .involvement-grid > .involvement-card {
        height: 100%;
    }

    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .shop-grid > .product-card {
        height: 100%;
    }

    /* Mission content side by side */
    .mission-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Footer grid */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Larger photo placeholders */
    .photo-placeholder {
        padding: 3rem 2rem;
    }

    .large-photo {
        padding: 4rem 2rem;
    }
}

/* LARGE DESKTOP STYLES - 1200px and up */
@media (min-width: 75rem) {
    /* Full grid layouts maintained */
    .impact-grid,
    .involvement-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Even larger typography for hero */
    .hero h1 {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 3px solid #000;
    }
    
    .photo-placeholder {
        border: 3px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    header,
    .cta-buttons,
    .btn,
    footer {
        display: none;
    }
    
    .hero {
        color: #000;
        background: #fff;
        page-break-after: always;
    }
    
    .section {
        page-break-inside: avoid;
    }
}