/* ── Reset & Base ── */
*, *::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 { max-width: 100%; display: block; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239FA3AA'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* ── Navbar ── */
#navbar { background: transparent; }
#navbar.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.nav-logo { transition: color 0.3s; }
#navbar:not(.scrolled) .nav-logo { color: #1a1f28; }
#navbar.scrolled .nav-logo { color: #1a1f28; }

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
#menu-btn.active .menu-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-btn.active .menu-line:nth-child(3) { transform: translateY(-4px) rotate(-45deg); width: 6px; }

/* ── Hero Animations ── */
.hero-tag { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-tag .block { animation: expandLine 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
h1 { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
h1 p, h1 .italic { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
section > div > div > div:first-child > p,
section > div > div > div:first-child { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
section > div > div > div:first-child > div:last-child { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
section > div > div > div:last-child { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes expandLine {
  from { width: 0; }
  to { width: 48px; }
}

/* ── Scroll Indicator ── */
.scroll-line { animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ── Reveal Animations ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up { transform: translateY(32px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Service Cards ── */
.bg-charcoal-950:hover .w-12 { transform: scale(1.1); }
.w-12 { transition: transform 0.3s ease; }

/* ── Testimonial Cards ── */
.bg-stone-50:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.bg-stone-50 { transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* ── Divider Lines ── */
.w-8.h-px { transition: width 0.3s ease; }
section:hover .w-8.h-px { width: 32px; }

/* ── Smooth Image Hover ── */
.rounded-sm img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.rounded-sm:hover img { transform: scale(1.03); }

/* ── Link Underline Hover ── */
a.group { position: relative; }
a.group::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #F97316;
  transition: width 0.3s ease;
}
a.group:hover::after { width: 100%; }

/* ── Input Focus Ring ── */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ── Mobile Responsiveness ── */
@media (max-width: 767px) {
  .font-serif.text-5xl { font-size: 2.75rem; }
  .font-serif.text-4xl { font-size: 2.25rem; }
}

/* ── Selection ── */
::selection { background: rgba(249, 115, 22, 0.15); color: #1a1f28; }
