/* =========================
   DESIGN TOKENS
========================= */

:root {
  --bg:       #faf7f2;
  --bg-alt:   #f0ebe2;
  --bg-dark:  #2b1a0f;
  --card:     #ffffff;

  --text:     #2b1a0f;
  --muted:    #7a6355;

  --accent:   #cc0000;   /* chile red */
  --accent2:  #007a00;   /* chile green */
  --accent-dark: #990000;

  --border:   #ddd0be;
  --radius:   12px;
  --max-width: 1100px;
  --shadow:   0 2px 16px rgba(43, 26, 15, 0.08);
  --shadow-md: 0 4px 24px rgba(43, 26, 15, 0.12);
}

/* =========================
   RESET / BASE
========================= */

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

html { overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; }

/* =========================
   LAYOUT
========================= */

main { padding-bottom: 4rem; }

section { margin: 3rem 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-content { padding-top: 2rem; }

.page-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

p { color: var(--muted); margin: 0.5rem 0; }

strong { color: var(--text); }

.gradient {
  background: linear-gradient(90deg, #cc0000, #007a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.link {
  color: var(--accent2);
  text-decoration: underline;
}

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

/* =========================
   HEADER
========================= */

.site-header {
  background: var(--card);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  height: 52px;
  width: auto;
  max-width: 260px;
}

.logo-link { display: inline-block; }

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
}

.nav.open { display: flex; }

.nav > a,
.dropdown-toggle {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0;
  color: var(--text);
  transition: color 0.15s;
}

.nav > a:hover,
.dropdown-toggle:hover { color: var(--accent); }

/* =========================
   DROPDOWN NAV
========================= */

.nav-item, .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown { position: relative; }

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 0.4rem 0;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.dropdown-menu.open { display: flex; }

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  min-height: 44px;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* =========================
   CARDS
========================= */

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.card:last-child { margin-bottom: 0; }

/* =========================
   GRID
========================= */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* =========================
   HERO (HOMEPAGE)
========================= */

.hero {
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-chiles {
  width: 160px;
  max-width: 100%;
  display: block;
  margin: 0 auto 1.5rem;
}

/* =========================
   WEEKLY INFO BAR
========================= */

.weekly-info {
  background: var(--bg-dark);
  padding: 1.5rem 0;
  margin: 0;
}

.info-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.info-item strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.info-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.info-link:hover {
  text-decoration-color: #fff;
}

.info-divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
}

/* =========================
   FEATURE CARDS
========================= */

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* =========================
   NEXT EVENT (HOMEPAGE)
========================= */

.next-event-section {
  background: var(--bg-alt);
  padding: 2rem 0;
  margin: 0;
}

.next-event-card {
  border-left: 4px solid var(--accent);
  margin-bottom: 0;
}

.event-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}

/* =========================
   WHAT IS WCS SECTION
========================= */

.what-is-wcs {
  padding: 2rem 0;
}

.wcs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.facts-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.facts-list li {
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.facts-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

/* =========================
   STYLED LIST (ABOUT)
========================= */

.styled-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.styled-list li {
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =========================
   CAROUSEL
========================= */

.carousel {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-dark);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-btn:hover { background: rgba(255, 255, 255, 1); }

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* =========================
   EVENTS
========================= */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.event-location, .event-time {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.25rem 0;
}

.event-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "info";
  margin-bottom: 0;
}

.event-card.has-image {
  grid-template-areas: "image" "info";
}

.event-card.has-instagram {
  grid-template-areas: "info" "instagram";
}

.event-card.event-highlight {
  border-color: var(--accent);
  border-width: 2px;
}

.event-image {
  grid-area: image;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  cursor: zoom-in;
}

.event-info { grid-area: info; }

/* =========================
   INSTAGRAM LINK + EMBED
========================= */


.event-instagram-embed {
  grid-area: instagram;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.event-instagram-embed .instagram-media,
.event-instagram-embed iframe {
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* Next Up card with media */
.next-event-card.has-media {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.next-event-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.hidden { display: none; }

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.event-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.gallery-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

/* =========================
   FAQ
========================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon { transform: rotate(180deg); }

.faq-item p,
.faq-item li {
  margin-top: 0.75rem;
  color: var(--muted);
}

.faq-links {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.faq-links li { margin-bottom: 0.3rem; }

.faq-links a {
  color: var(--accent2);
  text-decoration: underline;
}

.faq-links a:hover { color: var(--accent); }

.faq-contact { margin-top: 2rem; }


/* =========================
   FOOTER
========================= */

footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  margin-bottom: 0.75rem;
}

.footer-org {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

footer p { color: rgba(255, 255, 255, 0.7); }

footer h4 {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}

footer a:hover { color: #fff; }

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin: 0;
}

.footer-copy a { color: rgba(255,255,255,0.5) !important; }

/* =========================
   SOCIAL ICONS
========================= */

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s, filter 0.2s;
  filter: brightness(0) invert(1);
}

.social-links a:hover .social-icon {
  transform: scale(1.15);
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.6));
}

/* =========================
   TABLET (600px)
========================= */

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }

  .info-bar {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .info-divider {
    width: 2px;
    height: 40px;
  }
}

/* =========================
   DESKTOP (768px)
========================= */

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  .hero h1 { font-size: 3.5rem; }

  .menu-toggle { display: none; }

  .nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .site-logo { height: 64px; }

  .carousel { height: 480px; }

  .footer-inner { grid-template-columns: repeat(3, 1fr); }

  .event-card.has-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "image info";
  }

  .event-card.has-instagram {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "info instagram";
  }

  .next-event-card.has-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .next-event-card.has-media {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .event-image { max-height: 600px; align-self: center; }

  .event-gallery { grid-template-columns: repeat(3, 1fr); }

  .gallery-image { height: 140px; }

  .wcs-grid { grid-template-columns: 1fr 1fr; }

  .dropdown:hover .dropdown-menu { display: flex; }
}

/* =========================
   LARGE DESKTOP (1024px)
========================= */

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }

  .info-bar { gap: 3rem; }
}
