/* ==========================================================
   Retreat, wedding and travel FAQ pages
   (yoga.html, spiritual-retreat-morocco.html,
   marrakech-wedding-venue.html, morocco-travel-faq.html).
   Loaded after redesign.css and partners.css; reuses their
   tokens and components (tick-list, terms-card, faq-list...).
   ========================================================== */

/* Images carry width/height attributes (no layout shift while loading);
   let CSS aspect-ratio decide the rendered height instead. */
.partner-img,
.feature-card img,
.faq-head img,
.about_thumb img {
  height: auto;
}

/* ---------- Photo mosaic ----------------------------------- */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--sand-deep);
}
.photo-mosaic figure.wide { grid-column: span 2; }
.photo-mosaic figure.tall { grid-row: span 2; }
.photo-mosaic figure.big { grid-column: span 2; grid-row: span 2; }
.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.photo-mosaic figure:hover img { transform: scale(1.04); }
.photo-mosaic figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 0.9rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(20, 13, 8, 0.78), rgba(20, 13, 8, 0));
  text-shadow: 0 1px 6px rgba(20, 13, 8, 0.6);
}

/* ---------- Feature cards with a photo --------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.feature-card .feature-body {
  padding: 1.35rem 1.4rem 1.5rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}
.feature-card p {
  font-size: 0.9625rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Seasonal rates --------------------------------- */
.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rate-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
}
.rate-card.is-featured {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-md);
}
.rate-card .season {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.rate-card .dates {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.rate-card .price {
  display: block;
  margin: 1.1rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}
.rate-card .unit {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}
.rate-card .extra {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.rate-card .tick-list { margin-bottom: 0; }
.rate-card .tick-list li { font-size: 0.9375rem; margin-bottom: 0.45rem; }
.rate-note {
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

/* ---------- Quote band ------------------------------------- */
.quote-band {
  padding: var(--space-section) 0;
  background: var(--olive);
  text-align: center;
}
.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
}
.quote-band cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Day / meals table ------------------------------ */
.day-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.day-list li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}
.day-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.day-list span {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Wedding story timeline ------------------------- */
.story-steps {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: story;
}
.story-steps li {
  position: relative;
  padding: 0 0 2rem 3.5rem;
  counter-increment: story;
}
.story-steps li::before {
  content: counter(story);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-text);
}
.story-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 0.5px);
  top: 2.5rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--line-strong);
}
.story-steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}
.story-steps p { margin: 0; }

/* ---------- Travel FAQ page -------------------------------- */
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.faq-nav a {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--cream);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.faq-nav a:hover,
.faq-nav a:focus {
  background: var(--gold-cta);
  border-color: var(--gold-cta);
  color: var(--white);
}
.faq-block {
  scroll-margin-top: 90px;
}
.faq-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.faq-head img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.faq-head h2 { margin: 0 0 0.85rem; }
.faq-head p { margin: 0; }
.faq-list details ul {
  max-width: 68ch;
  margin: -0.25rem 0 1.25rem;
  padding-left: 1.1rem;
}
.faq-list details li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  list-style: disc;
}
.faq-updated {
  margin: 1.25rem auto 0;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- Related links ---------------------------------- */
.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-links a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.35rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.related-links a:hover,
.related-links a:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.related-links strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.related-links span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Responsive ------------------------------------- */
@media (max-width: 991px) {
  .photo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-mosaic figure.big { grid-column: span 2; }
  .feature-grid,
  .feature-grid.four,
  .rate-grid,
  .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-list { grid-template-columns: minmax(0, 1fr); }
  .faq-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
  .photo-mosaic { grid-auto-rows: 170px; }
  .photo-mosaic figure.tall { grid-row: span 1; }
  .feature-grid,
  .feature-grid.four,
  .feature-grid.two,
  .rate-grid,
  .related-links { grid-template-columns: minmax(0, 1fr); }
}
