*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #f9c2cc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f4919e;
}

/* Selection */
::selection {
  background: #f9c2cc;
  color: #5c1f2b;
}

/* Divider */
.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #fce4e8, transparent);
  margin-bottom: 4rem;
}

/* Section Styles */
.section-eyebrow {
  opacity: 0;
  transform: translateY(12px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(16px);
}

.section-subtitle {
  opacity: 0;
  transform: translateY(12px);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Hero Animations */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Service Cards */
.service-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Area Items */
.area-item {
  transition: padding-left 0.3s ease;
}

.area-item:hover {
  padding-left: 8px;
}

/* Contact Info */
.contact-info-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-info-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Form select arrow */
select {
  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='%237B2D3B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
