html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  background: #f5ede0;
  color: #1a1208;
}

/* --- nav link underline --- */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #b5541a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- mobile menu --- */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
}

/* --- hero grain overlay --- */
.hero-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.hero-grain > * {
  position: relative;
  z-index: 2;
}

/* --- service card hover --- */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 18, 8, 0.12);
}

.grid {
  grid-template-rows: auto;
}

.service-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
}

/* --- collection item --- */
.coll-item {
  overflow: hidden;
}
.coll-item img {
  transition: transform 0.5s ease;
}
.coll-item:hover img {
  transform: scale(1.05);
}

#bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 30%;
}

#bg::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 1200px;
  right: -30%;
  top: 70%;
  transform: translateY(-50%) rotate(var(--sierra-rotation, 0deg));
  transform-origin: center center;

  background-image: url(/img/Sierra_bg.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  transition: transform 0.1s linear;
}

@media (max-width: 768px) {
  #bg::before {
    background-image: none;
  }
}
