/* ============================================================
   HAIR MENTOR — Design System (production WP, fully responsive)
   ============================================================ */

:root {
  /* PALETTE — Brand bleu/navy + CTA vert */
  --hm-ink: #2C2C2C;
  --hm-ink-2: #3A3A3D;
  --hm-ink-3: #5A5A5D;
  --hm-mute: #6E6E73;
  --hm-line: #E2E8F0;
  --hm-line-2: #CBD5E0;
  --hm-paper: #F7F9FB;
  --hm-paper-2: #EEF2F7;
  --hm-bg: #F7F9FB;
  --hm-white: #FFFFFF;
  --hm-navy: #1E3A5F;
  --hm-blue: #4A90E2;
  --hm-accent: #2ECC71;
  --hm-accent-ink: #27AE60;
  --hm-success: #2ECC71;
  --hm-danger: #B4452C;

  /* TYPE */
  --hm-display: "Fraunces", "Times New Roman", serif;
  --hm-sans: "Inter", system-ui, -apple-system, sans-serif;
  --hm-mono: "JetBrains Mono", ui-monospace, monospace;

  /* SCALE */
  --hm-r-sm: 4px;
  --hm-r-md: 10px;
  --hm-r-lg: 18px;
  --hm-r-xl: 28px;

  /* SHADOW */
  --hm-shadow-sm: 0 1px 2px rgba(30,58,95,.05), 0 2px 6px rgba(30,58,95,.05);
  --hm-shadow-md: 0 4px 14px rgba(30,58,95,.10), 0 1px 3px rgba(30,58,95,.06);
  --hm-shadow-lg: 0 24px 48px -12px rgba(30,58,95,.20);

  /* CONTAINER */
  --hm-max: 1240px;
  --hm-pad: clamp(20px, 4vw, 56px);
}

/* Reset GeneratePress defaults that conflict */
.entry-content > * { margin: 0; }
.site-content { padding: 0 !important; }
#page { background: var(--hm-bg); }

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--hm-sans);
  color: var(--hm-ink);
  background: var(--hm-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--hm-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.hm-display-xl { font-size: clamp(40px, 8vw, 112px); font-weight: 400; letter-spacing: -.035em; }
.hm-display-l { font-size: clamp(32px, 6vw, 80px); font-weight: 400; letter-spacing: -.03em; }
.hm-display-m { font-size: clamp(28px, 4.4vw, 56px); font-weight: 400; letter-spacing: -.025em; }
.hm-h2 { font-size: clamp(24px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.02em; }
.hm-h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.015em; }
.hm-h4 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-family: var(--hm-sans); }
.hm-eyebrow { font-family: var(--hm-sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--hm-mute); display: block; }
.hm-lead { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.5; color: var(--hm-ink-2); }
.hm-meta { font-size: 13px; color: var(--hm-mute); }
.hm-mono { font-family: var(--hm-mono); }

/* ============================================================
   LAYOUT
   ============================================================ */
.hm-container { width: 100%; max-width: var(--hm-max); margin: 0 auto; padding-left: var(--hm-pad); padding-right: var(--hm-pad); }
.hm-section { padding-block: clamp(28px, 4vw, 56px); }
.hm-section-sm { padding-block: clamp(20px, 3vw, 36px); }

/* Collapse double padding when 2 sections are adjacent — also reduces bottom of preceding via :has() */
.hm-section:has(+ .hm-section),
.hm-section:has(+ .hm-section-sm),
.hm-section-sm:has(+ .hm-section),
.hm-section-sm:has(+ .hm-section-sm) {
  padding-bottom: clamp(6px, 0.8vw, 12px);
}
.hm-section + .hm-section,
.hm-section + .hm-section-sm,
.hm-section-sm + .hm-section,
.hm-section-sm + .hm-section-sm {
  padding-top: clamp(6px, 0.8vw, 12px);
}
.hm-divider { border-top: 1px solid var(--hm-line); }
.hm-grid { display: grid; gap: clamp(16px, 2vw, 32px); }
.hm-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hm-col { display: flex; flex-direction: column; gap: 16px; }

/* Two-column responsive grid (used on hero, etc.) */
.hm-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hm-2col-equal { grid-template-columns: 1fr 1fr; }

/* Auto-fit grid */
.hm-auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.hm-auto-grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.hm-auto-grid-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 32px); }

