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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #cfc3af;
}

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

.camp-header {
  position: fixed;
  width: 100%;
  top: 0;
  background: url("assets/textures/wood.jpg") center/cover;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

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

.deer-icon {
  height: 44px;
  margin-left: 12px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

.header-center {
  text-align: center;
  flex: 1;
}

.camp-title {
  color: white;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.6px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.85);
}

.camp-meta,
.camp-members {
  color: #f0f0f0;
  font-size: 14px;
}

/* ================= MENU ================= */

.menu-btn {
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: white;
  transform: scale(1.05);
}

.menu {
  display: none;
  position: absolute;
  right: 20px;
  top: 70px;
  background: rgba(0,0,0,0.9);
  padding: 12px;
  border-radius: 8px;
}

.menu a {
  display: block;
  color: white;
  padding: 6px 10px;
  text-decoration: none;
}

.menu a:hover {
  background: rgba(255,255,255,0.15);
}

/* ================= HERO ================= */

.hero {
  height: 260px;
  margin-top: 90px;

  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}

/* 🔥 REMOVE zoom layer */
.hero::before {
  display: none;
}

/* keep gradient */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(207,195,175,1) 95%
  );
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ================= PAGE ================= */

.page {
  width: 75%;
  margin: 40px auto;
}

/* ================= SECTION ================= */

.content-section {
  position: relative;
  padding: 28px;
  margin-bottom: 30px;
  border-radius: 16px;
  background: url("assets/textures/parchment.jpg");
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.content-section:hover {
  transform: translateY(-4px);
}

.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.50);
  border-radius: 16px;
}

.content-section * {
  position: relative;
  z-index: 2;
}

.content-section h2 {
  margin-top: 0;
  font-size: 22px;
  color: #111;
}

.placeholder {
  color: #222;
  font-weight: 500;
}

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

.campcards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.campcard {
  overflow: hidden;
  border-radius: 16px;
}

.campcard img {
  width: 100%;
  border-radius: 16px;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.campcard:hover img {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
}

/* ================= MEMORIES ================= */

.memories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.memory-card.image {
  height: 200px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.memory-card.image:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 34px rgba(0,0,0,0.55);
}

/* ================= BUILD FORM ================= */

.form-section {
  background: url("assets/textures/parchment.jpg");
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.50);
  border-radius: 16px;
}

.form-section * {
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.form-row label {
  font-weight: bold;
  text-align: right;
  font-size: 15px;
}

/* 🔥 FINAL UX POLISH */
.form-row input,
.form-row select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #bbb;
  font-size: 15px;
  background: #f5f5f5;
  transition: all 0.2s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #666;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* ================= BUTTON ================= */

.build-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border: none;
  background: linear-gradient(to right, #1f1f1f, #2a2a2a);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.build-btn:hover {
  transform: scale(1.02);
  background: black;
}

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

.footer-image {
  height: 140px;
  background: url("assets/images/footer-bg.jpg") center/cover;
}

.footer-text {
  background: #222;
  color: white;
  text-align: center;
  padding: 12px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .page {
    width: 92%;
  }

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

  .form-row label {
    text-align: left;
  }

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

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

  .hero {
    height: 200px;
  }
}

/* ================= FINAL FORM FIX ================= */

/* center and constrain form */
.build-container {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 20px;
}

/* better section spacing */
.form-section {
  padding: 26px 28px;
}

/* improve layout balance */
.form-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

/* label polish */
.form-row label {
  text-align: right;
  font-weight: bold;
  font-size: 15px;
  color: #222;
}

/* 🔥 KEY: stop full-width stretch */
.form-row input,
.form-row select {
  max-width: 520px;
  width: 100%;
}

/* better input feel */
.form-row input,
.form-row select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #bbb;
  background: #f5f5f5;
  transition: all 0.2s ease;
}

/* focus state (feels premium) */
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #666;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* button spacing */
.build-btn {
  margin-top: 20px;
}

/* mobile fix */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row label {
    text-align: left;
  }

  .form-row input,
  .form-row select {
    max-width: 100%;
  }
}

