/* ============================================
   WORSLEY PIONEER CLUB - Design System
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Color Palette - Warm, welcoming, senior-friendly */
  --primary-color: #2c5f2d;        /* Forest green - Alberta nature */
  --primary-light: #4a8a4d;
  --primary-dark: #1a3d1b;
  --secondary-color: #d4a574;      /* Warm gold - prairie wheat */
  --secondary-light: #e6c9a8;
  --secondary-dark: #b8865a;
  --accent-color: #c85a54;         /* Warm terracotta */
  --accent-light: #e08d88;
  
  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #faf8f5;
  --light-gray: #f4f1ed;
  --medium-gray: #d0ccc7;
  --dark-gray: #5a5550;
  --charcoal: #2d2926;
  
  /* Semantic Colors */
  --text-primary: #2d2926;
  --text-secondary: #5a5550;
  --text-light: #8a857f;
  --border-color: #e0ddd8;
  --shadow-color: rgba(45, 41, 38, 0.1);
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes - Larger for senior-friendly readability */
  --fs-xs: 0.875rem;    /* 14px */
  --fs-sm: 1rem;        /* 16px */
  --fs-base: 1.125rem;  /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 2rem;       /* 32px */
  --fs-3xl: 2.5rem;     /* 40px */
  --fs-4xl: 3rem;       /* 48px */
  --fs-5xl: 3.5rem;     /* 56px */
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 2rem;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 8px var(--shadow-color);
  --shadow-lg: 0 8px 16px var(--shadow-color);
  --shadow-xl: 0 12px 24px var(--shadow-color);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

h5 {
  font-size: var(--fs-lg);
}

h6 {
  font-size: var(--fs-base);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.lead {
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--text-secondary);
}

/* ============================================
   Layout Utilities
   ============================================ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background-color: var(--white);
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* ============================================
   Header
   ============================================ */

.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.header-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.header-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
}

/* Navigation */
.nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: var(--fs-base);
  font-weight: 600;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, rgba(44, 95, 45, 0.95) 0%, rgba(26, 61, 27, 0.9) 100%),
              url('../images/480676045_1044596754370087_1072394068543753469_n.jpg') center/cover no-repeat;
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: var(--white);
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  color: var(--off-white);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xl);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   Cards
   ============================================ */

.card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--fs-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-title {
  font-size: var(--fs-3xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   Activities Grid
   ============================================ */

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.activity-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.activity-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-content {
  padding: var(--space-lg);
}

.activity-title {
  font-size: var(--fs-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.activity-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.activity-schedule {
  font-size: var(--fs-sm);
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   Gallery
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 95, 45, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-base);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-icon {
  font-size: var(--fs-2xl);
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: var(--fs-lg);
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-base);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  background-color: var(--off-white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--charcoal) 100%);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: var(--secondary-color);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.footer-text {
  color: var(--medium-gray);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: var(--medium-gray);
  display: block;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--medium-gray);
  font-size: var(--fs-sm);
}

.footer-bottom p {
  color: var(--medium-gray);
  margin-bottom: var(--space-xs);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.75rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
    --space-3xl: 4rem;
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .header-title {
    font-size: var(--fs-lg);
  }
  
  .nav {
    width: 100%;
    order: 3;
  }
  
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --fs-5xl: 2rem;
  }
  
  .header-logo {
    width: 50px;
    height: 50px;
  }
  
  .header-title {
    font-size: var(--fs-base);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--white); }

.bg-primary { background-color: var(--primary-color); }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-gray); }
