/* Camp Wildnest Adventures — shared styles */
:root {
  --lime: #7dcc2a;
  --lime-deep: #66b01f;
  --forest: #1a5c28;
  --forest-mid: #246b32;
  --neon-yellow: #e8ff00;
  --yellow-overlay: rgba(255, 230, 0, 0.72);
  --ink: #0d1f12;
  --label-red: #e11d2e;
  --link-blue: #1a56db;
  --white: #ffffff;
  --pill-radius: 999px;
  --card-radius: 1rem;
  --font-display: "Sora", sans-serif;
  --font-body: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  margin: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* ---------- Navbar ---------- */
.site-navbar {
  background: var(--white);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-navbar .navbar-brand {
  padding: 0;
  margin: 0;
  line-height: 0;
}

.site-navbar .navbar-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.site-navbar .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest) !important;
  padding: 0.5rem 1rem !important;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--lime-deep) !important;
}

.site-navbar .navbar-toggler {
  border-color: var(--forest);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a5c28' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Section label pills ---------- */
.section-pill {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1.15rem;
  border-radius: var(--pill-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-pill--blue {
  color: var(--link-blue);
}

/* ---------- Festivals / Hero ---------- */
.festivals-hero {
  position: relative;
  background: var(--lime);
  padding: 3.5rem 0 0;
  overflow: hidden;
}

.festivals-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background:
    linear-gradient(to bottom, var(--lime) 0%, transparent 35%),
    url("../assets/campsite.jpg") center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.festivals-hero .container {
  position: relative;
  z-index: 1;
}

.festivals-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--forest);
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease both;
}

.festivals-hero .section-pill {
  animation: fadeUp 0.7s ease 0.12s both;
}

.event-stack {
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(26, 92, 40, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--card-radius);
  padding: 0.85rem 1rem;
  color: var(--white);
  animation: fadeUp 0.65s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:nth-child(1) { animation-delay: 0.2s; }
.event-card:nth-child(2) { animation-delay: 0.32s; }
.event-card:nth-child(3) { animation-delay: 0.44s; }

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.event-card__logo {
  flex: 0 0 auto;
  width: 120px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__logo img {
  max-height: 64px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.event-card__date {
  flex: 1 1 140px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--white);
}

.event-card__action {
  flex: 0 0 auto;
  margin-left: auto;
}

.btn-book {
  background: var(--neon-yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.55rem;
  padding: 0.65rem 1.15rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-book:hover {
  background: #f5ff66;
  color: var(--ink);
  transform: scale(1.04);
}

.btn-book:disabled,
.btn-book[disabled] {
  background: #c5c9a0;
  color: rgba(13, 31, 18, 0.45);
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.festival-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 0;
  background: #0a0a0a;
}

.festival-tile__logo img {
  max-height: 110px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Contact band (homepage overlay) ---------- */
.contact-band {
  position: relative;
  background: url("../assets/campsite.jpg") center / cover no-repeat;
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow-overlay);
  z-index: 0;
}

.contact-band .container {
  position: relative;
  z-index: 1;
}

.contact-band__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ink);
  margin: 1.25rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.contact-band__sub {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 420px;
  margin: 0 auto 1.75rem;
  opacity: 0.9;
}

.contact-info-card {
  display: inline-block;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1rem;
  padding: 1.35rem 2.25rem;
  text-align: left;
  min-width: min(100%, 340px);
  backdrop-filter: blur(4px);
  animation: fadeUp 0.7s ease 0.15s both;
}

.contact-info-card__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--label-red);
  margin: 0 0 0.15rem;
}

.contact-info-card__label:not(:first-child) {
  margin-top: 1rem;
}

.contact-info-card a,
.contact-info-card__value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--link-blue);
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--lime) 0%, var(--lime-deep) 55%, #4a9e18 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/forest.jpg") center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--forest);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--ink);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ---------- Services ---------- */
.services-section {
  padding: 4rem 0 5rem;
  background:
    linear-gradient(180deg, #f3f9eb 0%, var(--white) 40%);
}

.service-item {
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid rgba(26, 92, 40, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 92, 40, 0.12);
}

.service-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.service-item p {
  color: #3d4f3e;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Contact page ---------- */
.contact-page {
  padding: 4rem 0 5rem;
  background:
    linear-gradient(to bottom, rgba(255, 230, 0, 0.35), rgba(255, 230, 0, 0.15)),
    url("../assets/campsite.jpg") center / cover no-repeat fixed;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.contact-form-wrap .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--forest);
}

.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
  border-radius: 0.6rem;
  border-color: rgba(26, 92, 40, 0.25);
  padding: 0.7rem 0.9rem;
}

.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 0.2rem rgba(125, 204, 42, 0.35);
}

.btn-submit {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 0.6rem;
  padding: 0.75rem 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: var(--forest-mid);
  color: var(--white);
  transform: scale(1.02);
}

.contact-aside .contact-info-card {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
}

/* ---------- Festival detail list (festivals page expand) ---------- */
.festival-grid {
  padding: 3.5rem 0 4.5rem;
  background: #f7faf3;
}

.festival-tile {
  background: var(--forest);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease;
}

.festival-tile:hover {
  transform: translateY(-4px);
}

.festival-tile__body {
  padding: 1.5rem;
}

.festival-tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.festival-tile p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.festival-tile .meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  padding: 1.75rem 0;
  text-align: center;
  border-top: 1px solid rgba(26, 92, 40, 0.08);
}

.site-footer p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
  font-size: 0.95rem;
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  .event-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .event-card__logo {
    width: 100%;
    min-height: 120px;
    justify-content: center;
  }

  .event-card__logo img {
    max-height: 120px;
    max-width: 200px;
  }

  .event-card__date {
    flex: 1 1 30px;
  }

  .event-card__action {
    margin-left: 0;
  }

  .btn-book {
    width: 100%;
  }

  .festivals-hero::after {
    height: 28%;
  }
}