/* ================= CARD SYSTEM POLISH ================= */

/* CAMP CARDS GRID */
.campcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

/* INDIVIDUAL CAMP CARD */
.campcard {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  background: #000;
}

/* IMAGE CONTROL */
.campcard img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* HOVER = subtle premium feel */
.campcard:hover img {
  transform: scale(1.06);
}


/* ================= MEMORIES (WALL OF FAME) ================= */

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.memory-card {
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* STORY HOVER */
.memory-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}


/* ================= STORY MODE (BIG MOMENT) ================= */

.story-inner img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


/* ================= HERO BALANCE ================= */

.hero {
  height: 260px; /* 🔥 smaller, cleaner */
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid rgba(0,0,0,0.2);
}


/* ================= CONTENT WIDTH ================= */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}


/* ================= MEMBERS (VISUAL FIX) ================= */

.member {
  display: inline-block;
  margin: 6px 8px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
  font-size: 14px;
}


/* ================= MOBILE TIGHTEN ================= */

@media (max-width: 768px) {

  .hero {
    height: 180px;
  }

  .campcard img {
    height: 200px;
  }

  .memory-card {
    height: 180px;
  }

}

/* =========================================
   HERO — FORCE VISIBILITY + CONSISTENCY
========================================= */

.hero {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 4px solid rgba(0,0,0,0.2);
}


/* =========================================
   PAGE WIDTH CONTROL (CLEAN CENTERING)
========================================= */

.page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}


/* =========================================
   CONTENT SECTIONS (PARchment LOOK)
========================================= */

