/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #C4704B;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
  background: #d0b48e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4704B;
}

/* Navbar */
#navbar {
  background: rgba(253, 249, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  border-bottom-color: #EDE8E0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav-link {
  position: relative;
}

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

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

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

.mobile-link {
  position: relative;
}

/* Hero Animation */
.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

h1 {
  animation: fadeUp 0.8s 0.15s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

h1 + p {
  animation: fadeUp 0.8s 0.3s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

h1 + p + div {
  animation: fadeUp 0.8s 0.45s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Cards */
.service-card {
  transition: background 0.3s ease;
}

.service-card:hover {
  background: #faf8f5;
}

.service-card:hover svg {
  transform: scale(1.05);
}

.service-card svg {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Gallery */
.group img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Select styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E8E84' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
  border-bottom-color: #C4704B !important;
}

/* Smooth section reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form success */
#form-success {
  animation: fadeUp 0.5s ease forwards;
}
