/* ============================================
   The Photo Booth Ninja — stylesheet
   ============================================ */

:root {
  --ink: #14141a;
  --charcoal: #1c1c22;
  --paper: #ffffff;
  --cloud: #f7f6f4;
  --stone: #e6e4e0;
  --muted: #6b6b73;
  --accent: #d84343;   /* ninja red, from the props/backdrop photos */
  --accent-dark: #b53434;
  --gold: #c9a86a;     /* sequins backdrop gold */
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 20, 26, 0.06);
  --shadow-md: 0 12px 30px rgba(20, 20, 26, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 20, 26, 0.18);
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  height: 52px;
  width: auto;
  transition: height 0.35s var(--ease);
}
.site-header.scrolled .brand-logo { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.site-header:not(.scrolled) .nav-link:not(.nav-cta) { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  text-shadow: none !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 67, 67, 0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(201, 168, 106, 0.25), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255, 0.08), transparent 55%),
    linear-gradient(160deg, #1c1c22 0%, #0e0e12 100%);
  animation: bgShift 16s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.08); }
}
.hero-shuriken {
  position: absolute;
  color: rgba(255,255,255,0.12);
  font-size: 4rem;
  animation: spin 18s linear infinite;
  pointer-events: none;
  user-select: none;
}
.hero-shuriken.s1 { top: 12%; left: 8%; font-size: 3rem; animation-duration: 14s; }
.hero-shuriken.s2 { bottom: 15%; right: 10%; font-size: 5rem; animation-duration: 22s; animation-direction: reverse; }
.hero-shuriken.s3 { top: 55%; left: 85%; font-size: 2.4rem; animation-duration: 11s; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 90px;
}
.hero-logo {
  width: 190px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4));
  background: #fff;
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 28px;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 760px;
  margin-bottom: 18px;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.scroll-cue.hide {
  opacity: 0;
  pointer-events: none;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  background: #fff;
  border-radius: 50%;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 24px; }
  100% { opacity: 0; top: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted, .section-dark .section-lead { color: rgba(255,255,255,0.65); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 20px;
}
.section-lead {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* ---------- Offer ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.offer-text p { color: var(--muted); margin: 0 0 18px; }
.offer-image img {
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease);
}
.offer-image:hover img { transform: scale(1.03) rotate(-1deg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 14px;
  background: var(--cloud);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.feature-icon {
  font-size: 1.8rem;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  background: #26262e;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.gallery-item::after {
  content: "🔍";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(20,20,26,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,12,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s var(--ease);
}
@keyframes popIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.lightbox-close:hover { transform: scale(1.08); }

/* ---------- Custom Designs ---------- */
.designs-grid {
  columns: 5 220px;
  column-gap: 16px;
}
.designs-grid img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.designs-grid img:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-md); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.price-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.price-featured {
  background: rgba(216, 67, 67, 0.08);
  border-color: var(--accent);
  transform: scale(1.04);
}
.price-featured:hover { transform: scale(1.04) translateY(-8px); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 18px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-name { font-size: 1.3rem; margin-bottom: 8px; letter-spacing: 0.03em; text-transform: uppercase; }
.price-amount { font-size: 2.6rem; font-weight: 800; margin-bottom: 26px; color: var(--accent); }
.price-features {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}
.price-features li { padding-left: 26px; position: relative; }
.price-features li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card .btn { width: 100%; }
.price-card .btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.price-card .btn-outline:hover { border-color: #fff; }

.ala-carte {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.ala-carte h3 { margin-bottom: 20px; font-size: 1.2rem; }
.ala-carte-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { color: var(--muted); margin: 20px 0 30px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-details a { font-weight: 600; font-size: 1.05rem; transition: color 0.25s ease; }
.contact-details a:hover { color: var(--accent); }
.social-links { display: flex; gap: 18px; }
.social-links a {
  font-weight: 600;
  padding: 8px 18px;
  border: 1px solid var(--stone);
  border-radius: 999px;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}
.social-links a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.contact-form {
  background: var(--cloud);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--stone);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 67, 67, 0.12);
}
.form-status { text-align: center; margin: 14px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
  text-align: center;
}
.footer-logo {
  width: 70px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
}
.footer-inner h3 { color: #fff; margin-bottom: 14px; font-size: 1.2rem; }
.footer-inner .social-links { justify-content: center; margin: 20px 0; }
.footer-inner .social-links a { border-color: rgba(255,255,255,0.2); color: #fff; }
.footer-inner .social-links a:hover { background: var(--accent); border-color: var(--accent); }
.copyright { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 20px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-image { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .designs-grid { columns: 3 180px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-8px); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s var(--ease);
  }
  .main-nav.open { right: 0; }
  .main-nav .nav-link { color: var(--ink) !important; text-shadow: none !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--ink) !important; }
  .site-header:not(.scrolled) .nav-toggle.open span { background: var(--ink) !important; }

  .section { padding: 80px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .designs-grid { columns: 2 160px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .hero-logo { width: 140px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
}
