/* =====================================================================
   Infylon type scale, modelled on infosys.com (desktop values measured at ~1440px):
   Geist for headings/display, Inter for body and UI.
     h1 hero        Geist 300  56px / 1.2  -1px
     section title  Geist 500  32px / 1.2  -1px
     card title     Geist 500  24px / 20px / 18px, 1.2
     label heading  Geist 500  uppercase, +1px
     h4 / promo     Geist 300  24px / 1.2  -1px
     body p         Inter 400  16px / 1.6
     links / CTAs   Inter 500  16px / 1.5
     nav links      Inter 500  14px / 1.5
     fine print     Inter 400  12px / 1.2
   Loaded after style.css on every page. !important is needed because style.css sets
   these sizes in ~60 page-specific rules (some already !important). Large sizes use
   clamp() so they scale down on phones.
   ===================================================================== */

/* ---------- Base ---------- */
body {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Geist', Inter, system-ui, sans-serif !important;
}

/* ---------- h1: hero / page hero (56px, Light) ---------- */
main h1,
.hero h1,
.hero-content h1,
.page-hero h1,
.contact-hero h1 {
    font-size: clamp(2.25rem, 1.35rem + 3.1vw, 3.5rem) !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
}
main h1 span { font-weight: inherit !important; letter-spacing: inherit !important }

/* ---------- Section titles (32px, Medium) ---------- */
.section-title,
main h2,
.explore-topics .section-title,
.compliance-training-page .compliance-section-title,
.compliance-intro-copy h2,
body[data-page="portfolio"] .portfolio-topics-intro h2,
.contact-content h2,
.s-navy.contact-section .contact-content h2,
body[data-page="home"] .s-navy.contact-section .contact-content h2 {
    font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2rem) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
}
.contact-content h2 span { font-weight: inherit !important; letter-spacing: inherit !important }

/* ---------- Card titles ---------- */
/* Large feature cards: 24px */
.skills-topic-card h3,
.compliance-training-page .compliance-program-card h3,
.benchskill-highlight-copy h3,
.tenant-feature-card h3,
.product-suite-card h3 {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}
/* Standard cards: 20px */
main h3,
.service-card h3,
body[data-page="solutions"] .solution-services .service-card h3,
.product-offering h2,
.product-offering h3,
.offering-title,
body[data-page="portfolio"] .portfolio-topic-heading h2,
.compliance-training-page .compliance-card h2,
.compliance-training-page .compliance-card h3 {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}
/* Compact list items (journey steps, AI features, process steps, pillars, flow): 18px */
.home-journey-step h3,
.ai-feature h3,
.step h3,
.pillar h3,
.benchskill-card h3,
.flow-item strong {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
}

/* ---------- h4 / promo line (24px, Light) ---------- */
main h4 {
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
}

/* ---------- Label headings (eyebrows): Geist, uppercase, +1px ---------- */
.eyebrow-light,
.eyebrow-dark,
.explore-topics .eyebrow-light,
.section > .container > .eyebrow-light,
.page-hero .eyebrow-light {
    font-family: 'Geist', Inter, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

/* ---------- Body copy (16px / 1.6) ---------- */
main p,
.lead,
.contact-details > .lead,
footer p {
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.6 !important;
}
/* Fine print */
figcaption,
small,
.stat-label {
    font-size: 12px !important;
    line-height: 1.2 !important;
}
.home-about-visual figcaption strong { font-size: 16px !important; line-height: 1.4 !important }

/* ---------- Links, buttons and CTAs (16px / Medium) ---------- */
.btn-primary,
.btn-ghost,
.contact-section .btn-primary,
.s-navy.contact-section .btn-primary,
body[data-page="home"] .contact-section .btn-primary,
.text-link,
.home-about-link {
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
}

/* ---------- Navigation (14px / Medium) ---------- */
.nav-links a,
.nav-links .nav-dropdown-trigger,
.nav-links .nav-submenu a {
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}
.nav-links .nav-cta { font-size: 14px !important }

/* ---------- Footer: column titles like Infosys (Geist 20px Medium, -1px) ---------- */
.footer-col h3 {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
}
.footer-col a { font-size: 14px !important; line-height: 1.5 !important }

/* ---------- Numbers and badges (Geist Medium) ---------- */
.stat-num {
    font-family: 'Geist', Inter, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -1px !important;
}
.service-number,
.step small,
.home-journey-step > span,
.skills-topic-badge,
.contact-detail-label {
    font-family: 'Geist', Inter, sans-serif !important;
    font-weight: 500 !important;
}

/* ---------- Inner-page banners (page-hero / contact-hero with an animated visual) ----------
   banner-visuals.css styles this copy with .bv-on .bv-copy … !important, so match that specificity. */
.bv-on .bv-copy h1 {
    font-family: 'Geist', Inter, sans-serif !important;
    font-size: clamp(2.25rem, 1.35rem + 3.1vw, 3.5rem) !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
}
.bv-on .bv-copy p {
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}
.bv-on .bv-copy .eyebrow-light {
    font-family: 'Geist', Inter, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
}
/* Banner illustrations: same families as the site, Infosys-style Medium weight for
   titles and numbers. Sizes stay as they are (they are miniature UI mock-ups). */
.bv :is(b, strong, .lg, .bv-av),
.bv .bv-node .t1,
.bv .bv-core-t,
.bv .bv-pnode .lb {
    font-family: 'Geist', Inter, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: normal;
}
.bv :is(small, em, span, p, footer, .bv-msg) { font-family: Inter, system-ui, sans-serif }

/* ---------- Home hero over the video: larger text (this section only) ---------- */
.home-hero .hero-content h1,
.home-hero .hero-content h1 span {
    font-size: clamp(2.75rem, 1.4rem + 4.6vw, 4.5rem) !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -1.5px !important;
}
.home-hero .hero-copy {
    font-size: clamp(1.0625rem, 0.9rem + 0.55vw, 1.25rem) !important;
    line-height: 1.6 !important;
}
.home-hero .hero-actions .btn-primary,
.home-hero .hero-actions .btn-ghost {
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem) !important;
}
@media (max-width: 640px) {
    .home-hero .hero-content { padding-top: 28px }
}
