/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ─── HERO PATTERN ─── */
.hero-pattern {
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(91,44,111,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(245,158,11,0.15) 0%, transparent 60%);
}

/* ─── NAV ─── */
.nav { transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 1px 20px rgba(91,44,111,0.08); }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #F59E0B;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu lines */
.menu-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #5B2C6F;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}
.menu-line.top    { top: 8px; }
.menu-line.middle { top: 14px; }
.menu-line.bottom { top: 20px; }
#menu-btn.active .menu-line.top    { top: 14px; transform: rotate(45deg); }
#menu-btn.active .menu-line.middle { opacity: 0; }
#menu-btn.active .menu-line.bottom { top: 14px; transform: rotate(-45deg); }

.mobile-menu {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-link { transition: color 0.2s ease; }
.mobile-link:hover { color: #F59E0B; }

/* ─── HERO ANIMATIONS ─── */
.hero-eyebrow  { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.2s; }
.hero-headline { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.4s; }
.hero-sub      { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.6s; }
.hero-ctas     { animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.8s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating stat cards */
.float-card {
  animation: floatY 4s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.3s; }
.card-3 { animation-delay: -2.6s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #d4bfdc, transparent);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F59E0B;
  color: #160a19;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}
.btn-arrow { transition: transform 0.3s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #f5f0f7;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(245,240,247,0.3);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ebe0f0;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(235,224,240,0.25);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(235,224,240,0.5);
  transform: translateY(-2px);
}

/* ─── SERVICE CARDS ─── */
.service-card {
  border-radius: 16px;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); }

/* ─── INPUTS ─── */
.input {
  width: 100%;
  background: #fff;
  border: 1px solid #e8dff0;
  border-radius: 10px;
  padding: 12px 16px;
  color: #160a19;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #b893c2; }
.input:focus {
  border-color: #5B2C6F;
  box-shadow: 0 0 0 3px rgba(91,44,111,0.08);
}
.input-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B2C6F' 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: 40px;
}
.input:invalid:not(:placeholder-shown) { border-color: #dc2626; }

/* ─── REVEAL (scroll) ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Default state for reveal elements is visible — JS adds the revealed class for timing */

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .hero { min-height: 100svh; }
  .font-display.text-5xl { font-size: 2.75rem; }
  .font-display.text-4xl { font-size: 2.25rem; }
}
