/* ==========================================================================
   Zion Film — custom styles, motion & components
   Tailwind handles the bulk; this layers in the things utilities can't.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink: #211d18;
  --sage: #6b7257;
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

/* ----- Film-grain overlay for warmth/atmosphere ----- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.1rem;
  border-radius: 2px;
  width: fit-content;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.35s, color 0.35s, box-shadow 0.35s;
}
.btn-primary:hover {
  background: var(--sage);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(33,29,24,0.6);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-img { animation: slowZoom 16s ease-out forwards; }
@keyframes slowZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0); }
}

.scroll-line {
  display: inline-block;
  width: 1px;
  height: 38px;
  background: rgba(244,239,228,0.6);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gal {
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}
.gal img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), filter 0.6s;
  filter: saturate(0.92);
}
.gal:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* ==========================================================================
   Packages
   ========================================================================== */
.pkg {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(33,29,24,0.12);
  border-radius: 3px;
  padding: 2.25rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.4s;
}
.pkg:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(33,29,24,0.4);
  border-color: rgba(107,114,87,0.5);
}
.pkg-featured {
  background: var(--ink);
  border-color: var(--ink);
}
.pkg-featured:hover { border-color: var(--sage); }

.pkg-li {
  position: relative;
  padding-left: 1.4rem;
}
.pkg-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.pkg-li-light::before { background: var(--paper); opacity: 0.8; }

.pkg-cta {
  margin-top: auto;
  padding-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap 0.3s, color 0.3s;
}
.pkg-cta::after { content: "→"; transition: transform 0.3s; }
.pkg-cta:hover { color: var(--sage); }
.pkg-cta:hover::after { transform: translateX(4px); }
.pkg-cta-light { color: var(--paper); }
.pkg-cta-light:hover { color: #cfd3bf; }

/* ==========================================================================
   Header (component)
   ========================================================================== */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
.mobile-menu {
  transition: opacity 0.4s ease, visibility 0.4s;
}
.mobile-menu.hidden-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.burger span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: currentColor;
  transition: transform 0.35s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   BOOKING WIZARD
   ========================================================================== */

/* ----- Stepper ----- */
.step-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.45;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.step-item.is-active, .step-item.is-done { opacity: 1; }
.step-num {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid rgba(33,29,24,0.25);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.step-item.is-active .step-num { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step-item.is-done .step-num   { background: var(--sage); color: var(--paper); border-color: var(--sage); }
.step-item.is-done .step-num::after { content: "✓"; }
.step-item.is-done .step-num    { font-size: 0; }
.step-item.is-done .step-num::after { font-size: 0.8rem; }
.step-label { display: none; }
@media (min-width: 640px) { .step-label { display: inline; } }
.step-bar { flex: 1; height: 1px; background: rgba(33,29,24,0.15); margin: 0 0.5rem; }

/* ----- Panels ----- */
.panel { animation: panelIn 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ----- Service cards ----- */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;        /* mobile: stack text over price */
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.3rem;
  border: 1.5px solid rgba(33,29,24,0.14);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.svc-card:hover { border-color: rgba(107,114,87,0.6); transform: translateY(-2px); }
.svc-main { flex: 1; min-width: 0; }   /* min-width:0 lets long text wrap, not overflow */

.svc-price { display: flex; align-items: baseline; gap: 0.4rem; }

@media (min-width: 640px) {
  .svc-card { flex-direction: row; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; }
  .svc-price { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
}
.svc-card.is-selected {
  border-color: var(--sage);
  box-shadow: 0 0 0 1px var(--sage), 0 18px 40px -24px rgba(107,114,87,0.7);
}
.svc-check {
  position: absolute;
  top: -10px; right: 16px;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sage); color: var(--paper);
  font-size: 0.8rem;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}
.svc-card.is-selected .svc-check { opacity: 1; transform: scale(1); }

/* ----- Calendar ----- */
.cal-nav {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.2rem; line-height: 1;
  transition: background 0.25s;
}
.cal-nav:hover { background: var(--paper2); }
.cal-nav.is-disabled { opacity: 0.3; pointer-events: none; }
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.cal-day:hover:not(.is-disabled):not(.is-selected) { background: var(--paper2); }
.cal-day.is-disabled { opacity: 0.28; cursor: not-allowed; text-decoration: line-through; }
.cal-day.is-selected,
.cal-day.is-selected:hover { background: var(--ink); color: var(--paper); }

/* ----- Time slots ----- */
.slot {
  padding: 0.7rem 0.5rem;
  border: 1.5px solid rgba(33,29,24,0.14);
  border-radius: 9px;
  font-size: 0.9rem;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.slot:hover { border-color: rgba(107,114,87,0.6); }
.slot.is-selected { background: var(--sage); border-color: var(--sage); color: var(--paper); }

/* ----- Form fields ----- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid rgba(33,29,24,0.16);
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,114,87,0.15);
}

/* ----- Nav buttons ----- */
.nav-back {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink2);
  transition: color 0.25s;
}
.nav-back:hover { color: var(--ink); }

/* Dark filled button — for use on light pages (booking) */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.1rem;
  border-radius: 2px;
  width: fit-content;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.35s, box-shadow 0.35s;
}
.btn-dark:hover {
  background: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(33,29,24,0.55);
}
.btn-primary:disabled, .btn-dark:disabled { opacity: 0.4; pointer-events: none; transform: none; box-shadow: none; }

/* ----- Mobile: pin the action bar to the bottom of the viewport ----- */
@media (max-width: 1023px) {
  #navButtons {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin-top: 2rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0.9rem 1.5rem calc(0.9rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(33,29,24,0.1);
  }
  #navButtons #nextBtn { min-height: 3.1rem; }   /* comfortable tap target */
}
@media (min-width: 640px) and (max-width: 1023px) {
  #navButtons {                                  /* match sm:px-10 padding */
    margin-left: -2.5rem; margin-right: -2.5rem;
    padding-left: 2.5rem; padding-right: 2.5rem;
  }
}
