/* ── Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(192, 96, 58, 0.15);
  color: #3D1D11;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ── Hero Animations ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-tag {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
  }

  .hero-title {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
  }

  .hero-sub {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s both;
  }

  .hero-cta {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
  }

  .floating-card {
    animation: float 6s ease-in-out infinite;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ── Navbar ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

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

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

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Buttons ── */
button, a[href^="tel:"], a[href^="mailto:"] {
  cursor: pointer;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #FAF6F0;
}

::-webkit-scrollbar-thumb {
  background: #D8C0A8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}

/* ── Form Focus ── */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.1);
}

/* ── Image Hover ── */
img {
  display: block;
  max-width: 100%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}
