/* ============================
   Redwood Coast Rivian Club
   PNW Nature Theme
   ============================ */

:root {
  /* Brand palette — Pacific Northwest Nature */
  --forest: #2D4A3E;
  --evergreen: #3A6B5C;
  --mist: #B8C9C0;
  --fog: #E8EDEA;
  --cloud: #F5F7F6;
  --bark: #8B6F4E;
  --white: #FFFFFF;
  --charcoal: #1A1A1A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  /* Layout */
  --nav-height: 80px;
  --container-max: 1100px;
  --hero-image-opacity: 0.72;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
}

/* ============================
   Reset
   ============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

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

/* ============================
   Typography
   ============================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

h5 {
  font-size: clamp(1rem, 2vw, 1.15rem);
}

h6 {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

p {
  margin-bottom: var(--space-sm);
}

/* ============================
   Layout Utilities
   ============================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

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

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--evergreen);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   Buttons
   ============================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--evergreen);
  color: var(--white);
  border-color: var(--evergreen);
}

.btn-primary:hover {
  background-color: var(--forest);
  border-color: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================
   Navigation
   ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: rgba(245, 247, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(245, 247, 246, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

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

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

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--charcoal);
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--evergreen);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--evergreen);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--evergreen);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-social {
  display: flex;
  gap: 16px;
  font-size: 1.1rem;
}

.nav-social a {
  color: var(--charcoal);
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-social a:hover {
  color: var(--evergreen);
  transform: translateY(-1px);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1501;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--white);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--white);
}

/* Mobile menu */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-logo-text {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--forest);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 2000;
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .nav-link {
    font-size: 1.6rem;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  }

  .nav-link::after {
    background-color: var(--white);
    bottom: -6px;
  }

  .nav-link:hover {
    color: var(--mist);
  }

  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link.active {
    color: var(--mist);
  }

  .nav-link.active::after {
    background-color: var(--white);
  }

  .nav-menu.active li:nth-child(1) .nav-link { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) .nav-link { transition-delay: 0.15s; }
  .nav-menu.active li:nth-child(3) .nav-link { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(4) .nav-link { transition-delay: 0.25s; }

  .nav-social {
    gap: var(--space-md);
    font-size: 1.4rem;
  }

  .nav-social a {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-social a:hover {
    color: var(--white);
  }
}

/* ============================
   Hero Section
   ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--forest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-image-opacity);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.15) 0%,
    rgba(26, 26, 26, 0.05) 40%,
    rgba(26, 26, 26, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hero-title {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  line-height: 1.05;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: var(--space-lg);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

/* ============================
   About Section
   ============================ */

.about {
  background-color: var(--fog);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.about-card {
  background: var(--white);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-card i {
  font-size: 2rem;
  color: var(--evergreen);
  margin-bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(58, 107, 92, 0.1);
}

.about-card h3 {
  margin-bottom: var(--space-xs);
}

.about-card p {
  color: #555;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   Events Section
   ============================ */

.events-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.event-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: var(--space-sm);
  background: var(--bark);
  color: var(--white);
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.event-day {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
}

.event-details {
  padding: var(--space-md);
  flex: 1;
}

.event-details h3 {
  margin-bottom: var(--space-xs);
  color: var(--forest);
}

.event-location {
  font-size: 0.9rem;
  color: var(--bark);
  margin-bottom: var(--space-xs);
}

.event-location i {
  margin-right: 4px;
}

.event-desc {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.event-link {
  font-weight: 600;
  color: var(--evergreen);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-link i {
  transition: transform 0.3s ease;
}

.event-link:hover {
  color: var(--forest);
}

.event-link:hover i {
  transform: translateX(4px);
}

.events-empty {
  text-align: center;
  padding: var(--space-lg);
  color: #777;
}

.events-empty i {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--mist);
}

@media (max-width: 480px) {
  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    min-width: unset;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  .event-day {
    font-size: 1.4rem;
  }
}

/* ============================
   Join Section
   ============================ */

.join-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.join .btn-primary {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ============================
   Footer
   ============================ */

.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-lg) 0 var(--space-md);
}

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

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: var(--space-sm);
  font-size: 1.2rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }
}

/* ============================
   Scroll-triggered Animations
   ============================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
  animation: fadeInUp 1s ease-out 0.6s both;
}
