/* Functional Forward — shared UX layer (loaded last on every page).
   Fixes cross-site chrome: hub bar, menus, footer contrast, focus states.
   Keep this file small; page-specific styling stays in each page. */

:root {
  --ffx-taupe: #0e0f12;
  --ffx-taupe-dark: #141518;
  --ffx-olive: #8c6a2e;
  --ffx-ink: #141518;
  --ffx-muted: #555963;
  --ffx-cream: #faf9f6;
  --ffx-line: #e7e2d8;
}


/* Quiet-luxury hovers: bronze fill on light, champagne on the dark hub bar. */
.ff-hub-bar .ff-hub-cta:hover,
.ff-hub-bar .ff-hub-cta:focus-visible {
  background: #c4a265 !important;
  color: #141518 !important;
  filter: none;
}
body:not(.af-page) .site-header .nav-cta:hover,
body:not(.af-page) .ff-page-cta .btn:hover,
body:not(.af-page) .btn-primary:hover,
body:not(.af-page) .btn.btn-primary:hover {
  background: #8c6a2e !important;
  color: #f7f4ee !important;
  filter: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: .5rem;
  z-index: 1000;
  background: #fff;
  color: var(--ffx-ink) !important;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: .5rem !important; }

/* ---------- Focus states (keyboard users) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c4a265 !important;
  outline-offset: 2px !important;
}

/* ---------- Hub bar (top strip on section pages) ---------- */
.ff-hub-bar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .75rem;
  background: var(--ffx-taupe) !important;
  background-image: none !important;
  color: #fff;
  padding: .35rem 1rem !important;
  position: sticky;
  top: 0;
  z-index: 300;
  font-family: Inter, "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .92rem;
  box-sizing: border-box;
  width: 100%;
}
/* Every link in the bar must be readable on taupe (some pages set taupe inline). */
.ff-hub-bar a,
.ff-hub-bar nav a,
.ff-hub-bar .ff-hub-nav a {
  color: #fff !important;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  padding: .2rem .4rem !important;
  border-radius: 6px;
}
.ff-hub-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ff-hub-bar a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.ff-hub-home { font-weight: 700; white-space: nowrap; }
.ff-hub-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.ff-hub-bar .ff-hub-cta {
  background: var(--ffx-olive) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: .35rem 1rem !important;
  font-weight: 700;
}
.ff-hub-bar .ff-hub-cta:hover { filter: brightness(1.08); text-decoration: none; }

