/* ==========================================================================
   M&M Classy Photo Booth — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500&family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,300,0,0&display=swap');

/* Material icon helper */
.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* ── Brand Palette (5-color, logo-derived) ── */
  --brand-1: #3A1132;     /* Midnight Plum — deep, rich dark */
  --brand-2: #A82080;     /* Berry Rose — rich secondary */
  --brand-3: #DD228F;     /* Logo Pink — primary brand */
  --brand-4: #E87BA8;     /* Dusty Rose — warm softened */
  --brand-5: #F4B3CC;     /* Blush Petal — light pastel tint */

  --brand-1-rgb: 58,17,50;
  --brand-3-rgb: 221,34,143;

  /* ── Complementary Palette ── */
  --color-purple: #9B72CF;
  --color-purple-soft: #C9ACE8;
  --color-peach: #FFAA85;
  --color-peach-soft: #FFD4BE;
  --color-yellow: #FFD666;
  --color-yellow-soft: #FFE9A8;
  --color-warm-cream: #FFF8F3;
  --color-blush-tint: #FDF5F8;

  /* ── Surfaces ── */
  --bg: #FAFAF8;
  --bg-alt: #F0ECE7;
  --bg-blush: #FDF5F8;    /* Very faint blush tint */
  --bg-warm: var(--color-warm-cream);
  --bg-dark: #2A1628;         /* Deep warm plum — on-brand but distinct from CTA */
  --bg-card: #FFFFFF;

  /* ── Text ── */
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #999999;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.6);

  /* ── Accent shortcuts ── */
  --accent-primary: var(--brand-3);
  --accent-hover: var(--brand-2);
  --accent-soft: var(--brand-4);
  --accent-tint: var(--brand-5);
  --accent-tint-bg: rgba(244,179,204,0.18);
  --accent-green: #5CB85C;

  /* ── Gradients ── */
  --gradient-hero: linear-gradient(135deg, #FFF0E8 0%, #FADED4 30%, #F5D0E8 60%, #ECDAF5 100%);
  --gradient-brand: linear-gradient(135deg, var(--brand-3) 0%, var(--brand-2) 50%, #8B1A6B 100%);
  --gradient-warm: linear-gradient(135deg, var(--color-warm-cream) 0%, var(--color-blush-tint) 100%);
  --gradient-pricing: linear-gradient(180deg, var(--color-blush-tint) 0%, var(--color-warm-cream) 100%);
  --gradient-cta: linear-gradient(135deg, var(--brand-1) 0%, #5C1E4E 40%, var(--brand-2) 100%);
  --gradient-pink-btn: linear-gradient(135deg, var(--brand-3) 0%, var(--brand-2) 100%);

  /* ── Typography ── */
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* ── Sizing ── */
  --container-lg: 1200px;
  --container-md: 960px;
  --container-sm: 720px;
  --nav-height: 72px;

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 100px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-glow-pink: 0 4px 30px rgba(221,34,143,0.15);
  --shadow-card-hover: 0 12px 48px rgba(0,0,0,0.10);

  /* ── Transitions ── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease);
  --transition: 0.4s var(--ease);
  --transition-slow: 0.6s var(--ease);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

/* Serif accent — use on specific words inside headings */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* Brand color accents for hero / headline text */
.c-plum  { color: var(--brand-1); }
.c-berry { color: var(--brand-2); }
.c-pink  { color: var(--brand-3); }
.c-rose  { color: var(--brand-4); }
.c-blush { color: var(--brand-5); }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover { opacity: 0.7; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-md {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Navigation — Frosted Glass Floating Pill
   ========================================================================== */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 820px;
  transition: all var(--transition);
}

.navbar.scrolled {
  top: 0.75rem;
}



.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 0.5rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(221, 34, 143, 0.08);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.5) inset;
  transition: all var(--transition);
}

.navbar.scrolled .nav-inner {
  box-shadow: 0 6px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.5) inset;
  background: rgba(255, 255, 255, 0.88);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 1;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover {
  opacity: 0.5;
}

/* Active nav link indicator */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-3);
}

.nav-links a.active {
  color: var(--brand-3);
  font-weight: 600;
}

