/* ==========================================================================
   Homepage — M&M Classy Photo Booth
   ========================================================================== */

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs in hero */
.hero::before {
  content: '';
  position: absolute;
  top: 5%;
  right: 0%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: rgba(221, 34, 143, 0.12);
  filter: blur(80px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0%;
  left: -5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(155, 114, 207, 0.14);
  filter: blur(70px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  max-width: 900px;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-badge {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-3);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.15);
}

/* Hero Illustration Area */
.hero-illustration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.bg-about {
  background: linear-gradient(135deg, #F5EDE8 0%, #F8E8EE 40%, #F0E4F0 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.bg-about::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(221, 34, 143, 0.06);
  filter: blur(60px);
  pointer-events: none;
}

.bg-about::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(155, 114, 207, 0.06);
  filter: blur(60px);
  pointer-events: none;
}

.about-section {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  letter-spacing: -0.02em;
}

.about-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.about-right {
  display: flex;
  flex-direction: column;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
  aspect-ratio: 16/9;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(58, 17, 50, 0.6) 0%, rgba(58, 17, 50, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: var(--radius-xl);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1rem 0.5rem;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-number span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--brand-3);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}




/* ==========================================================================
   Marquee Component — JS-driven for pixel-perfect looping
   ========================================================================== */
.marquee-container {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.bg-testimonials {
  background: linear-gradient(135deg, #F8EDE5 0%, #F5E4E8 40%, #EEE0EC 70%, #F2E8F2 100%);
  position: relative;
  overflow: hidden;
}

.bg-testimonials::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232, 123, 168, 0.1);
  filter: blur(70px);
  pointer-events: none;
}

.bg-testimonials::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -8%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 170, 133, 0.08);
  filter: blur(60px);
  pointer-events: none;
}

.testimonials-section {
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  margin-right: 2rem;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.testimonial-quote-icon {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--brand-3);
  opacity: 0.2;
  margin-bottom: -0.5rem;
  user-select: none;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: auto;
  padding-bottom: 2rem;
  font-weight: 400;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author > div:not(.author-avatar) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-pink-btn);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.stars {
  color: var(--color-yellow);
  font-size: 0.8rem;
  letter-spacing: 1px;
}


/* ==========================================================================
   Pricing Preview
   ========================================================================== */
.pricing-preview-section {
  position: relative;
  overflow: hidden;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 4rem auto 0 auto;
  position: relative;
  z-index: 1;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border: 2px solid var(--brand-3);
  box-shadow: var(--shadow-glow-pink);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-pink-btn);
  color: white;
  padding: 0.35rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(221, 34, 143, 0.3);
}

.pricing-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 400;
  margin: 0.75rem 0 0.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-card.featured .pricing-amount {
  color: var(--brand-3);
}

.pricing-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.5rem 0 2rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.bg-faq {
  background: linear-gradient(180deg, #FDF5F8 0%, #FAF0F4 50%, #F8ECEF 100%);
  position: relative;
  overflow: hidden;
}

.bg-faq::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(221, 34, 143, 0.05);
  filter: blur(50px);
  pointer-events: none;
}

/* FAQ Preview */
.faq-preview {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--brand-3);
}

.faq-toggle {
  font-family: 'Material Symbols Rounded';
  font-size: 1.4rem;
  font-style: normal;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  user-select: none;
}

.faq-item.active .faq-toggle {
  color: var(--brand-3);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
}

.faq-answer-inner a {
  color: var(--brand-3);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Split CTA */
.split-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.split-cta-text {
  flex: 1;
}

.split-cta-text h2 {
  color: white;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.split-cta-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.split-cta-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.process-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 5rem;
}

.scroll-type-text {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.15);
  /* Light base color */
  font-family: var(--font-sans);
}

.scroll-type-text .char {
  color: rgba(0, 0, 0, 0.15);
  transition: color 0.1s ease;
}

.scroll-type-text .char.typed {
  color: #1A1A1A !important;
}

.auto-type-text .char {
  opacity: 0.15;
  transition: opacity 0.1s ease;
  white-space: pre-wrap;
}

.auto-type-text .char.typed {
  opacity: 1;
}

@keyframes typeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.char {
  position: relative;
}

.char.cursor-active::after {
  content: '';
  position: absolute;
  right: -8px; /* Added more space from the character */
  top: 10%;
  bottom: 10%;
  width: 3px;
  background-color: currentColor;
  animation: typeBlink 1.2s step-end infinite;
  z-index: 10;
}

.process-cards {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  scroll-snap-type: x mandatory;
}

.process-cards::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.process-card {
  flex: 0 0 auto;
  width: calc(25% - 1.125rem);
  min-width: 240px;
  scroll-snap-align: start;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  box-shadow: none;
}

.process-card:hover {
  transform: translateY(-5px);
}

.process-icon {
  margin-bottom: auto;
}

.process-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: var(--text);
  line-height: 1.2;
}

.process-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.card-purple {
  background-color: #F3E8FC;
}

.card-pink {
  background-color: #FCE8EE;
}

.card-blue {
  background-color: #E8F4FC;
}

.card-orange {
  background-color: #FCEEE3;
}

.card-green {
  background-color: #EBF6E4;
}

.process-cta-banner {
  background: #1A1A1A;
  border-radius: 40px;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.process-cta-text h4 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.process-cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

.process-cta-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.process-btn-solid {
  background: #fff;
  color: #1A1A1A;
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s;
}

.process-btn-solid:hover {
  opacity: 0.9;
  transform: none;
  box-shadow: none;
}

.process-btn-solid .arrow {
  background: #1A1A1A;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.process-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

.process-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
  color: #fff;
}

.process-btn-outline .arrow {
  background: #fff;
  color: #1A1A1A;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About section: flatten and reorder */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about-text {
    display: contents;
  }

  .about-text .section-label {
    order: 1;
  }

  .about-right {
    display: contents;
  }

  .about-image-wrap {
    order: 2;
  }

  .about-text h2 {
    order: 3;
  }

  .about-text p {
    order: 4;
  }

  .about-stats {
    order: 5;
    grid-template-columns: repeat(3, 1fr);
  }

  .about-actions {
    order: 6;
  }

  .process-cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 30px;
  }

  /* CTA: center */
  .split-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .split-cta-action {
    align-items: center;
  }

  .hero-illustration {
    display: none;
  }

  .about-illustration {
    display: none;
  }

  .services-illustration {
    display: none;
  }

  .testimonials-illustration {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 7rem);
    padding-bottom: 4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-trust {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }

  .trust-divider {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .process-btn-solid,
  .process-btn-outline {
    width: 100%;
    justify-content: space-between;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-card blockquote {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .testimonial-quote-icon {
    font-size: 3rem;
  }

  .author-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }

  .testimonial-author strong {
    font-size: 0.8rem;
  }

  .testimonial-author span {
    font-size: 0.7rem;
  }

  /* About section: flatten grid, reorder to put image between pill and content */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .about-text {
    display: contents;
  }

  .about-text .section-label {
    order: 1;
  }

  .about-right {
    display: contents;
  }

  .about-image-wrap {
    order: 2;
  }

  .about-text h2 {
    order: 3;
  }

  .about-text p {
    order: 4;
  }

  .about-stats {
    order: 5;
  }

  .about-actions {
    order: 6;
    flex-direction: row;
  }

  /* Stats stay horizontal on mobile */
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-number span {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  /* CTA: center everything */
  .split-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .split-cta-action {
    align-items: center;
  }

  .split-cta-text h2 {
    font-size: 2rem;
  }
}