/* Scout Hill Co — base styles, animations, and hover/focus states.
   The page markup carries its layout as inline styles (exported from the
   original design); this file holds everything a style attribute can't. */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f2ede4;
  color: #2b2225;
  font-family: Hind, Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: clip;
}
* { box-sizing: border-box; }
img { max-width: 100%; }

/* ---- alternating section bands: full-bleed white behind every other section.
   Same break-out trick as the hero — the section grows to the viewport
   edges, then pads its content back to the page gutter. ---- */
.band {
  background: #ffffff;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%) !important;
}

a { color: #2b2225; text-decoration: none; }
a:hover { color: #7d8a6d; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .sign { transform: rotate(45deg); }

input, select, textarea, button { font-family: inherit; font-weight: inherit; color: inherit; }
::placeholder { color: #b0a096; }
::selection { background: #7e3752; color: #f7f2ea; }

/* Native select reset so the form controls match the underline inputs. */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232b2225' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px !important;
}

/* ---- animations ---- */
@keyframes shc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126,55,82,0.34); }
  55%      { box-shadow: 0 0 0 7px rgba(126,55,82,0); }
}
@keyframes shc-caret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---- overlays (booking modal + image lightbox) ---- */
.overlay[hidden] { display: none; }
body.is-locked { overflow: hidden; }

/* ---- About preview: heading block over the image, body copy on the page ---- */
.about-wrap { display: grid; gap: clamp(28px, 4vw, 56px); }
.about-media { position: relative; margin: 0; }
.about-media img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(18, 14, 16, 0.94) 0%,
    rgba(18, 14, 16, 0.92) 32%,
    rgba(18, 14, 16, 0.68) 46%,
    rgba(18, 14, 16, 0.22) 62%,
    rgba(18, 14, 16, 0) 80%);
}
.about-overlay {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  padding: clamp(26px, 3.4vw, 44px) clamp(20px, 3vw, 36px) 0;
}
.about-body { max-width: 62ch; font-size: 18px; line-height: 1.65; color: #4f4340; text-wrap: pretty; }

@media (min-width: 780px) {
  .about-wrap { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: center; }
}

/* ---- About: time-lapse rail — one row, drag or swipe to scroll ---- */
.tl-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  user-select: none;
  cursor: grab;
}
.tl-rail::-webkit-scrollbar { display: none; }
.tl-rail.is-dragging { cursor: grabbing; }
.tl-rail img, .tl-rail video { pointer-events: none; }
.tl-item { flex: 0 0 auto; width: clamp(188px, 44vw, 244px); }
@media (hover: none) { .tl-rail { cursor: default; } }

/* ---- hover / focus states (generated from the source design) ---- */
.hhero:hover { background: rgba(247,242,234,0.14); }
.h16b:hover { background: rgba(247,242,234,0.14); }
.h0:hover { border-color: #7e3752; color: #7e3752; }
.h1:hover { background: #4f4340; color: #f2ede4; }
.h2:hover { background: #4f4340; color: #f2ede4; }
.h3:hover { background: rgba(43,34,37,0.06); }
.h4:hover, .h5:hover, .h6:hover, .h7:hover, .h8:hover, .h9:hover { opacity: 0.86; }
.h10:hover { background: #4f4340; }
.h11:hover { background: #4f4340; }
.h12:hover { background: rgba(43,34,37,0.06); }
.h13:hover, .h14:hover, .h15:hover { background: #7e3752; border-color: #7e3752; color: #f7f2ea; }
.h16:hover { background: rgba(43,34,37,0.06); }
.h17:hover { background: rgba(43,34,37,0.06); }
.h18:hover { background: #4f4340; }
.h19:hover, .h20:hover, .h21:hover, .h22:hover, .h23:hover { color: #b0a096; }
.h24:hover { background: rgba(244,242,238,0.24); }
.h25:hover { background: #4f4340; color: #f2ede4; }
.f26:focus, .f27:focus, .f28:focus, .f29:focus, .f30:focus { border-color: #2b2225; }
.h31:hover { border-color: #7e3752; color: #7e3752; }
.h32:hover { background: #4f4340; color: #f2ede4; }
.h33:hover { background: #4f4340; color: #f2ede4; }
.h34:hover { background: rgba(43,34,37,0.06); }
.h35:hover, .h36:hover, .h37:hover, .h38:hover, .h39:hover { color: #b0a096; }

/* ---- motion-reduction ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [style*="shc-caret"], [style*="shc-pulse"] { animation: none !important; }
}
