/* ============================================================
   CONTACT — page-specific styles. Tokens + Figma-measured values.
   Desktop values match Figma 8274:1839; mobile 9363:51.
   ============================================================ */

/* ---------- Announcement bar / nav dropdowns / mobile menu chrome
   (copied from pages/home/page.css — shared chrome support) ---------- */
/* ---------- Announcement bar ---------- */
.bh-announce {
  background: var(--bh-dark);
  padding-block: 9px;
  text-align: center;
}
.bh-announce p {
  font-size: var(--bh-fs-fine);
  font-weight: var(--bh-w-semibold);
  line-height: 17px; /* Figma: announce bar 35px = 9 + 17 + 9 */
  color: rgba(255,255,255,0.92);
}
@media (max-width: 767px) {
  .bh-announce { padding-inline: var(--bh-space-16); }
  .bh-announce p { font-size: 11px; }
}

/* ---------- Dropdown internals ---------- */
.bh-dd-cols { display: flex; gap: var(--bh-space-30); align-items: stretch; }
.bh-dd-col { flex: 1 1 220px; min-width: 0; }
.bh-dd-colhead { display: flex; align-items: center; gap: var(--bh-space-12); margin-bottom: var(--bh-space-12); color: inherit; text-decoration: none; }
.bh-dd-product { display: block; font-family: var(--bh-font-display); font-weight: var(--bh-w-xbold); font-size: 17px; color: var(--bh-ink); }
.bh-dd-sub { display: block; font-size: 12px; font-weight: var(--bh-w-medium); color: var(--bh-body); }
.bh-dd-rule { border: 0; border-top: 1px solid #EFECF3; margin: var(--bh-space-12) 0; }
.bh-dd-tile--lg { width: 40px; height: 40px; }
.bh-dd-tile--xl { width: 64px; height: 64px; }
.bh-dd-item .bh-dd-tile { width: 34px; height: 34px; }
.bh-dd-about .bh-dd-item .bh-dd-tile, .bh-dd-resources .bh-dd-item .bh-dd-tile { width: 40px; height: 40px; }
.bh-dd-item .bh-dd-name { font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-semibold); }
/* keep name + ADD-ON pill on ONE line; long names without a pill may still wrap (review A2) */
.bh-dd-item { display: flex; align-items: center; flex-wrap: nowrap; }
.bh-dd-item:has(.bh-tag--addon) .bh-dd-name { white-space: nowrap; }
.bh-dd-item .bh-tag--addon {
  flex: 0 0 auto; white-space: nowrap;
  /* same chip as the mobile drill rows (review A2) */
  background: #F2F1F4; border: none; border-radius: var(--bh-r-6);
  padding: 3px 7px; font-size: 10px; font-weight: var(--bh-w-medium);
  letter-spacing: 0; text-transform: none; color: #828794;
}
.bh-dd-featured--crm { min-height: 390px; }
.bh-dd-featured-btn { min-width: 150px; height: 44px; padding-block: 0; font-size: 15px; }
.bh-dd-about, .bh-dd-resources {
  border-radius: var(--bh-r-20);   /* was 24 - off the 8/12/16/20 scale */
}
.bh-dd-eyebrow {
  font-size: 11px; font-weight: var(--bh-w-bold); letter-spacing: 1px;
  text-transform: uppercase; color: #99A2B3; margin-bottom: var(--bh-space-12);
}
.bh-dd-eyebrow--white { color: var(--bh-white); letter-spacing: 1.5px; font-size: 12px; }
.bh-dd-eyebrow--pink { color: var(--bh-pink); letter-spacing: 1.5px; font-size: 12px; }
.bh-dd-item { position: relative; }
.bh-dd-item .bh-tag--addon { margin-left: var(--bh-space-8); }

