/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: #b82550;
  color: #fff;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(254, 253, 251, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 200, 188, 0.3);
}

#navbar.scrolled {
  background: rgba(254, 253, 251, 0.97);
  box-shadow: 0 4px 30px rgba(59, 7, 22, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
#mobileMenu {
  top: 80px;
}

#mobileMenu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  position: relative;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(127, 26, 61, 0.03) 0%, rgba(127, 26, 61, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== FORM ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 37, 80, 0.1);
}

/* ===== BACK TO TOP ===== */
#backToTop.visible {
  opacity: 1;
  translate: 0;
  pointer-events: auto;
}

/* ===== DECORATIVE ===== */
.divider-burgundy {
  height: 3px;
  background: linear-gradient(90deg, #7f1a3d, #ff8a66, #7f1a3d);
  border: none;
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b82550;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== MOBILE MENU ANIMATION ===== */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}
