/**
 * GAMA SECUR — global typography system
 * Depends on: child-style, gama-global-fonts
 *
 * Headings / nav / buttons / product titles: Poppins + #000
 * Body copy: Roboto + #7A7A7A
 * Accent labels / quotes: Roboto Slab (scoped — do not overuse)
 */

:root,
html {
	--gama-font-heading: "Poppins", Arial, Helvetica, sans-serif;
	--gama-font-body: "Roboto", Arial, Helvetica, sans-serif;
	--gama-font-accent: "Roboto Slab", Georgia, "Times New Roman", serif;
	--gama-color-heading: #000000;
	--gama-color-body: #7a7a7a;
	--gama-color-red: #d71820;
	--gama-bg: #ffffff;
	--gama-bg-soft: #f7f7f7;
	--gama-border: #eaeaea;

	/* WoodMart typography variables (Customizer / dynamic CSS) */
	--wd-text-font: var(--gama-font-body);
	--wd-title-font: var(--gama-font-heading);
	--wd-entities-title-font: var(--gama-font-heading);
	--wd-header-el-font: var(--gama-font-heading);
	--wd-widget-title-font: var(--gama-font-heading);
	--wd-primary-color: #d71820;
}

body {
	font-family: var(--gama-font-body);
	color: var(--gama-color-body);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1280px) {
	body { font-size: 16px; }
}

p {
	font-size: clamp(14px, 0.95vw, 16px);
	line-height: 1.65;
}

small {
	font-size: 13px;
}

/* ----- Headings & WoodMart “title” surfaces ----- */
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.wd-entities-title,
.wd-post-title,
.product_title,
.widget-title,
.widgettitle,
.wd-facet-title,
.wd-accordion-title-text,
.wd-info-box .title,
.wd-info-box .info-box-title,
.wd-banner-title,
.wd-el-title,
.wd-heading,
.wpb_heading,
.vc_custom_heading,
.woocommerce-loop-product__title {
	font-family: var(--gama-font-heading);
	color: var(--gama-color-heading);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.title,
.wd-entities-title,
.wd-post-title,
.product_title,
.widget-title,
.widgettitle,
.wd-facet-title,
.wd-accordion-title-text,
.wd-info-box .title,
.wd-info-box .info-box-title,
.wd-banner-title,
.wd-el-title,
.wd-heading,
.wpb_heading,
.vc_custom_heading,
.woocommerce-loop-product__title {
	font-weight: 500;
}

h1,
.h1,
.title.page-title,
h1.product_title,
h1.entry-title {
	font-size: clamp(32px, 4vw, 56px);
	line-height: 1.12;
	letter-spacing: -0.022em;
}

h2,
.h2 {
	font-size: clamp(24px, 2.6vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.018em;
}

h3,
.h3 {
	font-size: clamp(18px, 1.4vw, 22px);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

h4,
.h4 {
	font-size: clamp(16px, 1.1vw, 18px);
	line-height: 1.35;
	letter-spacing: -0.005em;
}

h5,
h6 {
	font-size: 14.5px;
	line-height: 1.4;
}

/* ----- Body copy (paragraph rhythm; avoid painting nav list items gray) ----- */
p,
dd,
dt,
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel,
.woocommerce-tabs .panel,
.wd-product-grid .wd-product-excerpt,
.comment-text,
.comment-body {
	font-family: var(--gama-font-body);
	color: var(--gama-color-body);
}

/* Headings inside Woo tabs should stay Poppins / black */
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3,
.woocommerce-Tabs-panel h4 {
	font-family: var(--gama-font-heading);
	color: var(--gama-color-heading);
}

/* ----- Roboto Slab — premium accents only ----- */
blockquote,
.gama-type-accent,
.gama-type-quote {
	font-family: var(--gama-font-accent);
}

/* ----- Buttons ----- */
.btn,
.button,
button[type="submit"],
input[type="submit"],
input[type="button"].button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	font-family: var(--gama-font-heading);
	font-size: clamp(13px, 0.9vw, 15px);
	font-weight: 500;
	letter-spacing: 0;
}

/* ----- Primary navigation (typography; color respects light/dark schemes) ----- */
.wd-nav-header > li > a {
	font-family: var(--gama-font-heading);
	font-weight: 500;
}

.whb-color-dark .wd-nav-header > li > a,
.whb-color-dark .wd-nav-header > li > a .nav-link-text {
	color: var(--gama-color-heading);
}

.whb-color-dark .wd-nav-header > li > a:hover,
.whb-color-dark .wd-nav-header > li > a:focus,
.whb-color-dark .wd-nav-header > li.current-menu-item > a {
	color: var(--gama-color-red);
}

/* Mobile / vertical menus */
.wd-nav-mobile .wd-nav > li > a,
.wd-nav-vertical > li > a {
	font-family: var(--gama-font-heading);
	font-weight: 500;
}

/* ----- Readability: long prose ----- */
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel p,
.gama-home-seo .gs-section-intro,
.gama-home-seo .gs-seo-lower-lead,
.gama-home-seo .gs-seo-lower p,
.gama-home-seo .gs-seo-lower .gs-seo-lower-block,
.gama-home-seo .gs-faq-a {
	max-width: 56rem;
}

/* ----- Background / borders alignment ----- */
.wd-page-wrapper {
	background-color: var(--gama-bg);
}
