/* =========================================================
   APIE HOME PAGE - LIVE FIX / FINAL OVERRIDES
   Loaded after nav.css so home styles always win.
========================================================= */

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  background: #fffaf5;
}

/* Hero text that was missing from the live stylesheet */
.apie-hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  text-align: center;
}

.apie-hero-tagline span {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid rgba(8,116,127,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #08747f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(8,116,127,.10);
}

/* About heading decoration */
.apie-about-container {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow-line {
  display: inline-block;
  width: 42px;
  height: 2px;
  margin: 0 10px;
  vertical-align: middle;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #08747f, transparent);
}

/* Center journey ring - missing on live */
.apie-center-ring {
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(8,116,127,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(8,116,127,.045), 0 0 30px rgba(8,116,127,.12);
  pointer-events: none;
  animation: apieCenterRing 5s ease-in-out infinite;
}

@keyframes apieCenterRing {
  0%, 100% { transform: scale(1); opacity: .65; }
  50% { transform: scale(1.035); opacity: 1; }
}

/* Review footer strip - missing on live */
.featured-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-top: 1px solid rgba(8,116,127,.12);
  color: #08747f;
  background: rgba(8,116,127,.035);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
}

/* Extra decorative positions used by the current index.html */
.star-6 { left: 45%; top: 9%; font-size: 16px; animation-delay: -2.4s; }
.star-7 { right: 38%; top: 20%; font-size: 19px; animation-delay: -3.1s; }
.star-8 { left: 12%; bottom: 18%; font-size: 21px; animation-delay: -1.7s; }
.star-9 { right: 12%; bottom: 19%; font-size: 17px; animation-delay: -2.8s; }
.star-10 { left: 50%; bottom: 12%; font-size: 15px; animation-delay: -1.2s; }

.heart-4 { left: 35%; top: 44%; font-size: 16px; animation-delay: -3.2s; }
.heart-5 { right: 36%; top: 51%; font-size: 19px; animation-delay: -1.9s; }
.heart-6 { left: 48%; bottom: 25%; font-size: 14px; animation-delay: -2.2s; }

.confetti-9  { left: 22%; top: 17%; background: #ffd21f; transform: rotate(18deg); animation-delay: -1.2s; }
.confetti-10 { left: 36%; top: 33%; background: #ed2389; transform: rotate(-25deg); animation-delay: -2.2s; }
.confetti-11 { right: 24%; top: 17%; background: #1596a3; transform: rotate(35deg); animation-delay: -3.2s; }
.confetti-12 { right: 35%; top: 38%; background: #f7941d; transform: rotate(-15deg); animation-delay: -4.2s; }
.confetti-13 { left: 30%; bottom: 14%; background: #1596d1; transform: rotate(25deg); animation-delay: -1.8s; }
.confetti-14 { right: 29%; bottom: 12%; background: #ffd21f; transform: rotate(-35deg); animation-delay: -2.8s; }
.confetti-15 { left: 53%; top: 23%; background: #ed2389; transform: rotate(12deg); animation-delay: -3.8s; }

/* Keep decorative animals inside the viewport */
.animal-monkey {
  right: 25%;
  bottom: 4%;
  width: 125px;
  height: 125px;
}

/* Prevent the home sections from creating horizontal overflow on live */
.apie-birthday-hero,
.apie-about-section,
.apie-review-section,
.apie-contact-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Make the home page readable on smaller screens */
@media (max-width: 768px) {
  .apie-hero-tagline span {
    max-width: calc(100vw - 48px);
    padding: 8px 13px;
    font-size: 11px;
    letter-spacing: .6px;
  }

  .eyebrow-line {
    width: 25px;
    margin: 0 6px;
  }

  .featured-bottom {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .apie-hero-tagline {
    margin-top: 12px;
  }

  .apie-hero-tagline span {
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apie-center-ring,
  .party-star,
  .party-heart,
  .party-confetti,
  .party-ribbon,
  .apie-animal,
  .apie-fabric-curtain {
    animation: none !important;
  }
}
