/* === CUSTOM STYLES === */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base selections */
::selection {
  background: #C2185B;
  color: #FFF8F0;
}

/* === NAVBAR === */
#site-header {
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 26, 77, 0.08);
}

#site-header.scrolled {
  background: rgba(255, 248, 240, 0.97);
  box-shadow: 0 4px 30px rgba(139, 26, 77, 0.08);
}

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, #C2185B 0%, #8B1A4D 100%);
  color: #FFF8F0;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(194, 24, 91, 0.35);
}

.btn-secondary {
  color: #8B1A4D;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(139, 26, 77, 0.06);
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: #8B1A4D;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  border: none;
}

.btn-outline-light {
  background: transparent;
  color: white;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* === BADGE TAG === */
.badge-tag {
  display: inline-block;
  background: linear-gradient(135deg, #fce4ef 0%, #fdf0f6 100%);
  color: #C2185B;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid #facbdd;
}

/* === INPUT FIELDS === */
.input-field {
  background: white;
  border: 2px solid #fce4ef;
  border-radius: 16px;
  padding: 14px 18px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 15px;
  color: #5D4037;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: #c4a8a0;
}

.input-field:focus {
  border-color: #C2185B;
  box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
}

.input-field:hover:not(:focus) {
  border-color: #f7a7c0;
}

select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C2185B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* === CARD HOVER === */
.card-hover {
  transform: translateY(0);
}

.card-hover:hover {
  transform: translateY(-6px);
}

/* === FLOATING ANIMATION === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* === SCROLL REVEAL (progressive enhancement) === */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .card-hover {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  }

  .card-hover.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === MOBILE MENU === */
.mobile-link {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu link stagger */
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === MOBILE TOGGLE ANIMATION === */
.menu-line {
  display: block;
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .btn-primary, .btn-secondary, .btn-light, .btn-outline-light {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .font-display.font-bold.text-4xl {
    font-size: 2rem;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card-hover:hover {
    transform: none;
  }

  .animate-float {
    animation: none;
  }
}
