@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@500;700&family=Montserrat:wght@400;500;600&display=swap');

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

:root {
  --black: #0b0b0b;
  --black-soft: #161513;
  --gold: #d4af37;
  --gold-light: #f1d78c;
  --cream: #f6f1e7;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--cream);
  background: var(--black);
  line-height: 1.7;
}

a {
  color: var(--gold-light);
}

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

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}

/* Header / logo */
.site-header {
  border-bottom: 1px solid #2a2a2a;
  padding: 1.5rem 0;
  background: var(--black);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 72px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

/* Menu button — hidden until the mobile breakpoint, and only ever shown
   when JS is present to operate it (.has-js-nav). */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  cursor: pointer;
  /* Comfortable thumb target — Apple/Google both recommend ~44px minimum. */
  min-height: 44px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

/* Bars fold into an X while the panel is open. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: radial-gradient(ellipse at center, var(--black-soft) 0%, var(--black) 70%);
  border-bottom: 1px solid #2a2a2a;
}

.hero .tagline {
  font-family: 'Alex Brush', cursive;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.hero h1,
.hero h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #c9c3b5;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* Offer banner */
.offer-banner {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  color: var(--black);
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.section h1,
.section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  text-align: center;
}

.section > .container > p.lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: #c9c3b5;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.feature-grid .feature h3 {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.feature-grid .feature p {
  font-size: 0.85rem;
  color: #a8a196;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.package-card {
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1.75rem;
  background: var(--black-soft);
  display: flex;
  flex-direction: column;
}

.package-card.featured {
  border-width: 2px;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

.package-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.package-card .hours {
  font-size: 0.75rem;
  color: #a8a196;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.package-card ul {
  list-style: none;
  margin: 1rem 0;
  flex-grow: 1;
}

.package-card li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: #d8d3c8;
}

.package-card li::before {
  content: "✦ ";
  color: var(--gold);
}

.package-card .price {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  color: var(--cream);
  margin: 0.5rem 0 1rem;
}

.addons {
  margin-top: 2.5rem;
  text-align: center;
}

.addons h3 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
}

.addons ul {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
}

.addons li {
  color: #d8d3c8;
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: block;
  column-count: 3;
  column-gap: 1rem;
}

.gallery-link {
  display: block;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  break-inside: avoid;
}

.gallery-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-link:hover img {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .gallery-grid {
    column-count: 2;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

/* [hidden] must beat .open, or the dialog stays in the layout/a11y tree. */
.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px minimum touch target, not just a bare glyph. */
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(11, 11, 11, 0.6);
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--gold);
  color: var(--black);
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* Service area */
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.area-list li {
  text-align: center;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 0.6rem;
  color: var(--cream);
  font-size: 0.9rem;
}

/* Contact */
.contact-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  background: var(--black-soft);
}

.contact-card a {
  display: block;
  font-size: 1.1rem;
  margin: 0.5rem 0;
  text-decoration: none;
}

.contact-card .social {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.contact-card .qr {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 6px;
  padding: 0.75rem;
  display: inline-block;
}

.contact-card .qr img {
  width: 140px;
  display: block;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  color: #a8a196;
  font-size: 0.85rem;
}

.site-footer .taglines {
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------
   Booth section.

   Everything below is written fallback-first: with no JavaScript, or if
   three.js fails to load, this renders as an ordinary section — readable
   copy and a plain row of links. The .is-3d class is added by the module
   only once the WebGL renderer actually exists, and everything scoped
   under it is the scroll animation. Never make content depend on the 3D
   path; a CDN hiccup would otherwise blank out a screenful of the page.
----------------------------------------------------------------*/
#booth-track {
  position: relative;
}

#booth-stage {
  padding: 3.5rem 0;
  border-bottom: 1px solid #2a2a2a;
}

#booth-canvas {
  display: none;
}

.booth-caption {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
}

.booth-caption:last-of-type {
  margin-bottom: 0;
}

.booth-caption h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.booth-caption p {
  margin: 0;
  color: #a8a196;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
}

/* Default: a plain, always-visible row of links. The orbit is layered on
   top of this further down, under .is-3d. */
.booth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 1.5rem;
}

.booth-link {
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: rgba(11, 11, 11, 0.68);
  backdrop-filter: blur(4px);
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.booth-link:hover,
.booth-link:focus-visible {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
}

/* ---------------------------------------------------------------
   3D mode — only applied once three.js has loaded and the renderer
   exists. Nothing here may hide content that has no 3D replacement.
----------------------------------------------------------------*/
#booth-track.is-3d {
  height: 300vh;
}

.is-3d #booth-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  border-bottom: 0;
}

