/* cache-bust 2025-01-16 */

/* ============================
   FONT IMPORTS
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================
   ROOT VARIABLES
   ============================ */

:root {
  --brand-blue: #064DFF;
  --text: #333;
  --page-bg: #FFF;
  --hero-bg: #F0ECE3; /* fallback when no featured image */
}

/* ============================
   GLOBAL RESET (Tailwind-like)
   ============================ */

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

/* ============================
   TYPOGRAPHY: HEADINGS
   ============================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Serif', serif !important;
  font-style: italic !important;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Proportional scale based on H1 = 74px */
h1 { font-size: 60px; line-height: normal; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.33; }
h4 { font-size: 20px; line-height: 1.4; }
/* h5 { font-size: 24px; line-height: 1.35; }
h6 { font-size: 18px; line-height: 1.4; } */

/* ============================
   TYPOGRAPHY: BODY & TEXT
   ============================ */

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--text);
  text-align: left; /* change to left if you want 1:1 with main site */
  margin: 0 !important;
  background: var(--page-bg);
}

p,
li,
a,
input,
textarea,
button {
  font-family: 'Inter', sans-serif !important;
}

p {
  font-size: 18px;
  /* line-height: 1.7;
  margin-bottom: 16px; */
}

/* ============================
   MOBILE TYPOGRAPHY SCALE
   ============================ */

@media (max-width: 600px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 28px; }
  h4 { font-size: 22px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }
  /* p { font-size: 14px; } */
}

/* ============================
   LAYOUT BASICS
   ============================ */

.container {
  width: min(1400px, 92vw);
  margin: 0 auto;
}

section {
  padding: 64px 0;
  background: #fff;
}

/* ============================
   TOPBAR
   ============================ */

.topbar {
  background: #FFF;
/*  border-bottom: -1px solid rgba(0,0,0,.05);  */
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0; 
  padding-left: 1rem; /* ADDED TO MATCH SITE */
  padding-right: 1rem; /* ADDED TO MATCH SITE */
}

.logo-wrap img {
  height: 36px;
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
  position: relative;
  background: var(--hero-bg);
  min-height: 530px;
  padding: 96px 0;      /* main  spacing */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  width: min(1000px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1; /* keeps text above image layer */
}

/* Background image layer when there IS a featured image */
.hero.hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;

  /* Dynamic vertical position (0–100 → % units) */
  background-position: center calc(var(--hero-bg-pos-y) * 1%);

  background-repeat: no-repeat;

  /* Dynamic opacity */
  opacity: calc(var(--hero-bg-opacity) / 100);

  filter: grayscale(100%) saturate(120%);
  z-index: 0;
}

/* Focus variants (controlled per page via choice field) */
.hero--focus-top.hero--has-image::before {
  background-position: center top;
}
.hero--focus-center.hero--has-image::before {
  background-position: center center;
}
.hero--focus-bottom.hero--has-image::before {
  background-position: center bottom;
}

/* If hero is used as <section class="hero">, override padding if needed */
section.hero {
  padding: 0;
  background: var(--hero-bg);
  min-height: 537px; /* adjusted from 530 */
  display: flex;
  align-items: center;
  margin-top: -4px;
}

@media (max-width: 600px) {
  .hero {
    min-height: 400px;
    padding: 48px 0;
    height: auto !important;
  }

  .hero-inner {
    padding: 0 20px;
  }
}

/* ============================
   BUTTONS
   ============================ */

