/* ==========================================================================
   Zemblance – Site-wide typography
   Loaded last on every page so it overrides the theme fonts.
   Headings / UI : Plus Jakarta Sans
   Body text     : Inter
   ========================================================================== */

:root {
	--font-heading: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--text-color: #3f4753;
	--text-muted: #5f6875;
	--heading-color: #1d2733;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }

body,
.font-body,
small,
.dropdown-menu,
input, select, textarea, button,
.wp-caption,
#primary-menu ul ul li > a,
#top-account .dropdown-menu li a,
.nav-tree ul ul a,
.skills li .progress-percent .counter,
.feature-box.fbox-center.fbox-italic p {
	font-family: var(--font-body) !important;
}

body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: 'cv11', 'ss01';
}

p { line-height: 1.75; }
.lead { font-size: 18px; line-height: 1.7; font-weight: 400; color: var(--text-muted); }
small { font-size: 85%; }

/* Text pasted from Word documents with hard-coded fonts */
.content-wrap p[style], .content-wrap span[style], .content-wrap li[style] {
	font-family: var(--font-body) !important;
}

/* ---------- Headings & UI ---------- */
h1, h2, h3, h4, h5, h6,
.font-primary,
#logo,
#primary-menu ul li > a,
#primary-menu ul li .mega-menu-content.style-2 ul.mega-menu-column > li.mega-menu-title > a,
#top-search form input,
.entry-link,
.entry.entry-date-section span,
.button, .button.button-desc,
ul.tab-nav-lg li a,
.counter,
label,
.widget-filter-links li a,
.nav-tree li a,
.swiper_wrapper .slider-caption h2 {
	font-family: var(--font-heading) !important;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--heading-color);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* Former decorative serif-italic accents → clean sans */
.font-secondary,
.before-heading,
.entry-meta li,
.entry-link span,
.entry blockquote p,
.more-link,
.comment-content .comment-author span,
.comment-content .comment-author span a,
.button.button-desc span,
.testi-content p,
.team-title span {
	font-family: var(--font-body) !important;
	font-style: normal !important;
}

.before-heading {
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* Section headings: readable title case instead of forced capitals */
.heading-block h1,
.heading-block h2,
.heading-block h3,
.heading-block h4,
.emphasis-title h1,
.emphasis-title h2,
#page-title h1,
.entry-title h2,
.entry-title h3,
.fancy-title h1, .fancy-title h2, .fancy-title h3, .fancy-title h4 {
	text-transform: none;
	letter-spacing: -0.01em;
	font-weight: 700;
}
.heading-block h1 { font-size: 40px; }
.heading-block h2 { font-size: 32px; }
.heading-block h3 { font-size: 26px; }
#page-title h1 { font-size: 32px; line-height: 1.2; }
.entry-title h2 { font-size: 22px; line-height: 1.35; }
.entry-title h3 { font-size: 19px; line-height: 1.4; }

.heading-block > span:not(.before-heading),
#page-title span {
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--text-muted);
	line-height: 1.6;
}
.heading-block h2 + span { font-size: 18px; }
.heading-block h3 + span,
.heading-block h4 + span { font-size: 17px; }
.heading-block ~ p:not(.lead) { font-size: 16px; }

.entry-content { font-size: 15.5px; line-height: 1.7; color: var(--text-color); }

.more-link {
	font-size: 14px !important;
	font-weight: 600;
	border-bottom: none;
}

/* Navigation */
#primary-menu ul li > a {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .04em;
}
#primary-menu ul ul li > a {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

/* Buttons */
.button { font-weight: 600; letter-spacing: .03em; }

/* Footer */
#footer, #copyrights { font-size: 15px; }
#footer .widget h4 { font-size: 16px; letter-spacing: .04em; }

/* Page-title banners: tighter, cleaner tracking */
#page-title h1,
#page-title.page-title-parallax h1 { letter-spacing: -0.01em; font-weight: 700; }
#page-title.page-title-parallax h1 { font-size: 42px; }
#page-title.page-title-parallax span { font-size: 19px; }

/* Large buttons / full-width contact bars */
.button.button-xlarge { letter-spacing: .02em; font-size: 17px; }
.button.button-full { letter-spacing: 0; font-size: 26px; font-weight: 500; }
.button.button-full strong { font-weight: 700; }

/* Justified text creates uneven word gaps – use left alignment for readability */
[style*="text-align:justify"],
[style*="text-align: justify"],
.text-justify,
.detail { text-align: left !important; }
.detail { line-height: 1.8; color: var(--text-color); }

/* Hero slider captions (homepage) */
.swiper_wrapper .slider-caption h2 { letter-spacing: .02em; }

/* ---------- Responsive sizes ---------- */
@media (max-width: 991px) {
	.heading-block h1 { font-size: 32px; }
	.heading-block h2 { font-size: 28px; }
	#page-title h1 { font-size: 28px; }
}
@media (max-width: 575px) {
	body { font-size: 15.5px; }
	.heading-block h1 { font-size: 28px; }
	.heading-block h2 { font-size: 24px; }
	.heading-block h3 { font-size: 22px; }
	#page-title h1 { font-size: 24px; }
	.lead { font-size: 17px; }
}
