/**
 * Theme Name:     GeneratePress Child
 * Author:         Caio Ferreira
 * Template:       generatepress
 * Text Domain:	   generatepress-child
 * Description:    GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
 */

/* ========== 2) Typography variables ========== */
:root{
  /* weights */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* line-heights */
  --lh-body: 1.6;
  --lh-heading: 1.15;

  /* small adjustments for fine tuning */
  --fluid-scale-small: 0.2vw;
  --fluid-scale-medium: 0.9vw;
  --fluid-scale-large: 2.4vw;
}

/* ========== 3) Base / body ========== */
/* Body uses a gentle fluid step between ~15px and 16px (0.9375rem -> 1rem) */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: var(--fw-400);
  font-size: clamp(0.9375rem, calc(0.88rem + var(--fluid-scale-small)), 1rem); /* ~15px -> 16px */
  line-height: var(--lh-body);
  color: var(--color-dark); /* optional, from your palette */
  -webkit-text-size-adjust: 100%;
}

/* Optional utility classes */
.lead { font-size: clamp(1.0625rem, calc(1rem + var(--fluid-scale-small)), 1.125rem); line-height:1.6; }
.small, .muted { font-size: clamp(0.8125rem, calc(0.78rem + 0.05vw), 0.875rem); }

/* ========== 4) Headings — fluid scale with stronger steps ========== */
/* H1 scales from ~32px up to 40px */
h1{
    font-family: "poppins";
  font-weight: var(--fw-700);
  line-height: var(--lh-heading);
  font-size: clamp(2rem, calc(1.6rem + var(--fluid-scale-large)), 2.5rem); /* 32px -> 40px */
  margin: 0 0 0.5em;
}

/* H2 scales from ~24px up to 32px */
h2{
    font-family: "poppins";
  font-weight: var(--fw-600);
  line-height: var(--lh-heading);
  font-size: clamp(1.5rem, calc(1.2rem + 1.8vw), 2rem); /* 24px -> 32px */
  margin: 0 0 0.6em;
}

/* H3 scales from ~20px up to 24px */
h3{
  font-weight: var(--fw-600);
  line-height: var(--lh-heading);
  font-size: clamp(1.25rem, calc(1rem + 0.9vw), 1.5rem); /* 20px -> 24px */
  margin: 0 0 0.6em;
}

h4{
  font-weight: var(--fw-500);
  font-size: clamp(1.125rem, calc(0.95rem + 0.6vw), 1.25rem); /* 18px -> 20px */
  line-height: var(--lh-heading);
  margin: 0 0 0.5em;
}

h5{
  font-weight: var(--fw-500);
  font-size: clamp(1rem, calc(0.92rem + 0.35vw), 1.125rem); /* 16px -> 18px */
  margin: 0 0 0.4em;
}

h6{
  font-weight: var(--fw-500);
  font-size: clamp(0.9375rem, calc(0.9rem + 0.18vw), 1rem); /* 15px -> 16px */
  margin: 0 0 0.4em;
}

/* ========== 5) Nav and buttons ========== */
/* Slightly larger and semi-bold for CTAs and nav items */
button, .btn, .button, .primary-nav a {
  font-weight: var(--fw-600);
  font-size: clamp(0.875rem, calc(0.85rem + 0.08vw), 0.9375rem); /* ~14px -> 15px */
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: none;
}

.button:hover{
    opacity: .7;
    background-color: var(--accent) !important;
}


/* ========== 6) Minor responsive tweaks ========== */
/* Slightly reduce heading sizes on very small screens */
@media (max-width: 360px){
  h1 { font-size: clamp(1.75rem, calc(1.6rem + 1.6vw), 2.25rem); }
  h2 { font-size: clamp(1.375rem, calc(1.2rem + 1.2vw), 1.75rem); }
}

.custom-header{
backdrop-filter: blur(5px);
}