/* Nav CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.25rem !important;
  background: var(--gradient-pink-btn);
  color: var(--text-on-dark) !important;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  opacity: 1 !important;
  box-shadow: 0 2px 12px rgba(221, 34, 143, 0.2);
}

.nav-cta:hover {
  background: var(--gradient-pink-btn);
  transform: translateY(-1px);
  opacity: 1 !important;
  box-shadow: 0 4px 20px rgba(221, 34, 143, 0.35);
}

/* The CTA should not get the active indicator */
.nav-cta.active::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.75rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger span:last-child { margin-bottom: 0; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(135deg, #F0DDD4 0%, #F4D0DC 35%, #E8D0E8 65%, #DFD4EE 100%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transition: right var(--transition);
}

.mobile-menu.active { right: 0; }

.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu a:hover,
.mobile-menu a:active {
  opacity: 0.6;
}

.mobile-menu a.active {
  color: #DD228F;
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-dark {
  background: var(--gradient-pink-btn);
  color: var(--text-on-dark);
  box-shadow: 0 2px 12px rgba(221, 34, 143, 0.2);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(221, 34, 143, 0.35);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.15);
}

.btn-outline:hover {
  border-color: var(--brand-3);
  color: var(--brand-3);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-white {
  background: white;
  color: var(--text);
}

.btn-white:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.95rem;
}

/* Arrow in button */
.btn .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Email pill button — replaces plain text email */
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(221, 34, 143, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-3);
  transition: all var(--transition-fast);
}

.email-pill:hover {
  background: rgba(221, 34, 143, 0.15);
  color: var(--brand-2);
  opacity: 1;
  transform: translateY(-1px);
}



/* ==========================================================================
   Section Utilities
   ========================================================================== */
.section { padding: 9rem 0; }
.section-sm { padding: 5rem 0; }
.section-lg { padding: 12rem 0; }
.section.bg-brand { padding: 6rem 0; }
.section.bg-dark { padding: 6rem 0; }

.bg-white { background: var(--bg); }
.bg-alt { background: var(--bg-alt); }
.bg-warm { background: var(--color-warm-cream); }
.bg-blush { background: var(--color-blush-tint); }
.bg-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.bg-brand {
  background: var(--gradient-cta);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Decorative blob for brand sections */
.bg-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(221, 34, 143, 0.15);
  filter: blur(80px);
  pointer-events: none;
}

.bg-brand::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(155, 114, 207, 0.1);
  filter: blur(80px);
  pointer-events: none;
}

/* Gradient backgrounds */
.bg-gradient-warm {
  background: var(--gradient-warm);
}

.bg-gradient-pricing {
  background: var(--gradient-pricing);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs for pricing section */
.bg-gradient-pricing::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(244, 179, 204, 0.2);
  filter: blur(60px);
  pointer-events: none;
}

.bg-gradient-pricing::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(155, 114, 207, 0.08);
  filter: blur(60px);
  pointer-events: none;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-3);
  margin-bottom: 1rem;
  background: rgba(221, 34, 143, 0.06);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  width: fit-content;
}

.section-label.on-dark {
  color: var(--brand-5);
  background: rgba(244, 179, 204, 0.12);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-subtitle.centered { margin: 0 auto; }

/* ==========================================================================
   Cards (Global)
   ========================================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ==========================================================================
   Page Header (Subpages)
   ========================================================================== */
.page-header {
  padding: calc(var(--nav-height) + 5rem) 0 4rem;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Decorative dot pattern */
.page-header::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 8%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(221, 34, 143, 0.06);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(155, 114, 207, 0.08);
  pointer-events: none;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header .section-subtitle {
  margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0;
  border-top: 3px solid;
  border-image: var(--gradient-pink-btn) 1;
}

.footer-cta {
  padding: 6rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-cta h2 {
  color: var(--text-on-dark);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding: 4rem 0;
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-on-dark-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity var(--transition-fast);
}

.footer-column a:hover { opacity: 0.5; }

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   Inline SVG Illustrations
   ========================================================================== */
.illustration {
  pointer-events: none;
  user-select: none;
}

.illustration-hero {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: auto;
  opacity: 0.9;
}

.illustration-sm {
  width: 80px;
  height: auto;
}

/* ==========================================================================
   Decorative Shapes (CSS-only accents)
   ========================================================================== */
.decor-dots {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-5);
  pointer-events: none;
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }

/* Subtle float animation for illustrations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(221, 34, 143, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(221, 34, 143, 0.15); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--brand-3);
  color: white;
  border-color: var(--brand-3);
  box-shadow: var(--shadow-glow-pink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .illustration-hero {
    display: none;
  }

  .section { padding: 6rem 0; }
  .section-lg { padding: 8rem 0; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .section-lg { padding: 6rem 0; }
  .section.bg-brand { padding: 4rem 0; }

  .cta-card {
    padding: 3rem 2rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-main {
    gap: 2.5rem;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .footer-brand img {
    flex-shrink: 0;
  }

  .footer-brand p {
    margin-top: 0;
    font-size: 0.8rem;
    max-width: none;
  }

  .footer-column h4 {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .footer-column a {
    font-size: 0.8rem;
  }

  .footer-column ul {
    gap: 0.5rem;
  }

  .navbar {
    width: calc(100% - 2rem);
    top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 2.5rem; }
  .footer-links-grid { grid-template-columns: 1fr; }
}

/* Hide scrollbar on mobile */
@media (max-width: 768px) {
  html {
    scrollbar-width: none; /* Firefox */
  }
  html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
}