/* Amenities page — "Amenities Editorial" (design_handoff_amenities_page,
   the plain non-v2 design). Page now opens directly with the Resort
   Services band (photo-ambient + eyebrow + "Resort amenities" title +
   services grid, id="services") at the very top — the earlier photo
   .am-hero was removed and this section promoted in its place, see
   project memory [[amenities-page]]. Followed by three photographic
   category bands, each with full-width alternating-background amenity
   sections, then a booking CTA. No pinned photo, no parallax, no
   scroll-reveal, no progress bar, no dining carousel — see the handoff
   README's "If v2 was already built" delta table for why this replaced
   the earlier v2 build. Self-contained `am-` classes + a local token
   block, same convention as FoodDrinksPage.css / EventsPage.css /
   GolfCoursePage.css (see CLAUDE.md "Scope new rules"). Uses the
   always-scrolled (opaque-from-load) header, like Food & Drinks /
   accommodation pages (see src/utils/headerConfig.js) — the Resort
   Services band's existing 104px top padding provides header clearance,
   consistent with FoodDrinksPage.css's --fd-header-clear convention.
   Values below mirror the theme's global --color-* and --font-* tokens
   where they match, plus the structural literals the handoff specifies
   that aren't in main.css yet. */

:root {
  --am-color-navy: #003764;
  --am-color-navy-dark: #002542;
  --am-color-off-white: #FDFDFC;
  --am-color-cream: #FAF9F2;
  --am-color-marine-light: #A0C2E8;
  --am-color-marine-pale: #D5E9FF;
  /* Same value/convention as FoodDrinksPage.css's --fd-header-clear --
     the fixed always-scrolled header is ~88px tall (16px+56px+16px logo
     padding, see Header.css), so #services (now this page's first
     section) needs at least this much top clearance at every breakpoint. */
  --am-header-clear: 96px;
}

.amenities-page {
  width: 100%;
  overflow-x: clip;
  background: var(--am-color-off-white);
  font-family: var(--font-body);
  color: var(--am-color-navy-dark);
}

/* Scope to amenities sections so mixed pages keep sibling link colours. */
.amenities-page :is(.am-services, .am-catWrap, .am-cat, .am-cta, .am-item, .am-perks) a {
  color: inherit;
  text-decoration: none;
}

/* Every content band shares the same container rhythm. */
.am-cat__inner,
.am-item__grid,
.am-services__inner,
.am-cta__content {
  max-width: 1440px;
  margin: 0 auto;
}

/* ============ EYEBROW ============ */

.am-eyebrow { display: flex; align-items: center; gap: 16px; }

.am-eyebrow--centered { justify-content: center; }

.am-eyebrow__line {
  height: 1px;
  width: 64px;
  background: rgba(0, 55, 100, .4);
  flex-shrink: 0;
}
.am-eyebrow--centered .am-eyebrow__line { flex: 1; width: auto; }

.am-eyebrow__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--am-color-navy);
  white-space: nowrap;
}

/* ============ BUTTON / TEXT LINK ============ */

.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 36px;
  border-radius: 32px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--btn-font-size, 16px);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .25s ease, transform .15s ease, background .25s ease, color .25s ease;
}
.am-btn:hover { opacity: .8; }
.am-btn:active { transform: scale(.98); }

.am-btn--light { background: #fff; color: var(--am-color-navy-dark); }

.am-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--am-color-navy);
  transition: opacity .2s ease;
}
a.am-textlink:hover { opacity: .7; }
.am-textlink--static { color: rgba(0, 37, 66, .6); }
.am-textlink__arrow { font-size: 13px; transition: transform .2s ease; }
a.am-textlink:hover .am-textlink__arrow { transform: translateX(3px); }

/* ============ CATEGORY BAND ============ */
/* Full-opacity photographic band with a navy gradient and white type —
   not the faded/masked ambient treatment v2 used behind a light section. */

.am-catWrap { position: relative; }

.am-cat {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 120px 64px 72px;
  overflow: clip;
  scroll-margin-top: var(--header-h, 5rem);
}

.am-cat__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-cat__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 37, 66, .78) 0%, rgba(0, 37, 66, .42) 55%, rgba(0, 37, 66, .55) 100%);
}

.am-cat__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: end;
}

.am-cat__headCol { display: flex; flex-direction: column; gap: 24px; }

.am-cat__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 64px);
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
}

.am-cat__blurb {
  margin: 0;
  max-width: 520px;
  justify-self: end;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
}

/* ============ AMENITY SECTIONS ============ */
/* Static by design: no hover state, no scroll animation, no dimming. */

.am-item {
  padding: 56px 64px;
  border-bottom: 1px solid rgba(0, 55, 100, .07);
}

.am-item__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 48px;
  align-items: center;
}

.am-item__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.am-item__row { display: flex; align-items: baseline; gap: 16px; }

.am-item__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: rgba(0, 55, 100, .45);
}

.am-item__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--am-color-navy);
}

.am-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--am-color-navy-dark);
  text-wrap: pretty;
}

.am-item__desc {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--am-color-navy-dark);
  text-wrap: pretty;
}

.am-item__footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.am-item__meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(0, 37, 66, .6);
}

