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

/* ─── Typography ─── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C4775B;
  background: linear-gradient(135deg, #FDF2EE, #FBE5DB);
  border: 1px solid #F3A88A;
  padding: 0.4em 1em;
  border-radius: 100px;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: #4A2C1A;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4A2C1A;
  opacity: 0.6;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: linear-gradient(135deg, #C4775B, #A85E44);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85em 1.8em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(196, 119, 91, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 119, 91, 0.4);
  background: linear-gradient(135deg, #D08568, #B86B4F);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: transparent;
  color: #4A2C1A;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85em 1.8em;
  border: 1.5px solid rgba(74, 44, 26, 0.2);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: #C4775B;
  color: #C4775B;
  transform: translateY(-2px);
}

/* ─── Service Cards ─── */
.service-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 0.5rem;
  border: 1px solid rgba(74, 44, 26, 0.06);
  transition: all 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(74, 44, 26, 0.1);
}

/* ─── Gallery Items ─── */
.gallery-item {
  cursor: pointer;
  transition: all 0.5s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(74, 44, 26, 0.15);
}
.gallery-item img {
  transition: transform 0.7s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
  transition: all 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
}

/* ─── Form Inputs ─── */
.input-field {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid rgba(74, 44, 26, 0.12);
  border-radius: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #4A2C1A;
  background: #FEFCF9;
  transition: all 0.3s ease;
  outline: none;
}
.input-field::placeholder { color: rgba(74, 44, 26, 0.3); }
.input-field:focus {
  border-color: #C4775B;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(196, 119, 91, 0.1);
}

/* ─── Navbar ─── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C4775B;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Navbar scrolled state ─── */
#navbar.scrolled {
  background: rgba(254, 252, 249, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(74, 44, 26, 0.06);
}
#navbar.scrolled .nav-link { color: #4A2C1A; }

/* ─── Mobile Menu ─── */
.mobile-link { position: relative; }

/* ─── Animations ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ─── 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 { opacity: 1; transform: none; }
}

/* ─── Mobile Menu Transition ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Mobile hamburger animation ─── */
.menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
