/* Modern CSS for Algonquin Longhouse */

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

:root {
    /* Colors - Nature & Adventure Inspired */
    --primary: #2d5016;
    --primary-dark: #1a3009;
    --secondary: #8b7355;
    --success: #4a7c59;
    --success-dark: #2d5016;
    --princesses: #d97706;
    --princesses-dark: #92400e;
    --guides: #1e40af;
    --guides-dark: #1e3a8a;
    --trailmates: #059669;
    --trailmates-dark: #047857;
    --campfire: #dc2626;
    --campfire-dark: #991b1b;
    --forest: #166534;
    --forest-dark: #14532d;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--campfire), var(--campfire-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ef4444, var(--campfire));
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #16a34a, var(--forest));
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--gray-50);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a,
.dropdown-menu span {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-menu span {
    color: var(--gray-500);
    font-style: italic;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

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

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.85) 0%, rgba(45, 80, 22, 0.9) 50%, rgba(26, 48, 9, 0.95) 100%);
    z-index: 2;
}

/* Rotating Hero Background Images */
.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: var(--forest-dark);
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
    --hero-image: none;
}

.hero-bg-slide::before,
.hero-bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-bg-slide::before {
    background-size: cover;
    filter: blur(24px);
    opacity: 0.72;
    transform: scale(1.08);
}

.hero-bg-slide::after {
    background-size: contain;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* Dynamic slides will have backgrounds set via JavaScript */
.hero-bg-slide[data-dynamic="true"] {
    --hero-image: none;
}

.hero-bg-slide:nth-child(1) {
    --hero-image: url('/images/2026/42ada7e5989bc0da9529b31eb1a77beea1ca7944-1.jpeg');
}

.hero-bg-slide:nth-child(2) {
    --hero-image: url('/images/2026/croix_nation_2.jpeg');
}

.hero-bg-slide:nth-child(3) {
    --hero-image: url('/images/2026/croix_nation_6.jpeg');
}

.hero-bg-slide:nth-child(4) {
    --hero-image: url('/images/2026/IMG_20240127_150843799.jpeg');
}

.hero-bg-slide:nth-child(5) {
    --hero-image: url('/images/2026/croix_nation_alt.jpeg');
}

.hero-bg-slide:nth-child(6) {
    --hero-image: url('/images/2026/IMG_2294.jpeg');
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(22, 101, 52, 0.2) 0%, rgba(45, 80, 22, 0.3) 100%);
    z-index: 1;
}


.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q300,50 600,80 T1200,60 L1200,200 L0,200 Z" fill="%23166534" opacity="0.6"/><path d="M0,120 Q400,70 800,100 T1200,90 L1200,200 L0,200 Z" fill="%2314532d" opacity="0.4"/></svg>') no-repeat center bottom;
    background-size: cover;
    z-index: 2;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-md);
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-md);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--white);
    text-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
    font-family: var(--font-serif);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    opacity: 1;
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9),
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0px 0px 2px rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 1;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.95),
        1px 1px 4px rgba(0, 0, 0, 0.9),
        0px 0px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Mission Section */
.mission {
    padding: var(--space-3xl) 0;
    background: 
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="wood" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="%23f8fafc"/><path d="M0,20 Q10,15 20,20 T40,20" stroke="%23e2e8f0" stroke-width="0.5" fill="none" opacity="0.6"/><path d="M0,25 Q15,22 30,25 T40,25" stroke="%23cbd5e1" stroke-width="0.3" fill="none" opacity="0.4"/></pattern></defs><rect width="100%" height="100%" fill="url(%23wood)"/></svg>');
    position: relative;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path d="M0,0 Q300,50 600,20 T1200,40 L1200,0 Z" fill="%23166534" opacity="0.3"/></svg>') no-repeat center top;
    background-size: cover;
    z-index: 1;
}

.mission-content {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="bark" width="30" height="30" patternUnits="userSpaceOnUse"><rect width="30" height="30" fill="%23ffffff"/><path d="M0,10 Q8,5 15,10 T30,10" stroke="%23f1f5f9" stroke-width="1" fill="none"/><path d="M0,20 Q12,15 25,20 T30,20" stroke="%23e2e8f0" stroke-width="0.8" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23bark)" opacity="0.3"/></svg>');
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(22, 101, 52, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(22, 101, 52, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card > * {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--gray-600);
}

/* Programs Section */
.programs {
    padding: var(--space-3xl) 0;
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%),
        url('../dropboxGallery/pluginAppObj_33_75/images/5b33cfb3dbf7ebd39ef9b94d1d80f4df.JPEG') center center no-repeat;
    background-size: 
        cover,
        cover;
    background-position: 
        center center,
        center center;
    background-attachment: fixed;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.program-card {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="canvas" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="%23ffffff"/><circle cx="10" cy="10" r="0.5" fill="%23f1f5f9"/><circle cx="5" cy="15" r="0.3" fill="%23e2e8f0"/><circle cx="15" cy="5" r="0.4" fill="%23f1f5f9"/></pattern></defs><rect width="100%" height="100%" fill="url(%23canvas)" opacity="0.4"/></svg>');
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    border: 2px solid rgba(139, 115, 85, 0.2);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--princesses) 0%, var(--guides) 50%, var(--trailmates) 100%);
    opacity: 0.6;
    z-index: 1;
}

