/* TreaSolution brand - v1.2.7 */
:root {
  --ts-navy: #183888;
  --ts-orange: #F26722;
  --ts-teal: #00B5E2;
  --ts-ink: #1d2540;
  --ts-muted: #3b4566;
  --ts-bg: #f3f6fb;
  --ts-bg-2: #eef2f9;
  --ts-radius: 14px;
  --ts-shadow: 0 6px 22px rgba(24,56,136,0.10);
  --ts-max: 1140px;
  --ts-gap: 28px;
}

html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ts-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Header */
#site-header {
  border-bottom: 1px solid #e6ebf5;
  background: #fff !important;
}
#site-header .site-logo img,
#site-header .custom-logo {
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
}
#site-header .site-navigation a {
  font-weight: 600;
  font-size: 14px;
  color: var(--ts-navy) !important;
}
#site-header .site-navigation .current-menu-item > a,
#site-header .site-navigation a:hover {
  color: var(--ts-orange) !important;
}
#site-header .site-description { display: none !important; }

/* Footer (custom .ts-site-footer) */
.ts-site-footer {
  background: var(--ts-navy);
  color: #fff;
  padding: 36px 24px 28px;
}
.ts-site-footer-inner {
  max-width: var(--ts-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.ts-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.ts-footer-brand img {
  height: 44px;
  width: auto;
  display: block;
}
.ts-footer-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: 320px;
}
.ts-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.ts-footer-nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.ts-footer-nav a:hover { color: var(--ts-teal) !important; }
.ts-footer-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.ts-footer-meta a { color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Hide Hello default footer chrome when custom footer present */
body.ts-has-custom-footer #site-footer { display: none !important; }

/* Cards */
.ts-card-fill,
.e-con.ts-summit-card,
.e-con.ts-format-card,
.e-con.ts-path-card,
.e-con.ts-testimonial-card,
.e-con.ts-module-card,
.e-con.ts-pricing-card {
  height: 100% !important;
  box-sizing: border-box;
}
.ts-card-col,
.ts-card-col.e-con {
  align-self: stretch !important;
  height: auto !important;
}
.ts-card-col > .e-con {
  height: 100% !important;
}

/* Summit logo area */
.ts-logo-area {
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}
.ts-logo-area img,
.ts-logo-img img {
  max-height: 110px !important;
  max-width: 78% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

/* Push card CTAs to bottom */
.ts-card-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
.ts-summit-card .elementor-widget-button,
.ts-path-card .elementor-widget-button,
.ts-card-cta {
  margin-top: auto !important;
  padding-top: 12px;
}
.ts-summit-card .ts-card-cta,
.ts-summit-card .elementor-widget-button {
  margin-left: 28px;
  margin-right: 28px;
  margin-bottom: 4px;
}

/* Testimonials equal height + gap */
.ts-testimonial-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100%;
}
.ts-testimonial-card .ts-quote-name,
.ts-testimonial-card p:last-child {
  margin-top: auto !important;
  padding-top: 16px;
}

/* Module tiles */
/* Module curriculum grid on /treasury-boot-camp/ */
.e-con.ts-module-grid,
.elementor-element.ts-module-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch;
  box-sizing: border-box;
}
/* Elementor nested wrappers should not shrink/indent the grid */
.e-con.ts-module-grid > .e-con,
.elementor-element.ts-module-grid > .e-con {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  align-self: stretch !important;
}
@media (max-width: 767px) {
  .e-con.ts-module-grid,
  .elementor-element.ts-module-grid {
    grid-template-columns: 1fr;
    gap: 16px !important;
  }
}
.ts-module-card,
.e-con.ts-module-card {
  min-height: 64px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.ts-module-card .elementor-widget-text-editor,
.ts-module-card .elementor-widget-container,
.ts-module-card .elementor-text-editor {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.ts-module-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
}
.ts-module-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #183888;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, system-ui, sans-serif;
}
.ts-module-name,
.ts-module-label {
  flex: 1 1 auto;
  margin: 0;
  font-weight: 600;
  color: #183888;
  line-height: 1.35;
  text-align: left;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
}

/* Pricing sticky on desktop */
@media (min-width: 1024px) {
  .ts-pricing-card {
    position: sticky;
    top: 96px;
  }
}

/* Type scale helpers inside Elementor */
.elementor-widget-heading h1 { letter-spacing: -0.02em; }
.elementor-widget-heading h2 { letter-spacing: -0.015em; }

/* Buttons never navy-on-navy: safety net for navy sections */
.elementor-section[style*="183888"] .elementor-button,
.e-con[style*="background-color:#183888"] .elementor-button,
.e-con.e-parent[data-settings*="183888"] .elementor-button {
  /* handled per-button; keep utility */
}

/* Checklist polish */
.ts-check li { line-height: 1.5; }

/* Contact form */
.ts-contact-form input,
.ts-contact-form select,
.ts-contact-form textarea {
  border-radius: 8px !important;
  border-color: #d5dbeb !important;
}
.wpforms-submit.ts-btn-orange,
button.wpforms-submit {
  background: var(--ts-orange) !important;
  border-color: var(--ts-orange) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-family: Montserrat, sans-serif !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
}

/* Layout safety: force key rows horizontal on desktop */
@media (min-width: 768px) {
  .elementor-element.e-con.e-flex[data-id="f05c8cc"],
  .elementor-element.e-con.e-flex[data-id="8c556cc"],
  .elementor-element.e-con.e-flex[data-id="5f2f2a0"],
  .elementor-element.e-con.e-flex[data-id="0456141"],
  .elementor-element.e-con.e-flex[data-id="e9fb6b1"],
  .elementor-element.e-con.e-flex[data-id="815cf33"],
  .elementor-element.e-con.e-flex[data-id="8718c7a"],
  .elementor-element.e-con.e-flex[data-id="eab0d50"] {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }
  .elementor-element.e-con.e-flex[data-id="f05c8cc"] > .elementor-widget-button {
    width: auto !important;
    max-width: max-content;
    flex: 0 0 auto;
  }
  .elementor-element.e-con.e-flex[data-id="8c556cc"] > .e-con,
  .elementor-element.e-con.e-flex[data-id="5f2f2a0"] > .e-con,
  .elementor-element.e-con.e-flex[data-id="815cf33"] > .e-con,
  .elementor-element.e-con.e-flex[data-id="8718c7a"] > .e-con,
  .elementor-element.e-con.e-flex[data-id="eab0d50"] > .e-con,
  .elementor-element.e-con.e-flex[data-id="e9fb6b1"] > .e-con {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
    align-self: stretch !important;
  }
  .elementor-element.e-con.e-flex[data-id="0456141"] > .e-con[data-id="9fe2159"] {
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
  }
  .elementor-element.e-con.e-flex[data-id="0456141"] > .e-con[data-id="79c0d0d"] {
    flex: 1 1 0 !important;
    min-width: 0;
  }
  .elementor-element[data-id="e183303"] img {
    max-width: 300px !important;
    width: 100% !important;
    height: auto !important;
  }
}
@media (max-width: 767px) {
  .elementor-element.e-con.e-flex[data-id="f05c8cc"],
  .elementor-element.e-con.e-flex[data-id="8c556cc"],
  .elementor-element.e-con.e-flex[data-id="5f2f2a0"],
  .elementor-element.e-con.e-flex[data-id="0456141"],
  .elementor-element.e-con.e-flex[data-id="e9fb6b1"],
  .elementor-element.e-con.e-flex[data-id="815cf33"],
  .elementor-element.e-con.e-flex[data-id="8718c7a"],
  .elementor-element.e-con.e-flex[data-id="eab0d50"] {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }
  .ts-site-footer-inner { flex-direction: column; align-items: flex-start; }
  .ts-logo-area { height: 140px !important; min-height: 140px !important; max-height: 140px !important; }
}

/* Elementor widget button width safety */
.elementor-widget-button .elementor-button {
  font-family: Montserrat, sans-serif !important;
}

/* Logo never crops the bulb base */
#site-header .site-logo,
#site-header .custom-logo-link {
  overflow: visible !important;
  display: flex;
  align-items: center;
}
#site-header .site-logo img,
#site-header .custom-logo {
  max-height: 48px !important;
  height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  padding: 2px 0 !important;
}
.ts-footer-brand img {
  height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  max-height: 48px;
}


