/* Prime Peak Stays — site-level styles (layout, hover states, animations).
   Pairs with css/styles.css (the design-system tokens/components). */

:root {
  /* A muted rust-red in the same warm family as --color-accent, reserved for
     validation/error states that styles.css's token set doesn't define. */
  --color-error: #a13d2c;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  color: var(--color-accent-700);
}

a:hover {
  color: var(--color-accent);
}

@keyframes ppsRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ppsNudge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

@keyframes ppsMenuIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Respect the OS-level motion preference: kill scroll-smoothing, keyframe
   animations, and authored transitions everywhere, including on elements
   that set them inline (the !important is what lets a stylesheet rule win
   over an inline `animation`/`transition` shorthand). JS-driven motion
   (hero parallax, scroll-reveal) has its own guard in js/site.js. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* — FAQ accordion — */
summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  display: none;
}

.pps-faq-icon {
  display: inline-block;
  transition: transform .25s ease;
}

details[open]>summary .pps-faq-icon {
  transform: rotate(45deg);
}

/* — header — */
.pps-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.pps-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
}

.pps-header-bg {
  position: absolute;
  inset: 0;
  background: #201e1d;
  opacity: 1;
  transition: opacity .45s ease;
  box-shadow: 0 1px 0 rgba(198, 113, 57, .28);
}

.pps-header--overlay .pps-header-bg {
  opacity: 0;
}

.pps-header-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(20, 18, 17, .62), rgba(20, 18, 17, 0));
}

.pps-header--overlay .pps-header-scrim {
  opacity: 1;
}

.pps-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4.5vw, 56px);
  max-width: 1320px;
  margin: 0 auto;
}

.pps-header-logo {
  display: block;
  flex-shrink: 0;
}

.pps-header-logo img {
  height: clamp(30px, 5.4vw, 40px);
  width: auto;
  filter: brightness(1.5);
}

.pps-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.pps-nav-desktop {
  display: none;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.pps-navlink {
  color: #f0e7d8;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  transition: color .25s;
}

.pps-navlink.is-active,
.pps-navlink:hover {
  color: var(--color-accent-400);
}

.pps-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  background: rgba(245, 234, 216, .1);
  border: 1px solid rgba(245, 234, 216, .25);
  border-radius: 999px;
  cursor: pointer;
}

.pps-nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: #f0e7d8;
  border-radius: 2px;
}

@media (min-width: 900px) {
  .pps-nav-desktop {
    display: flex;
  }

  .pps-nav-toggle {
    display: none;
  }
}

.pps-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #201e1d;
  flex-direction: column;
  padding: 20px clamp(20px, 6vw, 40px) 40px;
  animation: ppsMenuIn .3s ease both;
}

.pps-mobile-menu.is-open {
  display: flex;
}

.pps-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pps-mobile-menu-top img {
  height: 34px;
  width: auto;
}

.pps-mobile-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 234, 216, .1);
  border: 1px solid rgba(245, 234, 216, .25);
  border-radius: 999px;
  color: #f0e7d8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.pps-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
  overflow-y: auto;
}

.pps-navlink-mobile {
  color: #f5ead8;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(24px, 7vw, 32px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 234, 216, .12);
}

.pps-navlink-mobile.is-active,
.pps-navlink-mobile:hover {
  color: var(--color-accent-400);
}

.pps-mobile-menu .btn {
  margin-top: auto;
}

/* — hover states that the design tool used to apply via a `style-hover` runtime attribute — */
.pps-btn-ghost-hero {
  background: rgba(251, 245, 234, .07);
}

.pps-btn-ghost-hero:hover {
  background: rgba(251, 245, 234, .16);
}

.pps-amenity {
  transition: background .35s ease;
}

.pps-amenity:hover {
  background: var(--color-accent-100);
}

.pps-room-card {
  transition: opacity .8s ease, transform .55s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease;
}

.pps-room-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.pps-property-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pps-value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pps-btn-light {
  background: #fdf6ec;
  color: var(--color-accent-900);
}

.pps-btn-light:hover {
  background: var(--color-accent-200);
}

.pps-btn-outline-light {
  color: #fdf6ec;
  border: 1px solid rgba(253, 246, 236, .45);
}

.pps-btn-outline-light:hover {
  background: rgba(253, 246, 236, .14);
}

.pps-contact-card {
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease;
}

.pps-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pps-footer-link {
  color: rgba(245, 234, 216, .78);
  text-decoration: none;
}

.pps-footer-link:hover {
  color: var(--color-accent-300);
}

.pps-wa-fab {
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), background .3s;
}

.pps-wa-fab:hover {
  transform: scale(1.08);
  background: var(--color-accent-600);
}

/* — form validation — */
.input.is-invalid {
  border-color: var(--color-error);
}

.pps-form-error {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-error);
}

.pps-form-error.is-visible {
  display: block;
}

a.btn[aria-disabled="true"] {
  opacity: .6;
  pointer-events: none;
}

/* — chip buttons (contact page guest/room preference) — */
.pps-chip {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  color: var(--color-neutral-800);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.pps-chip.is-selected {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* — image slots — */
.pps-img-slot {
  position: relative;
  width: 100%;
  height: 100%;
}

.pps-img-slot img,
.pps-img-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pps-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.5;
}

/* — reveal-on-scroll targets start hidden; js/site.js reveals them — */
[data-reveal] {
  will-change: opacity, transform;
}