/* ==========================================================================
   Fasannet - Custom Styles
   ========================================================================== */

/* Self-hosted Inter font (no external requests) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

/* WordPress admin bar offset handled by JS (main.js) */

/* FAQ accordion transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-item.active .faq-chevron {
  transform: rotate(45deg);
  color: #818cf8;
}
.faq-chevron {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Mobile hamburger icon */
.mobile-hamburger {
  width: 22px;
  height: 16px;
  position: relative;
}
.mobile-hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d1d5db;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-hamburger span:nth-child(1) { top: 0; }
.mobile-hamburger span:nth-child(2) { top: 7px; }
.mobile-hamburger span:nth-child(3) { top: 14px; }

/* Hamburger → X animation */
.mobile-hamburger.active span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
  background: #fff;
}
.mobile-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.mobile-hamburger.active span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
  background: #fff;
}

/* Full-screen mobile overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: #030712;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Solid nav bar background when mobile menu is open */
#main-nav.mobile-open {
  background: #030712 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Staggered link animation */
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.2s ease;
}
.mobile-nav-link:hover span:last-child,
.mobile-nav-link:active span:last-child {
  color: #818cf8;
}
.mobile-overlay.open .mobile-nav-link {
  transform: translateX(0);
  opacity: 1;
}
.mobile-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }

/* Package card hover */
.package-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* CTA button pulse animation */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}
.cta-pulse {
  animation: subtle-pulse 3s infinite;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Legal pages (Imprint, Privacy) */
.legal-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-content p {
  color: #9ca3af;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content strong {
  color: #d1d5db;
  font-weight: 600;
}
.legal-content a {
  color: #818cf8;
  text-decoration: none;
  transition: color 0.2s;
}
.legal-content a:hover {
  color: #a5b4fc;
}
.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.legal-content ul li {
  color: #9ca3af;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  line-height: 1.6;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f46e5;
}
.legal-content hr {
  border: none;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
  margin: 3rem 0;
}

/* Section fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