/* Backgrounds */
.hm-bg-paper { background: var(--hm-paper); }
.hm-bg-paper-2 { background: var(--hm-paper-2); }
.hm-bg-ink { background: var(--hm-navy); color: var(--hm-white); }
.hm-bg-ink h1, .hm-bg-ink h2, .hm-bg-ink h3, .hm-bg-ink h4 { color: var(--hm-white); }

.hm-rule { height: 1px; background: var(--hm-line); border: 0; margin: 0; }
.hm-rule-dark { background: rgba(255,255,255,.12); }

/* Focus */
:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 2px; border-radius: 4px; }

/* Scrollbar (carousels) */
.hm-scroll-x { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hm-scroll-x > * { scroll-snap-align: start; }

/* ============================================================
   BUTTONS
   ============================================================ */
.hm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  font-family: var(--hm-sans);
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.hm-btn:hover { transform: translateY(-1px); }
.hm-btn-primary { background: var(--hm-navy); color: var(--hm-white); }
.hm-btn-primary:hover { background: var(--hm-blue); box-shadow: var(--hm-shadow-md); color: var(--hm-white); }
.hm-btn-secondary { background: transparent; color: var(--hm-navy); border: 1px solid var(--hm-navy); }
.hm-btn-secondary:hover { background: var(--hm-navy); color: var(--hm-white); }
.hm-btn-ghost { background: transparent; color: var(--hm-ink); padding-left: 4px; padding-right: 4px; }
.hm-btn-ghost::after { content: "→"; transition: transform .2s ease; display: inline-block; }
.hm-btn-ghost:hover::after { transform: translateX(4px); }
.hm-btn-accent { background: var(--hm-accent); color: var(--hm-white); }
.hm-btn-accent:hover { background: var(--hm-accent-ink); color: var(--hm-white); }
.hm-btn-sm { padding: 9px 14px; font-size: 13px; }
.hm-btn-lg { padding: 18px 28px; font-size: 15px; }
.hm-btn-block { width: 100%; justify-content: center; }
.hm-btn-light { background: var(--hm-paper); color: var(--hm-ink); }
.hm-btn-light:hover { background: var(--hm-white); color: var(--hm-ink); }
.hm-btn .hm-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.hm-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.hm-card:hover { transform: translateY(-2px); box-shadow: var(--hm-shadow-md); border-color: var(--hm-line-2); }
.hm-card-pad { padding: clamp(20px, 3vw, 32px); }
.hm-card-pad-sm { padding: 16px; }
.hm-card-flex { display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   PLACEHOLDERS (image/photo placeholders for missing content)
   ============================================================ */
.hm-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(44,44,44,.04) 0 1px, transparent 1px 8px),
    var(--hm-paper-2);
  border: 1px solid var(--hm-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hm-mono); font-size: 11px; color: var(--hm-mute);
  letter-spacing: .04em;
  border-radius: inherit;
  text-align: center; padding: 12px;
}
.hm-ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(44,44,44,.05), transparent 30%),
    radial-gradient(circle at 30% 30%, rgba(74,144,226,.08), transparent 50%);
  pointer-events: none;
}
.hm-ph > span { position: relative; z-index: 1; max-width: 80%; }
.hm-ph-photo {
  background:
    radial-gradient(circle at 50% 35%, rgba(74,144,226,.15), transparent 55%),
    linear-gradient(180deg, #94A3B8 0%, #475569 100%);
  color: rgba(255,255,255,.85);
}
.hm-ph-16-9 { aspect-ratio: 16/9; }
.hm-ph-4-3 { aspect-ratio: 4/3; }
.hm-ph-4-5 { aspect-ratio: 4/5; }
.hm-ph-3-4 { aspect-ratio: 3/4; }
.hm-ph-1-1 { aspect-ratio: 1/1; }
.hm-ph-21-9 { aspect-ratio: 21/9; }

/* ============================================================
   STAR rating
   ============================================================ */
.hm-stars { display: inline-flex; gap: 2px; color: var(--hm-accent); }
.hm-stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   BADGE
   ============================================================ */
.hm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  background: var(--hm-paper); color: var(--hm-ink-2);
  border: 1px solid var(--hm-line);
  text-decoration: none;
}
.hm-badge-dark { background: var(--hm-navy); color: var(--hm-white); border-color: var(--hm-navy); }
.hm-badge-accent { background: var(--hm-accent); color: var(--hm-white); border-color: var(--hm-accent); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.hm-faq { border-top: 1px solid var(--hm-line); }
.hm-faq-item { border-bottom: 1px solid var(--hm-line); }
.hm-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; width: 100%; text-align: left;
  font-family: var(--hm-display); font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.015em;
  color: var(--hm-ink);
}
.hm-faq-q .hm-icon-pm { width: 24px; height: 24px; flex-shrink: 0; transition: transform .25s ease; }
.hm-faq-item[data-open="true"] .hm-icon-pm { transform: rotate(45deg); }
.hm-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s ease;
  color: var(--hm-ink-3); line-height: 1.65; max-width: 720px;
}
.hm-faq-item[data-open="true"] .hm-faq-a { max-height: 600px; padding-bottom: 24px; }

