/* ==========================================================================
   New Braunfels Dia de Los Muertos Festival — site styles
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---- Header / Nav ---- */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(35, 10, 68, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-logo-text {
  color: #fff;
}

.nav-link {
  color: rgba(255, 247, 234, 0.85);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #fdb94e;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #f5900e;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

/* ---- Hero text shadow ---- */
.text-shadow-lg {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

/* ---- Scroll reveal animations ---- */
.reveal,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 90ms; }
.reveal:nth-child(3) { transition-delay: 180ms; }
.reveal:nth-child(4) { transition-delay: 270ms; }
.reveal:nth-child(5) { transition-delay: 360ms; }
.reveal:nth-child(6) { transition-delay: 450ms; }

/* ---- Decorative papel-picado style frame ---- */
.papel-frame {
  position: relative;
}
.papel-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(245, 144, 14, 0.35);
  pointer-events: none;
}

/* ---- Forms (dark background variant) ---- */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 247, 234, 0.75);
  margin-bottom: 0.35rem;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input::placeholder {
  color: rgba(255, 247, 234, 0.4);
}
.form-input:focus {
  outline: none;
  border-color: #f5900e;
  background: rgba(255, 255, 255, 0.1);
}
.form-input option {
  color: #111;
}
.form-submit-btn {
  width: 100%;
  background: #f5900e;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-submit-btn:hover {
  background: #c7690a;
  transform: translateY(-1px);
}
.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- Forms (light background variant, used on Sponsors) ---- */
.form-label-light {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(35, 10, 68, 0.7);
  margin-bottom: 0.35rem;
}
.form-input-light {
  width: 100%;
  background: #fff7ea;
  border: 1px solid rgba(35, 10, 68, 0.12);
  color: #230a44;
  border-radius: 0.7rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.form-input-light:focus {
  outline: none;
  border-color: #d6336c;
}
.form-submit-btn-light {
  width: 100%;
  background: #d6336c;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-submit-btn-light:hover {
  background: #9c1f52;
  transform: translateY(-1px);
}
.form-submit-btn-light:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- Forms (teal accent variant, used on Volunteer sign-up) ---- */
.form-submit-btn-teal {
  width: 100%;
  background: #0f8a80;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-submit-btn-teal:hover {
  background: #0b6b63;
  transform: translateY(-1px);
}
.form-submit-btn-teal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  min-height: 1.25rem;
}
.form-status.success {
  color: #3bb6ac;
  font-weight: 600;
}
.form-status.error {
  color: #f06aa0;
  font-weight: 600;
}

/* ---- FAQ details marker ---- */
details summary::-webkit-details-marker {
  display: none;
}

/* ---- Countdown ---- */
#countdown > div {
  transition: transform 0.2s ease;
}

/* ---- Scrollbar accent (optional, harmless if unsupported) ---- */
::selection {
  background: #f5900e;
  color: #fff;
}

/* ---- Fiesta bunting divider (papel-picado inspired) ---- */
.fiesta-bunting {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  height: 30px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.fiesta-flag {
  flex: 1 1 auto;
  max-width: 34px;
  min-width: 16px;
  height: 24px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

/* ---- Nav / footer brand logo ---- */
.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ---- Marigold petal accent (subtle decorative dot pattern) ---- */
.petal-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}
