/* ==========================================================================
   Ellard Village — layout refinements
   Loaded last.
   ========================================================================== */

/* Inline SVG icons inherit context, never the full container width
   ========================================================================== */
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar__links svg { width: 12px; height: 12px; flex: none; }
.topbar__note svg { flex: none; }

/* Header rhythm
   ========================================================================== */
.brand__tag { white-space: nowrap; }
.nav__link { white-space: nowrap; }
.nav__actions .btn { white-space: nowrap; }

/* Home header: absolute over hero, fixed once scrolled (no layout shift)
   ========================================================================== */
body.has-hero .site-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* A soft scrim keeps the transparent home header legible over bright foliage */
body.has-hero .site-header:not(.is-stuck) {
  background: transparent;
  isolation: isolate;
}
body.has-hero .site-header:not(.is-stuck)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 13, .62) 0%, rgba(6, 16, 13, .3) 48%, rgba(6, 16, 13, 0) 100%);
}
body.has-hero .site-header:not(.is-stuck) .brand,
body.has-hero .site-header:not(.is-stuck) .nav__link {
  text-shadow: 0 1px 14px rgba(4, 12, 10, .45);
}

/* Mobile drawer sits below a solid header
   ========================================================================== */
.nav__meta { display: none; }

@media (max-width: 1024px) {
  body.nav-open .site-header,
  body.has-hero.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom-color: var(--line);
  }

  /* backdrop-filter creates a containing block for the fixed drawer;
     remove it while the menu is open so the drawer can fill the viewport */
  body.nav-open .site-header,
  body.nav-open .site-header.is-stuck {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav {
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px var(--gutter) 40px;
  }

  .nav__meta {
    display: grid;
    gap: 9px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .nav__meta a {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--forest);
  }
  .nav__meta p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--ink-soft);
  }
}

@media (max-width: 620px) {
  .nav { top: 68px; }

  /* The utility bar is too tight on phones; the same details live in the drawer and footer */
  .topbar { display: none; }
  body.has-hero .site-header:not(.is-stuck) { top: 0; }
  .hero__eyebrow { font-size: 8.5px; letter-spacing: .12em; }
}

/* Hero typography
   ========================================================================== */
.hero__content { max-width: 940px; }
.hero__title {
  font-size: clamp(3rem, 6.1vw, 5.7rem);
  text-wrap: initial;
}
.hero__title em { white-space: nowrap; }

.hero__veil {
  background:
    radial-gradient(ellipse at 22% 62%, rgba(9, 22, 18, .52) 0%, rgba(9, 22, 18, .22) 45%, transparent 72%),
    linear-gradient(180deg, rgba(11, 25, 21, .58) 0%, rgba(11, 25, 21, .08) 32%, rgba(11, 25, 21, .2) 55%, rgba(11, 25, 21, .82) 100%),
    linear-gradient(90deg, rgba(11, 25, 21, .5) 0%, rgba(11, 25, 21, .06) 62%);
}
.hero__eyebrow, .hero__lede { text-shadow: 0 1px 18px rgba(6, 16, 13, .55); }

@media (max-width: 700px) {
  .hero__title em { white-space: normal; }
}

/* Inner page heroes: readable over bright photography, balanced headings
   ========================================================================== */
.page-hero__veil {
  background:
    linear-gradient(90deg, rgba(9, 22, 18, .64) 0%, rgba(9, 22, 18, .3) 48%, rgba(9, 22, 18, .08) 100%),
    linear-gradient(180deg, rgba(9, 22, 18, .46) 0%, rgba(9, 22, 18, .08) 42%, rgba(9, 22, 18, .68) 100%);
}
.page-hero h1,
.section-head h2,
.split__body h2,
.editorial__body h2,
.feature-band__body h2 {
  text-wrap: balance;
}
.page-hero .breadcrumb { margin-bottom: 26px; }
.page-hero .breadcrumb,
.page-hero__lede { text-shadow: 0 1px 14px rgba(6, 16, 13, .45); }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .82); }
.page-hero__lede { color: rgba(255, 255, 255, .9); }

/* Reservation panel header
   ========================================================================== */
.reservation,
.reservation__panel,
.date-strip { min-width: 0; }

@media (max-width: 1024px) {
  .reservation { grid-template-columns: minmax(0, 1fr); }
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
}
.panel-head .eyebrow { margin-bottom: 12px; }
.panel-head__note {
  padding-bottom: 4px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Numbered steps
   ========================================================================== */
.step-list { margin-top: 30px; border-top: 1px solid var(--line); }
.step-list > li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.step-list__num {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--gold);
}
.step-list h3 { margin-bottom: 6px; font-size: 1.3rem; }
.step-list p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.step-list a { color: var(--forest); border-bottom: 1px solid var(--gold-2); }

/* Map layout
   ========================================================================== */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 26px;
  align-items: stretch;
}
.map-layout .address-card { display: flex; flex-direction: column; justify-content: center; }

/* Compact lists inside cards
   ========================================================================== */
.mini-list { display: grid; gap: 5px; margin-top: 10px; }
.mini-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.mini-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.icon-card strong { font-weight: 500; color: var(--ink); }

/* Contact-card link styling must not repaint solid buttons */
.contact-card a.btn { border-bottom: 0; }
.contact-card a.btn--solid,
.contact-card a.btn--solid:hover { color: var(--white); }

/* Accordion on dark sections
   ========================================================================== */
.section--forest .accordion,
.section--forest .accordion details { border-color: rgba(255, 255, 255, .2); }

/* Small screens: map and step lists
   ========================================================================== */
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .step-list > li { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-list__num { font-size: 1.2rem; }
  .map-layout iframe { height: 340px; }
}

/* Print: reveal everything
   ========================================================================== */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
