/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(123, 45, 59, 0.15);
  color: #45161f;
}

/* ── Navbar ── */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #7B2D3B;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.35s ease;
  border: 1.5px solid #7B2D3B;
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: #7B2D3B;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.2);
}

/* ── Input Fields ── */
.input-field {
  background: #fefdfb;
  border: 1.5px solid #e5e0d8;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: #45161f;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: #c4b8a8;
}

.input-field:focus {
  border-color: #7B2D3B;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
  background: #fff;
}

/* ── Stat Cards ── */
.stat-card {
  animation: floatMain 6s ease-in-out infinite;
}

.stat-card-float {
  animation: floatCard 5s ease-in-out infinite;
}

.stat-card-float:nth-child(2) {
  animation-delay: -1.5s;
}

.stat-card-float:nth-child(3) {
  animation-delay: -3s;
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* ── Service Cards ── */
.service-card {
  border: 1px solid rgba(123, 45, 59, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.15);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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; }

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

/* ── Subtle pattern overlay for sections ── */
.section-pattern {
  background-image: radial-gradient(rgba(123, 45, 59, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
