/* Cashmere & Cotton — Custom styles */

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

html {
  scroll-padding-top: 80px;
}

/* Selection color */
::selection {
  background: rgba(200, 153, 62, 0.2);
  color: #0A1628;
}

/* Smooth image loading */
img {
  display: block;
  max-width: 100%;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid #C8993E;
  outline-offset: 2px;
}

/* Mobile menu animation */
#bar1 {
  transform-origin: center;
}
#bar2 {
  transform-origin: center;
}
#bar3 {
  transform-origin: center;
}

body.menu-open #bar1 {
  transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open #bar2 {
  opacity: 0;
}
body.menu-open #bar3 {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.25rem;
}

/* Subtle grain texture overlay on warm sections */
.bg-warm::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Remove relative positioning issue */
.bg-warm { position: relative; }

/* Ensure hero images load without shift */
.hero-img-stack img {
  will-change: transform;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  img { transition: none !important; }
  .service-card:hover img { transform: none !important; }
  .btn-gold:hover { transform: none !important; }
}
