/* ═══════════════════════════════════════════════════
   Frankly — Theme CSS (HubSpot CMS)
   Design tokens: DESIGN.md canonical palette only.
   Component styles live in *.module.css files.
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* ── Brand palette ── */
  --teal:        #3f7875;
  --teal-light:  #67bcb7;
  --teal-pale:   #c3e3e1;
  --teal-dark:   #2a5350;

  --terra:       #c97349;
  --terra-dark:  #993e21;
  --terra-pale:  #efdbd3;

  --amber:       #d49b4f;
  --amber-dark:  #c7812a;
  --amber-pale:  #fff3e5;

  --sage:        #618f63;
  --sage-dark:   #4f7752;
  --sage-pale:   #dee7df;

  /* ── Neutrals ── */
  --cream:       #faf8f5;
  --cream-mid:   #f0ede8;
  --charcoal:    #2d2d2d;
  --text:        #1a1a1a;
  --text-sub:    #6b6458;
  --text-muted:  #9b8e82;
  --border:      #e8e3dd;
  --white:       #ffffff;

  /* ── Status ── */
  --error:       #dc2626;
  --error-pale:  #fee2e2;

  /* ── Typography ── */
  --font-brand: 'Poppins', sans-serif;
  --font-body:  'Poppins', sans-serif;
  --font-mono:  'Geist Mono', monospace;

  /* ── Radii ── */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  20px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);

  /* ── Layout ── */
  --max-w:  1100px;
  --gutter: clamp(20px, 6vw, 80px);

  /* Color tokens */
  --fk-teal: #3f7875;
  --fk-teal-light: #67bcb7;
  --fk-teal-pale: #c3e3e1;
  --fk-teal-dark: #2a5350;
  --fk-terra: #c97349;
  --fk-terra-dark: #993e21;
  --fk-terra-pale: #efdbd3;
  --fk-amber: #d49b4f;
  --fk-amber-dark: #c7812a;
  --fk-amber-pale: #eacdab;
  --fk-sage: #618f63;
  --fk-sage-dark: #4f7752;
  --fk-sage-pale: #dee7df;
  --fk-cream: #faf8f5;
  --fk-cream-mid: #f0ede8;
  --fk-charcoal: #2d2d2d;
  --fk-text: #1a1a1a;
  --fk-text-sub: #6b6458;
  --fk-text-muted: #9b8e82;
  --fk-border: #e8e3dd;
  --fk-white: #ffffff;

  /* Orange scale */
  --fk-orange-50: #f2e5d5;
  --fk-orange-100: #eacdab;
  --fk-orange-200: #deb380;
  --fk-orange-300: #d49b4f;
  --fk-orange-400: #c7812a;
  --fk-orange-500: #a36d28;
  --fk-orange-600: #7f5322;
  --fk-orange-700: #563913;
  --fk-orange-800: #2b1c0f;

  /* Red scale */
  --fk-red-50: #efdbd3;
  --fk-red-100: #e3b8a9;
  --fk-red-200: #d89581;
  --fk-red-300: #c97349;
  --fk-red-400: #ba4d26;
  --fk-red-500: #993e21;
  --fk-red-600: #783017;
  --fk-red-700: #501f0c;
  --fk-red-800: #28110c;

  /* Teal scale */
  --fk-teal-50: #e0f1f0;
  --fk-teal-100: #c3e3e1;
  --fk-teal-200: #a5d6d3;
  --fk-teal-300: #85cac6;
  --fk-teal-400: #67bcb7;
  --fk-teal-500: #549a96;
  --fk-teal-600: #3f7875;
  --fk-teal-700: #2a5350;
  --fk-teal-800: #102827;

  /* Green scale */
  --fk-green-50: #dee7df;
  --fk-green-100: #c2d3c2;
  --fk-green-200: #a2bda4;
  --fk-green-300: #80a683;
  --fk-green-400: #618f63;
  --fk-green-500: #4f7752;
  --fk-green-600: #3b5b3f;
  --fk-green-700: #263e27;
  --fk-green-800: #131d13;

  /* Olive scale */
  --fk-olive-50: #e2e4d6;
  --fk-olive-100: #c5c9ad;
  --fk-olive-200: #a8ae84;
  --fk-olive-300: #8b935c;
  --fk-olive-400: #6e7833;
  --fk-olive-500: #59622a;
  --fk-olive-600: #454a1f;
  --fk-olive-700: #2e3216;
  --fk-olive-800: #1a1b0f;

  /* Spacing scale (4px base) */
  --fk-sp-1: 4px;
  --fk-sp-2: 8px;
  --fk-sp-3: 12px;
  --fk-sp-4: 16px;
  --fk-sp-5: 20px;
  --fk-sp-6: 24px;
  --fk-sp-8: 32px;
  --fk-sp-10: 40px;
  --fk-sp-12: 48px;
  --fk-sp-16: 64px;
  --fk-sp-24: 96px;

  /* Border radius */
  --fk-r-sm: 4px;
  --fk-r-md: 8px;
  --fk-r-lg: 12px;
  --fk-r-xl: 16px;
  --fk-r-2xl: 20px;
  --fk-r-full: 9999px;

  /* Typography */
  --fk-text-xs: 11px;
  --fk-text-sm: 13px;
  --fk-text-base: 15px;
  --fk-text-lg: 18px;
  --fk-text-xl: 22px;
  --fk-text-2xl: 28px;
  --fk-text-3xl: 36px;
  --fk-text-4xl: 48px;

  /* Motion */
  --fk-dur-micro: 75ms;
  --fk-dur-short: 150ms;
  --fk-dur-medium: 250ms;

  /* Semantic surfaces */
  --fk-bg-page: var(--fk-cream);
  --fk-bg-surface: var(--fk-white);
  --fk-bg-raised: var(--fk-cream-mid);
  }
  
  [data-theme="dark"] {
    --fk-bg-page: #1c1a17;
    --fk-bg-surface: #252320;
    --fk-bg-raised: #2e2b27;
    --fk-text: #e8e4df;
    --fk-text-sub: #a09a93;
    --fk-text-muted: #6e6860;
    --fk-border: #3a3630;
    --fk-teal: #5a9e9a;
    --fk-teal-dark: #3f7875;
    --fk-terra: #d4865e;
    --fk-amber: #d9a86a;
    --fk-sage: #7aaa7c;
    --fk-charcoal: #1a1816;
  }

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-brand);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* ── Shared layout helpers ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Shared section helpers ── */
.section            { padding-block: clamp(60px, 8vw, 100px); }
.section--warm      { background: var(--cream-mid); }
.section--teal      { background: var(--teal); color: var(--white); }
.section--teal-pale { background: var(--teal-pale); }
.section--terra-pale { background: var(--terra-pale); }
.section--amber-pale { background: var(--amber-pale); }
.section--green      { background: var(--teal); color: var(--white); }
.text-center        { text-align: center; }
.text-center p      { margin-inline: auto; max-width: 62ch; }