.buttons {
  display: flex;
  gap: 12px;
  border-radius: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-primary,
.btn-secondary {
  display: flex;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary {
  background: #064DFF;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
}

.hs-button {
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;   /* match your other buttons */
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hs-button:hover,
.hs-button:focus,
.hs-button:active {
  color: #fff;
  text-decoration: none;
}

/* ============================
   BLUE GRADIENT CTA SECTION
   ============================ */

.blue-gradient {
  --tw-gradient-from: hsl(215 40% 20%);
  --tw-gradient-via:  hsl(215 60% 45%);
  --tw-gradient-to:   hsl(215 80% 50%);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to);
  background-image: linear-gradient(to right, var(--tw-gradient-stops));

  display: flex;
  align-items: center;
  padding-bottom: 5rem;
}

.blue-gradient .container {
  color: #fff;
  font-weight: 400;
  text-align: center; /* added as fix */
}

@media (max-width: 900px) {
  .blue-gradient .cta-heading,
  .blue-gradient .cta-subtext {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .blue-gradient .cta-button {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* CTA heading (Instrument Serif) */
.cta-heading {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
/*   margin-bottom: 16px; */
  color: #fff;
}

/* Subtext */
.cta-subtext {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.625;
}

/* Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  color: #064DFF;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
  background: #064DFF;
  color: #fff;
}

/* ============================
   FOOTER: NAVIGATION AREA
   ============================ */

.footer-nav {
  background: #F0ECE3;
  padding: 0;
}

.footer-nav .container {
  text-align: left;
  padding-top: 3rem;  /*  py-12 */
  padding-bottom: 2rem; /* slightly tighter */
  padding-left: 1rem;  /* ADDED TO MATCH SITE */
  padding-right: 1rem; /* ADDED TO MATCH SITE */
}

/* Grid = brand (2fr) + 4 equal columns */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem; /* gap-8 */
  align-items: flex-start;
}

/* Footer brand block */
.footer-brand img {
  width: 88px;
  height: 24px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;  /* 14px */
  line-height: 1.5;
  color: #000000b3;     /* black/70 */
/*   margin-top: 0.5rem; */
/*   margin-bottom: 1rem; */
}

/* Footer column titles (e.g., Company / Services / Resources) */
.footer-col-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: normal;
  margin: 0 0 1rem 0;
  color: #000;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.5rem 0; /* space-y-2 */
}

.footer-links a {
  text-decoration: none;
  color: #333;
}

/* Social icons row */
.footer-social {
  display: flex;
  gap: 1rem; /* gap-4 */
  margin-top: 1rem;
}

.footer-social a {
  color: #0009;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #064DFF; /* brand blue highlight */
}

/* ============================
   FOOTER: OUTER WRAPPER + LOWER
   ============================ */

footer {
  background: #F0ECE3;
  color: #0009;
}

footer .container {
  position: relative;
/*  padding-top: 2rem; */
}

footer .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #0003;
}

/* Copyright row */
footer .footer-lower {
  padding-top: 2rem;   /* pt-8 */
  margin-bottom: 0 !important;
}

footer .footer-lower p {
  text-align: center;
  color: #00000099;      /* black/60 */
  font-size: 0.875rem;   /* 14px */
  margin: 0; 
  line-height: 1.25rem;  /* your requested line-height */
  padding-bottom: 2rem;
}

/* ============================
   FOOTER: RESPONSIVE
   ============================ */

/* Tablet (≤900px): brand full width, then 2 columns */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* 2-column grid */
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2; /* full width */
  }
}

/* Mobile (≤600px): 2 column stack */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2; /* keep brand full width above the 2 columns */
  }
}

  .footer-col-title,
  .footer-brand p,
  .footer-col ul,
  .footer-col li,
  .footer-col a {
    font-size: 14px; 
  }
}
  /* ============================
   HubSpot DnD / Bootstrap-style grid
   Makes .row-fluid + .span* behave like columns again
   ============================ */

.container-fluid {
  width: 100%;
  margin: 0 auto;
  display: grid; /* test */
}

/* Row wrapper */
.row-fluid-wrapper {
  width: 100%;
}

/* Row base */
.row-fluid {
  width: 100%;
  /* clearfix */
}

.row-fluid::before,
.row-fluid::after {
  content: "";
  display: table;
}

.row-fluid::after {
  clear: both;
}

/* Columns: anything with span* inside a row becomes a floated column */
.row-fluid [class*="span"] {
  float: left;
  min-height: 1px;
  box-sizing: border-box;
  padding-left: 5px;   /* simple gutter */
  padding-right: 5px;
}

/* Optional: compensate gutter with negative margins on the row */
.row-fluid {
  margin-left: 0px;
  margin-right: 0px;
}

/* 12-column grid widths (desktop) */
.row-fluid .span12 { width: 100%; }
.row-fluid .span11 { width: 91.6667%; }
.row-fluid .span10 { width: 83.3333%; }
.row-fluid .span9  { width: 75%; }
.row-fluid .span8  { width: 66.6667%; }
.row-fluid .span7  { width: 58.3333%; }
.row-fluid .span6  { width: 50%; }
.row-fluid .span5  { width: 41.6667%; }
.row-fluid .span4  { width: 33.3333%; }
.row-fluid .span3  { width: 25%; }
.row-fluid .span2  { width: 16.6667%; }
.row-fluid .span1  { width: 8.3333%; }

/* Mobile: stack all columns */
@media (max-width: 900px) {
  .row-fluid [class*="span"] {
    float: none;
    width: 100%;
  }

  .row-fluid {
    margin-left: 0;
    margin-right: 0;
  }

  .row-fluid [class*="span"] {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .blue-gradient .row-fluid [class*="span"] {
    text-align: center;
  }
}