/*
Theme Name: Kenafric Industries
Text Domain: kenafric-industries
Description: Kenafric Industries website theme: a pixel-matched WordPress rebuild of the Lovable design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* The design itself comes from the client's own stylesheet (wp-content/mu-plugins/kenafric.css).
 * This file only holds small adjustments for things WordPress adds around the design. */

html {
	scroll-behavior: smooth;
}

/* Phone: the two hero buttons sit side by side at the same width, evenly spaced (4 Nov 2026, Cyrus's request 7). */
@media (max-width: 639px) {
	[data-kf-hero] div:has(> [data-kf-cta]) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		width: 100%;
	}
	[data-kf-hero] div:has(> [data-kf-cta]) > a {
		justify-content: center;
		width: 100%;
		padding-left: 12px;
		padding-right: 12px;
		text-align: center;
	}
}

/* Phone: banner text and buttons sit lower, using the empty space under the buttons, clear of the slider arrows (7 Nov 2026, Cyrus's request 9). Tablet and desktop unchanged. */
@media (max-width: 767px) {
	section[data-kf-hero] > .container-page {
		align-items: flex-end !important;
		padding-bottom: 150px !important;
	}
}

/* Keep the sticky header below the WordPress toolbar while someone is logged in. */
body.admin-bar #kf-header {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar #kf-header {
		top: 46px;
	}
}

/* Rich text written in WordPress (product descriptions, legal pages). Mirrors the original's text styling. */
.kf-richtext h2 { margin-top: 1.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.kf-richtext h3 { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.kf-richtext p { margin-top: 0.75rem; }
.kf-richtext ul { margin-top: 0.75rem; list-style: disc; padding-left: 1.25rem; }
.kf-richtext ol { margin-top: 0.75rem; list-style: decimal; padding-left: 1.25rem; }
.kf-richtext li { margin-top: 0.25rem; }
.kf-richtext a { color: var(--color-primary); text-decoration: underline; }

/* ---------------------------------------------------------------- Blog articles (added 1 October 2026)
 * Layout blocks for articles, using the same names as SEO Smart's article kit.
 * Colours come from the site's own variables, so they match the rest of the design. */
.kf-article { font-size: 1.0625rem; line-height: 1.75; color: var(--foreground); }
.kf-article > * + * { margin-top: 1.1rem; }
.kf-article h2 { margin-top: 2.4rem; font-family: var(--font-display, "Poppins", sans-serif); font-size: 1.55rem; line-height: 1.25; font-weight: 700; color: var(--secondary); scroll-margin-top: 90px; }
.kf-article h3 { margin-top: 1.6rem; font-size: 1.15rem; font-weight: 700; color: var(--secondary); }
.kf-article p { color: var(--muted-foreground); }
.kf-article strong { color: var(--secondary); font-weight: 600; }
.kf-article a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.kf-article ul { list-style: disc; padding-left: 1.25rem; color: var(--muted-foreground); }
.kf-article ol { list-style: decimal; padding-left: 1.4rem; color: var(--muted-foreground); }
.kf-article li { margin-top: .4rem; }
.kf-article li::marker { color: var(--primary); font-weight: 700; }

.ss-tldr { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: 14px; padding: 1.2rem 1.3rem; }
.ss-tldr h2 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 800; }
.ss-tldr p { color: var(--foreground); font-size: 1.1rem; line-height: 1.6; }

.ss-callout { background: var(--accent); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; font-size: .98rem; }
.ss-callout p { color: var(--foreground); }

.ss-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.ss-stat { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; background: var(--card); }
.ss-stat-v { font-family: var(--font-display, "Poppins", sans-serif); font-weight: 900; font-size: 1.9rem; line-height: 1.1; color: var(--secondary); }
.ss-stat-v.is-lead { color: var(--primary); }
.ss-stat-l { margin-top: .25rem; font-size: .82rem; color: var(--muted-foreground); }
.ss-source { font-size: .8rem; color: var(--muted-foreground); }

.ss-takeaways { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow-soft); }
.ss-takeaways h2 { margin: 0 0 .7rem; font-size: 1.2rem; }
.ss-takeaways ol { list-style: none; padding: 0; counter-reset: t; display: flex; flex-direction: column; gap: .8rem; }
.ss-takeaways li { counter-increment: t; display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; margin: 0; color: var(--foreground); line-height: 1.55; }
.ss-takeaways li::before { content: counter(t); width: 2rem; height: 2rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }

.ss-faq { border-top: 1px solid var(--border); }
.ss-faq h2 { margin-bottom: .6rem; }
.ss-faq details { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.ss-faq summary { cursor: pointer; font-weight: 700; color: var(--secondary); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ss-faq summary::-webkit-details-marker { display: none; }
.ss-faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.ss-faq details[open] summary::after { content: "\2212"; }
.ss-faq details p { margin-top: .6rem; }

.ss-cluster { border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; background: var(--surface); }
.ss-cluster h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.ss-cluster ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }

.ss-cta-panel { background: var(--secondary); color: var(--secondary-foreground); border-radius: 18px; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.ss-cta-panel h2 { margin: 0; color: #fff !important; font-size: 1.35rem; }
.ss-cta-panel p { color: rgba(255,255,255,.85) !important; }
.kf-article a.ss-cta { display: inline-flex; background: var(--primary); color: var(--primary-foreground); text-decoration: none; font-weight: 700; padding: .75rem 1.3rem; border-radius: 999px; }
.kf-article a.ss-cta:hover { filter: brightness(1.08); }

/* Pictures in articles: always a neat 4:3 crop, with a caption underneath. */
.kf-article figure { margin: 1.8rem 0; }
.kf-article figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 16px; box-shadow: var(--shadow-soft); }
.kf-article figcaption { margin-top: .55rem; font-size: .85rem; line-height: 1.5; color: var(--muted-foreground); }

/* The wide picture at the top of an article. */
.kf-hero-img { aspect-ratio: 16 / 9; object-position: center 22%; }

/* Home page sustainability image: no shadow box around it and no empty space below the picture (12 Nov 2026). */
.elementor-element-h5000003{box-shadow:none !important;align-self:start !important;height:auto !important;}