/* Featured cards */
.bh-dd-featured {
  flex: 0 0 340px; border-radius: var(--bh-r-16); overflow: hidden;
  position: relative; display: flex; flex-direction: column;
  padding: var(--bh-space-24); gap: var(--bh-space-12);
}
.bh-dd-featured--crm {
  background: linear-gradient(233.8deg, #4C1D95 14.5%, var(--bh-violet) 85.5%);
  position: relative;
}
.bh-dd-featured--crm::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.10; mix-blend-mode: multiply;
}
.bh-dd-featured--crm > * { position: relative; z-index: 1; }
.bh-dd-featured-title { font-family: var(--bh-font-display); font-weight: var(--bh-w-xbold); font-size: 24px; color: var(--bh-white); }
.bh-dd-featured-title--lg { font-size: 30px; max-width: 380px; }
.bh-dd-featured-desc { font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-medium); color: var(--bh-white-85); }
.bh-dd-featured-btn { background: var(--bh-white); color: #6D28D9; margin-top: auto; align-self: flex-start; padding: var(--bh-space-12) var(--bh-space-24); }
.bh-dd-featured--news, .bh-dd-featured--pillow { padding: 0; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--bh-r-20); }
.bh-dd-featured--pillow { flex: 1 1 auto; }
.bh-dd-featured-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-dd-featured-overlay {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--bh-space-12);
  justify-content: flex-end; height: 100%; min-height: 300px; padding: var(--bh-space-24);
  background: linear-gradient(180deg, rgba(20,13,31,0) 35%, rgba(20,13,31,0.92) 100%);
  border-radius: inherit;
}
.bh-dd-featured--pillow .bh-dd-featured-overlay {
  justify-content: center; align-items: flex-start;
  background: linear-gradient(90deg, rgba(26,15,36,0.94) 0%, rgba(26,15,36,0.72) 42%, rgba(26,15,36,0) 72%);
}
.bh-dd-featured--news .bh-dd-featured-title { font-size: 20px; }
.bh-dd-featured-link { font-size: 13px; font-weight: var(--bh-w-bold); color: var(--bh-pink); }
/* PMI news card — exact Figma spec (8528:2979 / 2981 / 2982 / 2983):
   32px side padding, 35px bottom, eyebrow 16 above the title, title 44 above the link,
   eyebrow + link both #F24476. */
.bh-dd-featured--news .bh-dd-featured-overlay {
  gap: 0; padding: var(--bh-space-24) var(--bh-space-32) 35px;
}
.bh-dd-featured--news .bh-dd-eyebrow--pink { color: var(--bh-pink); margin-bottom: var(--bh-space-16); }
.bh-dd-featured--news .bh-dd-featured-title { margin-bottom: 44px; }
/* the whole card is the hit area; the "Read the story" link carries it */
.bh-dd-featured--news { position: relative; }
.bh-dd-featured--news .bh-dd-featured-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bh-dd-featured--pillow .bh-btn { align-self: flex-start; }
/* nav dropdown: extra air above the Pillow Talk Subscribe button (2026-08-27) */
.bh-dd-featured--pillow .bh-dd-featured-overlay .bh-btn { margin-top: var(--bh-space-12); }

