/* Public brand typography. Ranade and Stardom by Indian Type Foundry / Fontshare.
   Original webfonts are unmodified;
   each family's original FFL.txt remains alongside its WOFF2 file. */
@font-face {
  font-family: 'Ranade';
  src: url('../assets/fonts/ranade/Ranade-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: 'Stardom';
  src: url('../assets/fonts/stardom/Stardom-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.public-page {
  --brand-font: 'Ranade', Inter, sans-serif;
  --brand-numeral-font: 'Stardom', Georgia, serif;
  --brand-weight-heading: 600;
  --brand-weight-support: 500;
  --brand-weight-body: 400;
  --type-h1-size: 3.9rem;
  --type-h2-size: 2.65rem;
  --type-h3-size: 1.375rem;
  --type-h1-leading: 1.12;
  --type-h2-leading: 1.2;
  --type-h3-leading: 1.35;
}

.public-page:not(:lang(bn)) {
  --ff-heading: var(--brand-font);
  --ff-body: var(--brand-font);
  font-family: var(--brand-font);
  font-weight: var(--brand-weight-body);
  letter-spacing: 0;
}

/* Keep the approved shell's inherited font variables exactly as before. */
.public-page .waterline-header {
  --ff-body: 'Inter', sans-serif;
  --ff-heading: 'Playfair Display', serif;
  font-family: var(--ff-body);
}

/* These role rules intentionally outrank legacy inline type declarations.
   Layout, color, motion, and signed inline style blocks stay untouched. */
.public-page:not(:lang(bn)) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--brand-font) !important;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0 !important;
}

.public-page:not(:lang(bn)) :is(h1, h2) {
  font-weight: var(--brand-weight-heading) !important;
}

.public-page:not(:lang(bn)) h1 {
  font-size: var(--type-h1-size) !important;
  line-height: var(--type-h1-leading) !important;
}

.public-page:not(:lang(bn)) h2:not(.stat-number) {
  font-size: var(--type-h2-size) !important;
  line-height: var(--type-h2-leading) !important;
}

.public-page:not(:lang(bn)) :is(h3, h4, h5, h6) {
  font-weight: var(--brand-weight-support) !important;
}

.public-page:not(:lang(bn)) h3 {
  font-size: var(--type-h3-size) !important;
  line-height: var(--type-h3-leading) !important;
}

.public-page:not(:lang(bn)) :is(p, input, textarea, select, option):not(:where(.waterline-header *)) {
  font-family: var(--brand-font) !important;
  font-weight: var(--brand-weight-body) !important;
}

.public-page:not(:lang(bn)) :is(button, .btn, a, label, legend, summary, small, figcaption, strong):not(:where(.waterline-header *)) {
  font-family: var(--brand-font) !important;
  font-weight: var(--brand-weight-support) !important;
  letter-spacing: 0 !important;
}

.public-page:not(:lang(bn)) :is(.type-support, .badge, [class*='eyebrow'], [class$='-meta'], [class$='__category'], .about-editorial-label, .about-hero-focal strong, .about-leadership-role, .about-credentials-type, .about-overview-facts dd, .about-strengths-facts dd, .services-category__eyebrow, .services-category__count, .services-category__toggle, .faq-chip, .faq-number, .faq-question-text, .faq-hero-card > p, .contact-direct-list dt, .contact-location-index, .modal-client, #portfolioResultCount, .dcci-credential-name, .dcci-credential-meta, [data-i18n^='stat_']):not(:where(.waterline-header *)) {
  font-family: var(--brand-font) !important;
  font-weight: var(--brand-weight-support) !important;
  letter-spacing: 0 !important;
}

/* Decorative figures only; the approved Core Values ghost numerals are retained. */
.public-page:not(:lang(bn)) :is(.stat-number, .about-hero-focal > span, .about-overview-facts dt, .about-strengths-facts dt, .about-values-index, .faq-hero-card > strong) {
  font-family: var(--brand-numeral-font) !important;
  font-weight: 400 !important;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0 !important;
}

/* Compact tools and supporting headings keep their own established hierarchy. */
.public-page.services-page { --type-h1-size: 3rem; }
.public-page .services-catalogue-lead,
.public-page .services-catalogue-cta { --type-h2-size: 1.375rem; }
.public-page .services-noscript { --type-h2-size: 1.5rem; --type-h3-size: 1rem; }
.public-page .faq-intro-panel { --type-h2-size: 1.875rem; }
.public-page .faq-cta { --type-h2-size: 2rem; }
.public-page .contact-direct,
.public-page .contact-form-header { --type-h2-size: 2.25rem; }
.public-page #projectModal { --type-h2-size: 2.25rem; }
.public-page .about-certificate-dialog { --type-h2-size: 1.1rem; --type-h2-leading: 1.3; }
.public-page:not(:lang(bn)) :is(#projectModal, .about-certificate-dialog) h2 { font-weight: var(--brand-weight-support) !important; }

/* The approved About type scale is expressed through the same shared tokens. */
.public-page .about-purpose-entry { --type-h3-size: 1.875rem; --type-h3-leading: 1.3; }
.public-page .about-delivery-stage,
.public-page .about-offices { --type-h3-size: 1.2rem; --type-h3-leading: 1.4; }
.public-page .about-values-copy { --type-h3-size: 2.5rem; --type-h3-leading: 1.25; }
.public-page .about-credentials-detail { --type-h3-size: 1.3rem; --type-h3-leading: 1.45; }
.public-page .about-leadership-primary { --type-h3-size: 2.65rem; --type-h3-leading: 1.2; }
.public-page .about-leadership-secondary { --type-h3-size: 2.05rem; --type-h3-leading: 1.25; }
.public-page:not(:lang(bn)) .about-values-copy p { font-size: 1.25rem; line-height: 1.7; }

@media (max-width: 1024px) {
  .public-page { --type-h1-size: 3.3rem; --type-h2-size: 2.35rem; --type-h3-size: 1.3rem; }
  .public-page.services-page { --type-h1-size: 2.5rem; }
  .public-page .about-values-copy { --type-h3-size: 2.2rem; }
  .public-page .about-leadership-primary { --type-h3-size: 2.35rem; }
  .public-page .about-leadership-secondary { --type-h3-size: 1.875rem; }
}

@media (max-width: 820px) {
  .public-page { --type-h1-size: 3rem; }
  .public-page.services-page { --type-h1-size: 2.5rem; }
}

@media (max-width: 540px) {
  .public-page { --type-h1-size: 2.25rem; --type-h2-size: 1.9rem; --type-h3-size: 1.2rem; --type-h1-leading: 1.16; }
  .public-page.services-page { --type-h1-size: 2.125rem; }
  .public-page .services-catalogue-lead { --type-h2-size: 1.25rem; }
  .public-page .faq-intro-panel,
  .public-page .faq-cta { --type-h2-size: 1.6rem; }
  .public-page .contact-direct,
  .public-page .contact-form-header,
  .public-page #projectModal { --type-h2-size: 1.875rem; }
  .public-page .about-purpose-entry { --type-h3-size: 1.6rem; }
  .public-page .about-values-copy { --type-h3-size: 1.875rem; }
  .public-page .about-leadership-primary { --type-h3-size: 2rem; }
  .public-page .about-leadership-secondary { --type-h3-size: 1.65rem; }
  .public-page:not(:lang(bn)) .about-values-copy p { font-size: 1.125rem; }
}