/* "All sections" dropdown — neutralise page-level <details>/<summary> FAQ styles */
.ff-hub-bar details.ff-hub-more {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.ff-hub-bar details.ff-hub-more > summary {
  list-style: none;
  cursor: pointer;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 999px !important;
  padding: .3rem .9rem !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  font-weight: 600 !important;
  font-size: .9rem !important;
  line-height: 1.2;
  position: static !important;
}
.ff-hub-bar details.ff-hub-more > summary::-webkit-details-marker { display: none; }
.ff-hub-bar details.ff-hub-more > summary::after {
  content: "\25BE" !important;
  position: static !important;
  transform: none !important;
  font-size: .8rem !important;
  color: #fff !important;
  font-weight: 400 !important;
}
.ff-hub-bar details.ff-hub-more[open] > summary::after { content: "\25B4" !important; }
.ff-hub-bar .ff-hub-more-panel {
  position: absolute !important;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 220px;
  max-height: 75vh;
  overflow-y: auto;
  background: #fff !important;
  color: var(--ffx-ink);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2) !important;
  padding: .4rem !important;
  z-index: 400;
  display: flex;
  flex-direction: column;
}
.ff-hub-bar .ff-hub-more-panel a {
  color: var(--ffx-ink) !important;
  padding: .55rem .75rem !important;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.ff-hub-bar .ff-hub-more-panel a:hover { background: #f2efe9; text-decoration: none; }
.ff-hub-more-panel .ffx-menu-group {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ffx-muted);
  padding: .5rem .75rem .15rem;
  font-weight: 700;
}
@media (max-width: 520px) {
  .ff-hub-bar { padding: .3rem .6rem !important; font-size: .88rem; }
  .ff-hub-bar .ff-hub-more-panel { position: absolute !important; right: 0; background: #fff !important; }
  .ff-hub-bar .ff-hub-more-panel a { color: var(--ffx-ink) !important; }
}

/* ---------- Standard site header (health / company pages) ---------- */
body:not(.hub-home) .site-header .site-nav a,
body:not(.hub-home) .site-header .nav-more > summary { color: #fff; }
.site-header details.nav-more { position: relative; }
.site-header details.nav-more > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0 .35rem;
  font-weight: 500;
}
.site-header details.nav-more > summary::-webkit-details-marker { display: none; }
.site-header details.nav-more > summary::after { content: "\25BE"; font-size: .8em; }
.site-header details.nav-more[open] > summary::after { content: "\25B4"; }
.site-header .nav-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  z-index: 400;
}
.site-header .nav-more-panel a {
  color: var(--ffx-ink) !important;
  padding: .55rem .75rem !important;
  border-radius: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.site-header .nav-more-panel a:hover { background: #f2efe9; text-decoration: none; }
.site-header .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer contrast on section pages ----------
   The editorial restyle switched the footer to a light background but left
   the old white text, making it nearly invisible. Use dark text instead. */
body:not(.hub-home) .site-footer {
  background: #f2efe9 !important;
  color: var(--ffx-ink) !important;
  border-top: 1px solid var(--ffx-line);
}
body:not(.hub-home) .site-footer a { color: var(--ffx-taupe-dark) !important; }
body:not(.hub-home) .site-footer a:hover { color: var(--ffx-ink) !important; text-decoration: underline; }
body:not(.hub-home) .site-footer .footer-brand strong {
  color: var(--ffx-taupe) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}
body:not(.hub-home) .site-footer .footer-brand span,
body:not(.hub-home) .site-footer .footer-col h4,
body:not(.hub-home) .site-footer .fine,
body:not(.hub-home) .site-footer .footer-privacy,
body:not(.hub-home) .site-footer .footer-contact {
  color: var(--ffx-muted) !important;
}
.site-footer .footer-col a { min-height: 40px; display: flex; align-items: center; }

/* ---------- Small global polish ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Mobile header layout for standard pages ---------- */
@media (max-width: 860px) {
  body:not(.hub-home) .site-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left;
    gap: .5rem;
    padding: .55rem 1rem;
    position: sticky;
    top: 0;
  }
  body:not(.hub-home) .site-header .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 72px;
    margin: 0 !important;
  }
  body:not(.hub-home) .site-header .site-nav { background: #0e0f12 !important; }
  body:not(.hub-home) .site-header .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .site-header .site-nav.is-open details.nav-more { width: 100%; }
  .site-header .site-nav.is-open .nav-more-panel {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.1);
    margin-top: .25rem;
  }
  .site-header .site-nav.is-open .nav-more-panel a { color: #fff !important; }
}

/* House Plans sub-header: keep the order button on one line */
header.top .hp-nav a.cta-sm { white-space: nowrap; }

/* =========================================================
   Homepage (body.hub-home)
   ========================================================= */
.ffx-topbar.ff-topbar {
  justify-content: space-between;
  padding: .4rem 1rem;
  gap: .75rem;
}
.ffx-brand {
  color: #fff !important;
  text-decoration: none;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ffx-topbar-actions { display: flex; align-items: center; gap: .5rem; }
.ffx-topbar-contact {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  background: var(--ffx-olive);
  border-radius: 999px;
  padding: .45rem 1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.ffx-topbar-contact:hover { filter: brightness(1.08); }
.ffx-topbar .ff-topbar-menu { position: static; }
body.hub-home .ff-topbar-nav { position: sticky; top: 56px; z-index: 199; }
@media (min-width: 900px) {
  body.hub-home .ff-topbar-nav { position: static; }
  body.hub-home .ff-topbar-nav a { font-size: .9rem; }
}
@media (max-width: 420px) {
  .ffx-brand { font-size: 1.15rem; }
  .ffx-topbar-contact { padding: .4rem .75rem; font-size: .82rem; }
}

/* Hero */
.ffx-hero .ff-hero-overlay { background: linear-gradient(180deg, rgba(20,21,24,.5) 0%, rgba(20,21,24,.6) 55%, rgba(20,21,24,.7) 100%); }
.ffx-hero .ff-hero-copy h1, .ffx-hero .ff-hero-tag { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.ffx-hero.ff-hero { min-height: min(72vh, 640px); }
.ffx-hero .ff-hero-tag { max-width: 34rem; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.ffx-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Buttons */
.ffx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: filter .15s ease, background .15s ease;
}
.ffx-btn-light { background: #fff; color: var(--ffx-ink) !important; }
.ffx-btn-light:hover { background: #f2efe9; }
.ffx-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.85); }
.ffx-btn-ghost:hover { background: rgba(255,255,255,.12); }
.ffx-btn-dark { background: var(--ffx-taupe); color: #fff !important; }
.ffx-btn-dark:hover { background: var(--ffx-taupe-dark); }

/* Directory */
.ffx-dir {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  scroll-margin-top: 64px;
}
.ffx-dir-head { text-align: center; max-width: 40rem; margin: 0 auto 1.5rem; }
.ffx-dir-head .ff-label { margin-bottom: .5rem; }
.ffx-dir-head h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 .6rem;
  color: var(--ffx-ink);
  line-height: 1.15;
}
.ffx-dir-sub { margin: 0 0 1.1rem; color: var(--ffx-muted); line-height: 1.55; font-size: 1rem; }
.ffx-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ffx-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem 1rem;
  border: 1px solid var(--ffx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ffx-ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
.ffx-jump a:hover { border-color: var(--ffx-taupe); }
.ffx-group { margin-top: 2rem; scroll-margin-top: 64px; }
.ffx-group-title {
  font-family: Inter, "General Sans", sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ffx-taupe);
  font-weight: 700;
  margin: 0 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--ffx-line);
}
.ffx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 560px) { .ffx-grid { gap: 1rem; } }
@media (max-width: 559px) {
  .ffx-card-body { padding: .75rem .8rem .9rem; }
  .ffx-card-title { font-size: 1.2rem; }
  .ffx-card-text { font-size: .84rem; }
  .ffx-card-cta { font-size: .84rem; }
  .ffx-grid-2 .ffx-card-img { aspect-ratio: 4 / 3; }
}
@media (min-width: 960px) { .ffx-grid { grid-template-columns: repeat(4, 1fr); } .ffx-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.ffx-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ffx-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ffx-ink);
  transition: box-shadow .15s ease, transform .15s ease;
}
.ffx-card:hover { box-shadow: 0 10px 28px rgba(20,21,24,.12); transform: translateY(-2px); }
.ffx-card-img { display: block; aspect-ratio: 4 / 3; background: #e7e2d8; overflow: hidden; }
.ffx-grid-2 .ffx-card-img { aspect-ratio: 16 / 9; }
.ffx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ffx-card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.ffx-card-title { font-family: "EB Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.ffx-card-text { color: var(--ffx-muted); font-size: .93rem; line-height: 1.5; flex: 1; }
.ffx-card-cta { margin-top: .4rem; font-weight: 600; font-size: .92rem; color: var(--ffx-taupe); }
.ffx-card-cta::after { content: " \2192"; }
.ffx-card:hover .ffx-card-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Help strip */
.ffx-help {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  padding: 2.25rem 1.25rem;
  text-align: center;
  background: #f2efe9;
  border-radius: 16px;
  box-sizing: border-box;
}
@media (max-width: 1160px) { .ffx-help { margin-left: 1.25rem; margin-right: 1.25rem; max-width: none; } }
.ffx-help h2 { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 .5rem; color: var(--ffx-ink); }
.ffx-help p { margin: 0 auto 1.1rem; max-width: 32rem; color: var(--ffx-muted); line-height: 1.55; }

/* Muted text on cream must meet contrast */
body.hub-home .ff-label { color: var(--ffx-taupe); }
body.hub-home .site-footer .fine,
body.hub-home .site-footer .footer-contact,
body.hub-home .site-footer .footer-privacy { color: var(--ffx-muted); }

/* Real Estate page cards */
.ffx-re-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 760px) { .ffx-re-grid { grid-template-columns: repeat(3, 1fr); } }
.ffx-re-grid .card { margin: 0; }
.ffx-re-grid .card h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.ffx-re-grid .card p { margin: 0; line-height: 1.55; }

/* Homepage Shop group with three shops (Clothing, Jewelry, Nails) */
@media (max-width: 959px) {
  .ffx-grid-3 > .ffx-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) { .ffx-grid-3 { grid-template-columns: repeat(3, 1fr); } .ffx-grid-3 .ffx-card-img { aspect-ratio: 4 / 3; } }