.content-section {
  background: url('assets/textures/parchment.jpg');
  background-size: cover;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* =========================================
   CAMP CARDS — FIX SIZE + GRID
========================================= */

.campcards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.campcard img,
.campcard {
  width: 100%;
  border-radius: 16px;
  display: block;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.campcard:hover img,
.campcard:hover {
  transform: scale(1.04);
}


/* MOBILE: 2x2 */
@media (max-width: 900px) {
  .campcards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================
   LIST ITEMS (TRADITIONS / MEMBERS)
========================================= */

.list-item,
.member {
  margin: 8px 0;
  font-size: 16px;
}


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

.memories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.memory-card {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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


/* =========================================
   STORY MODE (CENTER + FIX SHIFT BUG)
========================================= */

.story-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0,0,0,0.9);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.story-inner {
  text-align: center;
}

#storyImage {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}


/* =========================================
   MODAL (MEMORY CLICK)
========================================= */

.memory-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.memory-modal-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
}


/* =========================================
   MENU (KEEP CLEAN + READABLE)
========================================= */

.menu {
  display: none;
  position: absolute;
  right: 20px;
  top: 70px;
  background: #222;
  padding: 10px;
  border-radius: 8px;
}

.menu a {
  display: block;
  color: white;
  padding: 6px 10px;
  text-decoration: none;
}

.menu a:hover {
  background: #444;
}


/* =========================================
   FOOTER — CINEMATIC LOCK
========================================= */

.cinematic-footer {
  margin-top: 60px;
  padding: 60px 20px;
  background: linear-gradient(to right, #111, #2b2b2b);
  text-align: center;
  color: white;
}

.footer-inner h2 {
  font-size: 32px;
  margin: 0;
  letter-spacing: 2px;
}

.footer-inner p {
  margin-top: 10px;
  opacity: 0.8;
}


/* =========================================
   SAFETY: PREVENT COLLAPSE / BLANK PAGE
========================================= */

body {
  min-height: 100vh;
}

/* =========================================
   🔥 FINAL HERO LOCK (OVERRIDES ALL ABOVE)
========================================= */

.hero {
  height: 260px;
  margin-top: 90px;
  
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-bottom: 4px solid rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

/* 🚫 kill zoom layer if causing issues */
.hero::before {
  display: none !important;
}


/* =========================================
   🔥 TRUE CINEMATIC FOOTER (IMAGE-BASED)
========================================= */

.cinematic-footer {
  margin-top: 60px;
  padding: 0;
  background: #000;
  text-align: center;
}

/* your actual brand asset */
.footer-logo {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto;
}

/* ===== FINAL HERO LOCK ===== */
.hero {
  height: 260px;
  margin-top: 90px;
  background-size: contain !important;
  background-color: #000;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* kill zoom conflict */
.hero::before {
  display: none !important;
}

/* ===== FINAL FOOTER ===== */
.cinematic-footer {
  margin-top: 60px;
  padding: 0;
  background: #000;
  text-align: center;
}

.footer-logo {
  width: 100%;
  height: auto;
  display: block;
}
/* ===== CAMP CARDS GRID FINAL ===== */
.campcards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

/* =========================
   MEMBERS / RECIPES / CALENDAR
   ========================= */

.members-grid,
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.member-card,
.recipe-card {
  background: rgba(255,248,232,0.95);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.member-card img,
.recipe-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* =========================
   MODALS
   ========================= */

.member-modal,
.recipe-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  background: #f7efd9;
  border-radius: 20px;
  display: none;
  z-index: 9999;
}

.member-modal.open,
.recipe-modal.open {
  display: block;
}

.member-modal-backdrop,
.recipe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9998;
}

.member-modal-backdrop.open,
.recipe-modal-backdrop.open {
  display: block;
}

.member-modal-content,
.recipe-modal-content {
  padding: 1rem;
}

/* =========================
   CALENDAR
   ========================= */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  background: #efe3c7;
  padding: 0.5rem;
  min-height: 70px;
  border-radius: 8px;
  cursor: pointer;
}

.calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.event-season { background: red; }
.event-prep { background: green; }
.event-camp { background: brown; }

/* =========================================
   FINAL CAMP PAGE LOCK — MAR 2026
========================================= */

:root {
  --camp-header-height: 118px;
}

html,
body {
  overflow-x: hidden;
}

.camp-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.header-inner {
  min-height: 92px;
}

.hero {
  margin-top: var(--camp-header-height, 118px) !important;
  min-height: 260px;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #18120d;
}

.page {
  margin: 0 auto !important;
  padding: 24px 20px 44px !important;
}

.content-section {
  scroll-margin-top: calc(var(--camp-header-height, 118px) + 18px);
}

.recipe-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.recipe-modal.open {
  display: flex !important;
}

.recipe-modal-shell {
  position: relative;
  width: min(760px, 94vw);
  max-height: 88vh;
  overflow: auto;
}

.recipe-modal-close,
.member-modal-close,
.tradition-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  float: none;
}

.member-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.member-modal.open {
  display: flex !important;
}

.member-modal-card,
.tradition-modal-card {
  position: relative;
}

.tradition-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(95, 64, 33, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.86);
  color: #4b3116;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tradition-link-note {
  font-size: 0.88rem;
  opacity: 0.7;
}

.tradition-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 18, 0.55);
  z-index: 1315;
}

.tradition-modal-backdrop.open {
  display: block;
}

.tradition-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1320;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.tradition-modal.open {
  display: flex !important;
}

.tradition-modal-card {
  width: min(620px, 92vw);
  background: #f7f0e4;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  padding: 22px;
}

.tradition-modal-title {
  margin: 0 0 8px;
  padding-right: 46px;
  font-size: 1.35rem;
}

.tradition-modal-description {
  margin: 0 0 14px;
  line-height: 1.45;
  opacity: 0.9;
}

.tradition-modal-link {
  display: block;
  margin: 0 0 16px;
  color: #5b3d1e;
  word-break: break-word;
  font-weight: 700;
  text-decoration: none;
}

.tradition-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tradition-modal-open-link,
.tradition-modal-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.tradition-modal-open-link {
  background: #5b3d1e;
  color: #fff;
}

.tradition-modal-cancel {
  background: rgba(0, 0, 0, 0.08);
  color: #2d241a;
}

@media (max-width: 720px) {
  .hero {
    min-height: 220px;
    background-size: contain !important;
  }
}
