/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: #C94E28;
  color: #fff;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 245, 239, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(42, 36, 32, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

.menu-line {
  transition: all 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Hero Badge ── */
.hero-badge {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* ── Hero Headline ── */
#hero h1 {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

#hero p {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

#hero .flex.flex-wrap {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

#hero .flex.gap-10 {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 1s;
}

/* ── Hero Image ── */
.lg\\:col-start-8 {
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
  animation-delay: 0.5s;
}

/* ── Reveal Animations ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Service Cards ── */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ── Floating Card ── */
.reveal-up {
  animation: floatUp 0.6s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

/* ── Keyframes ── */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

/* ── Focus Styles ── */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* ── Smooth Scroll Offset for Fixed Nav ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .lg\\:col-start-8 {
    margin-top: 2rem;
  }

  .lg\\:h-\\[600px\\] {
    height: 400px !important;
  }

  .absolute.-bottom-6.-left-6 {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
  }

  .floating-card {
    max-width: 100% !important;
  }
}

/* ── Print Styles ── */
@media print {
  #navbar,
  #mobileMenu {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
