/* Small, intentional motion in the site's existing warm palette. */
:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-quick: 220ms;
  --motion-settle: 550ms;
}

/* A shallow edge and soft shadow make the main actions feel tactile. */
.button {
  --button-edge: #b7a58d;
  --button-shadow: #4937251c;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 #ffffff24, 0 2px 0 var(--button-edge), 0 7px 18px var(--button-shadow);
  transition: transform var(--motion-quick) var(--motion-ease), box-shadow var(--motion-quick) var(--motion-ease), background-color var(--motion-quick), border-color var(--motion-quick), color var(--motion-quick);
}
.button-dark {
  --button-edge: #2b211b;
  --button-shadow: #3e2c252b;
}
.button-dark, .button-dark:hover {
  background-image: linear-gradient(135deg, #ffffff10, transparent 65%);
}
.button-outline {
  --button-edge: #2c241e;
  --button-shadow: #15100b24;
}
.button-copy {
  --button-edge: #c8b9a3;
  --button-shadow: #49372512;
}
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 60%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, #ffffff32, transparent);
  transform: translateX(0) skewX(-18deg);
  opacity: 0;
}
.button span, .text-link span, .header-contact span,
.section-links b, .back-top span, .gallery-item-symbol {
  transition: transform var(--motion-quick) var(--motion-ease);
}
.button:focus-visible {
  outline: 3px solid #a78043;
  outline-offset: 5px;
  box-shadow: inset 0 1px 0 #ffffff24, 0 2px 0 var(--button-edge), 0 10px 25px var(--button-shadow);
}
.button:disabled {
  transform: none;
  box-shadow: inset 0 1px 0 #ffffff24, 0 1px 0 var(--button-edge);
}

