/* Base & Custom Properties */
:root {
  --tc-600: #A84E2D;
  --tc-500: #C4613A;
  --tc-400: #EC7A52;
  --tc-200: #F9C8B5;
  --tc-100: #FCE5DB;
  --sand-200: #F6EDD7;
  --sand-100: #FBF7EE;
  --sand-300: #F0DDAF;
  --warmgray-900: #34302A;
  --warmgray-800: #454139;
  --warmgray-700: #5A554B;
  --warmgray-600: #736D62;
  --warmgray-500: #938D80;
  --warmgray-400: #B8B3A8;
  --warmgray-300: #D4D1C8;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--tc-200);
  color: var(--warmgray-900);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--sand-100);
}
::-webkit-scrollbar-thumb {
  background: var(--sand-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tc-400);
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(52, 48, 42, 0.08);
}

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

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .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; }
}

/* Service card hover */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Button focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--tc-400);
  outline-offset: 2px;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23938D80' 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: 40px;
}

/* Gallery image */
.group img {
  transition: transform 0.5s ease;
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* Avoid layout shift on form elements */
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Mobile menu overlay transition */
#mobileMenu {
  transition: opacity 0.3s ease;
}

/* Active nav link */
nav a.active {
  color: var(--tc-600);
}

/* Print styles */
@media print {
  #navbar, #mobileMenu, button { display: none; }
  body { color: #000; background: #fff; }
}
