/* ==========================================================================
   Brown Marketing — Knowledge Center
   Standalone stylesheet. Tokens derived from brown-marketing.com (Astra +
   Elementor + Typekit kit "zrp1uly": ivymode display / futura-pt text).
   ========================================================================== */

:root {
  /* Brand palette (sampled from the live site) */
  --bm-brand:        #8c6a5a;   /* primary brown — headings accents, rules, buttons */
  --bm-brand-dark:   #89604d;   /* hover / filled button */
  --bm-brand-light:  #a68270;   /* muted brown */
  --bm-ink:          #4b4f58;   /* body copy */
  --bm-ink-soft:     #69727d;   /* secondary copy */
  --bm-black:        #000000;   /* display headings */
  --bm-white:        #ffffff;
  --bm-cream:        #f8f4f2;   /* page tint */
  --bm-cream-alt:    #efede2;   /* alternating band */
  --bm-blush:        #ebe0da;   /* card / callout */
  --bm-grey:         #dddddd;   /* hairlines */

  /* Type */
  --bm-display: ivymode, "Ivy Mode", Georgia, "Times New Roman", serif;
  --bm-text:    futura-pt, "Futura PT", "Century Gothic", Futura,
                -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Metrics */
  --bm-container: 1265px;
  --bm-measure:   740px;        /* comfortable reading width */
  --bm-radius:    25px;         /* site buttons are pills */
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.bm-kc {
  margin: 0;
  background: var(--bm-white);
  color: var(--bm-ink);
  font-family: var(--bm-text);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------- typography -- */

.bm-kc h1, .bm-kc h2, .bm-kc h3, .bm-kc h4 {
  font-family: var(--bm-display);
  font-weight: 300;
  color: var(--bm-black);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: 0;
}

.bm-kc h1 { font-size: clamp(2.5rem, 5.2vw, 3.75rem); }
.bm-kc h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.bm-kc h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.bm-kc h4 { font-size: 1.25rem; }

.bm-kc p { margin: 0 0 1.35em; }
.bm-kc p:last-child { margin-bottom: 0; }

/* The site's signature label: futura-pt, 12px, 500, 4px tracking, uppercase */
.bm-eyebrow {
  font-family: var(--bm-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bm-brand);
  margin: 0 0 1.25rem;
  display: block;
}

.bm-lede {
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--bm-ink);
}

.bm-kc a { color: var(--bm-brand); text-decoration: none; }
.bm-kc a:hover,
.bm-kc a:focus-visible { color: var(--bm-brand-dark); text-decoration: underline; }

.bm-kc :focus-visible {
  outline: 2px solid var(--bm-brand);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- layout -- */

.bm-container {
  width: 100%;
  max-width: var(--bm-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.bm-narrow { max-width: var(--bm-measure); }

.bm-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.bm-section--tint     { background: var(--bm-cream); }
.bm-section--tint-alt { background: var(--bm-cream-alt); }

.bm-rule {
  width: 60px; height: 1px;
  background: var(--bm-brand);
  border: 0; margin: 0 0 2rem;
}

/* Screen-reader-only utility (matches the theme's skip link pattern) */
.bm-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ buttons -- */

.bm-btn {
  display: inline-block;
  font-family: var(--bm-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 1px solid var(--bm-brand);
  border-radius: var(--bm-radius);
  background: transparent;
  color: var(--bm-brand);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.bm-kc .bm-btn:hover,
.bm-kc .bm-btn:focus-visible {
  background: var(--bm-brand);
  color: var(--bm-white);
  text-decoration: none;
}

.bm-btn--solid { background: var(--bm-brand); color: var(--bm-white); }
.bm-kc .bm-btn--solid:hover { background: var(--bm-brand-dark); border-color: var(--bm-brand-dark); }

.bm-btn--light { border-color: var(--bm-white); color: var(--bm-white); }
.bm-kc .bm-btn--light:hover { background: var(--bm-white); color: var(--bm-brand); }

/* ------------------------------------------------------------- header -- */

.bm-header {
  border-bottom: 1px solid var(--bm-grey);
  background: var(--bm-white);
  position: sticky; top: 0; z-index: 50;
}

.bm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding-block: 14px;
}

.bm-header__logo img { width: 168px; }

.bm-header__nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bm-kc .bm-header__nav a { color: var(--bm-ink); }
.bm-kc .bm-header__nav a:hover { color: var(--bm-brand); text-decoration: none; }
.bm-kc .bm-header__nav a[aria-current="page"] { color: var(--bm-brand); }

/* Below the desktop breakpoint the nav drops to its own scrollable row rather
   than disappearing, so every guide stays reachable without a JS menu. */
@media (max-width: 900px) {
  .bm-header__inner { flex-wrap: wrap; row-gap: 12px; min-height: 0; }
  .bm-header__nav {
    order: 3;
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bm-header__nav::-webkit-scrollbar { display: none; }
  .bm-header__nav a { white-space: nowrap; }
  .bm-header__logo img { width: 138px; }
  .bm-header { position: static; }
}

/* --------------------------------------------------------- breadcrumbs -- */

.bm-breadcrumbs {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bm-ink-soft);
  padding-block: 20px 0;
}
.bm-breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.bm-breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--bm-grey); }

/* ---------------------------------------------------------------- hero -- */

.bm-hero {
  background: var(--bm-cream);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid rgba(140, 106, 90, .18);
}
.bm-hero h1 { margin-bottom: 1.5rem; }
.bm-hero .bm-lede { max-width: var(--bm-measure); color: var(--bm-ink); }

/* --------------------------------------------------------------- prose -- */

.bm-prose { max-width: var(--bm-measure); }
.bm-prose > * + * { margin-top: 0; }

.bm-prose h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bm-grey);
}
.bm-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.bm-prose ul { padding-left: 1.15rem; margin: 0 0 1.35em; }
.bm-prose li { margin-bottom: .5em; }

/* --------------------------------------------------------------- cards -- */

.bm-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  list-style: none; margin: 0; padding: 0;
}

