/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

/* ── Hero ── */
.hero-bg { position: relative; }
.hero-img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 7, 9, 0.65) 0%,
    rgba(123, 36, 50, 0.45) 50%,
    rgba(74, 22, 30, 0.85) 100%
  );
}

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-animate] { transition-delay: 0ms; }
[data-animate="1"] { transition-delay: 100ms; }
[data-animate="2"] { transition-delay: 200ms; }
[data-animate="3"] { transition-delay: 300ms; }
[data-animate="4"] { transition-delay: 400ms; }

/* ── Buttons ── */
.btn-primary {
  box-shadow: 0 4px 20px rgba(123, 36, 50, 0.25);
  transition: all 0.3s ease !important;
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(123, 36, 50, 0.35) !important;
}

/* ── Service Cards ── */
.service-card {
  border: 1px solid rgba(123, 36, 50, 0.08);
  transition: all 0.5s ease !important;
}
.service-card:hover {
  border-color: transparent;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  border: 1px solid rgba(123, 36, 50, 0.08);
  transition: all 0.4s ease;
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(123, 36, 50, 0.12);
  transform: translateY(-4px);
}

/* ── Input Fields ── */
.input-field {
  border: 1px solid #e8ddd8;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #3a3a3a;
  background: #faf6f3;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field:focus {
  border-color: #7B2432;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(123, 36, 50, 0.1);
}
.input-field::placeholder {
  color: #b0a8a0;
}
.input-field option {
  background: #faf6f3;
}

/* ── Header ── */
#header {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#header.scrolled {
  background: rgba(26, 7, 9, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

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

/* ── Back to Top ── */
.back-to-top {
  transition: all 0.3s ease !important;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-3px);
}

/* ── Mobile Menu Lines ── */
.menu-line {
  transition: all 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  width: 100%;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF6F3; }
::-webkit-scrollbar-thumb { background: #c4a882; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7B2432; }

/* ── Selection ── */
::selection {
  background: rgba(123, 36, 50, 0.2);
  color: #320f1e;
}
