/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf9f7; }
::-webkit-scrollbar-thumb { background: #d4a8a0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7B2D3A; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
.nav-link-text {
  position: relative;
}

.nav-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3A;
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* Navbar scrolled state */
#navbar.scrolled {
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 58, 0.08);
}

#navbar.scrolled .nav-link-text {
  color: #374151;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: color 0.3s ease;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #7B2D3A;
  color: #fff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #7B2D3A;
  box-shadow: 0 4px 15px rgba(123, 45, 58, 0.25);
}

.btn-primary:hover {
  background: #6b2430;
  border-color: #6b2430;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 45, 58, 0.35);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #7B2D3A;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #f4979f;
}

.btn-secondary:hover {
  background: #fdf0f2;
  border-color: #7B2D3A;
  transform: translateY(-2px);
  color: #7B2D3A;
}

/* ===== Badges ===== */
.badge-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7B2D3A;
  background: #fce4e8;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.badge-label-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9c5cc;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* ===== Service Cards ===== */
.service-card {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-fill-mode: both;
}

/* ===== Form ===== */
.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e0d8;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.input-field:focus {
  border-color: #7B2D3A;
  box-shadow: 0 0 0 3px rgba(123, 45, 58, 0.1);
}

.input-field::placeholder {
  color: #9ca3af;
}

.input-field option[value=""][disabled] {
  color: #9ca3af;
}

/* ===== Hero Image ===== */
.hero-image-wrapper {
  position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  
  #hero h1 {
    font-size: 2.75rem;
  }
  
  .service-card {
    animation-delay: 0s !important;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }
}
