/*
  EDITING GUIDE — hero-layout-final.css
  ------------------------------------------------------------------
  PURPOSE: This stylesheet is part of EMBR's layered styling system.
  QUICK EDIT: Use the section notes below to locate the relevant block.
  SAFETY: Keep selectors and declarations intact when only changing a value.
  CSS LOAD ORDER matters: later stylesheets may override earlier ones.
  ------------------------------------------------------------------
*/
/*
  EMBR R23 — HERO SYSTEM (single source of truth)
  -------------------------------------------------
  This stylesheet owns homepage and interior-page hero structure.
  Do not append hero patches to site.css or enhancements.css.
  Layer order: background/media (0), shade (1), content (2), footer (3).
*/

/* Shared hero canvas and stable stacking context */
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fffaf3;
  background-color: #302720;
}

/* HOMEPAGE hero: use a positive stacking layer so the video cannot disappear
   behind the section's own background or become a black fallback canvas. */
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero {
  min-height: clamp(620px, 88svh, 900px);
  height: auto;
}
.editorial-hero .hero-video,
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 56% 58%;
  z-index: 0;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-photo {
  background-size: cover;
  background-position: center 58%;
}
.editorial-hero .hero-shade,
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(18,15,12,.56), rgba(18,15,12,.10) 66%),
              linear-gradient(90deg, rgba(18,15,12,.22), transparent 72%);
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: clamp(14px, 2.5vh, 24px) clamp(22px, 4vw, 64px);
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(40px, 6vh, 72px) clamp(24px, 5vw, 84px) clamp(82px, 11vh, 120px);
  box-sizing: border-box;
  text-align: center;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  position: static;
  width: auto;
  max-width: 100%;
  margin: 0 0 8px;
  color: #f5eee5;
  font: 500 10px/1.5 "Jost", sans-serif;
  letter-spacing: .2em;
  white-space: normal;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-book {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  position: static;
  width: min(205px, 100%);
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 14px 22px;
  box-sizing: border-box;
  transform: none;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-headline {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  position: static;
  width: 100%;
  max-width: 720px;
  margin: 0;
  color: #fffaf3;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  transform: none;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-headline em { color: #e8d7c4; font-weight: 400; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-bottom {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 4vw, 60px);
  right: clamp(16px, 4vw, 60px);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f2e8dc;
  font-size: 9px;
  letter-spacing: .12em;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.editorial-hero .hero-bottom a { color: inherit; }

/* Interior heroes: use one centered editorial stack and unique image mapping. */
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero { min-height: 520px; height: auto; background-size: cover; background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(900px, calc(100% - 48px));
  max-width: 900px;
  min-width: 0;
  height: auto;
  margin: auto;
  padding: clamp(56px, 8vh, 92px) 24px;
  box-sizing: border-box;
  text-align: center;
  overflow-wrap: anywhere;
}
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero-content .eyebrow { position: static; order: 1; transform: none; width: auto; margin: 0 0 clamp(20px, 3vh, 34px); line-height: 1.5; text-align: center; white-space: normal; color: #f5eee5; font-size: 10px; letter-spacing: .2em; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero-content .page-hero-book { position: static; order: 2; transform: none; margin: 0 0 clamp(24px, 4vh, 38px); max-width: 100%; box-sizing: border-box; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero-content h1 { position: static; order: 3; width: 100%; max-width: 100%; margin: 0; color: #fffaf3; font-family: "Cormorant Garamond", serif; font-size: clamp(42px, 5.3vw, 72px); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; text-align: center; white-space: normal; overflow-wrap: anywhere; word-break: normal; box-sizing: border-box; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero-content h1 em { font-weight: 400; color: #e8d7c4; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.page-hero-content > p:not(.eyebrow) { order: 4; width: min(100%, 460px); max-width: 460px; margin: 18px auto 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.65; text-align: center; }

/* Keep each interior page's photography distinct and easy to edit. */
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-experience { background-image: url('../images/photos/garden-sharing.webp'); background-position: center 48%; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-menu { background-image: url('../images/photos/sharing-table-wide.webp'); background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-sunset { background-image: url('../images/photos/cocktail-pair.webp'); background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-events { background-image: url('../images/photos/warm-dining.webp'); background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-gaucho { background-image: url('../images/photos/live-fire.webp'); background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-contact { background-image: url('../images/photos/interior-warm.webp'); background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-gift { background-image: url('../images/photos/wine-sunset.webp'); background-position: center; }
/* EDIT: Hero/banner image, overlay, headline placement, height, and focal positioning. */
.hero-gallery { background-image: url('../images/photos/homepage-made-for-fire.jpg'); background-position: center 52%; }

/* Tablet: retain the desktop editorial split, with tighter proportions. */
/* EDIT: Responsive rules below: adjust the breakpoint or the mobile/tablet layout inside this block. */
@media (max-width: 900px) and (min-width: 651px) {
  .editorial-hero-content { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); padding-inline: 26px; }
  .editorial-hero .hero-headline { font-size: clamp(38px, 5.5vw, 58px); }
}
/* Mobile homepage hero: keep footage unobstructed and place CTA below the headline.
   Grid rows create predictable top / middle / bottom zones instead of stacking
   elements with arbitrary margins. The location stays near the top, the headline
   occupies the visual center, and the booking button sits low and centered. */
/* EDIT: Responsive rules below: adjust the breakpoint or the mobile/tablet layout inside this block. */
@media (max-width: 650px) {
  .editorial-hero {
    min-height: max(620px, calc(100svh - 54px));
    height: max(620px, calc(100svh - 54px));
  }
  .editorial-hero .hero-video,
  .editorial-hero .hero-photo {
    object-position: 56% center;
  }
  .editorial-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch;
    justify-items: center;
    gap: 0;
    padding: clamp(34px, 7svh, 58px) 20px clamp(100px, 15svh, 132px);
    text-align: center;
  }
  .editorial-hero .hero-kicker {
    grid-column: 1;
    grid-row: 1;
    order: unset;
    align-self: start;
    justify-self: center;
    margin: 0;
    font-size: 9px;
    letter-spacing: .16em;
    line-height: 1.5;
  }
  .editorial-hero .hero-headline {
    grid-column: 1;
    grid-row: 2;
    order: unset;
    align-self: center;
    justify-self: center;
    width: min(100%, 350px);
    max-width: 350px;
    margin: 0;
    font-size: clamp(34px, 8.6vw, 44px);
    line-height: 1.08;
    letter-spacing: -.03em;
    text-align: center;
  }
  .editorial-hero .hero-book {
    grid-column: 1;
    grid-row: 3;
    order: unset;
    align-self: end;
    justify-self: center;
    width: min(180px, 100%);
    min-height: 48px;
    margin: 0;
    padding: 13px 20px;
  }
  .editorial-hero .hero-bottom {
    left: 16px;
    right: 16px;
    bottom: 14px;
    font-size: 8px;
    letter-spacing: .08em;
  }
  .editorial-hero .hero-bottom > * { max-width: 48%; }
  /* Interior-page mobile heroes mirror the homepage rhythm:
     location at the top, title/description in the visual center, booking CTA low. */
  .page-hero { min-height: max(620px, calc(100svh - 54px)); height: max(620px, calc(100svh - 54px)); background-position: center; }
  .page-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-items: stretch;
    justify-items: center;
    gap: 0;
    width: calc(100% - 32px);
    max-width: 900px;
    min-height: 100%;
    padding: clamp(34px, 7svh, 58px) 0 clamp(100px, 15svh, 132px);
    text-align: center;
  }
  .page-hero-content .eyebrow {
    grid-column: 1; grid-row: 1; align-self: start; justify-self: center;
    margin: 0; font-size: 9px; letter-spacing: .16em; line-height: 1.5;
  }
  .page-hero-content h1 {
    grid-column: 1; grid-row: 2; align-self: center; justify-self: center;
    font-size: clamp(32px, 8.6vw, 44px); line-height: 1.08; letter-spacing: -.03em;
  }
  .page-hero-content > p:not(.eyebrow) {
    grid-column: 1; grid-row: 3; align-self: start;
    width: min(100%, 360px); max-width: 360px; margin: 14px auto 0;
    font-size: 13px; line-height: 1.6;
  }
  .page-hero-content .page-hero-book {
    grid-column: 1; grid-row: 4; align-self: end; justify-self: center;
    margin: 0; min-width: 0; width: min(180px, 100%); max-width: 180px;
    min-height: 48px; padding: 13px 20px; box-sizing: border-box;
  }
}
/* EDIT: Responsive rules below: adjust the breakpoint or the mobile/tablet layout inside this block. */
@media (max-width: 380px) {
  .editorial-hero-content { padding-inline: 16px; }
  .editorial-hero .hero-book { width: min(172px, 100%); }
  .editorial-hero .hero-headline { font-size: clamp(31px, 8.8vw, 36px); }
  .editorial-hero .hero-kicker { letter-spacing: .14em; }
}
/* EDIT: Responsive rules below: adjust the breakpoint or the mobile/tablet layout inside this block. */
@media (prefers-reduced-motion: reduce) {
  .editorial-hero-content > *, .page-hero-content > * { animation: none !important; transition: none !important; }
  .editorial-hero .hero-video, .editorial-hero .hero-photo { animation: none !important; }
}


/* R54 — Hero CTA-only treatment across desktop, tablet and mobile.
   Hero imagery remains visible; all hero copy and metadata are intentionally removed. */
.hero .editorial-hero-content,
.page-hero .page-hero-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 20px clamp(34px, 5vh, 58px) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.hero .editorial-hero-content > :not(.hero-book),
.page-hero .page-hero-content > :not(.page-hero-book),
.hero .hero-bottom {
  display: none !important;
}
.hero .editorial-hero-content .hero-book,
.page-hero .page-hero-content .page-hero-book {
  display: inline-flex !important;
  position: relative !important;
  inset: auto !important;
  grid-area: auto !important;
  align-self: auto !important;
  justify-self: auto !important;
  order: 0 !important;
  width: min(180px, 100%) !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 14px 24px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  z-index: 4 !important;
}
@media (max-width: 900px) {
  .hero .editorial-hero-content,
  .page-hero .page-hero-content {
    padding: 0 18px max(28px, env(safe-area-inset-bottom) + 22px) !important;
  }
}


/* R55 — Correct interior hero CTA alignment: bottom-centre on every viewport.
   Explicit row direction prevents flex alignment from placing the CTA at the right edge. */
.page-hero .page-hero-content {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 20px clamp(34px, 5vh, 58px) !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
.page-hero .page-hero-content .page-hero-book {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  position: relative !important;
  inset: auto !important;
  align-self: auto !important;
  margin: 0 !important;
  width: min(180px, 100%) !important;
  min-height: 48px !important;
  padding: 14px 24px !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
@media (max-width: 900px) {
  .page-hero .page-hero-content {
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 18px max(28px, env(safe-area-inset-bottom) + 22px) !important;
  }
}
