/* Rucking Rosary - Styles */
/* Color palette: Deep navy/charcoal, antique gold, warm neutrals */

:root {
  --color-bg-dark: #0d1117;
  --color-bg-navy: #0f1624;
  --color-bg-charcoal: #161d2a;
  --color-gold: #c9a227;
  --color-gold-light: #e4c04a;
  --color-gold-dark: #9a7b1a;
  --color-text: #e6e8ec;
  --color-text-muted: #8b95a5;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-delay-1 { transition-delay: 0.1s; }
.animate-in-delay-2 { transition-delay: 0.2s; }
.animate-in-delay-3 { transition-delay: 0.3s; }
.animate-in-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
  }
  .hero-logo, .hero-title, .hero-motto, .hero-tagline, .hero .btn {
    animation: none;
  }
  .experience-card:hover, .principle-card:hover {
    transform: none;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-dark);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-gold-light);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(22, 20, 16, 0.97) 0%, rgba(18, 16, 14, 0.95) 50%, rgba(13, 17, 23, 0) 100%);
  padding: 1rem 0;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
  width: auto;
}

.logo-link {
  transition: opacity 0.3s ease, visibility 0.3s ease, width 0.3s ease;
}

.logo-link:hover {
  opacity: 0.9;
}

.header.header-scrolled .logo-link {
  opacity: 0;
  visibility: hidden;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-gold);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.35) 0%, rgba(13, 17, 23, 0.5) 50%, rgba(13, 17, 23, 0.75) 100%),
    url('assets/rucking-hero.png') center center / cover no-repeat;
  background-color: var(--color-bg-navy);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.2));
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.hero-motto {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.65s both;
}

.hero .btn {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.container-wide {
  max-width: 1100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-gold);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.section-dark {
  background: var(--color-bg-navy);
}

.section-gold {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06) 0%, transparent 50%);
}

/* About */
.about-content {
  text-align: center;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--color-gold-light);
  margin-bottom: 1.5rem;
}

/* Experience */
.experience-mission {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-gold-light);
  text-align: center;
  margin-bottom: 2rem;
}

.anatomy-image {
  max-width: 700px;
  margin: 0 auto 3rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.anatomy-image img {
  width: 100%;
  height: auto;
  display: block;
}

.anatomy-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.anatomy-step {
  padding: 1.5rem;
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.anatomy-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.anatomy-step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.anatomy-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.anatomy-time {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.anatomy-step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Legacy experience card styles (if needed elsewhere) */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.experience-card {
  padding: 2rem;
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.experience-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.experience-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.experience-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Principles */
.principles-photo {
  max-width: 500px;
  margin: 0 auto 2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.principles-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

.principles-title {
  position: relative;
  padding-bottom: 1rem;
}

.principles-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease-out;
}

.principles-title.visible::after {
  transform: translateX(-50%) scaleX(1);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.principle-card {
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-2px);
}

.principle-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-gold);
}

.principle-icon svg {
  width: 100%;
  height: 100%;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.principle-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Who */
.who-content {
  text-align: center;
}

.who-content p {
  margin-bottom: 1.25rem;
}

/* CTA / Motto */
.section-cta {
  background: var(--color-bg-charcoal);
}

.motto-blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  border: none;
  padding: 0;
}

.motto-blockquote p {
  margin-bottom: 1rem;
}

.motto-highlight {
  color: var(--color-gold);
  font-weight: 600;
}

/* Call */
.call-text {
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* Chapters / Map */
.chapters-intro {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.chapters-map {
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.chapter-marker {
  background: none !important;
  border: none !important;
}

.marker-dot {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--color-gold);
  border: 3px solid var(--color-bg-dark);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chapter-popup {
  min-width: 220px;
  text-align: center;
}

.chapter-popup h4 {
  font-family: var(--font-display);
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.popup-established {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.popup-poc {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.chapter-popup .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.leaflet-popup-content-wrapper {
  background: var(--color-bg-charcoal);
  color: var(--color-text);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.leaflet-popup-tip {
  background: var(--color-bg-charcoal);
}

/* Start Chapter */
.start-chapter-content {
  text-align: center;
}

.start-chapter-content p {
  margin-bottom: 1rem;
}

.start-chapter-content .btn {
  margin-top: 0.5rem;
}

/* Join */
.join-content {
  text-align: center;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

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

.footer-content.animate-in {
  transition-delay: 0.1s;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer-motto {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.footer-social {
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-bg-navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .hero-logo {
    width: 100px;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .join-actions {
    flex-direction: column;
  }

  .join-actions .btn {
    width: 100%;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chapters-map {
    height: 300px;
  }

  .anatomy-steps {
    grid-template-columns: 1fr;
  }
}
