/* ==========================================================
   MDC Occasion Pages — Birthday & Wedding CSS
   Premium design for occasion landing pages
   ========================================================== */

/* ---- CSS Variables (occasion-scoped) ---- */
:root {
  /* Birthday palette */
  --bday-primary:    #e8547a;
  --bday-secondary:  #f4a5b5;
  --bday-accent:     #ffcd3c;
  --bday-dark:       #3e1d2e;
  --bday-light:      #fff0f5;
  --bday-gradient:   linear-gradient(135deg, #e8547a 0%, #f4a5b5 50%, #ffcd3c 100%);

  /* Wedding palette */
  --wed-primary:     #8b7355;
  --wed-secondary:   #c9a87c;
  --wed-accent:      #f5f0e8;
  --wed-dark:        #2c1f0e;
  --wed-light:       #fdfaf5;
  --wed-gradient:    linear-gradient(135deg, #2c1f0e 0%, #8b7355 50%, #c9a87c 100%);

  /* Shared */
  --occ-radius-sm:   8px;
  --occ-radius-md:   16px;
  --occ-radius-lg:   24px;
  --occ-radius-xl:   40px;
  --occ-shadow-sm:   0 4px 16px rgba(0,0,0,.08);
  --occ-shadow-md:   0 12px 40px rgba(0,0,0,.12);
  --occ-shadow-lg:   0 24px 80px rgba(0,0,0,.18);
  --occ-transition:  all .3s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   SHARED OCCASION PAGE STYLES
   ============================================================ */

/* Strip Astra constraints */
body.mdc-occasion-page .site-content .ast-container,
body.mdc-occasion-page #primary,
body.mdc-occasion-page #main,
body.mdc-occasion-page #content,
body.mdc-occasion-page .entry-content,
body.mdc-occasion-page .entry-content > *,
body.mdc-occasion-page .hentry,
body.mdc-occasion-page .page {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}
body.mdc-occasion-page .site-content { padding-top: 0 !important; display: block !important; }

/* Full-width hero */
.mdc-occ-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.mdc-occ-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mdc-occ-hero__bg-fallback {
  position: absolute;
  inset: 0;
}

.mdc-occ-hero__overlay {
  position: absolute;
  inset: 0;
}

.mdc-occ-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.mdc-occ-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mdc-occ-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  color: #fff !important;
  line-height: 1.08;
  margin: 0 0 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.mdc-occ-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.88);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 40px;
}

.mdc-occ-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ---- Shared Buttons ---- */
.mdc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: var(--occ-transition);
}

.mdc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none !important;
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff !important;
  cursor: pointer;
  transition: var(--occ-transition);
}

.mdc-btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

/* ---- Stats Row ---- */
.mdc-occ-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.mdc-occ-stats__item {
  text-align: center;
  color: rgba(255,255,255,.95);
}

.mdc-occ-stats__num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.mdc-occ-stats__label {
  font-size: 12px;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  display: block;
}

.mdc-occ-divider {
  width: 1px;
  background: rgba(255,255,255,.2);
  align-self: stretch;
}

/* ---- Section wrapper ---- */
.mdc-occ-section {
  padding: 90px 0;
}

.mdc-occ-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.mdc-occ-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.mdc-occ-eyebrow-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.mdc-occ-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
}

.mdc-occ-section-sub {
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Product Grid ---- */
.mdc-occ-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.mdc-occ-product-card {
  background: #fff;
  border-radius: var(--occ-radius-lg);
  overflow: hidden;
  box-shadow: var(--occ-shadow-sm);
  transition: var(--occ-transition);
  border: 1.5px solid rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.mdc-occ-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--occ-shadow-lg);
}

.mdc-occ-product-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.mdc-occ-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.mdc-occ-product-card:hover .mdc-occ-product-card__img img {
  transform: scale(1.06);
}

.mdc-occ-product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #fde8ec, #fff0f5);
}

.mdc-occ-product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}

.mdc-occ-product-card__body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mdc-occ-product-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.mdc-occ-product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.mdc-occ-product-card__excerpt {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
  opacity: .75;
}

.mdc-occ-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.mdc-occ-product-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
}

.mdc-occ-product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: var(--occ-transition);
  color: #fff !important;
  white-space: nowrap;
}

.mdc-occ-product-card__btn:hover {
  transform: translateY(-2px);
}

/* ---- Features / Why Us ---- */
.mdc-occ-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.mdc-occ-feature-card {
  padding: 32px 28px;
  border-radius: var(--occ-radius-md);
  border: 1.5px solid rgba(0,0,0,.07);
  background: #fff;
  transition: var(--occ-transition);
}

.mdc-occ-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--occ-shadow-md);
}