.bm-card {
  display: flex;
  flex-direction: column;
  background: var(--bm-white);
  border: 1px solid var(--bm-grey);
  padding: 34px 32px 32px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bm-card:hover {
  border-color: var(--bm-brand);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(75, 79, 88, .08);
}
.bm-card h3 { font-size: 1.5rem; margin-bottom: .65rem; }
.bm-card p  { font-size: 1rem; color: var(--bm-ink-soft); margin-bottom: 1.6rem; }
.bm-card__more {
  margin-top: auto;
  font-size: 12px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
}
.bm-kc .bm-card a.bm-card__link { color: inherit; }
.bm-kc .bm-card a.bm-card__link:hover { text-decoration: none; }

/* ----------------------------------------------------------------- FAQ -- */

.bm-faq { max-width: var(--bm-measure); }

.bm-faq details {
  border-bottom: 1px solid var(--bm-grey);
  padding: 1.35rem 0;
}
.bm-faq details:first-of-type { border-top: 1px solid var(--bm-grey); }

.bm-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: var(--bm-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--bm-black);
  line-height: 1.3;
}
.bm-faq summary::-webkit-details-marker { display: none; }

.bm-faq summary::after {
  content: "+";
  font-family: var(--bm-text);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--bm-brand);
  flex: none;
  transition: transform .25s ease;
}
.bm-faq details[open] summary::after { content: "\2013"; }
.bm-faq summary:hover { color: var(--bm-brand); }

.bm-faq details > p {
  margin: 1rem 0 0;
  padding-right: 2.5rem;
  color: var(--bm-ink);
  font-size: 1.0625rem;
}

/* ----------------------------------------------------------------- CTA -- */

.bm-cta {
  background: var(--bm-brand);
  color: var(--bm-white);
  text-align: center;
  padding-block: clamp(3.25rem, 7vw, 5rem);
}
.bm-kc .bm-cta h2 { color: var(--bm-white); }
.bm-cta .bm-eyebrow { color: rgba(255, 255, 255, .8); }
.bm-cta p {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, .92);
}

/* --------------------------------------------------- related / see also -- */

.bm-related ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bm-related li a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--bm-grey);
  font-size: 12px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--bm-ink);
  transition: border-color .25s ease, color .25s ease;
}
.bm-kc .bm-related li a:hover {
  border-color: var(--bm-brand);
  color: var(--bm-brand);
  text-decoration: none;
}

/* ------------------------------------------------------------- footer -- */

.bm-footer {
  background: var(--bm-black);
  color: rgba(255, 255, 255, .72);
  padding-block: 56px;
  font-size: 14px;
}
.bm-footer__inner {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
}
.bm-footer__offices {
  display: flex; flex-wrap: wrap; gap: 22px;
  list-style: none; margin: 0 0 18px; padding: 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--bm-white);
}
.bm-footer p { margin: 0; max-width: 460px; }
.bm-kc .bm-footer a { color: var(--bm-white); }
.bm-footer__links {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
}

/* --------------------------------------------------------------- print -- */

@media print {
  .bm-header, .bm-footer, .bm-cta, .bm-related, .bm-breadcrumbs { display: none; }
  .bm-kc { font-size: 12pt; color: #000; }
  .bm-faq details { display: block; }
  .bm-faq summary::after { content: ""; }
}
