/* ═══════════════════════════════════════════════════════════════
   Beauté Concept — Header (Odoo bundled)  v2
   Now sourced from the actual design-system colors_and_type.css.
   Includes Vetrino @font-face for the display family.
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Inter:wght@300;400;500;600&display=swap");

@font-face {
  font-family: "Vetrino";
  src: url("/bc_website_theme/static/src/fonts/Vetrino.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ivory — cream backgrounds */
  --ivory-50:  #FBF8F3;
  --ivory-100: #F4EFE6;
  --ivory-200: #EAE2D2;
  --ivory-300: #D8CCB6;

  /* Sand & Taupe — warm secondary */
  --sand-400:  #B5A78C;
  --taupe-500: #8A7B62;
  --taupe-600: #5C513F;

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

  /* Moss — BC brand green */
  --moss-700: #2E3A2A;
  --moss-600: #3F5039;
  --moss-500: #5C7253;
  --sage-300: #B8C2A8;
  --sage-100: #E4E8DC;

  /* Champagne / metallic accent */
  --gold-600: #9A7F4E;
  --gold-500: #B89968;
  --gold-300: #D9C7A0;
  --gold-100: #F0E7D2;

  /* Typography */
  --ff-display: "Vetrino", "Cormorant Garamond", "Times New Roman", serif;
  --ff-serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-sans:    "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Easing */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 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: frosted-ivory backdrop with backdrop blur — same
   appearance everywhere regardless of what scrolls behind. Slight
   translucency lets a hint of the page show through; the 18-px blur
   keeps all text crisply legible. */
/* Original dynamic header — restored from the design system source.
   - Base: transparent + white text + soft frosted glass (sits over dark hero)
   - .scrolled (>80px): ivory frosted + dark text + tighter padding
   - .over-dark: applied while the header sits over a dark area (initial
     state on pages with a dark hero) — keeps text/logo white.
   - .mega-open: forces the dense scrolled appearance regardless. */
.bh {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center;
  padding: 20px 56px;
  z-index: 1040;
  font-family: var(--ff-sans);
  background: rgba(251, 248, 243, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(216, 204, 182, 0.45);
  color: var(--ink-900);
  transition: background 380ms var(--ease-soft),
              padding 380ms var(--ease-soft),
              border-color 380ms;
}
.bh.scrolled {
  background: rgba(251, 248, 243, 0.92);
  padding: 14px 56px;
  border-bottom-color: var(--ivory-200);
}
/* Over a dark hero — invert text + buttons for contrast */
.bh.over-dark:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--ivory-50);
}
.bh.over-dark:not(.scrolled) .bh-nav-link { color: var(--ivory-50); }
.bh.over-dark:not(.scrolled) .bh-locale span { color: rgba(251, 248, 243, 0.55); }
.bh.over-dark:not(.scrolled) .bh-locale span.active { color: var(--ivory-50); }
.bh.over-dark:not(.scrolled) .bh-locale span:hover { color: var(--ivory-50); }
.bh.over-dark:not(.scrolled) .bh-contact {
  color: var(--ivory-50);
  border-color: rgba(251, 248, 243, 0.4);
}
.bh.over-dark:not(.scrolled) .bh-contact:hover {
  color: var(--ivory-50);
  border-color: var(--ivory-50);
  background: rgba(251, 248, 243, 0.08);
}
.bh.over-dark:not(.scrolled) .bh-cta {
  background: var(--ivory-50);
  color: var(--ink-900);
  border-color: var(--ivory-50);
}
.bh.over-dark:not(.scrolled) .bh-cta:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--ink-900);
}

/* When a mega panel is open, force the dense ivory state regardless */
.bh.mega-open {
  background: rgba(251, 248, 243, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !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-locale span { color: var(--taupe-500) !important; }
.bh.mega-open .bh-locale span.active { color: var(--ink-900) !important; }
.bh.mega-open .bh-contact {
  color: var(--ink-900) !important;
  border-color: var(--ivory-300) !important;
  background: transparent !important;
}
.bh.mega-open .bh-cta {
  background: var(--ink-900) !important;
  color: var(--ivory-50) !important;
  border-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: 44px;
  width: auto;
  display: block;
  transition: opacity .22s;
}
.bh .bh-logo:hover .bh-logo-img { opacity: 0.7; }

/* Two logos in markup, one shown at a time. Default = dark (frosted/scrolled).
   When over a dark hero (initial state), swap to the white wordmark. */
.bh .bh-logo .bh-logo-white { display: none; }
.bh .bh-logo .bh-logo-black { display: block; }
.bh.over-dark:not(.scrolled) .bh-logo .bh-logo-white { display: block; }
.bh.over-dark:not(.scrolled) .bh-logo .bh-logo-black { display: none; }
/* When a mega is open we want the dark logo even if the page is also scrolled-up */
.bh.mega-open .bh-logo .bh-logo-white { display: none !important; }
.bh.mega-open .bh-logo .bh-logo-black { display: block !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);
}

/* ─── Right cluster: locale, contact, CTA ─── */
.bh-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bh-locale {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  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-locale span:hover { color: var(--ink-900); }

.bh-contact {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-900);
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--ivory-300);
  border-radius: 2px;
  transition: all .28s var(--ease-soft);
  white-space: nowrap;
  background: transparent;
}
.bh-contact:hover {
  border-color: var(--ink-900);
  background: rgba(26, 24, 21, 0.04);
  opacity: 1; 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: 13px 24px;
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  transition: background .22s var(--ease-soft), color .22s, border-color .22s;
  white-space: nowrap;
}
.bh-cta:hover {
  background: var(--moss-700);
  border-color: 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: 14px 32px; }
  .bh.scrolled, .bh.mega-open { padding: 12px 32px !important; }
  .bh-nav { gap: 28px; margin: 0 20px; }
  .bh-right { gap: 16px; }
  .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-right { margin-left: auto; }
}
@media (max-width: 720px) {
  .bh { padding: 16px 24px; }
  .bh-contact { display: none; }
  .bh-locale { display: none; }
  .bh-right { gap: 12px; }
}

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