/* ── Custom Properties ── */
:root {
  --green:      #3a5a27;
  --green-dark: #243818;
  --tan:        #c4a882;
  --bg:         #f5f0e8;
  --orange:     #c4621d;
  --text:       #2a2a2a;
  --text-light: #f5f0e8;
  --radius:     8px;
  --font-heading: 'Playpen Sans', cursive;
  --font-body:    'Inter', sans-serif;
  --max-width:    1100px;
  --section-padding: 4rem 1.5rem;
}

/* ── Reset ── */
html { scroll-behavior: smooth; scroll-padding-top: 3.5rem; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── Base ── */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--green);
  margin-bottom: 2rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
  background-color: var(--orange);
  color: var(--text-light);
  border: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--green-dark);
  color: var(--text-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-light);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--tan); }

/* Hamburger button */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--green-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  .nav__links.is-open { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.52);
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero__tagline {
  font-size: clamp(1rem, 3vw, 1.4rem);
  max-width: 36ch;
  opacity: 0.9;
}

/* ── Plan ── */
.plan { background-color: var(--bg); }

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

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

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

.card {
  background-color: #fff;
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.bring-list li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.bring-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.65rem;
  top: 0.45rem;
}

/* ── Gallery ── */
.gallery { background-color: #eae4d8; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.gallery__item {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery__item:hover img,
.gallery__item:focus img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ── Vote ── */
.vote { background-color: var(--bg); }

.vote__intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: #555;
}

.form-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  background-color: #fff;
}

.form-frame iframe {
  display: block;
  width: 100%;
}

.form-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fff;
  border: 2px dashed var(--tan);
  border-radius: var(--radius);
  color: #777;
}

/* ── FAQ ── */
.faq { background-color: #eae4d8; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.faq__item {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--green);
}

.faq__question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.faq__answer {
  color: #444;
  font-size: 0.97rem;
}

.faq__submit {
  text-align: center;
}

.faq__submit-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* ── Footer ── */
.footer {
  background-color: var(--green-dark);
  color: var(--text-light);
  padding: 3rem 1.5rem;
  text-align: center;
}

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

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.footer a:not(.btn) {
  text-decoration: underline;
  opacity: 0.85;
}
.footer a:not(.btn):hover { opacity: 1; }

/* ── FAQ form spacing ── */
.faq-form { margin-top: 1.5rem; }

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Password Gate ── */
.pw-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--green-dark);
  align-items: center;
  justify-content: center;
}
.pw-gate.is-hidden { display: none; }

.pw-gate__card {
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 100%;
}

.pw-gate__title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.pw-gate__sub {
  opacity: 0.75;
  font-size: 0.95rem;
}

.pw-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.pw-gate__input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  outline: none;
}
.pw-gate__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.pw-gate__input:focus { border-color: var(--tan); }

.pw-gate__btn { width: 100%; }

.pw-gate__error {
  color: var(--tan);
  font-size: 0.9rem;
  min-height: 1.25rem;
}

/* Shake animation for wrong password */
@keyframes pw-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}
.pw-gate__form.is-shaking {
  animation: pw-shake 0.4s ease;
}
