/* ═══════════════════════════════════════════════════════════════
   Beauté Concept — Header (Odoo bundled)
   Combines the design system's tokens (would-be ../../colors_and_type.css)
   with the original header.css. No external imports.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Ivory — cream backgrounds */
  --ivory-50:  #FBF8F3;
  --ivory-100: #F2EDE2;
  --ivory-200: #E6DDC9;
  --ivory-300: #C9B89A;

  /* Sand & Taupe — warm secondary */
  --sand-400:  #A89274;
  --taupe-500: #8B7456;
  --taupe-600: #5C4A35;

  /* Ink — text */
  --ink-900: #1A1815;
  --ink-800: #2A2620;
  --ink-700: #3D372D;

  /* Moss — BC brand green */
  --moss-700: #2E3A2A;
  --moss-600: #3D4937;
  --moss-500: #4A5240;
  --sage-300: #B5BFA8;
  --sage-100: #DAE0D3;

  /* Gold — champagne accent */
  --gold-600: #A88D5B;
  --gold-500: #C2A671;
  --gold-300: #D8C28E;
  --gold-100: #ECD9AC;

  /* Typography */
  --ff-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --ff-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Easing */
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
}

/* ───────────────────────────────────────────────────────────────
   Defeat Odoo's stock <header> styling that conflicts with .bh
   ─────────────────────────────────────────────────────────────── */
header.bh {
  background: transparent;
  box-shadow: none !important;
  min-height: 0;
  margin: 0;
  /* Odoo wraps <header> in classes like o_header_standard that
     ship their own padding/position — these match the design exactly */
}

/* ─── Header bar ─── */
/* Static header: always renders in the "scrolled" appearance —
   ivory blurred backdrop, dark text and CTA. The .over-dark and
   .scrolled JS-toggled classes are intentionally neutralised below
   so the header never flips to a light-on-dark state. */
.bh {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center;
  padding: 14px 56px;
  z-index: 1040;  /* above Odoo's default headers */
  transition: background 380ms var(--ease-soft), padding 380ms var(--ease-soft), border-color 380ms;
  font-family: var(--ff-sans);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ivory-200);
  color: var(--ink-900);
}
.bh.scrolled {
  /* Same as base — kept for JS-toggle backwards compat */
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 56px;
  border-bottom-color: var(--ivory-200);
}
/* Neutralise the over-dark JS state so the header never inverts */
.bh.over-dark:not(.scrolled) { color: var(--ink-900); }
.bh.over-dark:not(.scrolled) .bh-cta { background: var(--ink-900); color: var(--ivory-50); }
.bh.over-dark:not(.scrolled) .bh-nav-link { color: var(--ink-900); }
.bh.over-dark:not(.scrolled) .bh-locale span { color: var(--taupe-500); }
.bh.over-dark:not(.scrolled) .bh-locale span.active { color: var(--ink-900); }

/* Force light when mega is open */
.bh.mega-open {
  background: rgba(251, 248, 243, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 14px 56px !important;
  border-bottom-color: var(--ivory-200) !important;
  color: var(--ink-900) !important;
}
.bh.mega-open .bh-nav-link { color: var(--ink-900) !important; }
.bh.mega-open .bh-cta { background: var(--ink-900) !important; color: var(--ivory-50) !important; }
.bh.mega-open .bh-locale span { color: var(--taupe-500) !important; }
.bh.mega-open .bh-locale span.active { color: var(--ink-900) !important; }

/* Logo */
.bh .bh-logo { display: flex; align-items: center; text-decoration: none; }
.bh .bh-logo .bh-logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity .22s, filter .22s;
}
.bh .bh-logo:hover .bh-logo-img { opacity: 0.7; }

/* Header is always on a light ivory backdrop now, so the black wordmark
   reads correctly — no inversion required in any state. */
.bh.over-dark:not(.scrolled) .bh-logo .bh-logo-img,
.bh.mega-open .bh-logo .bh-logo-img {
  filter: none !important;
}

