/*
 * Site typography: Bricolage Grotesque (display), Instrument Sans (body), JetBrains Mono (labels).
 * Loaded after every other stylesheet. Sizes scale fluidly from mobile (375px) to desktop (1440px).
 * Role selectors use !important only to beat the legacy per-section sizes in css/*.css.
 */
:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* role sizes: mobile -> desktop */
  --fs-h1: clamp(38px, 2.44vw + 28.85px, 64px);
  --fs-h2: clamp(28px, 1.315vw + 23.07px, 42px);
  --fs-h3: clamp(20px, 0.376vw + 18.59px, 24px);
  --fs-lead: clamp(17px, 0.282vw + 15.94px, 20px);
  --fs-body: 16px;
  --fs-eyebrow: clamp(12px, 0.094vw + 11.65px, 13px);
  --fs-code: clamp(13px, 0.094vw + 12.65px, 14px);
}

/* ---------- Defaults (any page not listed below) ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
code, kbd, pre, samp { font-family: var(--font-mono); }

/* ---------- Homepage hero: same metrics as the reference site (believintech-website.vercel.app) ---------- */
.hero-section h1,
.hero-section h1 span {
  font-family: var(--font-display) !important;
  font-size: clamp(2.75rem, min(8vw, 11svh), 6.5rem) !important; /* 44px mobile -> 104px max */
  font-weight: 700 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.4px !important;
}
/* rotating word box: fixed width so "We" never moves when the word changes.
   Words in Bricolage 700: Design. 3.18em, Develop. 3.69em, Deliver. 3.11em.
   3.40em is halfway between narrowest and widest, so no word is more than ~0.15em off-centre. */
.hero-section h1 .gradient-text {
  width: 3.4em !important;
  height: 0.92em !important;
  vertical-align: top;
}
/* gradient is clipped to the text box: pad it so descenders (g) and the full stop aren't cut */
.hero-section h1 .gradient-text .word {
  width: auto !important;
  white-space: nowrap;
  padding: 0 0.12em 0.22em 0;
}
/* "High-performance" / "WordPress websites" always on their own lines (widths 8em / 9em) */
.hero-section h1 .small-text {
  display: inline-block;
  max-width: 10em;
}

/* ---------- Hero H1 (inner page banners) ---------- */
h1.bannerTitle,
h1.filters_heading,
.bitp-hero h1 {
  font-family: var(--font-display) !important;
  font-size: var(--fs-h1) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}

/* ---------- Section H2 ---------- */
.star-section h2,
.case-header h2,
.counter-header h3,
.skill-header h2,
.blog-header h2,
h2.sectionHeading,
p.sectionHeading,
h4.ctaBannerTitle,
h2.faq-title,
h2.benefitsTitle,
.bitp-case__text h2 {
  font-family: var(--font-display) !important;
  font-size: var(--fs-h2) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

/* ---------- Card / Sub H3 ---------- */
.casestudy-header h2,
.casestudy-content h3,
.expertise-card-anchor h2,
.cstm-blog .blog-content h3,
.servTtl,
.service-heading,
.sldrTtl,
.ensrTtl,
.benefitName,
h4.subHeading,
.bcs-form__title {
  font-family: var(--font-display) !important;
  font-size: var(--fs-h3) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

/* ---------- Lead / Intro text ---------- */
.hero-section p,
.case-header p,
.counter-header p,
.skill-header p,
.casestudy-header p,
.bannerDesc,
.bitp-hero__lead,
.faq-question span {
  font-family: var(--font-body) !important;
  font-size: var(--fs-lead) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}
.faq-question span { font-weight: 500 !important; }

/* ---------- Body copy ---------- */
.contentCopy,
.expertise-card-anchor p,
.blog-card-para,
.service-para,
.card-text,
.faq-answer p {
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

/* ---------- Eyebrows & tags ---------- */
.cstm-blog .blog-content .flex-between span,
.blog-address span,
.blogDetails,
.workTechStackWrap h6,
.bitp-eyebrow,
.bitp-sub,
.bitp-deliver__label {
  font-family: var(--font-mono) !important;
  font-size: var(--fs-eyebrow) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ---------- Code / metrics / tech stack ---------- */
.expertise-card-anchor li,
.content-tag,
.counter p,
.bitp-niche,
.bitp-frame__bar span,
.bitp-deliver__chips span {
  font-family: var(--font-mono) !important;
  font-size: var(--fs-code) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

/* ---------- LAMF landing page (page-id-2849) ----------
   Its layout CSS lives in a <style> block in the page content with its own sizes.
   These map its text onto the site roles above. Product mockups (meters, alerts,
   chips, figures) and the decorative .ghost text keep their own sizes on purpose. */
.page-id-2849 .lamf .h1 {
  font-family: var(--font-display) !important;
  font-size: var(--fs-h1) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}
.page-id-2849 .lamf .h1 .grad { font: inherit !important; letter-spacing: inherit !important; }

.page-id-2849 .lamf .h2,
.page-id-2849 .lamf .band-t {
  font-family: var(--font-display) !important;
  font-size: var(--fs-h2) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

.page-id-2849 .lamf .h1-sub,
.page-id-2849 .lamf .h3,
.page-id-2849 .lamf .form-title {
  font-family: var(--font-display) !important;
  font-size: var(--fs-h3) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

.page-id-2849 .lamf .lead {
  font-family: var(--font-body) !important;
  font-size: var(--fs-lead) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.page-id-2849 .lamf .p,
.page-id-2849 .lamf .faq-a,
.page-id-2849 .lamf .step-t,
.page-id-2849 .lamf .cmp p:not(.cmp-k),
.page-id-2849 .lamf .aud p:not(.aud-k),
.page-id-2849 .lamf .feature p,
.page-id-2849 .lamf .ticks li span,
.page-id-2849 .lamf .form-sub {
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}
.page-id-2849 .lamf :is(.p, .faq-a, .lead, .cmp p) strong { font-weight: 600 !important; }

.page-id-2849 .lamf .eyebrow,
.page-id-2849 .lamf .strip-label,
.page-id-2849 .lamf .cmp-k,
.page-id-2849 .lamf .aud-k {
  font-family: var(--font-mono) !important;
  font-size: var(--fs-eyebrow) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
