/* ==========================================================================
   MULTI-TIER TYPOGRAPHY SYSTEM FOR GAMASUSCO
   Harmonized blend of:
   1. Clash Display (Fontshare) — Bold, geometric, architectural display
   2. Instrument Serif & Editorial New — High-contrast luxury editorial serif
   3. SF Pro Rounded (Apple) — Modern soft-tech sans (landing hero & UI)
   ========================================================================== */

/* 1. Clash Display via Fontshare CDN */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&display=swap');

/* 2. Instrument Serif via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* 3. SF Pro Rounded across all weights (300 to 900) */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('fonts/SF-Pro-Rounded-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   SEMANTIC FONT DESIGN TOKENS
   ========================================================================== */
:root {
  /* 1. Clash Display: Architectural, impactful, geometric display */
  --font-display: 'Clash Display', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* 2. Instrument Serif & Editorial New: Luxury high-contrast editorial serif */
  --font-editorial: 'Editorial New', 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-serif: 'Instrument Serif', 'Editorial New', Georgia, serif;
  
  /* 3. SF Pro Rounded: Modern soft-tech sans for body, UI, buttons, and landing hero */
  --font-sans: 'SF Pro Rounded', ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-main: var(--font-sans);
  
  /* Monospace */
  --font-mono: 'Fragment Mono', 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Global Compatibility Variables */
  --cs-font-display: var(--font-display);
  --cs-font-editorial: var(--font-editorial);
  --cs-font-body: var(--font-sans);
  --cs-font-mono: var(--font-mono);
}

/* ==========================================================================
   DEFAULT BASE & BODY COPY (SF Pro Rounded)
   ========================================================================== */
html,
body {
  font-family: var(--font-sans);
}

p, a, button, input, select, textarea, label,
li, td, th, small, figcaption, blockquote {
  font-family: var(--font-sans);
}

/* Ensure heading spans inherit their parent heading's display font */
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span,
.section-title *,
.milestone-headline *,
.showcase-title *,
.gradient-text,
.bloom-word-item,
.bloom-char {
  font-family: inherit !important;
}

/* ==========================================================================
   DISPLAY HEADINGS & CARD TITLES (Clash Display)
   Bold, geometric, authoritative titles across all pages
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.powder-section-title,
.progressive-section-title,
.section-title,
.section-title h2,
.powder-card-title,
.step-title,
.about-cell-heading h2,
.footer-brand h3,
.footer-nav-col h4,
.page-title,
.service-title,
.service-hero-title,
.calc-hero-title,
.resource-hero-title,
.contact-hero-title,
.about-hero h1,
.hero-content h1,
.service-card h3,
.industry-card h3,
.resource-card h3,
.process-card h3,
.process-step h3,
.feature-card h4,
.faq-item h4,
.info-card h3,
.quick-links-card h3,
.recommendations-title,
.comparison-title,
.chart-title,
.showcase-title,
.section-counter-title,
.milestone-headline,
.milestone-card-title,
.industry-bento-headline,
.industry-bento-card-title,
.industry-dial-headline,
.industry-dial-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.015em;
  word-spacing: 0.16em;
}

/* ==========================================================================
   LANDING PAGE HERO TITLE — UNTOUCHED (STRICT USER REQUIREMENT)
   "Your Journey Towards A Greener Tomorrow" stays in SF Pro Rounded
   ========================================================================== */
.powder-hero-title,
.powder-hero-title *,
#heroSection .powder-hero-title,
.zoom-portal-content .powder-hero-title {
  font-family: var(--font-sans) !important;
}

/* ==========================================================================
   EDITORIAL SERIF (Instrument Serif & Editorial New)
   Elevated contrast for editorial statements, kicker tags, badges, and luxury accents
   ========================================================================== */
.parallax-break h2,
#parallaxBanner h2,
.parallax-break-content h2 {
  font-family: var(--font-editorial) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 4.5vw, 3.8rem) !important;
  line-height: 1.18;
}

/* Editorial kicker tags, chapter marks, solution tags & badge pills */
.step-chapter-tag,
.showcase-num,
.milestone-card-chip,
.milestone-card-chip span,
.card-pill-tag,
.editorial-kicker,
.font-editorial,
.editorial-accent,
.stat-tag-editorial,
.editorial-quote,
.quote-text,
.quote-accent,
.editorial-lead,
.section-eyebrow,
.hero-badge,
.hero-badge span,
.section-badge,
.section-badge span,
.powder-badge-pill,
.powder-badge-pill span,
.milestone-category-pill,
.milestone-category-pill span,
.industry-bento-eyebrow,
.industry-bento-eyebrow span,
.industry-dial-eyebrow,
.kicker-tag,
.badge-pill,
.italic-serif,
em.editorial,
.ai-insight-badge,
.calc-step-tag {
  font-family: var(--font-editorial) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   METRIC NUMBERS & STATS (Clash Display)
   Sharp numerical geometry
   ========================================================================== */
.powder-result-card .value,
.quick-results .value,
.stat-number,
.metric-value,
.timeline-node-circle,
.calc-step-num,
.summary-value,
.benchmark-value {
  font-family: var(--font-display) !important;
}

/* ==========================================================================
   ICON FONT PROTECTION
   ========================================================================== */
i.fa, i.fas, i.far, i.fab, .fa, .fas, .far, .fab,
[class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}