/* ============================================================
   PROGRESS / STEPPER (Diagnostic)
   ============================================================ */
.hm-step-dot {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--hm-line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--hm-mono); font-size: 12px; color: var(--hm-mute);
  background: var(--hm-white);
}
.hm-step-dot[data-active="true"] { background: var(--hm-navy); color: var(--hm-white); border-color: var(--hm-navy); }
.hm-step-dot[data-done="true"] { background: var(--hm-accent); color: var(--hm-white); border-color: var(--hm-accent); }

/* ============================================================
   TOC
   ============================================================ */
.hm-toc { font-size: 13px; line-height: 1.6; }
.hm-toc-item { display: block; padding: 6px 12px; border-left: 2px solid transparent; color: var(--hm-mute); transition: color .15s, border-color .15s; }
.hm-toc-item:hover { color: var(--hm-ink); }
.hm-toc-item[data-active="true"] { color: var(--hm-ink); border-color: var(--hm-ink); font-weight: 500; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.hm-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,251,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hm-line);
}
.hm-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
}
.hm-nav { display: flex; gap: clamp(16px, 2vw, 28px); align-items: center; list-style: none; padding: 0; margin: 0; }
.hm-nav > li { position: relative; list-style: none; }
.hm-nav a { font-size: 14px; color: var(--hm-ink-2); transition: color .15s; text-decoration: none; }
.hm-nav a:hover, .hm-nav a.current-menu-item { color: var(--hm-ink); font-weight: 500; }

/* Desktop sub-menu dropdown */
.hm-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 240px;
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-md);
  box-shadow: var(--hm-shadow-md);
  z-index: 100;
}
.hm-nav .menu-item-has-children > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: .6;
  margin-left: 4px;
}
.hm-nav .menu-item-has-children:hover > .sub-menu,
.hm-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.hm-nav .sub-menu li { margin: 0; }
.hm-nav .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--hm-ink);
  font-weight: 400;
}
.hm-nav .sub-menu a:hover {
  background: var(--hm-paper-2);
  color: var(--hm-navy);
  font-weight: 500;
}

/* Logo */
.hm-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hm-logo img { width: 36px; height: 36px; object-fit: contain; }
.hm-logo-word { font-family: var(--hm-sans); font-weight: 700; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; color: var(--hm-ink); }

/* Header CTAs */
.hm-header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* Mobile menu toggle */
.hm-menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.hm-menu-toggle svg { width: 24px; height: 24px; }

/* Mobile menu (off-canvas) */
.hm-mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--hm-bg);
  display: none; flex-direction: column;
  padding: 24px var(--hm-pad);
  overflow-y: auto;
}
.hm-mobile-menu[data-open="true"] { display: flex; }
.hm-mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.hm-mobile-menu-nav { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 0; margin: 0; }
.hm-mobile-menu-nav li { list-style: none; }
.hm-mobile-menu-nav > li > a,
.hm-mobile-menu-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 18px; font-family: var(--hm-display);
  border-bottom: 1px solid var(--hm-line);
  color: var(--hm-ink);
  text-decoration: none;
}
.hm-mobile-menu-nav .sub-menu {
  list-style: none;
  padding: 4px 0 8px 16px;
  margin: 0;
  border-left: 2px solid var(--hm-line);
  margin-left: 4px;
}
.hm-mobile-menu-nav .sub-menu a {
  font-size: 15px;
  font-family: var(--hm-sans);
  padding: 10px 0;
  border-bottom: 0;
  color: var(--hm-ink-2);
}
.hm-mobile-menu-actions { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }
body[data-mobile-menu-open="true"] { overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.hm-footer { background: var(--hm-navy); color: var(--hm-white); padding-block: clamp(48px, 8vw, 80px) 32px; }
.hm-footer h4 { font-family: var(--hm-sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.hm-footer a { color: rgba(255,255,255,.78); font-size: 13px; line-height: 2; transition: color .15s; }
.hm-footer a:hover { color: var(--hm-paper); }
.hm-footer ul { list-style: none; padding: 0; margin: 0; }
.hm-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 5vw, 56px); }
.hm-footer-brand-blurb { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.6; max-width: 260px; margin-top: 12px; }
.hm-social-list { display: flex; gap: 10px; margin-top: 20px; }
.hm-social-list a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.hm-social-list a:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.42); }
.hm-newsletter-input {
  display: flex; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px;
}
.hm-newsletter-input input {
  background: transparent; border: 0; color: var(--hm-paper); padding: 8px 14px; flex: 1; outline: none; font-size: 14px;
}
.hm-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px;
  font-size: 12px; color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   LATEST PAGES GRID (home block)
   ============================================================ */
