/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ── Navbar ── */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 201, 164, 0.3);
  transition: box-shadow 0.3s ease;
}
.nav-fixed.scrolled {
  box-shadow: 0 1px 20px rgba(93, 55, 35, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #B5523B;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #B5523B;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #943F2C;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(181, 82, 59, 0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #5E271D;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(181, 82, 59, 0.35);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(181, 82, 59, 0.08);
  border-color: #B5523B;
  transform: translateY(-1px);
}

/* ── Input Fields ── */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E0C9A4;
  border-radius: 0.625rem;
  background: #fff;
  color: #6B4B30;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.input-field::placeholder { color: #C49A62; }
.input-field:focus {
  border-color: #B5523B;
  box-shadow: 0 0 0 3px rgba(181, 82, 59, 0.1);
}
.input-field.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.error-msg { color: #DC2626; font-size: 0.8rem; margin-top: 0.25rem; display: none; }

/* ── Hero ── */
.hero-eyebrow {
  animation: fadeDown 0.8s ease both;
}
.hero-eyebrow ~ h1,
.hero-eyebrow + * { animation: fadeUp 0.8s ease 0.15s both; }
.hero-eyebrow ~ h1 + p,
.hero-eyebrow + p { animation: fadeUp 0.8s ease 0.3s both; }
.hero-eyebrow ~ h1 + p + * { animation: fadeUp 0.8s ease 0.45s both; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-left,
  .reveal-right,
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-left { transform: translateX(-30px); }
  .reveal-right { transform: translateX(30px); }
  .reveal-up { transform: translateY(30px); }
  .reveal-left.revealed,
  .reveal-right.revealed,
  .reveal-up.revealed {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

/* ── Service Cards ── */
.service-card {
  background: #FDFCFA;
  border: 1px solid #F0E6D6;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  border-color: #E0C9A4;
  box-shadow: 0 12px 40px rgba(93, 55, 35, 0.08);
  transform: translateY(-4px);
}
.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDF3F0, #FBE8E2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B5523B;
  transition: background 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, #B5523B, #943F2C);
  color: #fff;
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 1;
  transform: none;
}
#mobile-menu.open .mobile-link {
  animation: mobileLinkIn 0.3s ease both;
}
#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; }

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

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .font-serif.text-4xl { font-size: 2.25rem; }
  .font-serif.text-5xl { font-size: 2.5rem; }
}
