/* ============================================================
   assets/css/typography.css
   Site-wide type scale — loaded from header.php on every page.

   Headings (h1–h6) are forced to one size/weight per level.
   Body text gets a 16px default; text that a page deliberately
   makes smaller (badges, meta, prices) keeps its own class but
   is snapped to the standard steps below.

   Scale (desktop / mobile):
     h1 42 / 30   700      h4 17 / 16   600
     h2 32 / 25   700      h5 15        600
     h3 19 / 17   600      h6 14        600
     body 16 / 15  ·  small 14  ·  tiny 12
   Header, footer, mega menu, quote modal and chatbot have their
   own compact styles and are excluded.
   ============================================================ */

:root{
    --fs-h1:42px; --fs-h2:32px; --fs-h3:19px; --fs-h4:17px; --fs-h5:15px; --fs-h6:14px;
    --fs-body:16px; --fs-small:14px; --fs-tiny:12px;
    --font-head:'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body:system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (max-width:767px){
    :root{ --fs-h1:30px; --fs-h2:25px; --fs-h3:17px; --fs-h4:16px; --fs-body:15px; }
}

/* ── One font for the whole site ── */
body{ font-family:var(--font-body) !important; }

/* ── Headings ── */
:is(h1,h2,h3,h4,h5,h6):not(header *):not(footer *):not(#quoteModal *):not(.mega-panel *):not([id^="itc-chat"] *){
    font-family:var(--font-head) !important;
    letter-spacing:-.005em !important;
}
h1:not(header *):not(footer *):not(#quoteModal *){ font-size:var(--fs-h1) !important; font-weight:700 !important; line-height:1.2 !important; }
h2:not(header *):not(footer *):not(#quoteModal *){ font-size:var(--fs-h2) !important; font-weight:700 !important; line-height:1.25 !important; }
h3:not(header *):not(footer *):not(#quoteModal *):not(.mega-panel *){ font-size:var(--fs-h3) !important; font-weight:600 !important; line-height:1.35 !important; }
h4:not(header *):not(footer *):not(#quoteModal *){ font-size:var(--fs-h4) !important; font-weight:600 !important; line-height:1.4 !important; }
h5:not(header *):not(footer *):not(#quoteModal *){ font-size:var(--fs-h5) !important; font-weight:600 !important; line-height:1.4 !important; }
h6:not(header *):not(footer *):not(#quoteModal *){ font-size:var(--fs-h6) !important; font-weight:600 !important; line-height:1.4 !important; }

/* ── Running text ──
   Element-level default: classes/inline styles that set their own
   size still apply, then get snapped to the scale below. */
p, li, td, dd{ font-size:var(--fs-body); line-height:1.65; }

/* Tailwind size classes on text → standard steps */
:is(p,li,span,a,label,td,div).text-xs{ font-size:var(--fs-tiny) !important; }
:is(p,li,span,a,label,td,div).text-sm{ font-size:var(--fs-small) !important; }
:is(p,li,span,a,label,td,div).text-base{ font-size:var(--fs-body) !important; }
:is(p,li).text-lg, :is(p,li).text-xl, :is(p,li).text-2xl{ font-size:18px !important; line-height:1.6 !important; }

/* Inline-styled text → nearest standard step */
:is(p,span,a,li)[style*="font-size:10px"], :is(p,span,a,li)[style*="font-size: 10px"],
:is(p,span,a,li)[style*="font-size:11px"], :is(p,span,a,li)[style*="font-size: 11px"]{ font-size:var(--fs-tiny) !important; }
:is(p,span,a,li)[style*="font-size:13px"], :is(p,span,a,li)[style*="font-size: 13px"],
:is(p,span,a,li)[style*="font-size:13.5px"], :is(p,span,a,li)[style*="font-size:14.5px"]{ font-size:var(--fs-small) !important; }
:is(p,span,a,li)[style*="font-size:15px"], :is(p,span,a,li)[style*="font-size: 15px"]{ font-size:var(--fs-body) !important; }
:is(p,span,a,li)[style*="font-size:17px"], :is(p,span,a,li)[style*="font-size: 17px"]{ font-size:18px !important; }

/* Product page (cart.php / cart.css) text classes */
.hero-sub, .mob-desc{ font-size:var(--fs-small) !important; }
.desc-text, .desc-card-text, .mob-about-text{ font-size:var(--fs-body) !important; line-height:1.65 !important; }
.mob-min-order-txt{ font-size:var(--fs-tiny) !important; }

/* Gallery / category / brand hero text */
.sec-hd p{ font-size:var(--fs-body) !important; }
#facCarDesc, .cat-hero-desc, .brand-hero-desc{ font-size:var(--fs-small) !important; }

/* ── Lighter bold everywhere ── */
.font-extrabold, .font-black{ font-weight:700 !important; }
:is(p,span,a,li,div,button)[style*="font-weight:800"], :is(p,span,a,li,div,button)[style*="font-weight: 800"],
:is(p,span,a,li,div,button)[style*="font-weight:900"], :is(p,span,a,li,div,button)[style*="font-weight: 900"]{ font-weight:700 !important; }
.rev-empty p{ font-weight:600 !important; font-size:var(--fs-body) !important; }