/* ---------- Mobile menu internals ---------- */
.bh-mm-list { padding: var(--bh-space-16) var(--bh-space-24) 0; }
.bh-mm-list a {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; border-bottom: 1px solid #ECECEF;
  font-size: 22px; font-weight: var(--bh-w-semibold); color: var(--bh-ink);
}
.bh-mm-chev { font-size: 24px; font-weight: var(--bh-w-medium); color: var(--bh-body); }
.bh-drill { padding: 0 var(--bh-space-20) var(--bh-space-24); }
.bh-drill-header { margin: 0 calc(-1 * var(--bh-space-20)) var(--bh-space-16); }
.bh-drill-back {
  font-size: 18px; font-weight: var(--bh-w-semibold); color: var(--bh-ink);
  padding-block: var(--bh-space-12);
}
.bh-drill-title { font-size: 26px; font-weight: var(--bh-w-xbold); color: var(--bh-ink); margin-bottom: var(--bh-space-16); }
.bh-drill-group {
  font-size: 12px; font-weight: var(--bh-w-xbold); letter-spacing: 0.6px;
  color: #828794; text-transform: uppercase; margin: var(--bh-space-20) 0 var(--bh-space-12);
}
.bh-drill-row { display: flex; align-items: center; gap: var(--bh-space-12); padding-block: var(--bh-space-8); }
.bh-drill-name { display: block; font-size: 16px; font-weight: var(--bh-w-semibold); color: var(--bh-ink); }
.bh-drill-desc { display: block; font-size: 12.5px; font-weight: var(--bh-w-medium); color: #828794; }
.bh-tag--addon-m { background: #F2F1F4; border-radius: var(--bh-r-6); padding: 3px 7px; font-size: 10px; font-weight: var(--bh-w-medium); color: #828794; }
.bh-drill-card {
  display: block; border-radius: 18px; padding: var(--bh-space-24);
  margin-top: var(--bh-space-24); position: relative; overflow: hidden;
}
.bh-drill-card--crm { background: linear-gradient(90deg, var(--bh-violet) 0%, #6D32D5 100%); }
.bh-drill-card--news { background: var(--bh-dark); }
.bh-drill-card--pillow { background: var(--bh-dark); }
.bh-drill-card-eyebrow { font-size: 11px; font-weight: var(--bh-w-xbold); letter-spacing: 1px; color: rgba(255,255,255,0.85); margin-bottom: var(--bh-space-8); }
.bh-drill-card-eyebrow--pink { color: var(--bh-pink); }
.bh-drill-card-title { display: flex; align-items: center; gap: var(--bh-space-12); font-size: 20px; font-weight: var(--bh-w-xbold); color: var(--bh-white); margin-bottom: var(--bh-space-8); }
.bh-drill-card-desc { font-size: 13.5px; color: var(--bh-white-85); margin-bottom: var(--bh-space-12); }
.bh-drill-card-link { font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-semibold); color: var(--bh-pink); }
.bh-drill-card-btn { padding: 9px var(--bh-space-16); font-size: 13px; border-radius: 10px; display: inline-flex; }

/* ---------- Footer page-level tweaks ---------- */
.bh-footer-tagline { font-size: var(--bh-fs-body-sm); color: rgba(244,242,248,0.75); }
.bh-footer-social { display: flex; gap: var(--bh-space-16); align-items: flex-end; margin-top: var(--bh-space-8); }
/* social glyph art has differing heights — normalise so baselines align (review A6) */
.bh-footer-social a { display: inline-flex; align-items: flex-end; }
/* keep each glyph at its designed size; only align their baselines (review A6) */
.bh-footer-social img { display: block; }
/* the narrow "f" makes the f→YouTube gap read wider than in→f even at equal
   spacing, so YouTube is pulled in optically (review A6) */
.bh-footer-social a:last-child { margin-left: -5px; }
.bh-footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bh-footer-form { display: flex; gap: var(--bh-space-8); align-items: flex-start; flex-wrap: wrap; }
.bh-footer-form .bh-field { width: 220px; }
.bh-footer-input { width: 100%; height: 44px; padding-block: 0; border-radius: var(--bh-r-8); font-size: 13px; }
.bh-footer-signup { height: 44px; min-width: 120px; padding: 0 var(--bh-space-24); border-radius: var(--bh-r-8); font-size: 13px; }
.bh-footer-legal { display: flex; gap: var(--bh-space-30); }
@media (max-width: 767px) {
  .bh-footer-form { width: 100%; }
  .bh-footer-form .bh-field { width: 100%; }
  .bh-footer-input { width: 100%; height: 46px; }
  .bh-footer-signup { width: 100%; height: 46px; }
  .bh-footer-tagline { font-size: 16px; }
  .bh-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile menu / drill headers (QC M25) ---------- */
.bh-mm-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 18px 0 22px;
  border-bottom: 1px solid #ECECEF;
}
.bh-mm-header img { height: 22.8px; width: auto; }
.bh-mm-header-right { display: flex; align-items: center; gap: var(--bh-space-12); }
.bh-mm-cta { padding: 10px var(--bh-space-16); border-radius: 10px; font-size: var(--bh-fs-body-sm); font-weight: var(--bh-w-semibold); }
.bh-mm-close { font-size: 20px; color: var(--bh-ink); padding: var(--bh-space-8); line-height: 1; }
.bh-mobile-menu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ---------- SECTION RHYTHM ----------
   Measured from Figma 8274:1839 (desktop): nav bottom 119 → card top 150 = 31;
   card bottom 890 → footer top 990 = 100.
   Mobile 9363:51: nav bottom 92 → card top 132 = 40; card bottom 663 → footer 703 = 40. */
.contact { padding-top: var(--bh-space-16); /* review H1 */ padding-bottom: var(--bh-space-100); }
@media (max-width: 767px) {
  .contact { padding-top: var(--bh-space-40); padding-bottom: var(--bh-space-40); }
}

/* ---------- Shell ----------
   Figma card is 1312 wide on 64px margins (site grid is 1280/80 — logged as a
   Figma inconsistency; built to the frame). Mobile resolves to 350 on 20px margins. */
.contact-shell {
  width: min(1312px, 100% - 2 * var(--bh-m-page-margin));
  margin-inline: auto;
}

/* ---------- Card ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--bh-r-20);
  overflow: hidden;
  background: var(--bh-white);
  box-shadow: 0px 12px 34px rgba(23,55,113,0.08);
}

/* ---------- Dark panel (left) ---------- */
.contact-panel {
  background: var(--bh-dark);
  padding: 34px 56px; /* review H1 */
}
.contact-eyebrow {
  font-family: var(--bh-font-body);
  font-weight: var(--bh-w-xbold);
  font-size: 16px;
  letter-spacing: var(--bh-ls-eyebrow);
  line-height: 40px;
  text-transform: uppercase;
  color: var(--bh-pink);
}
.contact-h1 {
  font-family: var(--bh-font-display);
  font-weight: var(--bh-w-black);
  font-size: 72px;
  letter-spacing: -2.5px;
  line-height: 80px;
  color: var(--bh-white);
  margin-top: var(--bh-space-24); /* review H1 */
}
.contact-h1-line { display: block; }
.contact-h1-accent { color: var(--bh-pink); }
.contact-sub {
  font-size: 21px;
  line-height: 33px;
  color: var(--bh-lavender);
  max-width: 480px;
  margin-top: var(--bh-space-20); /* review H1 */
}
ul.contact-checks { margin-top: 28px; } /* review H1 */
.contact-checks li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-checks li + li { margin-top: 18px; } /* review H1 */
.contact-check {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bh-pink);
  color: var(--bh-white);
  font-weight: var(--bh-w-xbold);
  font-size: 12px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-check-label {
  font-weight: var(--bh-w-semibold);
  font-size: 18px;
  line-height: 28px;
  color: #F4F2F8;
  max-width: 440px;
}

/* ---------- Form side (right) ---------- */
.contact-form-side { padding: 34px 38px; } /* review H1 */
.contact-form {
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-r-20);
  padding: var(--bh-space-20) var(--bh-space-40); /* balanced inside the box (review) */
}
.contact-row + .contact-row { margin-top: var(--bh-space-16); } /* review H1 */
.contact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bh-space-16);
}
.contact-field { gap: 4px; } /* review H1 */
.contact-field label {
  font-weight: var(--bh-w-bold);
  font-size: 14.5px;
  line-height: 16px;
  color: var(--bh-ink);
}
.contact-input {
  height: 48px;
  padding: 0 var(--bh-space-16);
  background: var(--bh-bg-soft);
  border-radius: var(--bh-r-12);
  font-size: 16px;
  color: var(--bh-ink);
}
.contact-input::placeholder { color: rgba(107,114,128,0.85); }
.contact-select-wrap { position: relative; display: block; }
.contact-select {
  appearance: none; -webkit-appearance: none;
  padding-right: var(--bh-space-40);
  color: rgba(107,114,128,0.85);
  cursor: pointer;
}
.contact-select:valid { color: var(--bh-ink); }
.contact-caret {
  position: absolute; right: var(--bh-space-12); top: 0;
  height: 48px; line-height: 48px;
  font-weight: var(--bh-w-bold); font-size: 16px;
  color: var(--bh-body);
  pointer-events: none;
}
.contact-submit {
  width: 100%;
  height: 54px;
  margin-top: 26px; /* review H1 */
  padding: 0;
  background: var(--bh-pink);
  color: var(--bh-white);
  font-size: 17.5px;
  border-radius: var(--bh-r-btn);
}
.contact-fineprint {
  margin-top: 10px; /* review H1 */
  font-size: var(--bh-fs-fine);
  line-height: 16px;
  text-align: center;
  color: var(--bh-body);
}
.contact-fineprint a { text-decoration: underline; }
.contact-fineprint a:hover { color: var(--bh-pink-deep); }
.contact-success {
  margin-top: var(--bh-space-12);
  font-size: var(--bh-fs-body-sm);
  font-weight: var(--bh-w-semibold);
  text-align: center;
  color: var(--bh-green-deep);
}