.mdc-occ-feature-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.mdc-occ-feature-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.mdc-occ-feature-card__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  opacity: .75;
}

/* ---- Process Steps ---- */
.mdc-occ-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: steps;
}

.mdc-occ-step {
  text-align: center;
  counter-increment: steps;
  position: relative;
}

.mdc-occ-step::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: currentColor;
  opacity: .2;
}

.mdc-occ-step:last-child::after { display: none; }

.mdc-occ-step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 18px;
}

.mdc-occ-step__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.mdc-occ-step__text {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  opacity: .75;
}

/* ---- Testimonial Cards ---- */
.mdc-occ-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.mdc-occ-testimonial {
  background: #fff;
  border-radius: var(--occ-radius-md);
  padding: 32px 28px;
  box-shadow: var(--occ-shadow-sm);
  border: 1.5px solid rgba(0,0,0,.06);
}

.mdc-occ-testimonial__stars {
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.mdc-occ-testimonial__text {
  font-size: 15px;
  font-style: italic;
  line-height: 1.75;
  margin: 0 0 22px;
  opacity: .8;
}

.mdc-occ-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mdc-occ-testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.mdc-occ-testimonial__name {
  font-weight: 700;
  font-size: 14px;
}

.mdc-occ-testimonial__role {
  font-size: 12px;
  opacity: .6;
}

/* ---- CTA Banner ---- */
.mdc-occ-cta-banner {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--occ-radius-xl);
  margin: 0 40px;
  position: relative;
  overflow: hidden;
}

.mdc-occ-cta-banner__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 16px;
}

.mdc-occ-cta-banner__sub {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ---- Gallery Mosaic ---- */
.mdc-occ-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}

.mdc-occ-gallery__item {
  overflow: hidden;
  border-radius: var(--occ-radius-md);
  background: #f0e8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.mdc-occ-gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.mdc-occ-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.mdc-occ-gallery__item:hover img {
  transform: scale(1.07);
}

/* ---- Price Packages ---- */
.mdc-occ-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.mdc-occ-package {
  border-radius: var(--occ-radius-lg);
  overflow: hidden;
  box-shadow: var(--occ-shadow-sm);
  border: 2px solid rgba(0,0,0,.07);
  transition: var(--occ-transition);
  display: flex;
  flex-direction: column;
}

.mdc-occ-package:hover {
  transform: translateY(-6px);
  box-shadow: var(--occ-shadow-lg);
}

.mdc-occ-package--featured {
  border-color: var(--wed-secondary);
}

.mdc-occ-package__header {
  padding: 28px 28px 20px;
}

.mdc-occ-package__featured-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
  background: var(--wed-secondary);
  color: #fff;
}

