/**
 * sections.css — Section-specific presentation
 * -----------------------------------------------------------------------------
 * Hero, introduction, key facts, highlights, editorial feature rows,
 * location and contact. Gallery + lightbox live in gallery.css.
 */

/* ===================================================================== */
/* HERO                                                                  */
/* ===================================================================== */
.hero {
  position: relative;
  height: 100svh;          /* full viewport, stable on mobile browsers */
  min-height: 600px;
  display: flex;
  align-items: flex-end;   /* content sits toward the lower third */
  overflow: hidden;
  color: var(--color-on-dark);
}

/* Media layer — holds EITHER the <img> or a future <video>. Both are styled
   identically via .hero__asset, so swapping one for the other needs no layout
   changes. */
.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__asset {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crops responsively regardless of composition */
  object-position: center 55%;
}

/* Gradient scrim for text legibility — darker at the bottom where text sits. */
.hero__scrim {
  background:
    linear-gradient(to top,
      rgba(12, 11, 8, 0.62) 0%,
      rgba(12, 11, 8, 0.25) 38%,
      rgba(12, 11, 8, 0.08) 68%,
      rgba(12, 11, 8, 0.30) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-wide);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(4rem, 12vh, 9rem);
}

.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-on-dark);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 0.98;
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero__tagline {
  font-size: var(--fs-lead);
  font-weight: 300;
  margin-top: var(--space-md);
  color: var(--color-on-dark);
  max-width: 40ch;
}

/* Scroll cue — a subtle animated line. */
.hero__scroll {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-on-dark);
}

.hero__scroll-text {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom,
    rgba(243, 239, 231, 0.9), rgba(243, 239, 231, 0));
  animation: scroll-cue 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

@media (max-width: 600px) {
  .hero__scroll { display: none; }
}

/* ===================================================================== */
/* INTRODUCTION + KEY FACTS                                              */
/* ===================================================================== */
.intro__lead {
  max-width: 60ch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.intro__text {
  font-size: var(--fs-lead);
  font-weight: 300;
  color: var(--color-ink-soft);
  max-width: 55ch;
}

/* Facts — an even, hairline-divided grid; no boxes or cards. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                      /* hairline effect via background */
  background-color: var(--color-line);
  border: 1px solid var(--color-line);
}

.facts__item {
  background-color: var(--color-bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.facts__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2xs);
}

.facts__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--color-ink);
}

@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
}

/* Amenities — a restrained, uppercase spec row (deliberately not an icon grid),
   sitting beneath the key facts within the intro section. */
.amenities {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.amenities__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-sm);
}

.amenities__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Middot separator between amenities. */
.amenities__item:not(:last-child)::after {
  content: "·";
  color: var(--color-muted);
}

/* ===================================================================== */
/* HIGHLIGHTS                                                            */
/* ===================================================================== */
.highlights {
  background-color: var(--color-bg-alt);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.highlights__item {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-ink);
}

.highlights__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.highlights__text {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .highlights__grid { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* EDITORIAL FEATURE ROWS (Interior / Outdoor)                          */
/* ===================================================================== */
.feature {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-block: clamp(3rem, 8vw, 7rem);
}

/* Reversed rows place the media on the right. */
.feature--reverse .feature__media { order: 2; }

.feature__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.feature__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.feature:hover .feature__media img {
  transform: scale(1.03);
}

.feature__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

.feature__body p {
  color: var(--color-ink-soft);
  max-width: 42ch;
}

@media (max-width: 800px) {
  .feature {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  /* Keep a consistent reading order on mobile: image first, then text. */
  .feature--reverse .feature__media { order: 0; }
}

/* Targeted spacing: tighten ONLY the Interior → Outdoor transition.
   The stacked whitespace there (last feature's bottom margin + the interior
   section's bottom padding + the outdoor section's top padding) was excessive.
   Trimming just these two paddings keeps the Outdoor heading clearly separated
   without touching any other section/feature spacing. The last feature's own
   bottom margin (which stays generous, and scales down on phones) provides the
   remaining separation, so the transition never becomes cramped on mobile. */
.section.interior { padding-bottom: 0; }
.section.outdoor { padding-top: clamp(2.75rem, 5vw, 4.5rem); }

/* ===================================================================== */
/* LOCATION                                                             */
/* ===================================================================== */
.location {
  background-color: var(--color-bg-alt);
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.location__body p {
  color: var(--color-ink-soft);
  margin-bottom: var(--space-md);
}

.location__note {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

/* Location map — holds the embedded map iframe, clipped to the bordered frame. */
.location__map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  overflow: hidden;
  background-color: var(--color-bg-alt); /* subtle backdrop while the map loads */
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 800px) {
  .location__inner { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* CONTACT                                                              */
/* ===================================================================== */
.contact {
  background-color: var(--color-dark);
  color: var(--color-on-dark);
  text-align: center;
}

.contact__inner {
  max-width: 640px;
}

.contact__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.contact__note {
  color: var(--color-on-dark-soft);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

/* Contact details render from config (phone / WhatsApp / email). */
.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact__details a {
  color: var(--color-on-dark);
  /* The phone / WhatsApp / email links are the site's conversion path, and are
     tapped on a phone far more often than clicked on a desktop. The text on its
     own is only ~27px tall, so an invisible ::after enlarges the tap target to
     comfortably over 44px WITHOUT changing the layout or the look. */
  display: inline-block;
  position: relative;
}

.contact__details a::after {
  content: "";
  position: absolute;
  inset: -10px -12px;
}

.contact__details a:hover { color: #fff; }

.contact__detail {
  font-size: var(--fs-lead);
  font-weight: 300;
}

/* Small label above each contact value (Phone / WhatsApp / Email). */
.contact__detail-label {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
  margin-bottom: 4px;
}

.contact__disclaimer {
  font-size: var(--fs-small);
  color: var(--color-on-dark-soft);
  opacity: 0.7;
  margin: var(--space-lg) auto 0;
  max-width: 40ch;
}