/* ─── Nav links ─── */
.bh-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0 32px;
  padding: 0;
}
.bh-nav-item { position: relative; }
.bh-nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: none;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color .22s;
  position: relative;
  background: none; border: none;
  font-family: inherit;
}
.bh-nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold-600);
  transition: right 320ms var(--ease-out-quart);
}
.bh-nav-link:hover::after,
.bh-nav-item.active .bh-nav-link::after { right: 0; }

.bh-nav-link .chev {
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 280ms var(--ease-soft);
  opacity: 0.5;
  display: inline-block;
}
.bh-nav-item.open .bh-nav-link .chev {
  transform: rotate(-135deg) translateY(-2px);
}

/* ─── Locale + CTA ─── */
.bh-locale {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  margin-right: 28px;
  display: flex; gap: 10px;
}
.bh-locale span { color: var(--taupe-500); cursor: pointer; transition: color .22s; }
.bh-locale span.active { color: var(--ink-900); }

.bh-cta {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-50); background: var(--ink-900);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 2px;
  transition: background .22s var(--ease-soft), color .22s;
  white-space: nowrap;
}
.bh-cta:hover { background: var(--moss-700); opacity: 1; color: var(--ivory-50); }

/* ─── Mega panel backdrop ─── */
.bh-scrim {
  position: fixed; inset: 0;
  background: rgba(26, 24, 21, 0.25);
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms var(--ease-soft);
}
.bh-scrim.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   MEGA PANELS — full-width overlays
   ═══════════════════════════════════════════════════════════════ */
.bh-mega {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1035;
  background: var(--ivory-50);
  border-bottom: 1px solid var(--ivory-200);
  box-shadow: 0 24px 48px rgba(26, 24, 21, 0.08);
  padding-top: 72px;
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 380ms var(--ease-soft), transform 380ms var(--ease-out-quart);
}
.bh-mega.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bh-mega-inner {
  padding: 48px 56px 56px;
  display: grid;
  gap: 0;
}

.bh-mega-close {
  position: absolute; top: 80px; right: 56px;
  background: none; border: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-900);
  font-size: 20px; line-height: 1;
  border-radius: 999px;
  transition: background .22s;
}
.bh-mega-close:hover { background: var(--ivory-100); }

/* ─── Mega aside ─── */
.bh-mega-aside {
  display: flex; flex-direction: column; gap: 16px;
  padding-right: 48px;
  border-right: 1px solid var(--ivory-200);
}
.bh-mega-aside .eb {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--taupe-500);
  display: flex; align-items: center; gap: 12px;
}
.bh-mega-aside .eb::before {
  content: ""; width: 24px; height: 1px; background: var(--gold-600);
}
.bh-mega-aside h3 {
  font-family: var(--ff-display); font-weight: 300;
  font-size: 36px; line-height: 1.08;
  letter-spacing: -0.01em; margin: 0;
  color: var(--ink-900);
}
.bh-mega-aside h3 em { font-style: italic; color: var(--gold-600); font-weight: 300; }
.bh-mega-aside p {
  font-size: 14px; line-height: 1.65;
  color: var(--taupe-600); font-weight: 300;
  max-width: 28ch; margin: 0;
}
.bh-mega-aside .aside-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-900); text-decoration: none;
  margin-top: auto; padding: 8px 0;
}
.bh-mega-aside .aside-link::before {
  content: ""; width: 24px; height: 1px;
  background: var(--gold-600);
  transition: width 320ms var(--ease-out-quart);
}
.bh-mega-aside .aside-link:hover::before { width: 40px; }

/* ─── Mega columns ─── */
.bh-mega-col {
  padding: 0 32px;
}
.bh-mega-col .col-eb {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-600);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ivory-200);
  margin-bottom: 14px;
}
.bh-mega-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.bh-mega-col li a {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 9px 0;
  text-decoration: none;
  transition: padding-left 280ms var(--ease-soft);
}
.bh-mega-col li a:hover { padding-left: 6px; }
.bh-mega-col li a .lbl {
  font-size: 14px; font-weight: 400;
  color: var(--ink-900); letter-spacing: 0;
  transition: color .22s;
}
.bh-mega-col li a:hover .lbl { color: var(--gold-600); }
.bh-mega-col li a .hint {
  font-size: 11px; color: var(--taupe-500);
  letter-spacing: 0.04em; white-space: nowrap;
  opacity: 0.7;
}