.is-3d #booth-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.is-3d #booth-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.is-3d .booth-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  max-width: none;
  margin: 0;
  padding: 0 6vw;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.is-3d .booth-caption.is-active {
  opacity: 1;
  transform: none;
}

.is-3d .booth-links {
  display: block;
  padding: 0;
}

/* Positioned per-frame from JS by projecting a 3D point, so they start
   hidden at the origin rather than flashing in the top-left corner. */
.is-3d .booth-link {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

/* Keyboard users get the plain row back rather than having to chase a
   rotating target. Toggled from JS via :focus-visible, so a mouse click
   doesn't collapse the animation. Same treatment for reduced motion. */
.is-3d .booth-links.is-static {
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: absolute;
  transform: translateY(-50%);
}

.is-3d .booth-links.is-static .booth-link {
  position: static;
  /* !important because the animation writes these inline every frame. */
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .is-3d .booth-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    transform: translateY(-50%);
  }

  .is-3d .booth-link {
    position: static;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}

/* ---------------------------------------------------------------
   Mobile (<= 760px).

   These are phone-specific decisions, not a squeezed desktop: the header
   collapses to a compact bar with a real menu panel, the hero CTAs stack
   full-width, package cards go single-column, and section rhythm tightens.
   The 3D booth isn't loaded here at all (see the loader in index.html) —
   phones get the plain fallback instead of 1.3MB of WebGL.
----------------------------------------------------------------*/
/* 360 photo booth — hourly product, so pricing sits beside the features
   rather than stacked in a card like the flat-rate packages. */
.three-sixty-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--black-soft);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}

.three-sixty-pricing {
  text-align: center;
  border-right: 1px solid #2a2a2a;
  padding-right: 2rem;
}

.three-sixty-pricing .price {
  font-family: 'Cinzel', serif;
  font-size: 2.75rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.three-sixty-pricing .price .per {
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.three-sixty-pricing .hours {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8a196;
  margin-bottom: 1.25rem;
}

.three-sixty-features {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.three-sixty-features li {
  color: #d8d3c8;
  font-size: 0.95rem;
}

.three-sixty-features li::before {
  content: "\2726 ";
  color: var(--gold);
}

.three-sixty-occasions {
  max-width: 640px;
  margin: 1.75rem auto 0;
  text-align: center;
  color: #a8a196;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  /* --- Header: compact bar, logo + menu button on one line --- */
  .site-header {
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .site-header .container {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .logo img {
    height: 46px;
  }

  .has-js-nav .nav-toggle {
    display: inline-flex;
  }

  /* Collapsed panel. Only hidden when JS can reopen it. */
  .has-js-nav .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--black);
    border-bottom: 1px solid #2a2a2a;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
  }

  .has-js-nav .site-nav.is-open {
    grid-template-rows: 1fr;
  }

  .has-js-nav .site-nav ul {
    overflow: hidden;
    min-height: 0;
  }

  /* Stacked, generously sized rows rather than a wrapped inline list. */
  .site-nav ul {
    display: block;
    padding: 0 1.5rem;
  }

  .site-nav li + li {
    border-top: 1px solid #1e1e1e;
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    min-height: 44px;
  }

  /* --- Hero: tighter type, full-width stacked CTAs --- */
  .hero {
    padding: 3rem 0;
  }

  .hero h1,
  .hero h2 {
    font-size: 1.85rem;
  }

  .hero .tagline {
    font-size: 1.25rem;
  }

  .hero .btn {
    display: block;
    width: 100%;
    padding: 1rem;
  }

  .hero .btn + .btn {
    margin-top: 0.75rem;
  }

  /* --- Sections: tighter vertical rhythm --- */
  .section {
    padding: 2.75rem 0;
  }

  .section h1,
  .section h2 {
    font-size: 1.4rem;
  }

  /* --- Features: two-up grid reads better than one tall column --- */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
    text-align: left;
  }

  /* --- Packages: single column, and let the price lead --- */
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    padding: 1.5rem;
  }

  .package-card .btn {
    display: block;
    text-align: center;
  }

  .addons ul {
    display: grid;
    gap: 0.4rem;
    text-align: left;
  }

  /* --- Service area: single column list --- */
  .area-list {
    grid-template-columns: 1fr;
  }

  /* --- Contact card --- */
  .contact-card {
    padding: 1.5rem;
  }

  /* --- 360 booth: stack price above features --- */
  .three-sixty-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .three-sixty-pricing {
    border-right: 0;
    border-bottom: 1px solid #2a2a2a;
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .three-sixty-pricing .btn {
    display: block;
  }
}
