/* ============================================================
   Baoxian88 Landing Page — Custom Styles
   ============================================================ */

/* ---------- Hero Background ----------
   Replace the URL below with your own image:
   background-image: url('./images/hero-family.jpg');
*/
.hero-bg {
  background-image: url('https://images.unsplash.com/photo-1609220136736-443aae4c7ba2?w=1920&q=80');
  /* Warm family living room alternative:
     url('https://images.unsplash.com/photo-1511895426328-dc8714191300?w=1920&q=80') */
  transform: scale(1);
  transition: transform 8s ease-out;
}

.hero-section:hover .hero-bg {
  transform: scale(1.03);
}

/* Subtle warm gradient overlay — matches reference image tone */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(30, 40, 60, 0.35) 40%,
    rgba(20, 30, 50, 0.55) 100%
  );
}

/* Soft text shadow for readability over photo */
.hero-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ---------- Navbar ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1400px;
}

/* Desktop nav links */
.nav-link {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.375rem;
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #1e6fd9;
  background-color: rgba(30, 111, 217, 0.06);
}

/* ---------- LINE CTA Button ---------- */
.line-cta-btn {
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #06c755 0%, #05a847 100%);
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(6, 199, 85, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.line-cta-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(6, 199, 85, 0.5);
  background: linear-gradient(135deg, #07d95e 0%, #06c755 100%);
}

.line-cta-btn:active {
  transform: scale(0.98);
}

/* ---------- Primary CTA (Blue Solid) ---------- */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1e6fd9 0%, #1558b0 100%);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(30, 111, 217, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              background 0.35s ease;
  min-width: 220px;
}

.primary-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(30, 111, 217, 0.55);
  background: linear-gradient(135deg, #2580ef 0%, #1e6fd9 100%);
}

.primary-btn:active {
  transform: scale(0.97);
}

/* ---------- Secondary CTA (Outline) ---------- */
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
  min-width: 220px;
}

.secondary-btn:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.95);
  color: #1a2b4a;
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.secondary-btn:active {
  transform: scale(0.97);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1a2b4a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 1.25rem 1.5rem;
  animation: slideDown 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
  color: #1e6fd9;
  padding-left: 0.75rem;
}

.mobile-line-btn {
  display: inline-flex;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 1279px) {
  .nav-menu {
    display: none;
  }
}

@media (max-width: 639px) {
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.55;
  }

  .primary-btn,
  .secondary-btn {
    min-width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .primary-btn,
  .secondary-btn,
  .line-cta-btn {
    transition: none;
  }

  .hero-section:hover .hero-bg {
    transform: none;
  }
}