/* ─── Featured card ─── */
.bh-mega-feature {
  margin: 0;
  position: relative; overflow: hidden;
  background: var(--ivory-100);
  display: flex; flex-direction: column;
}
.bh-mega-feature img {
  width: 100%; height: 200px;
  object-fit: cover; object-position: center 30%;
  display: block;
  transition: transform 1.2s var(--ease-out-quart);
}
.bh-mega-feature:hover img { transform: scale(1.04); }
.bh-mega-feature figcaption {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.bh-mega-feature .feat-eb {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-600);
}
.bh-mega-feature h4 {
  font-family: var(--ff-display); font-weight: 300;
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.01em; margin: 2px 0 4px;
  color: var(--ink-900);
}
.bh-mega-feature p {
  font-size: 13px; line-height: 1.55;
  color: var(--taupe-600); font-weight: 300;
  margin: 0;
}
.bh-mega-feature .feat-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-900); text-decoration: none;
  margin-top: 8px;
}
.bh-mega-feature .feat-link::before {
  content: ""; width: 20px; height: 1px;
  background: var(--gold-600);
}

/* CONCERNS panel */
.bh-mega-concerns .bh-mega-inner {
  grid-template-columns: 240px 1fr 1fr 1fr 260px;
}

/* TREATMENTS panel */
.bh-mega-treatments .bh-mega-inner {
  grid-template-columns: 240px 1fr 260px;
}
.bh-mega-treatments .bh-mega-aside {
  padding-right: 40px;
}
.bh-cat-tabs {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--ivory-200);
}
.bh-cat-tab {
  display: flex; align-items: center;
  gap: 12px;
  padding: 14px 0;
  border: none; background: none;
  font-family: var(--ff-display); font-weight: 300;
  font-size: 20px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--taupe-500);
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid var(--ivory-200);
  transition: color .22s;
}
.bh-cat-tab:hover { color: var(--ink-900); }
.bh-cat-tab.active { color: var(--ink-900); }
.bh-cat-tab .tab-dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--gold-600);
  opacity: 0;
  transition: opacity .22s;
  display: inline-block;
}
.bh-cat-tab.active .tab-dot { opacity: 1; }

.bh-treat-panel { display: none; }
.bh-treat-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

/* DIAGNOSTICS panel */
.bh-mega-diagnostics .bh-mega-inner {
  grid-template-columns: 240px 1fr 1fr 1fr;
}

/* Bottom rail */
.bh-mega-rail {
  border-top: 1px solid var(--ivory-200);
  margin: 32px 56px 0;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bh-mega-rail .rail-links {
  display: flex; gap: 32px;
}
.bh-mega-rail a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--taupe-500); text-decoration: none;
  transition: color .22s;
}
.bh-mega-rail a:hover { color: var(--ink-900); }
.bh-mega-rail .rail-loc {
  display: flex; gap: 24px;
  font-size: 11px; color: var(--taupe-500);
  letter-spacing: 0.12em;
}
.bh-mega-rail .rail-loc a { color: var(--taupe-500); }
.bh-mega-rail .rail-loc a:hover { color: var(--gold-600); }

/* Responsive */
@media (max-width: 1200px) {
  .bh { padding: 18px 32px; }
  .bh.scrolled, .bh.mega-open { padding: 12px 32px !important; }
  .bh-nav { gap: 28px; margin: 0 20px; }
  .bh-locale { margin-right: 18px; }
  .bh-mega-inner { padding: 40px 32px 48px; }
  .bh-mega-rail { margin: 24px 32px 0; }
  .bh-mega-concerns .bh-mega-inner { grid-template-columns: 200px 1fr 1fr 1fr 220px; }
}
@media (max-width: 1100px) {
  .bh-nav { display: none; }
  .bh-locale { margin-left: auto; }
}

/* Push page content down — Odoo's <main> sits beneath the fixed bar */
#wrapwrap > main { padding-top: 0; }
