/* ========== CUSTOM STYLES ========== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVBAR ========== */
#navbar {
  transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.15);
}

/* Mobile menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #c8952e;
  transition: width 0.3s ease;
}

.service-card:hover::after {
  width: 100%;
}

/* ========== GALLERY ========== */
.gallery-item {
  aspect-ratio: auto;
}

.gallery-item.col-span-2 {
  aspect-ratio: 16/12;
}

@media (min-width: 768px) {
  .gallery-item.col-span-2 {
    aspect-ratio: 16/10;
  }
}

/* ========== PROCESS ========== */
.process-step::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #c8952e;
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: rgba(200, 149, 46, 0.1);
  pointer-events: none;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8952e;
  outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(200, 149, 46, 0.2);
  color: #0a1628;
}