/* ── Shared typography ── */
.overline {
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.section--teal .overline { color: var(--teal-light); }
.section--green .overline { color: rgba(255,255,255,.65); }
.section--amber-pale .overline { color: var(--amber-dark); }

/* ── Shared buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
  letter-spacing: .01em;
  text-decoration: none;
  min-height: 44px;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--green          { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--green:hover    { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--terra          { background: var(--terra); color: var(--white); border-color: var(--terra); }
.btn--terra:hover    { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn--outline-white  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline-teal   { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline-teal:hover  { background: var(--teal); color: var(--white); }
.btn--outline-text   { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline-text:hover  { border-color: var(--text); }
.btn--lg             { font-size: 15px; padding: 14px 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn,
  .cta-row button { width: 100%; justify-content: center; min-height: 52px; }
}

/* ── Shared form elements ── */
.fg { margin-bottom: 16px; }
.fg label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 5px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  font-family: inherit;
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b8e82' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63,120,117,.12);
}
.fg input.err   { border-color: var(--error); }
.fg .err-msg    { font-size: 11.5px; color: var(--error); margin-top: 3px; display: none; }
.fg .show-err   { display: block; }

.form-submit {
  width: 100%;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  margin-top: 4px;
  font-family: inherit;
}
.form-submit:hover    { background: var(--teal-dark); }
.form-submit:disabled { opacity: .65; cursor: not-allowed; }

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.55;
}
.form-success { text-align: center; padding: 28px 12px; }
.form-success__icon { font-size: 52px; margin-bottom: 14px; }
.form-success h3 { color: var(--teal); margin-bottom: 6px; }
.form-success p  { color: var(--text-sub); font-size: 14px; }

/* ── Tag pills ── */
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--cream-mid);
  color: var(--text-sub);
}
.tag--teal  { background: var(--teal-pale); color: var(--teal-dark); border-color: var(--teal); }
.tag--amber { background: var(--amber-pale); color: var(--amber-dark); border-color: var(--amber); }
.tag--sage  { background: var(--sage-pale); color: var(--sage-dark); border-color: var(--sage); }
.tag--terra  { background: var(--terra-pale); color: var(--terra-dark); border-color: var(--terra); }
/* Aliases for product content (maps data variants → theme pills) */
.tag--green { background: var(--sage-pale); color: var(--sage-dark); border-color: var(--sage); }
.tag--warn  { background: var(--amber-pale); color: var(--amber-dark); border-color: var(--amber); }

/* ── Scroll reveal (triggered by global script) ── */
@media (prefers-reduced-motion: no-preference) {
  [data-anim],
  #main-content .dnd-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .5s ease, transform .5s ease;
  }
  [data-anim].visible,
  #main-content .dnd-section.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-anim],
  #main-content .dnd-section { opacity: 1; transform: none; }
}

/* ── HubSpot drag-and-drop grid ── */
/*
 * Required by HubSpot dnd_area markup, which emits Bootstrap-2-style
 * class names (.row-fluid, .span1–.span12). These rules mirror the
 * pattern from the official CMS Boilerplate _layout.css.
 */
