/* ── Custom Properties ── */
:root {
  --color-cream: #faf9f6;
  --color-cream-dark: #f0efe9;
  --color-emerald-950: #042f23;
  --color-emerald-900: #064e3b;
  --color-emerald-800: #065f46;
  --color-emerald-700: #059669;
  --color-emerald-600: #10b981;
  --color-emerald-100: #d1fae5;
  --color-charcoal: #1c1917;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-sans); background: var(--color-cream); color: var(--color-charcoal); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.font-playfair { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(4, 47, 35, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu.open { transform: translateX(0); }
#mobile-menu { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-link { transition: color 0.3s ease; }
.menu-line { transition: all 0.3s ease; }
#menu-toggle.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
#menu-toggle.active .menu-line:nth-child(2) { opacity: 0; }
#menu-toggle.active .menu-line:nth-child(3) { width: 1.25rem; margin-left: 0; transform: rotate(-45deg) translate(3px, -3px); }

/* ── Service Cards ── */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
button, [type="submit"] {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--color-emerald-600);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  html { scroll-padding-top: 73px; }
}
