/* Theme base styles */

/* Generic
   Reset, normalize & box-sizing styles
*/

*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Objects
   Non-cosmetic design patterns including grid and layout classes
*/



/* CSS variables */

:root {
  --column-gap: 2.13%;
  --column-width-multiplier: 8.333;
}

/* Zero out HubSpot's platform-injected span padding — section padding and
   max-w-content / mx-auto on module wrappers handle horizontal spacing */

/* Mobile layout */

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width: 100%;
}

/* Desktop layout */

@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  
    .row-fluid .span1 {
      width: calc(var(--column-width-multiplier) * 1% * 1 - var(--column-gap) * (11 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span2 {
      width: calc(var(--column-width-multiplier) * 1% * 2 - var(--column-gap) * (10 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span3 {
      width: calc(var(--column-width-multiplier) * 1% * 3 - var(--column-gap) * (9 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span4 {
      width: calc(var(--column-width-multiplier) * 1% * 4 - var(--column-gap) * (8 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span5 {
      width: calc(var(--column-width-multiplier) * 1% * 5 - var(--column-gap) * (7 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span6 {
      width: calc(var(--column-width-multiplier) * 1% * 6 - var(--column-gap) * (6 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span7 {
      width: calc(var(--column-width-multiplier) * 1% * 7 - var(--column-gap) * (5 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span8 {
      width: calc(var(--column-width-multiplier) * 1% * 8 - var(--column-gap) * (4 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span9 {
      width: calc(var(--column-width-multiplier) * 1% * 9 - var(--column-gap) * (3 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span10 {
      width: calc(var(--column-width-multiplier) * 1% * 10 - var(--column-gap) * (2 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span11 {
      width: calc(var(--column-width-multiplier) * 1% * 11 - var(--column-gap) * (1 * var(--column-width-multiplier) / 100));
    }
  
}

/* Components
   Structural component styles (no HubL theme vars)
   Theme-variable color overrides live in each file's counterpart
   included from theme-overrides.css
*/

/* =========================================================
   Cards
   Structural styles only (no HubL vars) — included from main.css
   Theme-variable color overrides → components/_modules.css
   ========================================================= */

/* Card grid (default module layout) */

.cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.cards__card {
  align-items: center;
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  max-width: 100%;
  width: 300px;
}

.card__image {
  height: auto;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding: 0.7rem;
}

.card__text {
  width: 100%;
  padding: 0 0.7rem;
}

/* Pricing card */

.card {
  text-align: center;
}

.card--pricing {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  padding: 2.1rem;
}

@media screen and (max-width: 1200px) {
  .card--pricing {
    padding: 2.1rem 0.7rem;
  }
}

@media screen and (max-width: 787px) {
  .card--pricing {
    margin-bottom: 1.4rem;
  }
}

.card__subtitle,
.card__body li {
  font-size: 0.9rem;
}

.card__body ul,
.card__body li {
  padding: 0;
}

.card__body li {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  text-align: left;
}

.card__body svg {
  display: inline-block;
  margin-right: 0.7rem;
  max-width: 20px;
}

/* Pricing card payment overlay */

.card__overlay-background {
  position: fixed;
  z-index: 999999;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.2);
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease 0s, visibility 500ms ease 0s;
  visibility: hidden;
}

.card__overlay-background.open {
  opacity: 1;
  visibility: visible;
}

html.card__payments--overlay-open {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card__overlay {
  position: fixed;
  z-index: 1000000;
  top: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(100% - 50px);
  width: 100vw;
  background-color: #fff;
  transform: translateY(0);
  transition: transform 500ms ease 0s, visibility 500ms ease 0s;
  visibility: hidden;
}

.card__overlay.open {
  transform: translateY(-100%);
  visibility: visible;
}

button.card__overlay-close--top {
  position: absolute;
  top: -40px;
  right: 16px;
  display: flex;
  height: 30px;
  width: 30px;
  padding: 5px;
  border: none;
  border-radius: 50%;
  align-items: center;
  background: #fff;
  outline-color: #33475b;
}

button.card__overlay-close--top svg {
  fill: #7c98b6;
}

button.card__overlay-close--top:hover svg,
button.card__overlay-close--top:focus svg {
  fill: #33475b;
}

@media screen and (min-width: 768px) {
  button.card__overlay-close--top {
    top: 16px;
    right: 16px;
    background: transparent;
  }
}

button.card__overlay-close--bottom {
  position: absolute;
  top: initial;
  right: 16px;
  bottom: 16px;
  padding: 5px;
  border: none;
  background: none;
  color: #33475b;
  font-size: 14px;
  font-weight: normal;
  opacity: 0;
  outline-color: #33475b;
}

button.card__overlay-close--bottom:focus {
  opacity: 1;
}

.card__overlay .payments-iframe-container {
  height: 100%;
  width: 100%;
}

.card__overlay .payments-iframe-container iframe {
  height: 100% !important;
}

/* CTA card */

.cf-cta-card {
  display: flex;
  align-items: stretch;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.cf-cta-card__image-col {
  flex: 0 0 40%;
  max-width: 40%;
}

.cf-cta-card__image-wrap {
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.cf-cta-card__image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.cf-cta-card__content-col {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.cf-cta-card__title {
  color: #2A2C2F;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

.cf-cta-card__description {
  color: #2A2C2F;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.cf-cta-card__link {
  align-items: center;
  color: #2A2C2F;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.375rem;
  margin-top: 0.25rem;
  text-decoration: none;
}

.cf-cta-card__link::after {
  border-right: 2px solid #2A2C2F;
  border-top: 2px solid #2A2C2F;
  content: '';
  display: inline-block;
  height: 0.5rem;
  transform: rotate(45deg);
  width: 0.5rem;
}

.cf-cta-card__link:hover {
  color: #464749 !important;
  font-weight: 600 !important;
}

@media (max-width: 767px) {
  .cf-cta-card {
    flex-direction: column;
  }

  .cf-cta-card__image-col {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .cf-cta-card__image-wrap {
    padding-top: 56.25%; /* 16:9 aspect ratio */
  }

  .cf-cta-card__content-col {
    padding: 1.5rem;
  }
}
/* =========================================================
   Pills / Tags / Badges
   Structural styles only (no HubL vars) — included from main.css
   ========================================================= */

/* Outline pill on light backgrounds (e.g. intro sections) */

.cf-intro-preheading {
  color: #2A2C2F;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  border: 1.5px solid #8F8F8D;
  border-radius: 8px;
  padding: 0.2rem 0.75rem;
  line-height: 1.4;
}
/* =========================================================
   Hero / Intro sections / Share button
   Structural styles only (no HubL vars) — included from main.css
   ========================================================= */

/* Landing page: wider content row for the hero/intro sections */

.body-container--landing-page .dnd-section > .row-fluid {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* Landing page hero: dark tint overlay — only active when background type is Image.
   HubSpot injects background-image as an inline style on the section element,
   so [style*="background-image"] reliably targets image mode only. */

.body-container--landing-page .dnd-section:first-child {
  position: relative;
}

.body-container--landing-page .dnd-section:first-child[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}

.body-container--landing-page .dnd-section:first-child .row-fluid-wrapper {
  position: relative;
  z-index: 1;
}

/* Landing pages: make logo white on transparent header */

.header--no-navigation .header__logo img {
  filter: brightness(0) invert(1);
}

/* -------------------------------------------------------
   Insight Hero Banner
   ------------------------------------------------------- */

.cf-hero-date {
  color: #8F8F8D !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* -------------------------------------------------------
   Share button
   ------------------------------------------------------- */

.cf-share-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.cf-share-btn {
  align-items: center !important;
  background-color: #161618 !important;
  border-radius: 8px !important;
  color: #EFEEEA !important;
  display: inline-flex !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  gap: 0.625rem !important;
  padding: 0.5rem 1.125rem 0.5rem 0.625rem !important;
  text-decoration: none !important;
}

.cf-share-btn:hover {
  background-color: #EFEEEA !important;
  color: #161618 !important;
}

.cf-share-btn__icon {
  align-items: center !important;
  background-color: #EFEEEA !important;
  border-radius: 4px !important;
  color: #161618 !important;
  display: inline-flex !important;
  flex-shrink: 0 !important;
  justify-content: center !important;
  padding: 0.3rem !important;
}

.cf-share-btn:hover .cf-share-btn__icon {
  background-color: #161618 !important;
  color: #EFEEEA !important;
}

.cf-share-tooltip {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background-color: #24c66c;
  color: #ffffff;
  margin-left: 10px;
  padding: 0.3rem 0.65rem;
  transition: opacity 0.2s ease;
}

.cf-share-tooltip.is-visible {
  opacity: 1;
}

/* -------------------------------------------------------
   Introduction Section
   ------------------------------------------------------- */

.cf-intro-title {
  color: #2A2C2F;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2.cf-intro-title:empty {
  display: none;
}

.dnd-row:has(h2.cf-intro-title:empty) {
  display: none;
}

.cf-intro-desc {
  color: #2A2C2F;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* -------------------------------------------------------
   Hero sections – locked background, image ratio, form card
   ------------------------------------------------------- */

/* Lock background on all hero sections — overrides any editor-set inline styles */
.cf-hero-section {
  background-color: #1F1F22 !important;
  background-image: url("https://50554054.fs1.hubspotusercontent-na1.net/hubfs/50554054/raw_assets/public/chatham-financial-new-theme/website-theme/images/cf_header_bg.png") !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  min-height: 540px !important;
  display: flex !important;
  align-items: center !important;
}

.cf-hero-section > .row-fluid {
  align-items: stretch !important;
  gap: 4rem !important;
  justify-content: flex-start !important;
  max-width: 1200px !important;
  width: 100% !important;
}

/* Each half-column gets 50% minus half the gap, matching hero-text-image's gap-16 */
.cf-hero-section > .row-fluid > .span6 {
  width: calc(50% - 2rem) !important;
}

/* Force image column to always render 1:1 square */
.cf-hero-image-col .hs_cos_wrapper_type_linked_image,
.cf-hero-image-col .hs-image-widget {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  width: 100%;
}

.cf-hero-image-col .hs_cos_wrapper_type_linked_image img,
.cf-hero-image-col .hs-image-widget img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* Wrap form column in white so it reads on the dark background */
.cf-hero-section .dnd-row:has(.widget-type-form) {
  background-color: #ffffff !important;
  padding: 24px !important;
}

@media (max-width: 767px) {
  .cf-hero-image-col .hs_cos_wrapper_type_linked_image,
  .cf-hero-image-col .hs-image-widget {
    max-width: 420px;
  }
}
/* =========================================================
   Footer
   Structural styles only (no HubL vars) — included from main.css
   ========================================================= */

.cf-footer {
  background-color: #000000;
}

.cf-footer .dnd-section,
.cf-footer .dnd-section > .row-fluid-wrapper,
.cf-footer .row-fluid {
  background-color: #000000 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cf-footer__inner {
  max-width: 100%;
  padding: 0;
}

.cf-footer__copyright {
  color: #ffffff;
  text-align: right;
  margin: 0;
  font-size: 0.8125rem;
  padding: 1rem 2rem;
}
/* =========================================================
   Social follow
   Structural styles only (no HubL vars) — included from main.css
   Theme-variable color overrides → components/_modules.css
   ========================================================= */

.social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links__icon {
  border-radius: 50%;
  display: inline-flex;
  height: 1.75rem;
  margin: 0 0.35rem;
  position: relative;
  width: 1.75rem;
}

.social-links__icon svg {
  fill: #ffffff;
  height: 0.625rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
}

.social-links__icon:hover svg,
.social-links__icon:focus svg,
.social-links__icon:active svg {
  fill: #ffffff;
}