/* ── Base / Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ── Nav scroll state ── */
#site-nav.scrolled {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(60, 36, 21, 0.08);
}

/* ── Mobile menu transitions ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ── Hamburger animation ── */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* ── Decorative divider ── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(224, 92, 53, 0.3), transparent);
}
.section-divider svg {
  color: #e05c35;
  opacity: 0.6;
}

/* ── Service card hover accent line ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, transparent, #e05c35, transparent);
  transition: transform 0.4s ease;
  border-radius: 3px;
}
.service-card:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Gallery image hover ── */
.gallery-item {
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(60, 36, 21, 0.3), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* ── Input focus ring animation ── */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 92, 53, 0.15);
}

/* ── Button micro-interaction ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

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

/* ── 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, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