/* Kill Hello Elementor forced min-height that creates huge empty white */
.site-header + .elementor,
body .site-header + .elementor {
  min-height: 0 !important;
}

/* Dan photo on home */
.ts-dan-row .elementor-widget-image img,
.elementor-element[data-id="hm_dan_img"] img {
  border-radius: 50% !important;
  border: 8px solid var(--ts-teal) !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1;
  max-width: 300px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* Contact link cards */
.ts-link-groups { margin-top: 8px; }
.ts-link-group { margin-top: 18px; }
.ts-link-group:first-child { margin-top: 8px; }
.ts-link-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ts-orange);
  margin: 0 0 10px;
}
.ts-link-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ts-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-left: 4px solid var(--ts-teal);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
  color: var(--ts-ink) !important;
  box-shadow: 0 4px 14px rgba(24,56,136,0.06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ts-link-card:hover {
  border-color: var(--ts-teal);
  border-left-color: var(--ts-orange);
  box-shadow: 0 6px 18px rgba(24,56,136,0.12);
  transform: translateY(-1px);
}
.ts-link-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ts-link-card-title {
  font-weight: 700;
  color: var(--ts-navy);
  font-size: 15px;
  line-height: 1.3;
}
.ts-link-card-meta {
  font-size: 13px;
  color: #56607d;
  font-weight: 600;
  line-height: 1.35;
}
.ts-link-card-arrow {
  flex-shrink: 0;
  color: var(--ts-orange);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* Contact + summit rows on home */
@media (min-width: 768px) {
  .elementor-element.e-con.e-flex[data-id="e9fb6b1"],
  .elementor-element.e-con.e-flex.ts-contact-row,
  .elementor-element.e-con.e-flex.ts-summit-row,
  .elementor-element.e-con.e-flex.ts-dan-row,
  .elementor-element.e-con.e-flex[data-id="hm_srow1"],
  .elementor-element.e-con.e-flex[data-id="hm_srow2"],
  .elementor-element.e-con.e-flex[data-id="hm_dan_row"] {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }
  .elementor-element.e-con.e-flex.ts-summit-row > .e-con,
  .elementor-element.e-con.e-flex[data-id="hm_srow1"] > .e-con,
  .elementor-element.e-con.e-flex[data-id="hm_srow2"] > .e-con {
    flex: 1 1 0 !important;
    min-width: 0;
    align-self: stretch !important;
  }
  .elementor-element.e-con.e-flex[data-id="hm_dan_row"] > .e-con[data-id="hm_dan_imgc"] {
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
  }
  .elementor-element.e-con.e-flex[data-id="hm_dan_row"] > .e-con[data-id="hm_dan_txt"] {
    flex: 1 1 0 !important;
    min-width: 0;
  }
}
@media (max-width: 767px) {
  .elementor-element.e-con.e-flex.ts-contact-row,
  .elementor-element.e-con.e-flex.ts-summit-row,
  .elementor-element.e-con.e-flex.ts-dan-row,
  .elementor-element.e-con.e-flex[data-id="hm_srow1"],
  .elementor-element.e-con.e-flex[data-id="hm_srow2"],
  .elementor-element.e-con.e-flex[data-id="hm_dan_row"],
  .elementor-element.e-con.e-flex[data-id="e9fb6b1"] {
    flex-direction: column !important;
  }
  .ts-dan-row .elementor-widget-image img,
  .elementor-element[data-id="hm_dan_img"] img {
    max-width: 180px !important;
  }
}