.program-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        var(--shadow-xl),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(139, 115, 85, 0.3);
}

.program-card:hover::before {
    opacity: 1;
    height: 6px;
}

.program-card > * {
    position: relative;
    z-index: 2;
}

.program-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.program-icon.princesses {
    background: linear-gradient(135deg, var(--princesses), var(--princesses-dark));
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.program-icon.guides {
    background: linear-gradient(135deg, var(--guides), var(--guides-dark));
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.program-icon.trailmates {
    background: linear-gradient(135deg, var(--trailmates), var(--trailmates-dark));
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.program-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.program-description {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.program-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition);
}

.program-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.programs-cta {
    text-align: center;
}

/* History Section */
.history {
    padding: var(--space-3xl) 0;
    background: 
        linear-gradient(180deg, rgba(241, 245, 249, 0.9) 0%, rgba(226, 232, 240, 0.9) 100%),
        url('../dropboxGallery/pluginAppObj_32_65/images/7b7a85fff7ecc488f237b8ca6721a266.JPEG') center center no-repeat;
    background-size: 
        cover,
        cover;
    background-position: 
        center center,
        center center;
    background-attachment: fixed;
    position: relative;
}

.history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 80"><path d="M0,80 Q200,20 400,40 T800,30 Q1000,20 1200,50 L1200,80 Z" fill="%23ffffff" opacity="0.8"/></svg>') no-repeat center top;
    background-size: cover;
    z-index: 1;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.history-text h2 {
    text-align: left;
    margin-bottom: var(--space-md);
}

.history-text .section-description {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.history-text p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
    line-height: 1.7;
}

.history-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Membership Section */
.membership {
    padding: var(--space-3xl) 0;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.membership-card {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><pattern id="tent" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="%23ffffff"/><path d="M20,10 L10,30 L30,30 Z" fill="%23f1f5f9" opacity="0.6"/><path d="M20,10 L20,30" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23tent)"/></svg>');
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid rgba(139, 115, 85, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, var(--forest) 0%, var(--campfire) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0.7;
    z-index: 1;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 115, 85, 0.3);
}

.membership-card:hover::before {
    opacity: 1;
    height: 8px;
}

.membership-card > * {
    position: relative;
    z-index: 2;
}

.membership-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.membership-description {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.calendar-link {
    text-align: center;
    padding: var(--space-lg);
    background: 
        linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><defs><pattern id="calendar" width="25" height="25" patternUnits="userSpaceOnUse"><rect width="25" height="25" fill="%23f8fafc"/><rect x="5" y="5" width="15" height="15" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/><circle cx="8" cy="8" r="0.5" fill="%23cbd5e1"/><circle cx="17" cy="17" r="0.5" fill="%23cbd5e1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23calendar)"/></svg>');
    border-radius: var(--radius-lg);
    border: 2px solid rgba(139, 115, 85, 0.1);
    position: relative;
    overflow: hidden;
}

.calendar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest) 0%, var(--trailmates) 100%);
    opacity: 0.6;
    z-index: 1;
}

.calendar-link > * {
    position: relative;
    z-index: 2;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
}

.calendar-btn:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* CTA Section */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--campfire) 0%, var(--campfire-dark) 50%, var(--forest-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="campfire" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="%23fbbf24" opacity="0.6"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="15" cy="45" r="1" fill="%23f59e0b" opacity="0.4"><animate attributeName="opacity" values="0.2;0.6;0.2" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="45" cy="15" r="0.8" fill="%23fbbf24" opacity="0.5"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="2.8s" repeatCount="indefinite"/></circle></pattern></defs><rect width="100%" height="100%" fill="url(%23campfire)"/></svg>');
    z-index: -1;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z" fill="%23166534" opacity="0.4"/><path d="M0,80 C300,110 600,30 900,70 C1050,90 1150,50 1200,80 L1200,120 L0,120 Z" fill="%2314532d" opacity="0.3"/></svg>') no-repeat center bottom;
    background-size: cover;
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer-section a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.webmaster-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.webmaster-link:hover {
    color: var(--white);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        margin-top: var(--space-xs);
    }
    
    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-bg-slide::before {
        filter: blur(16px);
        opacity: 0.5;
        transform: scale(1.04);
    }

    .hero-bg-slide::after {
        background-size: cover !important;
        background-position: center top !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .history-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .history-text h2,
    .history-text .section-description {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-logo {
        width: 60px;
        height: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: var(--space-2xl) var(--space-sm);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

@media (orientation: landscape) and (max-height: 700px) {
    .hero-bg-slide::after {
        background-size: cover !important;
        background-position: center 30% !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.program-card,
.membership-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Photo Gallery Section */
.photo-gallery {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: var(--space-xl) var(--space-md) var(--space-md);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-3xl) 0;
    background: 
        linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%),
        url('../dropboxGallery/pluginAppObj_33_75/images/a6ed9fe0d7b6b0a22e0cebf403418619.JPG') center center no-repeat;
    background-size: 
        cover,
        cover;
    background-position: 
        center center,
        center center;
    background-attachment: fixed;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--gray-900);
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Focus styles */
.btn:focus,
.nav-link:focus,
.program-link:focus,
.calendar-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