.hm-latest-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hm-latest-card:hover {
  transform: translateY(-3px);
  border-color: var(--hm-line-2);
  box-shadow: var(--hm-shadow-md);
}
.hm-latest-card:hover img { transform: scale(1.04); }
.hm-latest-card .hm-h4 { color: var(--hm-navy); font-weight: 500; }

/* ============================================================
   AUTHOR BYLINE (E-E-A-T / trust signal under H1)
   ============================================================ */
.hm-author-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
  margin-top: 24px;
}
.hm-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--hm-paper);
  box-shadow: 0 1px 3px rgba(30,58,95,.08);
}
.hm-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.4;
}
.hm-author-name {
  color: var(--hm-ink);
  font-weight: 500;
}
.hm-author-name strong {
  color: var(--hm-navy);
  font-weight: 600;
}
.hm-author-meta {
  color: var(--hm-mute);
  font-size: 13px;
}
.hm-author-meta time {
  white-space: nowrap;
}
.hm-author-meta .hm-author-sep {
  margin: 0 6px;
  opacity: .5;
}
.hm-author-info {
  flex: 1;
  min-width: 0;
}
.hm-author-name a {
  color: var(--hm-ink);
  text-decoration: none;
  transition: color .15s;
}
.hm-author-name a:hover strong {
  color: var(--hm-blue);
}
.hm-author-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hm-author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--hm-navy);
  background: var(--hm-paper);
  border: 1px solid var(--hm-line);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.hm-author-socials a:hover {
  color: var(--hm-white);
  background: var(--hm-blue);
  border-color: var(--hm-blue);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .hm-author-byline {
    flex-wrap: wrap;
  }
  .hm-author-socials {
    width: 100%;
    justify-content: flex-start;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--hm-line);
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.hm-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; position: relative; }
.hm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .hm-form-row { grid-template-columns: 1fr; } }
.hm-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--hm-ink-2); letter-spacing: -.005em; }
.hm-form label > span { color: var(--hm-ink); font-weight: 500; }
.hm-form input,
.hm-form select,
.hm-form textarea {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--hm-ink);
  font-family: var(--hm-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  width: 100%;
}
.hm-form input:focus,
.hm-form select:focus,
.hm-form textarea:focus {
  border-color: var(--hm-blue);
  box-shadow: 0 0 0 3px rgba(74,144,226,.15);
}
.hm-form textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.hm-form select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231E3A5F' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.hm-form button[type="submit"] { align-self: flex-start; margin-top: 6px; }
.hm-form button[type="submit"]:disabled { opacity: .6; cursor: wait; }
.hm-form-honey { position: absolute !important; left: -9999px !important; top: -9999px !important; opacity: 0 !important; pointer-events: none; }
.hm-form-result:empty { display: none; }
.hm-form-result { padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.hm-form-result.hm-form-success { background: rgba(46,204,113,.10); color: #1F8B4F; border: 1px solid rgba(46,204,113,.30); }
.hm-form-result.hm-form-error { background: rgba(180,69,44,.08); color: var(--hm-danger); border: 1px solid rgba(180,69,44,.25); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.hm-mobile-cta { display: none; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.hm-trust-bar { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; color: var(--hm-mute); font-size: 13px; }
.hm-trust-bar strong { color: var(--hm-ink); font-weight: 600; }
.hm-trust-bar-divider { width: 1px; height: 16px; background: var(--hm-line); }

/* ============================================================
   JOURNEY STRIP (homepage steps)
   ============================================================ */
.hm-journey-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
}
.hm-journey-step {
  padding: 20px 16px;
  border-right: 1px solid var(--hm-line);
  display: flex; flex-direction: column; gap: 6px;
}
.hm-journey-step:last-child { border-right: 0; }
.hm-journey-step-num { font-family: var(--hm-mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--hm-mute); }
.hm-journey-step-title { font-family: var(--hm-display); font-size: clamp(15px, 1.8vw, 18px); font-weight: 500; letter-spacing: -.01em; }

/* ============================================================
   CAROUSEL ARTICLES (signature pattern B3)
   ============================================================ */
.hm-carousel-section { padding-block: clamp(48px, 8vw, 96px); }
.hm-carousel-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.hm-carousel-arrows { display: flex; gap: 8px; }
.hm-carousel-arrow {
  width: 44px; height: 44px; border: 1px solid var(--hm-line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; cursor: pointer; transition: all .2s ease;
}
.hm-carousel-arrow:hover { background: var(--hm-ink); color: var(--hm-paper); border-color: var(--hm-ink); }
.hm-carousel-arrow svg { width: 18px; height: 18px; }
.hm-carousel-track {
  display: flex; gap: 20px; padding-bottom: 16px;
  scroll-padding-inline: var(--hm-pad);
}
.hm-carousel-card {
  min-width: 320px; max-width: 320px; flex: 0 0 320px;
  display: flex; flex-direction: column;
}

/* ============================================================
   BEFORE/AFTER SLIDER
   ============================================================ */
.hm-ba {
  position: relative; border-radius: var(--hm-r-lg); overflow: hidden;
  cursor: ew-resize; user-select: none;
  border: 1px solid var(--hm-line);
  height: 380px;
  background: linear-gradient(180deg, #94A3B8 0%, #475569 100%);
}
.hm-ba-after, .hm-ba-before { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hm-ba-after { background-image: linear-gradient(180deg, #94A3B8 0%, #475569 100%); }
.hm-ba-before { background-image: linear-gradient(180deg, #B0BEC5 0%, #546E7A 100%); filter: grayscale(.5) brightness(.82); }
.hm-ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.4); pointer-events: none; }
.hm-ba-handle-dot {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.hm-ba-label-before, .hm-ba-label-after {
  position: absolute; top: 16px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.6);
}
.hm-ba-label-before { left: 16px; }
.hm-ba-label-after { right: 16px; }
.hm-ba-meta {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color: #fff; font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px;
}

/* ============================================================
   CTA SECTION (full-width inverted)
   ============================================================ */
.hm-cta-section { padding-block: clamp(56px, 8vw, 120px); }
.hm-cta-section .hm-container { text-align: center; max-width: 760px; }
.hm-cta-section .hm-eyebrow { color: rgba(255,255,255,.55); }
.hm-cta-section .hm-display-m { color: var(--hm-paper); margin-bottom: 20px; }
.hm-cta-section .hm-lead { color: rgba(255,255,255,.78); margin-bottom: 32px; }
.hm-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.hm-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--hm-mute); margin-bottom: 16px; }
.hm-breadcrumb a, .hm-breadcrumb span { color: var(--hm-mute); }
.hm-breadcrumb .current { color: var(--hm-ink); }

/* ============================================================
   GOOGLE REVIEWS WIDGET
   ============================================================ */
.hm-gr-header { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.hm-gr-logo {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--hm-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: var(--hm-blue);
}
.hm-gr-rating-row { display: flex; align-items: center; gap: 8px; }
.hm-gr-rating-num { font-family: var(--hm-display); font-size: 32px; font-weight: 500; }
.hm-gr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hm-gr-card-text { font-size: 14px; line-height: 1.55; color: var(--hm-ink-2); }
.hm-gr-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--hm-mute); margin-top: auto; }

/* ============================================================
   BRUNO BIO
   ============================================================ */
.hm-bruno { display: flex; align-items: center; gap: 12px; }
.hm-bruno img { border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex-shrink: 0; border: 1px solid var(--hm-line); }
.hm-bruno-meta { display: flex; flex-direction: column; gap: 2px; }
.hm-bruno-name { font-weight: 600; font-size: 14px; }
.hm-bruno-role { font-size: 12px; color: var(--hm-mute); }

/* ============================================================
   PILLAR CONTENT (TOC sidebar layout)
   ============================================================ */
.hm-pillar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.hm-pillar-toc {
  position: sticky; top: 100px; align-self: start;
}
.hm-pillar-section { margin-bottom: clamp(48px, 7vw, 80px); }

/* ============================================================
   SEARCH / FILTER BAR (Avant/Après, Blog)
   ============================================================ */
.hm-filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; padding: 16px; background: var(--hm-white); border: 1px solid var(--hm-line); border-radius: var(--hm-r-md); }
.hm-filter-bar-divider { width: 1px; height: 20px; background: var(--hm-line); }
.hm-filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-filter-pill {
  padding: 8px 14px; font-size: 13px; border-radius: 999px;
  background: var(--hm-paper); color: var(--hm-ink); border: 1px solid var(--hm-line);
  cursor: pointer; transition: all .15s ease;
}
.hm-filter-pill[data-active="true"], .hm-filter-pill:hover { background: var(--hm-ink); color: var(--hm-paper); border-color: var(--hm-ink); }

/* ============================================================
   BLOG / SINGLE LAYOUT
   ============================================================ */
.hm-single-layout {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: clamp(32px, 5vw, 56px);
}
.hm-single-content { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--hm-ink-2); }
.hm-single-content p { margin-bottom: 1.2em; }
.hm-single-content h2 { font-size: clamp(24px, 3vw, 36px); margin-block: 1.5em .6em; }
.hm-single-content h3 { font-size: clamp(20px, 2.4vw, 26px); margin-block: 1.5em .5em; }
.hm-single-content blockquote { border-left: 3px solid var(--hm-accent); padding: 16px 24px; margin-block: 24px; background: var(--hm-paper); font-style: italic; }
.hm-single-content a { color: var(--hm-ink); border-bottom: 1px solid var(--hm-accent); }
.hm-single-content img { border-radius: var(--hm-r-md); margin-block: 24px; }

/* ============================================================
   ICONS
   ============================================================ */
.hm-icon { display: inline-block; vertical-align: middle; }

/* ============================================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================================ */

/* Tablet & below (≤1024px) */
@media (max-width: 1024px) {
  .hm-pillar-layout { grid-template-columns: 1fr; gap: 32px; }
  .hm-pillar-toc { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--hm-line); }

  .hm-single-layout { grid-template-columns: 1fr 280px; }
  .hm-single-layout > aside:first-child { display: none; }

  .hm-2col { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* Header */
  .hm-nav { display: none; }
  .hm-header-actions .hm-btn:not(.hm-cta-mobile-keep) { display: none; }
  .hm-menu-toggle { display: flex; }

  /* Mobile sticky CTA */
  .hm-mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--hm-white); border-top: 1px solid var(--hm-line);
    padding: 12px 16px; gap: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.04);
  }
  .hm-mobile-cta .hm-btn { flex: 1; justify-content: center; padding: 12px 16px; }
  body { padding-bottom: 72px; } /* room for sticky CTA */

  /* 2col stacks */
  .hm-2col, .hm-2col-equal { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Single layout: stack content + sidebar */
  .hm-single-layout { grid-template-columns: 1fr; }
  .hm-single-layout > aside { order: 99; }

  /* Journey strip → 2-column wrap */
  .hm-journey-strip { grid-template-columns: 1fr 1fr; }
  .hm-journey-step:nth-child(2n) { border-right: 0; }
  .hm-journey-step:not(:last-child):not(:nth-last-child(2)) { border-bottom: 1px solid var(--hm-line); }

  /* CTA section */
  .hm-cta-buttons { flex-direction: column; align-items: stretch; }
  .hm-cta-buttons .hm-btn { justify-content: center; }

  /* Auto-grids force smaller min */
  .hm-auto-grid { grid-template-columns: 1fr !important; }
  .hm-auto-grid-sm { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; }

  /* Filter bar wraps */
  .hm-filter-bar { padding: 12px; }

  /* Carousel cards */
  .hm-carousel-card { min-width: 280px; max-width: 280px; flex-basis: 280px; }
  .hm-carousel-arrows { display: none; }

  /* Tables responsive */
  table { font-size: 13px; }
  table th, table td { padding: 10px 12px !important; }

  /* Footer bottom stacks */
  .hm-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Reviews widget */
  .hm-gr-header { gap: 16px; }
  .hm-gr-grid { grid-template-columns: 1fr; }

  /* About hero stat card no overlap */
  .hm-about-stat-card { position: static !important; margin-top: 16px !important; max-width: 100% !important; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  :root { --hm-pad: 16px; }
  .hm-section { padding-block: 24px; }
  .hm-card-pad { padding: 20px; }
  .hm-faq-q { font-size: 16px; padding: 18px 0; }
  .hm-mobile-menu-nav a { font-size: 16px; padding: 14px 0; }
  .hm-journey-strip { grid-template-columns: 1fr; }
  .hm-journey-step { border-right: 0 !important; border-bottom: 1px solid var(--hm-line); }
  .hm-journey-step:last-child { border-bottom: 0; }
}

/* Print */
@media print {
  .hm-header, .hm-footer, .hm-mobile-cta, .hm-cta-section { display: none !important; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ============================================================
   TABLES (price tables, etc.)
   ============================================================ */
.hm-table { width: 100%; border-collapse: collapse; }
.hm-table thead { background: var(--hm-paper); text-align: left; font-size: 13px; }
.hm-table th, .hm-table td { padding: 16px; }
.hm-table tbody tr { border-top: 1px solid var(--hm-line); font-size: 14px; }
.hm-table tbody tr td:first-child { font-weight: 600; }
.hm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   UTILITIES
   ============================================================ */
.hm-text-center { text-align: center; }
.hm-mt-0 { margin-top: 0; }
.hm-mt-1 { margin-top: 8px; }
.hm-mt-2 { margin-top: 16px; }
.hm-mt-3 { margin-top: 24px; }
.hm-mt-4 { margin-top: 32px; }
.hm-mt-5 { margin-top: 48px; }
.hm-mb-0 { margin-bottom: 0; }
.hm-mb-1 { margin-bottom: 8px; }
.hm-mb-2 { margin-bottom: 16px; }
.hm-mb-3 { margin-bottom: 24px; }
.hm-mb-4 { margin-bottom: 32px; }
.hm-mb-5 { margin-bottom: 48px; }
.hm-flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hm-flex-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.hm-w-full { width: 100%; }
.hm-relative { position: relative; }

/* ============================================================
   FIXES (audit 2026-05-06)
   ============================================================ */

/* Fix: nav links wrap on 2 lines when text too long */
.hm-nav a { white-space: nowrap; }

/* Fix: header tel button wrap */
.hm-header-actions .hm-btn { white-space: nowrap; }

/* Fix: tighter gap in nav at smaller widths */
@media (max-width: 1280px) {
  .hm-nav { gap: 18px; }
  .hm-nav a { font-size: 13px; }
}
@media (max-width: 1100px) {
  .hm-header-actions .hm-btn-ghost { display: none; } /* Hide phone on smaller screens */
}

/* Fix: H2 sections that were too tight against carousel */
.hm-carousel-section .hm-h2 { margin-bottom: 8px; }

/* Fix: cards should not have transform on touch devices (jittery) */
@media (hover: none) {
  .hm-card:hover { transform: none; box-shadow: none; }
  .hm-btn:hover { transform: none; }
}

/* Fix: ensure hm-section has proper top padding even when first element */
.hm-page > section:first-child { padding-top: clamp(32px, 5vw, 64px); }

/* Fix: better empty state for carousel cards */
.hm-carousel-card .hm-ph { font-size: 12px; }

/* Fix: ensure tables are readable on mobile (horizontal scroll inside container) */
.hm-table-wrap { width: 100%; }
.hm-table { min-width: 600px; }


/* ============================================================
   GUTENBERG CONTENT — auto-container for default blocks
   Blocks with their own .hm-section break out and stay full-width
   ============================================================ */
.hm-page {
    padding-block: clamp(32px, 5vw, 64px) 0;
}

/* Default Gutenberg blocks: contain to .hm-max width */
.hm-page > p,
.hm-page > h1,
.hm-page > h2,
.hm-page > h3,
.hm-page > h4,
.hm-page > h5,
.hm-page > h6,
.hm-page > ul,
.hm-page > ol,
.hm-page > blockquote,
.hm-page > pre,
.hm-page > hr,
.hm-page > .wp-block-paragraph,
.hm-page > .wp-block-heading,
.hm-page > .wp-block-list,
.hm-page > .wp-block-image,
.hm-page > .wp-block-gallery,
.hm-page > .wp-block-quote,
.hm-page > .wp-block-pullquote,
.hm-page > .wp-block-table,
.hm-page > .wp-block-video,
.hm-page > .wp-block-embed,
.hm-page > .wp-block-columns,
.hm-page > .wp-block-buttons,
.hm-page > .wp-block-cover,
.hm-page > .wp-block-spacer,
.hm-page > .wp-block-separator,
.hm-page > .wp-block-group {
    max-width: var(--hm-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--hm-pad);
    padding-right: var(--hm-pad);
}

/* Typography defaults */
.hm-page > p,
.hm-page > .wp-block-paragraph {
    font-size: 17px;
    line-height: 1.7;
    color: var(--hm-ink-2);
    margin-block: 1em;
}
.hm-page > h2,
.hm-page > .wp-block-heading h2,
.hm-page > .wp-block-heading.h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 500;
    letter-spacing: -.02em;
    margin-block: 1.5em .5em;
}
.hm-page > h3,
.hm-page > .wp-block-heading h3,
.hm-page > .wp-block-heading.h3 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 500;
    letter-spacing: -.015em;
    margin-block: 1.5em .5em;
}
.hm-page > ul,
.hm-page > ol {
    margin-block: 1em;
    padding-left: calc(var(--hm-pad) + 24px);
    padding-right: var(--hm-pad);
}
.hm-page > ul li,
.hm-page > ol li {
    margin-block: .5em;
    line-height: 1.6;
}
.hm-page > blockquote {
    border-left: 3px solid var(--hm-accent);
    background: var(--hm-paper);
    padding: 16px 24px;
    margin-block: 24px;
    font-style: italic;
}
.hm-page > .wp-block-image img {
    border-radius: var(--hm-r-md);
}

/* HTML blocks — same container as other blocks */
.hm-page > .wp-block-html {
    max-width: var(--hm-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--hm-pad);
    padding-right: var(--hm-pad);
    margin-block: 1.25em;
}

/* Gutenberg tables — full design system treatment */
.hm-page > .wp-block-table {
    margin-block: 2.5em;
}
.hm-page > .wp-block-table figcaption {
    text-align: center;
    color: var(--hm-mute);
    font-size: 13px;
    margin-top: 12px;
    font-style: italic;
}
.hm-page > .wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-r-lg);
    overflow: hidden;
    font-size: 15px;
    background: var(--hm-white);
}
.hm-page > .wp-block-table thead {
    background: var(--hm-navy);
}
.hm-page > .wp-block-table thead th {
    color: var(--hm-white);
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    border: 0;
}
.hm-page > .wp-block-table tbody td {
    padding: 14px 18px;
    border-top: 1px solid var(--hm-line);
    color: var(--hm-ink-2);
    vertical-align: top;
    line-height: 1.55;
}
.hm-page > .wp-block-table tbody tr:first-child td {
    border-top: 0;
}
.hm-page > .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background: var(--hm-paper);
}
.hm-page > .wp-block-table tbody tr:hover {
    background: var(--hm-paper-2);
}
.hm-page > .wp-block-table strong {
    color: var(--hm-navy);
    font-weight: 600;
}

