/* ===================================================
   Treasure Valley Trailblazers — Custom Theme CSS
   Color Palette (from logo):
     Primary Blue:   #1A5FAB
     Dark Blue:      #134080
     Accent Green:   #8DC63F
     Dark Green:     #6AA02F
     Orange:         #F26522
     White:          #FFFFFF
     Light Gray:     #F4F6F8
     Text Dark:      #1A1A2E
=================================================== */

:root {
  --blue:       #1A5FAB;
  --blue-dark:  #134080;
  --blue-light: #2474cc;
  --green:      #8DC63F;
  --green-dark: #6AA02F;
  --orange:     #F26522;
  --white:      #FFFFFF;
  --gray-light: #F4F6F8;
  --gray:       #E0E4EA;
  --text:       #1A1A2E;
  --text-muted: #555e6e;
  --shadow:     0 4px 24px rgba(26,95,171,0.12);
  --radius:     10px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141,198,63,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 42, 80, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  transition: background var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-brand:hover { color: var(--green); text-decoration: none; }
.nav-logo { width: 42px; height: 42px; object-fit: contain; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-links li a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.88);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-links li a:hover {
  color: var(--green);
  background: rgba(141,198,63,0.1);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 50%, #1a3a6e 100%);
  overflow: hidden;
}

/* Mountain silhouette background decoration */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,320L80,293.3C160,267,320,213,480,186.7C640,160,800,160,960,186.7C1120,213,1280,267,1360,293.3L1440,320L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 1.5rem 4rem;
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
  margin-bottom: 1.5rem;
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-blue {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
}
.section-green {
  background: linear-gradient(135deg, #2d5a1b 0%, var(--green-dark) 100%);
  color: var(--white);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-white .section-title { color: var(--blue); }
.section-blue .section-title,
.section-green .section-title { color: var(--white); }

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.section-blue .section-title::after { background: var(--orange); }
.section-green .section-title::after { background: var(--orange); }

.section-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 650px;
}
.section-white .section-subtitle { color: var(--text-muted); }

.subsection-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.95);
  margin: 3rem 0 1.25rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-light);
  border: 2px solid var(--gray);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.badge-icon { font-size: 1.1rem; }

.info-card {
  background: var(--gray-light);
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 4px solid var(--blue);
}

.info-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-card li {
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.5rem;
}
.info-card li:last-child { border-bottom: none; padding-bottom: 0; }

/* ===== EVENTS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  min-width: 60px;
  padding: 0.5rem;
  text-align: center;
  flex-shrink: 0;
}

.event-month {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-day {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
}

.event-tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}

.event-details h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.event-details p {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.event-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  font-style: italic;
}

/* ===== SCHEDULE TABLE ===== */
.schedule-table-wrap { overflow-x: auto; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-table th {
  background: rgba(0,0,0,0.3);
  color: var(--green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  text-align: left;
}

.schedule-table td {
  padding: 0.85rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.schedule-table tr:hover td {
  background: rgba(255,255,255,0.06);
}

.schedule-note {
  font-size: 0.85rem;
  opacity: 0.65;
  font-style: italic;
  margin-top: 0.75rem;
}

/* ===== LOCATIONS ===== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
  transition: transform var(--transition), box-shadow var(--transition);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,95,171,0.18);
}

.location-card > h3,
.location-card > p,
.location-card > .location-meta {
  padding: 0 1.25rem;
}

.location-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  padding-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.location-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

.location-card > p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.map-embed {
  width: 100%;
  overflow: hidden;
  border-top: 3px solid var(--green);
}

.map-embed iframe {
  display: block;
  width: 100%;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(255,255,255,0.08);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--green);
}

.faq-question.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.faq-answer.open { display: block; }

.faq-answer p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.88);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--green);
  text-decoration: underline;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: block;
}

.contact-form {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--gray);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,171,0.12);
}

.form-group textarea { resize: vertical; }

.hidden { display: none; }

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--green);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-sidebar { order: -1; }
  .info-card { max-width: 400px; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .contact-item {
    flex: 1 1 200px;
  }
}

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

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 42, 80, 0.98);
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }

  .nav-inner { position: relative; }

  .hero-logo { width: 130px; height: 130px; }

  .form-row { grid-template-columns: 1fr; }

  .events-grid,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .contact-info { flex-direction: column; }
  .contact-form { padding: 1.25rem; }
  .hero-cta { flex-direction: column; align-items: center; }
}
