/* ── Custom styles for Architectural Restorations ── */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefdfb;
}
::-webkit-scrollbar-thumb {
  background: #d4d5d8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a9ad;
}

/* ── Header styles ── */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#site-header.scrolled {
  background-color: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
#site-header.scrolled .nav-logo-text {
  color: #1f2734;
}
#site-header.scrolled .nav-link {
  color: #52525e;
}

/* ── Service cards ── */
.service-card {
  border: 1px solid rgba(212, 213, 216, 0.5);
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ── Gallery items ── */
.gallery-item {
  border: 1px solid rgba(212, 213, 216, 0.5);
}

/* ── Testimonial cards ── */
.testimonial-card {
  border: 1px solid rgba(212, 213, 216, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ── Mobile menu animation ── */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Form focus states ── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ── Selection color ── */
::selection {
  background-color: #ffd7cf;
  color: #1f2734;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Utility ── */
.no-underline {
  text-decoration: none;
}