/* Responsive scroll for tables on mobile */
@media (max-width: 700px) {
    .hm-page > .wp-block-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hm-page > .wp-block-table table {
        min-width: 560px;
        font-size: 14px;
    }
    .hm-page > .wp-block-table thead th,
    .hm-page > .wp-block-table tbody td {
        padding: 12px 14px;
    }
}

/* Tighten paragraph after heading rhythm */
.hm-page > h2 + p,
.hm-page > h2 + .wp-block-paragraph,
.hm-page > .wp-block-heading + p,
.hm-page > h3 + p {
    margin-top: .25em;
}

/* Better list spacing inside .hm-page (more breathing room between bullets) */
.hm-page > ul > li,
.hm-page > ol > li {
    margin-block: .65em;
}
.hm-page > ul > li > strong:first-child,
.hm-page > ol > li > strong:first-child {
    color: var(--hm-navy);
}

/* Lead paragraph: large, slightly muted */
.hm-page > p.hm-lead,
.hm-page > .wp-block-paragraph p.hm-lead {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.6;
    color: var(--hm-ink);
    margin-bottom: 1.5em;
}

/* Wide and full alignments override container */
.hm-page > .alignwide {
    max-width: calc(var(--hm-max) + 200px);
}
.hm-page > .alignfull {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ============================================================
   FIX: Carousel placeholder cards (no thumbnail) - softer
   ============================================================ */
.hm-carousel-card .hm-ph {
    background:
        radial-gradient(circle at 50% 35%, rgba(74,144,226,.12), transparent 65%),
        linear-gradient(180deg, var(--hm-paper-2) 0%, var(--hm-paper) 100%);
    color: transparent; /* Hide any leaked text */
}

/* Better hover on cards */
.hm-carousel-card:hover .hm-ph {
    filter: brightness(0.96);
}

/* Tighter card padding for articles carousel (less giant placeholder) */
.hm-carousel-card .hm-ph[style*=aspect-ratio:16/10],
.hm-carousel-card .hm-ph-photo[style*=16/10] {
    aspect-ratio: 16/9;
}


/* ============================================================
   FIX: Carousels — scroll inside container (clean alignment)
   ============================================================ */
.hm-carousel-section .hm-scroll-x {
    margin-inline: 0;
    padding-bottom: 8px;
}
.hm-carousel-section .hm-carousel-track {
    padding-inline: 0 !important;
    scroll-padding-left: 0;
}
