/**
 * Theme Name:      National Wives Association
 * Theme URI:       https://www.elegantthemes.com/gallery/divi/
 * Description:     A child theme for Divi created by Creative Courtney.
 * Author:          Creative Courtney
 * Author URI:      https://www.creativecourtney.com/
 * Template:         Divi
 * Version:         1.0.0
 * Text Domain:     national-wives-association
 * License:         GPL2
 * License URI:     https://www.gnu.org/licenses/gpl-2.0.html
 */
  
 
/* ---------------------- Theme customization starts here ---------------------- */

/* ==========================================================================
   NFWA Global Typography System
   Paste into: child theme style.css (recommended — see chat for why)
   ========================================================================== */

:root {
  --nfwa-color-text: #242424;

  --nfwa-font-heading: 'Tenor Sans', serif;
  --nfwa-font-body: 'Inter', sans-serif;

  /* Eyebrow */
  --nfwa-eyebrow-size: 12px;
  --nfwa-eyebrow-weight: 700;
  --nfwa-eyebrow-spacing: 0.25em; /* = 25% of 12px = 3px, scales automatically */

  /* H1 */
  --nfwa-h1-size: 45px;
  --nfwa-h1-line: 55px;
  --nfwa-h1-spacing: 0.05em;

  /* H2 */
  --nfwa-h2-size: 35px;
  --nfwa-h2-line: 45px;
  --nfwa-h2-spacing: 0.05em;

  /* Body */
  --nfwa-body-size: 16px;
  --nfwa-body-line: 24px;
  --nfwa-body-spacing: 0.05em;
}

/* Body copy — set on <body> only, NOT on p/.et_pb_text_inner directly.
   font-family/line-height/letter-spacing are inherited properties, so every
   paragraph and list item picks this up automatically through inheritance.
   Because it's inherited rather than a direct rule on <p>, a font you set on
   an individual Text module in the Divi Builder (Design tab > Text) will
   still win for that module — Divi's module CSS targets the wrapping div,
   which is a more specific, more local rule than this sitewide default. */
body {
  font-family: var(--nfwa-font-body);
  font-size: var(--nfwa-body-size);
  line-height: var(--nfwa-body-line);
  letter-spacing: var(--nfwa-body-spacing);
  color: var(--nfwa-color-text);
}

/* H1 */
h1,
.h1 {
  font-family: var(--nfwa-font-heading);
  font-size: var(--nfwa-h1-size);
  line-height: var(--nfwa-h1-line);
  letter-spacing: var(--nfwa-h1-spacing);
  color: var(--nfwa-color-text);
}

/* H2 */
h2,
.h2 {
  font-family: var(--nfwa-font-heading);
  font-size: var(--nfwa-h2-size);
  line-height: var(--nfwa-h2-line);
  letter-spacing: var(--nfwa-h2-spacing);
  color: var(--nfwa-color-text);
}

/* Eyebrow — no native Divi equivalent, so this needs a utility class
   applied to a Text module (e.g. wrap the eyebrow line in <span class="nfwa-eyebrow">) */
.nfwa-eyebrow {
  display: inline-block;
  font-family: var(--nfwa-font-body);
  font-size: var(--nfwa-eyebrow-size);
  font-weight: var(--nfwa-eyebrow-weight);
  letter-spacing: var(--nfwa-eyebrow-spacing);
  color: var(--nfwa-color-text);
  text-transform: uppercase; /* common for eyebrow labels — confirm w/ Elena's comps */
}

/* ==========================================================================
   Optional: fluid scaling for H1/H2 on smaller viewports.
   45px/35px desktop sizes will feel oversized on mobile if left static.
   Uncomment and tune the min/preferred/max values as needed.
   ========================================================================== */

/*
h1, .h1 {
  font-size: clamp(28px, 6vw, var(--nfwa-h1-size));
  line-height: 1.2;
}

h2, .h2 {
  font-size: clamp(24px, 5vw, var(--nfwa-h2-size));
  line-height: 1.25;
}
*/