/* ===========================
   Components - Design v2
   =========================== */

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--forest);
}

/* Desktop Nav */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav-list {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--forest);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--forest);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
}

.lang-toggle a {
  color: var(--charcoal-light);
  padding: var(--space-xs) var(--space-sm);
}

.lang-toggle a:hover,
.lang-toggle a.active {
  color: var(--forest);
}

/* Mobile Menu Toggle */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition-base);
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .menu-btn { display: none; }
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  padding: var(--space-4xl) var(--space-xl);
  transition: right var(--transition-base);
  z-index: 1000;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--charcoal);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--cream-dark);
}

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

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: var(--space-xl);
  max-width: 900px;
}

.hero-title {
  font-size: var(--text-5xl);
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero-title { font-size: var(--text-6xl); }
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: var(--white);
}

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

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--forest);
}

.btn-white:hover {
  background: var(--cream);
  color: var(--forest-dark);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

/* ========== CARDS ========== */
.card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: var(--space-xl);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--charcoal-light);
  font-size: var(--text-base);
}

/* Feature Block (image + text side by side) */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
  
  .feature-block.reverse .feature-img {
    order: 2;
  }
}

.feature-img {
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-block:hover .feature-img img {
  transform: scale(1.03);
}

.feature-content h3 {
  margin-bottom: var(--space-md);
}

/* ========== INFO STRIP ========== */
.info-strip {
  background: var(--forest);
  color: var(--white);
  padding: var(--space-lg) 0;
}

.info-strip-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .info-strip-content {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-3xl);
    text-align: left;
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.info-item strong {
  color: var(--gold-light);
}

/* ========== HISTORY SECTION ========== */
.history-section {
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.history-year {
  font-family: var(--font-accent);
  font-size: var(--text-6xl);
  color: var(--sage);
  opacity: 0.5;
  line-height: 1;
}

@media (min-width: 768px) {
  .history-year {
    font-size: 8rem;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-text {
  color: var(--sage);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-link {
  display: block;
  color: var(--sage);
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--charcoal-light);
  font-size: var(--text-sm);
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding: var(--space-5xl) 0 var(--space-3xl);
  text-align: center;
  background: var(--cream-dark);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header-sub {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--brown);
}

/* ========== DIVIDER ========== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.divider-line {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: var(--brown-light);
}

.divider-icon {
  color: var(--brown-light);
  font-size: var(--text-xl);
}

/* ========== LIST ========== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--forest);
  margin-top: 0.5em;
  flex-shrink: 0;
}

/* ========== TABLE ========== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}

.table th {
  background: var(--forest);
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:hover td {
  background: var(--cream);
}

/* ===================================
   Page Headers (for subpages)
   =================================== */
.page-header {
  position: relative;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.page-header-short {
  height: 30vh;
  min-height: 200px;
  background: var(--forest);
}

.page-header-bg {
  position: absolute;
  inset: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8) var(--space-6);
}

.page-header-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--white);
}

.page-header-content p {
  font-size: var(--text-lg);
  opacity: 0.9;
}

/* ===================================
   Info Grid (3 columns)
   =================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.info-card {
  background: var(--cream);
  padding: var(--space-6);
  text-align: center;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--forest);
  margin-bottom: var(--space-3);
}

.info-highlight {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--forest);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.simple-list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.simple-list li:last-child {
  border-bottom: none;
}

/* ===================================
   Check List
   =================================== */
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.check-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 600;
}

/* ===================================
   Organization Cards
   =================================== */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.org-card {
  background: var(--cream);
  padding: var(--space-6);
}

.org-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--forest);
  margin-bottom: var(--space-4);
}

/* ===================================
   Contact Page
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

.contact-info h2,
.contact-map h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--forest);
  margin-bottom: var(--space-6);
}

.contact-block {
  margin-bottom: var(--space-6);
}

.contact-block h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: var(--space-2);
}

.contact-block a {
  color: var(--forest);
}

.text-small {
  font-size: var(--text-sm);
  color: var(--brown);
  margin-top: var(--space-1);
}

.map-embed {
  background: var(--white);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(0,0,0,0.1);
}

.map-embed iframe {
  display: block;
}

.directions h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: var(--space-3);
}

.directions p {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

/* ===================================
   Card Grid (for venue options)
   =================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-image-wrap {
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-link:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-5);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--forest);
  margin-bottom: var(--space-2);
}

.card-body p {
  color: var(--charcoal);
  font-size: var(--text-base);
}

/* ===================================
   Lead Text & Section Intro
   =================================== */
.lead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--charcoal);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ===================================
   Header Solid (for subpages)
   =================================== */
.header-solid {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-solid .logo-text {
  color: var(--forest);
}

.header-solid .nav-link {
  color: var(--charcoal);
}

.header-solid .nav-link:hover,
.header-solid .nav-link.active {
  color: var(--forest);
}

.header-solid .menu-toggle span {
  background: var(--charcoal);
}
