/**
 * Creative Maker Lab - Typography System
 * 
 * Defines font families, weights, and sizes for the site.
 * Uses Cormorant Garamond (serif) for headings and Poppins (sans-serif) for body.
 */

/* ===================================
   FONT VARIABLES
   =================================== */

:root {
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================
   HEADING FONTS - CORMORANT GARAMOND
   =================================== */

/* Hero headings (large display text) */
h1,
.slider-content h1,
.slider-content-7 h1,
.hero-heading,
.display-heading {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: var(--color-dark);
}

/* Section titles and subheadings */
h2,
.section-title h2,
.section-title-5 h2 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

/* Medium headings */
h3 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

/* Small headings - use Cormorant Garamond for feature headings */
h4 {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  font-size: 28px !important;
}

/* Very small headings - keep Poppins for UI consistency */
h5,
h6 {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* ===================================
   BODY & UI FONTS - POPPINS
   =================================== */

body {
  font-family: var(--font-body);
}

/* Navigation */
.main-menu,
.main-menu nav,
.main-menu nav ul li a {
  font-family: var(--font-ui) !important;
}

/* Buttons */
button,
.btn,
.button,
a.animated {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
}

/* Forms */
input,
select,
textarea {
  font-family: var(--font-ui);
}

/* ===================================
   SPECIFIC OVERRIDES
   =================================== */

/* Slider h3 subtitle - larger and bolder */
.slider-content h3,
.slider-content-7 h3 {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  letter-spacing: 0.5px;
}

/* Banner h3 - match slider h3 styling */
.single-banner .banner-content h3 {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  letter-spacing: 0.5px;
  color: var(--color-dark) !important;
}

/* Product titles */
.product-content h3,
.product-wrap h3 {
  font-family: var(--font-body) !important;
}

/* Blog titles can use heading font */
.blog-wrap h3,
.blog-details-content h3 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

/* Footer headings - keep UI font for consistency */
.footer-widget .footer-title h3 {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===================================
   FONT SIZE ADJUSTMENTS
   =================================== */

/* Hero h1 sizing */
.slider-content-7 h1 {
  font-size: 56px;
  line-height: 1.2;
}

/* Light text variations for dark backgrounds */
h1.text-light,
.slider-content-7 h1.text-light {
  color: var(--color-light) !important;
}

h3.text-light,
.slider-content-7 h3.text-light {
  color: var(--color-light) !important;
}

/* Enhanced text standout classes for slider text over images */
.text-standout-h3 {
  text-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(0, 0, 0, 0.9),
    0 1px 5px rgba(0, 0, 0, 0.95) !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 18px !important;
}

.text-standout-h1 {
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(0, 0, 0, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.95) !important;
  letter-spacing: 1px !important;
}

/* Enhanced text standout classes for dark text on light backgrounds */
.text-standout-h3-dark,
.single-banner .banner-content h3.text-standout-h3-dark {
  /* Create a "glow under the whole word" using a blurred shape behind text */
  position: relative;
  display: inline-block;
  z-index: 0;

  text-shadow: 
    0 0 3px rgba(255, 255, 255, 1),
    0 0 18px rgba(255, 255, 255, 0.99),
    0 0 60px rgba(255, 255, 255, 0.98),
    0 0 140px rgba(255, 255, 255, 0.95),
    0 0 220px rgba(255, 255, 255, 0.90),
    0 0 300px rgba(255, 255, 255, 0.85),
    0 0 380px rgba(255, 255, 255, 1) !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 18px !important;
}

.text-standout-h3-dark::before,
.single-banner .banner-content h3.text-standout-h3-dark::before {
  content: "";
  position: absolute;
  left: -0.75em;
  right: -0.75em;
  top: 50%;
  height: 1.65em;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  filter: blur(18px);
  box-shadow: 0 0 140px rgba(255, 255, 255, 0.9);
  z-index: -1;
  pointer-events: none;
}

.text-standout-h1-dark {
  text-shadow: 
    0 4px 20px rgba(255, 255, 255, 0.85),
    0 0 40px rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 1px !important;
  font-weight: 900;
}

.text-standout-h2-dark {
  /* Whole-word glow halo for CTA H2 */
  position: relative;
  display: inline-block;
  z-index: 0;

  font-family: var(--font-heading) !important;
  color: var(--color-dark) !important;
  text-shadow:
    0 2px 14px rgba(255, 255, 255, 0.95),
    0 0 32px rgba(255, 255, 255, 0.95),
    0 0 70px rgba(255, 255, 255, 0.9) !important;
  letter-spacing: 0.6px !important;
}

.text-standout-h2-dark::before {
  content: "";
  position: absolute;
  left: -0.25em;
  right: -0.25em;
  top: 50%;
  height: 0.9em;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  filter: blur(14px);
  box-shadow: 0 0 170px rgba(255, 255, 255, 0.9);
  z-index: -1;
  pointer-events: none;
}

.text-standout-p-dark {
  /* Whole-block glow halo for CTA paragraph */
  position: relative;

  z-index: 0;

  font-family: var(--font-body) !important;
  color: var(--color-dark) !important;
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.3px;
  text-shadow:
    0 2px 10px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(255, 255, 255, 0.95),
    0 0 60px rgba(255, 255, 255, 0.9) !important;
}

.text-standout-p-dark::before {
  content: "";
  position: absolute;
  left: -0.2em;
  right: -0.2em;
  top: -0.2em;
  bottom: -0.2em;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(20px);
  box-shadow: 0 0 170px rgba(255, 255, 255, 0.9);
  z-index: -1;
  pointer-events: none;
}

.text-standout-h4-dark {
  /* Match H3 "whole-word" glow halo */
  position: relative;
  display: inline-block;
  z-index: 0;

  font-family: var(--font-heading) !important;
  text-shadow: 
    0 2px 12px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(255, 255, 255, 0.95),
    0 1px 4px rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0.5px !important;
}

.text-standout-h4-dark::before {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  top: 50%;
  height: .55em;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 850px;
  filter: blur(10px);
  box-shadow: 0 0 120px rgba(255, 255, 255, 0.85);
  z-index: -1;
  pointer-events: none;
}

/* Make emphasized words/prices inside standout H4s pop more */
h4.text-standout-h4-dark span {
  color: var(--color-attention) !important;
  font-size: 1.15em !important;
  font-weight: 900;

  position: relative;
  text-shadow: 
  0 4px 20px rgba(0, 0, 0, 0.9),
  0 0 40px rgba(0, 0, 0, 0.95),
  0 2px 6px rgba(0, 0, 0, 0.95) !important;
}

/* Support section h4 (feature boxes) */
.support-content-3 h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* ===================================
   RESPONSIVE TYPOGRAPHY
   =================================== */

@media only screen and (max-width: 767px) {
  .slider-content-7 h1 {
    font-size: 36px;
  }
  
  h4,
  .support-content-3 h4 {
    font-size: 20px !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .slider-content-7 h1 {
    font-size: 44px;
  }
}
