/* ============================================================
   Mishika Retreat — content-page components (May 2026 redesign)
   Built on the design tokens in site.css (--basalt, --gold, --mist,
   --linen, --stone, --pebble, --display, --ui, --body, --gutter, --section).
   Used by: estate, gallery, rates, blog, wanaka, enquiry.
   ============================================================ */

/* --- Layout --- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--linen { background: var(--linen); }
.section--paper { background: var(--paper); }

/* --- Page hero --- */
.page-hero {
  position: relative; padding: calc(var(--section) + 4rem) 0 var(--section);
  background: var(--basalt); color: var(--mist); text-align: center; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  width: 1px; height: 3rem; background: linear-gradient(var(--gold), transparent);
}
.page-hero__eyebrow {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: .34em;
  font-size: .72rem; color: var(--gold); margin-bottom: 1.4rem;
}
.page-hero__title {
  font-family: var(--display); font-weight: 300; line-height: 1.04;
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 auto .9rem; max-width: 16ch;
  letter-spacing: -0.01em;
}
.page-hero__sub {
  font-family: var(--body); font-weight: 300; color: var(--pebble);
  font-size: clamp(1rem, 2vw, 1.2rem); max-width: 46ch; margin: 0 auto;
}

/* --- Prose --- */
.prose { font-family: var(--body); color: var(--slate); font-weight: 300; line-height: 1.85; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { font-size: 1.06rem; }
.prose h2 { font-family: var(--display); font-weight: 300; color: var(--basalt); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; margin-top: 2.6rem; }
.prose h3 { font-family: var(--ui); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--gold); margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { font-size: 1.06rem; margin-top: .6rem; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 500; color: var(--basalt); }
.prose a { color: var(--basalt); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pebble); }
.prose a:hover { text-decoration-color: var(--gold); }

/* --- Booking engine embed (Preno BookDirect on /book) --- */
.book-embed { max-width: 1040px; margin: 0 auto; }
.book-embed__frame { width: 100%; min-height: 840px; border: 1px solid var(--pebble); background: var(--paper); display: block; }
.book-embed__fallback { font-family: var(--ui); font-size: .82rem; color: var(--stone); text-align: center; margin-top: 1.1rem; }
.book-embed__fallback a { color: var(--basalt); text-decoration: underline; text-underline-offset: 3px; }
.book-embed__fallback a:hover { color: var(--gold); }
@media (max-width: 700px) { .book-embed__frame { min-height: 720px; } }
.eyebrow {
  font-family: var(--ui); text-transform: uppercase; letter-spacing: .3em;
  font-size: .72rem; color: var(--gold); margin-bottom: 1rem;
}
.h-section {
  font-family: var(--display); font-weight: 300; color: var(--basalt);
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 1.6rem;
}

/* --- Feature grid (estate, wanaka) --- */
.feature-grid {
  display: grid; gap: 1.6rem; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--paper); border: 1px solid var(--pebble); border-radius: 2px;
  padding: 2.2rem 2rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(56,53,46,.08); }
.feature-card h3 { font-family: var(--display); font-weight: 400; color: var(--basalt); font-size: 1.35rem; margin-bottom: .8rem; }
.feature-card p { font-family: var(--body); font-weight: 300; color: var(--stone); line-height: 1.7; font-size: .98rem; }

/* --- Gallery grid --- */
.gallery-grid {
  display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 2.6rem;
}
.gallery-grid figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--linen); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease); filter: saturate(.96);
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure.is-tall { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* --- Rate cards --- */
.rate-cards {
  display: grid; gap: 1.6rem; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rate-card {
  background: var(--paper); border: 1px solid var(--pebble); border-radius: 2px;
  padding: 2.4rem 2rem; text-align: center;
}
.rate-card__season { font-family: var(--ui); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--gold); }
.rate-card__name { font-family: var(--display); font-weight: 300; color: var(--basalt); font-size: 1.5rem; margin: .7rem 0; }
.rate-card__price { font-family: var(--display); color: var(--basalt); font-size: 2.2rem; font-weight: 300; }
.rate-card__price span { font-family: var(--body); font-size: .9rem; color: var(--stone); display: block; margin-top: .3rem; }
.rate-card__note { font-family: var(--body); font-weight: 300; color: var(--stone); font-size: .92rem; margin-top: 1rem; line-height: 1.6; }

/* --- Blog list --- */
.blog-list { display: grid; gap: 2rem; margin-top: 2.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-card { background: var(--paper); border: 1px solid var(--pebble); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--linen); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-family: var(--ui); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; color: var(--gold); margin-bottom: .8rem; }
.post-card__title { font-family: var(--display); font-weight: 400; color: var(--basalt); font-size: 1.3rem; line-height: 1.25; margin-bottom: .7rem; }
.post-card__excerpt { font-family: var(--body); font-weight: 300; color: var(--stone); font-size: .96rem; line-height: 1.7; flex: 1; }

/* --- CTA band --- */
.cta-band { background: var(--basalt); color: var(--mist); text-align: center; padding: var(--section) 0; }
.cta-band__title { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.cta-band__sub { font-family: var(--body); font-weight: 300; color: var(--pebble); max-width: 44ch; margin: 0 auto 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ui);
  text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; text-decoration: none;
  padding: 1rem 2.2rem; border: 1px solid var(--gold); color: var(--gold);
  background: transparent; transition: all .4s var(--ease); cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--basalt); }
.btn--solid { background: var(--basalt); color: #fff; border-color: var(--basalt); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* --- Enquiry form --- */
.form { max-width: 640px; margin: 2.6rem auto 0; }
.form__row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.form__field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--driftwood); }
.form__input, .form__textarea {
  font-family: var(--body); font-size: 1rem; color: var(--basalt); background: var(--paper);
  border: 1px solid var(--pebble); border-radius: 2px; padding: .9rem 1rem; width: 100%;
  transition: border-color .3s var(--ease);
}
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--gold); }
.form__textarea { min-height: 140px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; opacity: 0; }
.form__status { font-family: var(--body); margin-top: 1.2rem; font-size: .95rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
