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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #372437;
  background: #ffffff;
  overflow-x: hidden;
}

/* NAV */
.nav-link {
  position: relative;
}

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

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

/* HERO ANIMATIONS */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-content {
  animation: heroFadeIn 1s ease forwards;
}

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

.hero-badge {
  animation: heroFadeIn 1s ease 0.2s both;
}

.hero-title {
  animation: heroFadeIn 1s ease 0.4s both;
}

.hero-subtitle {
  animation: heroFadeIn 1s ease 0.6s both;
}

.hero-ctas {
  animation: heroFadeIn 1s ease 0.8s both;
}

.hero-scroll {
  animation: heroFadeIn 1s ease 1.2s both;
}

/* SECTION LABELS */
.section-label {
  letter-spacing: 0.25em;
}

.section-title {
  letter-spacing: -0.02em;
}

/* CTA BUTTONS */
.cta-primary {
  box-shadow: 0 4px 20px rgba(212, 160, 74, 0.3);
}

.cta-primary:hover {
  box-shadow: 0 8px 30px rgba(212, 160, 74, 0.4);
  transform: translateY(-2px);
}

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

.cta-secondary:hover {
  backdrop-filter: blur(12px);
  transform: translateY(-2px);
}

.cta-dark {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-dark:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* SERVICE CARDS */
.service-card {
  transition: all 0.5s ease;
}

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

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* WHY US CARDS */
.why-card {
  transition: all 0.5s ease;
}

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

/* CONTACT ITEMS */
.contact-item {
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(4px);
}

/* MOBILE MENU */
.mobile-nav-link {
  position: relative;
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* HEADER SCROLL STATE */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(93, 58, 91, 0.08);
}

#site-header.scrolled .nav-link {
  color: #372437;
}

#site-header.scrolled .menu-line {
  background: #372437;
}

/* MOBILE MENU OPEN */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* MENU ANIMATION */
.menu-line:nth-child(1) {
  transform-origin: center;
}

.menu-line:nth-child(2) {
  transform-origin: center;
}

.menu-line:nth-child(3) {
  transform-origin: center;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

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

#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* BACK TO TOP */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-2px);
}

/* FORM FOCUS STATES */
input:focus, textarea:focus {
  outline: none;
}

/* SELECTION */
::selection {
  background: rgba(212, 160, 74, 0.2);
  color: #372437;
}

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

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

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

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

/* 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;
  }
  .hero-img {
    animation: none;
  }
}
