/* Global chrome: header, menu, search, phone action bar, footer. */

.lc-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--lc-header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
  color: #fff; /* dissolved over the hero */
  transition: color var(--lc-t1) var(--lc-ease);
}
body.admin-bar .lc-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .lc-header { top: 46px; } }
body:not(.lc-has-hero) .lc-header,
.lc-header.is-scrolled { color: var(--wp--preset--color--saltbush); }
body:not(.lc-has-hero) .wp-site-blocks { padding-top: var(--lc-header-h); }

.lc-header__start { justify-self: start; }
.lc-header__end { justify-self: end; display: flex; align-items: center; gap: 4px; }
.lc-header__logo { color: inherit; display: block; line-height: 0; transition: opacity var(--lc-t1) var(--lc-ease); }
.lc-logo { width: 112px; height: 26px; }

/* chips: transparent over the hero, a light pill once scrolled */
.lc-header__chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: var(--lc-target); padding: 4px 6px 4px 14px;
  border-radius: 999px; border: 0; background: transparent; color: inherit;
  font: 500 15px/1 var(--wp--preset--font-family--body);
  transition: background var(--lc-t1) var(--lc-ease), box-shadow var(--lc-t1) var(--lc-ease);
}
.lc-header__menu { padding-right: 16px; cursor: pointer; }
.lc-header.is-scrolled .lc-header__chip,
body:not(.lc-has-hero) .lc-header__chip {
  background: rgb(245 242 234 / 0.92);
  box-shadow: 0 0 0 1px var(--lc-hair), 0 6px 24px rgb(27 48 30 / 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* the logo leaves when the in-page bar locks: the bar carries the wordmark */
.lc-header.is-scrolled.has-bar .lc-header__logo { opacity: 0; pointer-events: none; }

.lc-header__icon, .lc-header__shortlist {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-width: var(--lc-target); min-height: var(--lc-target); justify-content: center;
  border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 15px/1 var(--wp--preset--font-family--body); padding: 0 10px;
  text-decoration: none;
}
.lc-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--wp--preset--color--saltbush); color: #fff; font-size: 12px;
}
.lc-header:not(.is-scrolled) .lc-count { background: #fff; color: var(--wp--preset--color--saltbush); }
body:not(.lc-has-hero) .lc-header .lc-count { background: var(--wp--preset--color--saltbush); color: #fff; }
.lc-header__enquire { min-height: 40px; }
.lc-header:not(.is-scrolled) .lc-header__enquire { background: #fff; color: var(--wp--preset--color--saltbush); }
body:not(.lc-has-hero) .lc-header .lc-header__enquire { background: var(--wp--preset--color--saltbush); color: #fff; }

@media (max-width: 639px) {
  .lc-hide-sm { display: none; }
  .lc-header__menu span { display: none; }
  .lc-header__enquire { display: none; }
  .lc-logo { width: 96px; }
}

/* ---------- menu panel ---------- */
.lc-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--wp--preset--color--eggshell);
  padding: calc(var(--lc-header-h) + 2rem) var(--wp--preset--spacing--gutter) 2rem;
  overflow-y: auto;
}
.lc-menu[hidden], .lc-search[hidden], .lc-actionbar[hidden] { display: none !important; }
.lc-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .lc-menu__list { grid-template-columns: repeat(5, 1fr); } }
.lc-menu__list > li > a {
  font: 500 11px/1.2 var(--wp--preset--font-family--body); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--wp--preset--color--eucalyptus); text-decoration: none;
}
.lc-menu__list .sub-menu { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.lc-menu__list .sub-menu a { font-family: var(--lc-display); font-size: 24px; color: var(--wp--preset--color--saltbush); text-decoration: none; }
.lc-menu__trade { margin-top: 3rem; }

/* ---------- search panel ---------- */
.lc-search {
  position: fixed; inset: var(--lc-header-h) 0 auto 0; z-index: 55;
  padding: 1rem var(--wp--preset--spacing--gutter) 1.5rem;
  background: var(--wp--preset--color--eggshell); box-shadow: 0 1px 0 var(--lc-hair);
}
.lc-search form { display: flex; gap: 0.5rem; max-width: 40rem; margin-inline: auto; }
.lc-search input {
  flex: 1; min-height: 52px; padding: 0 1.25rem; border-radius: 999px;
  border: 1px solid var(--lc-hair); background: #fff; font: 400 17px var(--wp--preset--font-family--body);
}

/* ---------- phone action bar, after the hero ---------- */
.lc-actionbar {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--wp--preset--spacing--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(245 242 234 / 0.96); box-shadow: 0 -1px 0 var(--lc-hair);
}
@media (min-width: 1024px) { .lc-actionbar { display: none !important; } }

/* ---------- footer ---------- */
.lc-footer { padding: var(--wp--preset--spacing--section) var(--wp--preset--spacing--gutter) 2rem; margin-top: 0; }
.lc-footer a { color: inherit; }
.lc-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .lc-footer__grid { grid-template-columns: 1fr 2fr; } }
.lc-footer__logo { color: #fff; display: inline-block; margin-bottom: 1rem; }
.lc-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.lc-footer__list > li > a { font: 500 11px/1.2 var(--wp--preset--font-family--body); letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; opacity: 0.75; }
.lc-footer__list .sub-menu { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.4rem; }
.lc-footer__list .sub-menu a { text-decoration: none; }
.lc-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 13px; opacity: 0.75; }
.lc-footer__legal-list { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