.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* All spans are full-width on mobile */
.row-fluid [class*="span"] {
  min-height: 1px;
  width: 100%;
}

/* Desktop: fixed proportional widths based on a 12-column grid */
@media (min-width: 768px) {
  .row-fluid { flex-wrap: nowrap; justify-content: space-between; }

  .row-fluid .span1  { width: calc(8.333% * 1  - 1.95%); }
  .row-fluid .span2  { width: calc(8.333% * 2  - 1.78%); }
  .row-fluid .span3  { width: calc(8.333% * 3  - 1.60%); }
  .row-fluid .span4  { width: calc(8.333% * 4  - 1.42%); }
  .row-fluid .span5  { width: calc(8.333% * 5  - 1.25%); }
  .row-fluid .span6  { width: calc(8.333% * 6  - 1.07%); }
  .row-fluid .span7  { width: calc(8.333% * 7  - 0.89%); }
  .row-fluid .span8  { width: calc(8.333% * 8  - 0.71%); }
  .row-fluid .span9  { width: calc(8.333% * 9  - 0.53%); }
  .row-fluid .span10 { width: calc(8.333% * 10 - 0.36%); }
  .row-fluid .span11 { width: calc(8.333% * 11 - 0.18%); }
  .row-fluid .span12 { width: 100%; }
}

/* ── Color utilities ── */
.bg-cream       { background: var(--cream); }
.bg-cream-mid   { background: var(--cream-mid); }
.bg-teal-pale   { background: var(--teal-pale); }
.bg-terra-pale  { background: var(--terra-pale); }
.bg-amber-pale  { background: var(--amber-pale); }
.bg-sage-pale   { background: var(--sage-pale); }
.bg-charcoal    { background: var(--charcoal); color: var(--white); }
.bg-teal        { background: var(--teal); color: var(--white); }
.bg-white       { background: var(--white); }

.text-teal      { color: var(--teal); }
.text-teal-dark { color: var(--teal-dark); }
.text-terra     { color: var(--terra); }
.text-amber     { color: var(--amber-dark); }
.text-sage      { color: var(--sage); }
.text-muted     { color: var(--text-muted); }
.text-sub       { color: var(--text-sub); }
.text-white     { color: var(--white); }

/* ── Accessibility utilities ── */
.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;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 12px;
  z-index: 10000;
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: top 0.1s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--terra);
  outline-offset: 2px;
}

/* ── Person profile grid (advisors page + any future use) ──────────────────
 *
 * Template uses width=4 + offsets 0/4/8 so HubL validates (no overlapping
 * span12s in one section). HubSpot still emits .row-fluid > .span* wrappers;
 * display:contents on row/column wrappers lets each card participate in the
 * grid below. Desktop: 3-column grid; mobile: stacked.
 *
 * Single span in the row: grid-column:1/-1 spans full width.
 *
 * Scoped under .person-profile-grid so nothing bleeds into other sections.
 * ─────────────────────────────────────────────────────────────────────── */
.person-profile-grid {
  padding-block: clamp(40px, 6vw, 80px);
}

.person-profile-grid .row-fluid,
.person-profile-grid .dnd-column,
.person-profile-grid .dnd-row {
  display: contents;
}

/* Override span12 inside the grid so the card is not forced to 100% width */
.person-profile-grid [class*="span"] {
  width: auto;
  max-width: none;
  min-height: 0;
}

/* Desktop: 3-column grid */
@media (min-width: 768px) {
  .person-profile-grid .dnd-section-inner,
  .person-profile-grid > .row-fluid > .dnd-column > .dnd-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  /* Single card spans the full row */
  .person-profile-grid [class*="span"]:only-child {
    grid-column: 1 / -1;
  }
}

/* Mobile: one column */
@media (max-width: 767px) {
  .person-profile-grid .dnd-section-inner,
  .person-profile-grid > .row-fluid > .dnd-column > .dnd-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-inline: var(--gutter);
  }

  .person-profile-grid [class*="span"] {
    width: 100%;
  }
}

.interior-page .interior-dnd {
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .interior-page .interior-dnd {
    padding-inline: 48px;
  }
}

/* ── List styles (interior pages / HubSpot rich text) ── */
ul,
ol,
.hs-richtext ul,
.hs-richtext ol {
  padding-left: 1.5rem;
  margin-block: 12px;
}

li,
.hs-richtext li {
  margin-bottom: 6px;
  line-height: 1.65;
}

ul,
.hs-richtext ul {
  list-style-type: disc;
}

ul ul,
.hs-richtext ul ul {
  list-style-type: circle;
  margin-block: 4px;
}

ul ul ul,
.hs-richtext ul ul ul {
  list-style-type: square;
}

ol,
.hs-richtext ol {
  list-style-type: decimal;
}

ol ol,
.hs-richtext ol ol {
  list-style-type: lower-alpha;
}

ul ::marker,
ol ::marker,
.hs-richtext ul ::marker,
.hs-richtext ol ::marker {
  color: var(--teal);
}