/* Underlines and arrows move independently of their hit areas. */
.text-link, .header-contact, .lightbox-inquire, .desktop-nav a {
  position: relative;
  transition: color var(--motion-quick);
}
.text-link::after, .header-contact::after, .lightbox-inquire::after, .desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  transition: transform 320ms var(--motion-ease);
}
.desktop-nav a::after { bottom: -7px; }
.text-link:focus-visible::after, .header-contact:focus-visible::after,
.lightbox-inquire:focus-visible::after, .desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}
.filter {
  border-radius: 4px;
  transition: background-color var(--motion-quick), color var(--motion-quick), border-color var(--motion-quick), box-shadow var(--motion-quick), transform var(--motion-quick) var(--motion-ease);
}
.filter.active { box-shadow: inset 0 1px 0 #ffffff8c, 0 3px 10px #17110d21; }
.filter:focus-visible, .gallery-item:focus-visible {
  outline: 3px solid #e7cfa6;
  outline-offset: 4px;
}
.hero-controls button, .icon-button, .lightbox-arrow, .menu-toggle {
  transition: transform var(--motion-quick) var(--motion-ease), background-color var(--motion-quick), box-shadow var(--motion-quick), color var(--motion-quick);
}
.hero-controls button {
  border-radius: 5px;
  background: #ffffff40;
  box-shadow: inset 0 0 0 1px #bba88f55, 0 2px 5px #4836260a;
}
.menu-toggle { border-radius: 50%; }
.lightbox-arrow { border-radius: 4px; }
.faq summary { transition: color var(--motion-quick); }
.inquiry select, .inquiry textarea {
  transition: border-color var(--motion-quick), box-shadow var(--motion-quick);
}
.inquiry select:focus, .inquiry textarea:focus {
  border-color: #9c7f59;
  box-shadow: 0 0 0 3px #9c7f5914;
}

/* The stable parents keep links and buttons easy to target while images tilt. */
.hero-image-wrap {
  position: relative;
  box-shadow: 0 18px 38px -22px #38291b75, 0 3px 8px #38291b0d;
}
.hero-photo-label {
  z-index: 2;
  box-shadow: 0 10px 24px -14px #38291b75, 0 2px 4px #38291b0a;
}
.puppy-image {
  box-shadow: 0 9px 20px -15px #38291b75;
}
.hero-image-wrap::after, .puppy-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 35%), #ffffff32, transparent 62%);
  opacity: 0;
  transition: opacity 300ms var(--motion-ease);
}
.zoom-indicator {
  box-shadow: 0 3px 12px #251b1824;
  transition: transform var(--motion-quick) var(--motion-ease), background-color var(--motion-quick), box-shadow var(--motion-quick);
}
.gallery-item {
  box-shadow: 0 7px 18px -10px #17110d70;
  transition: box-shadow 320ms var(--motion-ease);
}
.puppy-card:focus-visible .puppy-image {
  box-shadow: 0 14px 27px -17px #38291b80, inset 0 0 0 1px #c5b092;
}
.gallery-item:focus-visible { box-shadow: 0 12px 28px -12px #17110db0; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 #ffffff24, 0 3px 0 var(--button-edge), 0 13px 24px var(--button-shadow);
  }
  .button:not(:disabled):hover::before, .button:focus-visible::before {
    opacity: 1;
    transform: translateX(300%) skewX(-18deg);
    transition: transform 720ms var(--motion-ease), opacity 100ms;
  }
  .button:not(:disabled):hover span, .text-link:hover span, .header-contact:hover span,
  .section-links a:hover b, .gallery-item:hover .gallery-item-symbol {
    transform: translateX(4px);
  }
  .back-top:hover span { transform: translateY(-4px); }
  .text-link:hover::after, .header-contact:hover::after,
  .lightbox-inquire:hover::after, .desktop-nav a:hover::after { transform: scaleX(1); }
  .filter:hover { transform: translateY(-2px); box-shadow: 0 4px 12px #17110d28; }
  .filter:not(.active):hover { background-color: #ffffff09; }
  .hero-controls button:hover {
    background-color: #fffaf0;
    box-shadow: inset 0 0 0 1px #bba88f80, 0 5px 10px #48362614;
    transform: translateY(-2px);
  }
  .icon-button:hover, .lightbox-arrow:hover, .menu-toggle:hover { transform: translateY(-1px); }
  .menu-toggle:hover { background-color: #e8e0d099; }
  .lightbox-arrow:hover { background-color: #ffffff0a; }
  .faq summary:hover { color: var(--accent); }
  .gallery-item:hover { box-shadow: 0 16px 30px -13px #17110da8; }
  .puppy-card:hover .zoom-indicator {
    transform: translateY(-2px);
    background-color: #fffaf0;
    box-shadow: 0 7px 18px #251b1838;
  }
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-visual[data-depth] { perspective: 1200px; }
  .hero-visual[data-depth] .hero-image-wrap {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform var(--motion-settle) var(--motion-ease), box-shadow var(--motion-settle) var(--motion-ease);
  }
  .hero-visual[data-depth] .hero-photo-label {
    transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0);
    transition: transform var(--motion-settle) var(--motion-ease), box-shadow var(--motion-settle) var(--motion-ease);
  }
  .hero-visual[data-depth].is-depth-active .hero-image-wrap {
    box-shadow: 0 25px 47px -24px #38291b85, 0 5px 12px #38291b18;
  }
  .hero-visual[data-depth].is-depth-active .hero-photo-label {
    transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 18px);
    box-shadow: 0 16px 30px -16px #38291b85, 0 3px 5px #38291b12;
  }
  .puppy-card[data-depth] { perspective: 1000px; }
  .puppy-card[data-depth] .puppy-image {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform var(--motion-settle) var(--motion-ease), box-shadow var(--motion-settle) var(--motion-ease);
  }
  .puppy-card[data-depth].is-depth-active .puppy-image {
    transform: translateY(-5px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    box-shadow: 0 22px 30px -18px #38291b88, 0 4px 9px #38291b12;
  }
  .hero-visual[data-depth].is-depth-active .hero-image-wrap,
  .hero-visual[data-depth].is-depth-active .hero-photo-label,
  .puppy-card[data-depth].is-depth-active .puppy-image {
    transition-duration: 120ms, 300ms;
    will-change: transform;
  }
  .is-depth-active .hero-image-wrap::after,
  .is-depth-active .puppy-image::after { opacity: .6; }
}

/* Tap feedback also works without a cursor or the optional depth script. */
.button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px #291e181a, 0 1px 0 var(--button-edge), 0 3px 8px var(--button-shadow);
  transition-duration: 80ms;
}
.filter:active, .hero-controls button:active,
.icon-button:active, .lightbox-arrow:active, .menu-toggle:active {
  transform: scale(.96);
  transition-duration: 80ms;
}
.puppy-card:active .puppy-image { box-shadow: 0 3px 10px -6px #38291b75; }
.gallery-item:active { box-shadow: inset 0 0 0 2px #e7cfa680, 0 3px 10px -6px #17110d70; }

@media (hover: none), (pointer: coarse) {
  .button-dark:hover { transform: none; }
  .button:not(:disabled):active { transform: translateY(1px); }
  .puppy-card:hover img, .gallery-item:hover img { transform: none; }
  .hero-image-wrap { box-shadow: 0 13px 27px -18px #38291b70; }
  .hero-photo-label { box-shadow: 0 8px 18px -12px #38291b70; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .button:hover, .button:active, .filter, .filter:hover, .filter:active,
  .hero-controls button, .icon-button, .lightbox-arrow, .menu-toggle,
  .button span, .text-link span, .header-contact span, .section-links b,
  .back-top span, .gallery-item-symbol, .zoom-indicator,
  .hero-visual[data-depth] .hero-image-wrap, .hero-visual[data-depth] .hero-photo-label,
  .puppy-card[data-depth] .puppy-image, .puppy-card:hover img, .gallery-item:hover img {
    transform: none !important;
    will-change: auto !important;
  }
  .hero-visual[data-depth], .puppy-card[data-depth] { perspective: none; }
  .button::before, .hero-image-wrap::after, .puppy-image::after { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