/* ============================================================
   MOBILE — Figma 9363:51 (390 frame, 350 card on 20px margins)
   ============================================================ */
@media (max-width: 767px) {
  .contact-card {
    grid-template-columns: 1fr;
    box-shadow: var(--bh-shadow-card);
  }

  .contact-panel { padding: var(--bh-space-30) 26px; }
  .contact-eyebrow { font-size: 12px; letter-spacing: 1.5px; line-height: 16px; }
  .contact-h1 {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 34px;
    margin-top: 14px;
    /* 296 not 298: the browser fits "We’re ready when you" in 297.5px and loses the
       designed break after "when" — 2px of headroom keeps Figma's 2-line wrap. */
    max-width: 296px;
  }
  .contact-h1-line { display: inline; }
  .contact-sub {
    font-size: 16px;
    line-height: 24px;
    max-width: none;
    margin-top: 14px;
  }
  ul.contact-checks { margin-top: 14px; }
  .contact-checks li { gap: var(--bh-space-12); }
  .contact-checks li + li { margin-top: 14px; }
  .contact-check { width: 22px; height: 22px; font-weight: var(--bh-w-bold); }
  .contact-check-label {
    font-weight: var(--bh-w-medium);
    font-size: 16px;
    line-height: 20px;
    color: var(--bh-white);
    max-width: none;
  }

  .contact-form-side { padding: 26px var(--bh-space-24); }
  .contact-form { border: 0; border-radius: 0; padding: 0; }
  .contact-row + .contact-row { margin-top: 14px; }
  .contact-row--split { grid-template-columns: 1fr; gap: 14px; }
  .contact-field label { font-weight: var(--bh-w-semibold); font-size: 12px; }
  .contact-input { height: 46px; padding: 0 14px; }
  .contact-select { padding-right: var(--bh-space-32); }
  .contact-caret {
    right: 14px; height: 46px; line-height: 46px;
    font-weight: var(--bh-w-regular); font-size: 13px;
  }
  .contact-submit { height: 52px; margin-top: 14px; font-size: 15px; }
  .contact-fineprint { font-size: 11.5px; text-align: left; }
  .contact-success { text-align: left; }
}