.mdc-occ-package__name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.mdc-occ-package__price {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.mdc-occ-package__price-sub {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
}

.mdc-occ-package__body {
  padding: 0 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mdc-occ-package__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.mdc-occ-package__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.mdc-occ-package__features li:last-child { border-bottom: none; }

.mdc-occ-package__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   BIRTHDAY-SPECIFIC
   ============================================================ */

body.mdc-birthday-page .mdc-occ-hero__bg-fallback {
  background: linear-gradient(135deg, #e8547a 0%, #f4a5b5 40%, #ffcd3c 70%, #ff8c69 100%);
}

body.mdc-birthday-page .mdc-occ-hero__overlay {
  background: linear-gradient(135deg, rgba(62,29,46,.8) 0%, rgba(62,29,46,.5) 50%, transparent 100%);
}

body.mdc-birthday-page .mdc-occ-hero__eyebrow {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}

body.mdc-birthday-page .mdc-btn-primary {
  background: linear-gradient(135deg, var(--bday-primary), #c93055);
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(232,84,122,.4);
}

body.mdc-birthday-page .mdc-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232,84,122,.5);
}

body.mdc-birthday-page .mdc-occ-eyebrow-tag {
  background: rgba(232,84,122,.12);
  color: var(--bday-primary);
  border: 1px solid rgba(232,84,122,.25);
}

body.mdc-birthday-page .mdc-occ-section-title {
  color: var(--bday-dark);
}

body.mdc-birthday-page .mdc-occ-feature-card__icon { color: var(--bday-primary); }
body.mdc-birthday-page .mdc-occ-product-card__badge { color: var(--bday-primary); }
body.mdc-birthday-page .mdc-occ-product-card__price { color: var(--bday-primary); }
body.mdc-birthday-page .mdc-occ-product-card__btn  { background: linear-gradient(135deg, var(--bday-primary), #c93055); }
body.mdc-birthday-page .mdc-occ-product-card__title { color: var(--bday-dark); }
body.mdc-birthday-page .mdc-occ-testimonial__stars { color: var(--bday-accent); }
body.mdc-birthday-page .mdc-occ-step__num { background: linear-gradient(135deg, var(--bday-primary), #c93055); }
body.mdc-birthday-page .mdc-occ-testimonial__avatar { background: linear-gradient(135deg, var(--bday-primary), #c93055); }

body.mdc-birthday-page .mdc-occ-cta-banner {
  background: linear-gradient(135deg, #e8547a 0%, #c93055 50%, #3e1d2e 100%);
}

/* ============================================================
   WEDDING-SPECIFIC
   ============================================================ */

body.mdc-wedding-page .mdc-occ-hero__bg-fallback {
  background: linear-gradient(135deg, #2c1f0e 0%, #5c4030 40%, #8b7355 70%, #c9a87c 100%);
}

body.mdc-wedding-page .mdc-occ-hero__overlay {
  background: linear-gradient(to right, rgba(44,31,14,.88) 0%, rgba(44,31,14,.6) 50%, rgba(44,31,14,.2) 100%);
}

body.mdc-wedding-page .mdc-occ-hero__eyebrow {
  background: rgba(201,168,124,.2);
  color: var(--wed-secondary);
  border: 1px solid rgba(201,168,124,.4);
}

body.mdc-wedding-page .mdc-btn-primary {
  background: linear-gradient(135deg, var(--wed-secondary), var(--wed-primary));
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(139,115,85,.4);
}

body.mdc-wedding-page .mdc-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(139,115,85,.5);
}

body.mdc-wedding-page .mdc-occ-eyebrow-tag {
  background: rgba(139,115,85,.1);
  color: var(--wed-primary);
  border: 1px solid rgba(139,115,85,.25);
}

body.mdc-wedding-page .mdc-occ-section-title { color: var(--wed-dark); }
body.mdc-wedding-page .mdc-occ-product-card__price { color: var(--wed-primary); }
body.mdc-wedding-page .mdc-occ-product-card__btn  { background: linear-gradient(135deg, var(--wed-secondary), var(--wed-primary)); }
body.mdc-wedding-page .mdc-occ-product-card__title { color: var(--wed-dark); }
body.mdc-wedding-page .mdc-occ-testimonial__stars { color: var(--wed-secondary); }
body.mdc-wedding-page .mdc-occ-step__num { background: linear-gradient(135deg, var(--wed-secondary), var(--wed-primary)); }
body.mdc-wedding-page .mdc-occ-testimonial__avatar { background: linear-gradient(135deg, var(--wed-secondary), var(--wed-primary)); }
body.mdc-wedding-page .mdc-occ-package__check { background: linear-gradient(135deg, var(--wed-secondary), var(--wed-primary)); }

body.mdc-wedding-page .mdc-occ-cta-banner {
  background: linear-gradient(135deg, #2c1f0e 0%, #5c4030 50%, #8b7355 100%);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes mdc-occ-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mdc-occ-product-grid .mdc-occ-product-card {
  animation: mdc-occ-fadeUp .4s ease both;
}

.mdc-occ-product-grid .mdc-occ-product-card:nth-child(1) { animation-delay: 0ms; }
.mdc-occ-product-grid .mdc-occ-product-card:nth-child(2) { animation-delay: 80ms; }
.mdc-occ-product-grid .mdc-occ-product-card:nth-child(3) { animation-delay: 160ms; }
.mdc-occ-product-grid .mdc-occ-product-card:nth-child(4) { animation-delay: 240ms; }
.mdc-occ-product-grid .mdc-occ-product-card:nth-child(5) { animation-delay: 320ms; }
.mdc-occ-product-grid .mdc-occ-product-card:nth-child(6) { animation-delay: 400ms; }

@keyframes mdc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.mdc-occ-hero-emoji {
  display: inline-block;
  animation: mdc-float 3s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .mdc-occ-hero__content { padding: 60px 40px; }
  .mdc-occ-container { padding: 0 24px; }
  .mdc-occ-gallery {
    grid-template-rows: repeat(2, 180px);
  }
}

@media (max-width: 768px) {
  .mdc-occ-hero { min-height: 500px; }
  .mdc-occ-hero__content { padding: 48px 24px; }
  .mdc-occ-section { padding: 60px 0; }
  .mdc-occ-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .mdc-occ-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    height: 200px;
  }
  .mdc-occ-gallery__item { height: 160px; }
  .mdc-occ-cta-banner { margin: 0 16px; padding: 56px 24px; }
  .mdc-occ-steps::after { display: none; }
  .mdc-occ-step::after { display: none; }
}

@media (max-width: 480px) {
  .mdc-occ-product-grid { grid-template-columns: 1fr; }
  .mdc-occ-stats { gap: 20px; }
  .mdc-occ-stats__num { font-size: 28px; }
}
