/* ─── Base & Typography ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, #d4a0c4 60%, transparent);
  color: #501f3a;
}

/* ─── Section Labels ─── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, #a8447e 80%, #d4a0c4);
  background: linear-gradient(135deg, #f5e0ee 0%, #ebbfd9 100%);
  padding: 0.4em 1em;
  border-radius: 100px;
  border: 1px solid color-mix(in srgb, #db94bc 40%, transparent);
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: #501f3a;
  letter-spacing: -0.01em;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: color-mix(in srgb, #faf0f6 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 color-mix(in srgb, #db94bc 20%, transparent), 0 4px 30px color-mix(in srgb, #db94bc 8%, transparent);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #501f3a;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #d4a0c4;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── Hero ─── */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  will-change: transform;
}

.hero-overlay {
  background: 
    linear-gradient(180deg, 
      color-mix(in srgb, #501f3a 75% 0%, transparent) 0%,
      color-mix(in srgb, #501f3a 55% 0%, transparent) 40%,
      color-mix(in srgb, #501f3a 70% 0%, transparent) 70%,
      color-mix(in srgb, #501f3a 85% 0%, transparent) 100%
    );
}

.hero-headline {
  opacity: 1;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-sub {
  opacity: 1;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.hero-ctas {
  opacity: 1;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

.hero-badge {
  opacity: 1;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}

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

.cta-primary {
  box-shadow: 0 4px 20px color-mix(in srgb, #fbbf24 30%, transparent);
}

.cta-primary:hover {
  box-shadow: 0 8px 40px color-mix(in srgb, #fbbf24 40%, transparent);
  transform: translateY(-2px);
}

.cta-secondary {
  backdrop-filter: blur(10px);
}

/* ─── CTA Section ─── */
.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-overlay {
  background: linear-gradient(135deg, 
    color-mix(in srgb, #501f3a 90% 0%, transparent) 0%,
    color-mix(in srgb, #722853 80% 0%, transparent) 100%
  );
}

/* ─── Service Cards ─── */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px color-mix(in srgb, #8c3366 20%, transparent);
}

/* ─── Gallery ─── */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, #501f3a 40% 0%, transparent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ─── FAQ ─── */
.faq-btn {
  transition: background 0.3s ease;
}

.faq-btn:hover {
  background: color-mix(in srgb, #ebbfd9 30%, transparent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.faq-content.open {
  max-height: 300px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(45deg);
}

/* ─── Mobile Menu ─── */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ─── Scroll Reveal ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

/* Progressive enhancement: only animate if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
  }

  .reveal-up.animate {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .reveal-left.animate {
    animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .reveal-right.animate {
    animation: revealRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

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

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Decorative Elements ─── */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}

/* ─── Form ─── */
select option {
  color: #501f3a;
  background: #faf0f6;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf0f6;
}

::-webkit-scrollbar-thumb {
  background: #db94bc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4649a;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }
}
