/* ==========================================================================
   Great American Bike Rally - Modern Stylesheet
   Clean, fast, mobile-first | Zero dependencies
   ========================================================================== */

:root {
    --blue-deep: #1e3a5f;
    --blue-medium: #2563eb;
    --green-primary: #059669;
    --green-light: #10b981;
    --orange-primary: #ea580c;
    --orange-light: #f97316;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --section-padding: 80px;
    --container-max: 1140px;
    --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 25px rgba(0,0,0,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); font-size: 16px; line-height: 1.6; color: var(--gray-700); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-medium); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue-deep); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* Header */
.header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; overflow: hidden; }
.header::before { content: ''; position: absolute; inset: 0; background: url('../images/header-bg.jpg') center/cover no-repeat; opacity: 0.15; pointer-events: none; }
.header .container { position: relative; z-index: 1; }
.header-inner { display: flex; flex-direction: column; align-items: center; padding: 20px 0 12px; }
.logo img { height: 200px; width: auto; margin-bottom: 12px; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
.nav-menu a { display: block; padding: 10px 16px; color: var(--gray-700); font-weight: 500; font-size: 0.95rem; border-radius: 6px; transition: all 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { background: var(--blue-deep); color: var(--white); }
.nav-cta { background: var(--orange-primary) !important; color: var(--white) !important; margin-left: 8px; }
.nav-cta:hover { background: var(--orange-light) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; position: absolute; right: 24px; top: 24px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gray-700); transition: all 0.3s ease; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-medium) 100%); color: var(--white); padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--green-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.1); } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--orange-light); }
.hero-subtitle { font-size: 1.15rem; opacity: 0.9; margin-bottom: 12px; }
.hero-goal { font-size: 1.75rem; font-weight: 700; color: var(--green-light); margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 1rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s ease; }
.btn-primary { background: var(--orange-primary); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--white); color: var(--blue-deep); }
.btn-secondary:hover { background: var(--gray-100); color: var(--blue-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--blue-deep); }
.btn-green { background: var(--green-primary); color: var(--white); }
.btn-green:hover { background: var(--green-light); color: var(--white); transform: translateY(-2px); }

/* Stats */
.stats { background: var(--gray-50); padding: 50px 0; margin-top: -40px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.stat-card { background: var(--white); padding: 28px 20px; border-radius: 12px; text-align: center; box-shadow: var(--shadow-md); transition: transform 0.2s ease; }
.stat-card:hover { transform: translateY(-4px); }
.stat-icon { width: 52px; height: 52px; background: var(--blue-deep); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.stat-icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 2; }
.stat-value { font-size: 2.25rem; font-weight: 800; color: var(--blue-deep); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }
.stats-note { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--gray-500); }

/* Sections */
.section { padding: var(--section-padding) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--green-primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; color: var(--gray-900); line-height: 1.2; margin-bottom: 14px; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); }

/* Mission */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mission-content h2 { font-size: 1.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; }
.mission-content p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.75; }
.mission-image { position: relative; }
.mission-image img { border-radius: 12px; box-shadow: var(--shadow-lg); }
.mission-badge { position: absolute; bottom: -16px; right: -16px; background: var(--green-primary); color: var(--white); padding: 18px 24px; border-radius: 10px; text-align: center; box-shadow: var(--shadow-md); }
.mission-badge-value { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.mission-badge-label { font-size: 0.8rem; opacity: 0.9; }

/* Partner */
.partner-section { background: var(--gray-50); padding: 44px 0; text-align: center; }
.partner-section p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 16px; }
.partner-logo { max-width: 220px; margin: 0 auto; }

/* Sponsors */
.sponsors { background: var(--gray-50); padding: var(--section-padding) 0; }
.sponsors-group { margin-bottom: 40px; }
.sponsors-group:last-child { margin-bottom: 0; }
.sponsors-group h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-medium); display: inline-block; }
.sponsors-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sponsor-tag { display: inline-block; padding: 8px 14px; background: var(--white); border-radius: 6px; font-size: 0.85rem; color: var(--gray-700); box-shadow: var(--shadow-sm); transition: all 0.2s ease; }
.sponsor-tag:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-2px); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-200); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%); color: var(--white); padding: var(--section-padding) 0; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 14px; }
.cta p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: var(--white); color: var(--green-primary); }
.cta .btn-primary:hover { background: var(--gray-100); }

/* Page Heroes */
.page-hero { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-medium) 100%); color: var(--white); padding: 60px 0; text-align: center; }
.page-hero.green { background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.page-content { padding: var(--section-padding) 0; }
.page-content.narrow { max-width: 800px; margin: 0 auto; }
.page-content p { font-size: 1.02rem; line-height: 1.8; margin-bottom: 18px; }
.content-note { background: var(--gray-50); padding: 18px 22px; border-radius: 8px; border-left: 4px solid var(--orange-primary); margin: 28px 0; }
.content-note strong { color: var(--gray-900); }

/* Contact Cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.contact-card { background: var(--white); padding: 36px 28px; border-radius: 12px; text-align: center; box-shadow: var(--shadow-md); }
.contact-card-icon { width: 60px; height: 60px; background: var(--blue-deep); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.contact-card-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; stroke-width: 2; }
.contact-card-icon.green { background: var(--green-primary); }
.contact-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.contact-card p { color: var(--gray-500); margin-bottom: 20px; font-size: 0.95rem; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 120px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.85rem; color: var(--gray-500); }
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 968px) {
    .header-inner { position: relative; }
    .header::before { opacity: 0.25; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); gap: 4px; }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .logo img { height: 150px; }
    .mission-grid { grid-template-columns: 1fr; gap: 36px; }
    .mission-image { order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    :root { --section-padding: 56px; }
    .hero { padding: 50px 0 70px; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .stat-card { display: flex; align-items: center; gap: 18px; text-align: left; padding: 20px; }
    .stat-icon { margin: 0; flex-shrink: 0; }
    .hero-buttons, .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .gallery-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .logo img { height: 125px; }
    .stat-value { font-size: 1.85rem; }
    .nav-toggle { top: 16px; right: 16px; }
}