.am-item__photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 0 6px rgba(0, 0, 0, .02);
  background: var(--am-color-cream);
}
.am-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ KEY FEATURES ============ */

.am-features { display: flex; flex-direction: column; gap: 8px; }

.am-features__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0, 55, 100, .55);
}

.am-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.am-features__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--am-color-navy-dark);
}
.am-features__item svg { flex-shrink: 0; }

/* ============ RESORT SERVICES ============ */
/* Rendered statically — no scroll-reveal (that was v2). */

.am-services {
  position: relative;
  overflow: hidden;
  padding: 10rem;
  scroll-margin-top: var(--header-h, 5rem);
}

/* Same tint recipe as .am-cat__overlay (a translucent navy gradient over a
   full-bleed photo), replacing the previous flat solid navy background --
   the ambient photo now shows through instead of sitting under an opaque
   color. */
.am-services__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 37, 66, .78) 0%, rgba(0, 37, 66, .42) 55%, rgba(0, 37, 66, .55) 100%);
}

.am-services__ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.am-services__inner { position: relative; display: flex; flex-direction: column; gap: 56px; }

.am-services__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.am-services__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 52px);
  line-height: .95;
  letter-spacing: -.02em;
  /* Was `text-transform: lowercase` (this page's other headings use a
     stylized all-lowercase editorial look), but the user wants "Resort
     Amenities" to actually display capitalized -- removed here only, the
     other headings' lowercase styling is untouched. */
  color: #fff;
}

/* Intro + scroll cue under the title, same pattern as EventsPage.css's
   .ev-hero__intro/.ev-hero__scroll-cue. */
.am-services__intro {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: #fff;
  opacity: .92;
  max-width: 620px;
}

.am-services__scroll-cue {
  display: inline-flex;
  color: #fff;
  opacity: .85;
  margin-top: 8px;
  animation: am-bounce 2s ease-in-out infinite;
}

@keyframes am-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.am-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px 40px;
}

.am-services__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.am-services__itemBody { display: flex; flex-direction: column; gap: 8px; }

.am-services__itemTitle {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #fff;
}

.am-services__itemDesc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: white;
}

/* ============ PERKS (light, fx-texture band) ============ */
/* Second copy of the same SERVICES icon grid used by RESORT SERVICES just
   above, on a white/off-white background with the decorative palm-shadow
   fx texture (same technique as .amd-title__texture / the old
   .am-hero__overlay -- a big soft graphic, multiply-blended, reduced
   opacity, on a solid field, not a tiled fill). Reuses
   .am-services__grid/.am-services__item's structure via the existing
   SERVICES data/Icon component, but .am-services__itemTitle/__itemDesc
   (white) and the pasted icon color (#A0C2E8) are tuned for the dark navy
   .am-services band above and would be low/no-contrast here -- scoped
   overrides only, via .am-perks__grid, so the real dark section stays
   untouched (CLAUDE.md "Scope new rules"). */
.am-perks {
  position: relative;
  overflow: hidden;
  background: var(--am-color-off-white);
  padding: 96px 64px;
}

.am-perks__overlay {
  position: absolute;
  inset: 0;
  background: var(--theme-img-shadow-fx) center / cover;
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
}

.am-perks__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.am-perks__grid .am-services__itemTitle {
  color: var(--am-color-navy-dark);
}

.am-perks__grid .am-services__itemDesc {
  color: var(--am-color-navy);
}

/* ============ BOOKING CTA ============ */
/* Static, no parallax. */

.am-cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.am-cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 37, 66, .7), rgba(0, 37, 66, .45));
}

.am-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 820px;
  padding: 88px 64px;
  text-align: center;
}

.am-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 60px);
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
}

.am-cta__trust {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--am-color-marine-pale);
}

.am-tail { height: 0; }

/* ============ REDUCED MOTION ============ */
/* This design has no JS-driven motion at all — the page is fully static
   aside from data fetching, so there's nothing left to disable here beyond
   the global smooth-scroll default (kept in case a native #anchor link is
   used to jump to a section). */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
/* Breakpoints follow the handoff's own spec (README "Responsive") rather
   than this codebase's usual 1024/720 pair. */

@media (max-width: 1200px) {
  .am-cat,
  .am-item,
  .am-services,
  .am-perks,
  .am-cta__content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .am-cat__title { font-size: clamp(2rem, 6vw, 48px); }
  .am-item__title { font-size: clamp(1.4rem, 3vw, 30px); }
}

@media (max-width: 900px) {
  .am-cat { min-height: 320px; padding: 56px 24px; }
  .am-cat__inner { grid-template-columns: 1fr; gap: 16px; }
  .am-cat__blurb { justify-self: start; font-size: 19px; }

  .am-item { padding: 40px 24px; }
  .am-item__grid { grid-template-columns: 1fr; gap: 24px; }
  .am-item__copy { max-width: none; }

  .am-services { padding: 72px 24px; padding-top: var(--am-header-clear); }
  .am-perks { padding: 72px 24px; }
  .am-cta__content { padding: 72px 24px; }

  .am-features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .am-cat__title { font-size: 1.9rem; }
  .am-item__title { font-size: 1.4rem; }
  .am-services__title { font-size: 1.6rem; }
  .am-cta__title { font-size: 1.9rem; }
}
