/*
 * WordPress Site Factory - Minimal Locked Responsive Child Stylesheet
 * Zero external Google Fonts; WCAG 2.1 AA CSS custom properties; adaptive Hero overlay;
 * Logo boundary & surface fallback; unified aspect-ratio + object-fit product cards.
 */

:root {
	--sf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--sf-primary: #0F4C81;
	--sf-accent: #D97706;
	--sf-on-primary: #FFFFFF;
	--sf-on-accent: #111827;
	--sf-primary-text: #0F4C81;
	--sf-ink: #111827;
	--sf-muted: #4B5563;
	--sf-surface: #FFFFFF;
	--sf-surface-alt: #F8FAFC;
	--sf-border: #E5E7EB;
	--sf-radius: 10px;
	--sf-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
	--global-body-font-family: var(--sf-font-sans);
	--global-heading-font-family: var(--sf-font-sans);
}

body {
	font-family: var(--sf-font-sans);
	color: var(--sf-ink);
	background-color: var(--sf-surface);
	line-height: 1.6;
}

.sf-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

.sf-section {
	padding-block: 44px;
}

/* Hide redundant Kadence page-title banner on the static homepage so the Hero sits above the fold */
.home .entry-hero,
.home .entry-hero-section,
.home .page-hero-section {
	display: none;
}

.home .content-area {
	margin-top: 12px;
}

/* ---------------------------------------------------------------------------
 * Logo Boundary Constraints & Light/Dark Background Fallback
 * Compatible with wide/square, transparent PNG, and solid-background logos.
 * --------------------------------------------------------------------------- */
.custom-logo-link,
.site-branding .custom-logo-link,
.sf-logo-frame {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
	max-width: 240px;
}

.custom-logo-link img,
.site-branding img.custom-logo,
.sf-footer-logo img {
	display: block;
	max-height: 48px;
	max-width: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.sf-footer-logo img {
	max-height: 36px;
	max-width: 160px;
}

/* ---------------------------------------------------------------------------
 * Hero Banner with Adaptive Dark/Gradient Overlay (Readable on ANY Photo)
 * --------------------------------------------------------------------------- */
.sf-hero {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	display: flex;
	align-items: center;
	background-color: var(--sf-primary);
	background-size: cover;
	background-position: center;
	color: #FFFFFF;
	border-radius: var(--sf-radius);
	margin-block: 16px 32px;
}

.sf-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		110deg,
		rgba(15, 23, 42, 0.86) 0%,
		rgba(15, 23, 42, 0.72) 52%,
		rgba(15, 23, 42, 0.48) 100%
	);
	z-index: 1;
}

.sf-hero__inner {
	position: relative;
	z-index: 2;
	padding-block: 64px;
	max-width: 780px;
	margin-inline: 0;
}

.sf-hero__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #F8FAFC;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.sf-hero__title {
	margin: 0 0 16px;
	color: #FFFFFF;
	font-size: clamp(1.85rem, 3.8vw, 2.85rem);
	line-height: 1.18;
	font-weight: 700;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sf-hero__subtitle {
	margin: 0 0 28px;
	color: #E5E7EB;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	max-width: 640px;
}

.sf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------------------------------------------------------------------------
 * Buttons (WCAG 2.1 AA Foreground Pairing)
 * --------------------------------------------------------------------------- */
.sf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.sf-btn:hover {
	transform: translateY(-1px);
	opacity: 0.94;
}

.sf-btn--primary {
	background-color: var(--sf-primary);
	color: var(--sf-on-primary);
}

.sf-btn--accent {
	background-color: var(--sf-accent);
	color: var(--sf-on-accent);
}

.sf-btn--ghost {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.45);
	color: #FFFFFF;
}

.sf-btn--sm {
	padding: 8px 16px;
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------------------
 * Responsive Grids & Unified Aspect-Ratio Product Cards
 * --------------------------------------------------------------------------- */
.sf-grid,
.sf-product-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sf-cols-1 { grid-template-columns: minmax(0, 1fr); }
.sf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sf-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.sf-filter-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--sf-border);
	color: var(--sf-ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	background: var(--sf-surface);
}

.sf-filter-pill.is-active,
.sf-filter-pill:hover {
	background-color: var(--sf-primary);
	border-color: var(--sf-primary);
	color: var(--sf-on-primary);
}

.sf-product-card {
	display: flex;
	flex-direction: column;
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sf-product-card:hover {
	box-shadow: var(--sf-shadow);
	transform: translateY(-2px);
}

.sf-product-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sf-surface-alt);
}

.sf-product-card__media img,
.sf-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sf-product-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sf-muted);
	font-size: 0.9rem;
}

.sf-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px;
	gap: 10px;
}

.sf-product-card__cat {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sf-primary-text);
}

.sf-product-card__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.35;
}

.sf-product-card__title a {
	color: var(--sf-ink);
	text-decoration: none;
}

.sf-product-card__title a:hover {
	color: var(--sf-primary-text);
}

.sf-product-card__excerpt {
	margin: 0;
	color: var(--sf-muted);
	font-size: 0.9rem;
}

.sf-product-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.82rem;
	color: var(--sf-muted);
	padding-top: 4px;
}

.sf-product-card__footer {
	margin-top: auto;
	padding-top: 8px;
}

/* ---------------------------------------------------------------------------
 * Factory Stats, Certifications, Highlights & FAQ
 * --------------------------------------------------------------------------- */
.sf-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.sf-stat-item {
	background: var(--sf-surface-alt);
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
	padding: 24px 18px;
	text-align: center;
}

.sf-stat-item__value {
	font-size: 2rem;
	font-weight: 800;
	color: var(--sf-primary-text);
	line-height: 1.1;
}

.sf-stat-item__label {
	margin-top: 6px;
	font-size: 0.9rem;
	color: var(--sf-muted);
	font-weight: 500;
}

.sf-cert-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.sf-cert-bar__label {
	font-weight: 600;
	color: var(--sf-ink);
	font-size: 0.9rem;
}

.sf-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--sf-surface-alt);
	border: 1px solid var(--sf-border);
	color: var(--sf-primary-text);
	font-size: 0.82rem;
	font-weight: 600;
}

.sf-highlight-card {
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
	padding: 24px;
}

.sf-highlight-card__num {
	display: inline-block;
	font-weight: 800;
	font-size: 0.85rem;
	color: var(--sf-primary-text);
	margin-bottom: 8px;
}

.sf-highlight-card__title {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.sf-highlight-card__desc {
	margin: 0;
	color: var(--sf-muted);
	font-size: 0.95rem;
}

.sf-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sf-faq-item {
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
	background: var(--sf-surface);
	padding: 16px 20px;
}

.sf-faq-item__q {
	font-weight: 600;
	cursor: pointer;
	color: var(--sf-ink);
}

.sf-faq-item__a {
	margin-top: 10px;
	color: var(--sf-muted);
}

.sf-faq-item__a p {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Single Product Detail Layout (Gallery + Specs Table + Parameterized Inquiry)
 * --------------------------------------------------------------------------- */
.sf-breadcrumbs {
	font-size: 0.875rem;
	color: var(--sf-muted);
	margin: 20px 0;
}

.sf-breadcrumbs a {
	color: var(--sf-primary-text);
	text-decoration: none;
}

.sf-product-detail {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	margin-bottom: 40px;
}

.sf-gallery-stage {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
	overflow: hidden;
	background: var(--sf-surface-alt);
}

.sf-gallery-stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sf-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.sf-gallery-thumb-btn {
	padding: 0;
	border: 2px solid var(--sf-border);
	border-radius: 6px;
	overflow: hidden;
	width: 78px;
	aspect-ratio: 4 / 3;
	cursor: pointer;
	background: var(--sf-surface);
}

.sf-gallery-thumb-btn.is-active {
	border-color: var(--sf-primary);
}

.sf-gallery-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sf-product-summary__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 2.8vw, 2.2rem);
	line-height: 1.25;
}

.sf-product-summary__excerpt {
	color: var(--sf-muted);
	margin: 0 0 18px;
}

.sf-trade-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin: 18px 0;
	padding: 14px;
	background: var(--sf-surface-alt);
	border: 1px solid var(--sf-border);
	border-radius: 8px;
}

.sf-trade-meta__item span {
	display: block;
	font-size: 0.78rem;
	color: var(--sf-muted);
}

.sf-trade-meta__item strong {
	font-size: 0.95rem;
	color: var(--sf-ink);
}

.sf-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 32px;
}

.sf-specs-table th,
.sf-specs-table td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--sf-border);
}

.sf-specs-table th {
	width: 34%;
	background: var(--sf-surface-alt);
	color: var(--sf-ink);
	font-weight: 600;
}

.sf-inquiry-panel {
	margin-top: 36px;
	padding: 28px;
	background: var(--sf-surface-alt);
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
}

.sf-inquiry-context {
	margin-bottom: 14px;
	padding: 10px 14px;
	border-left: 4px solid var(--sf-primary);
	background: var(--sf-surface);
	font-weight: 600;
	color: var(--sf-primary-text);
}

/* ---------------------------------------------------------------------------
 * Contact Card, Footer Bar & Floating WhatsApp CTA
 * --------------------------------------------------------------------------- */
.sf-contact-card {
	background: var(--sf-surface-alt);
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius);
	padding: 24px;
	margin-bottom: 24px;
}

.sf-contact-card__title {
	margin: 0 0 14px;
}

.sf-contact-card__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 0;
}

.sf-contact-card__list dt {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sf-muted);
	text-transform: uppercase;
}

.sf-contact-card__list dd {
	margin: 2px 0 0;
}

.sf-footer-bar {
	border-top: 1px solid var(--sf-border);
	background: var(--sf-surface-alt);
	padding-block: 24px 80px;
	margin-top: 40px;
	font-size: 0.875rem;
	color: var(--sf-muted);
}

.sf-footer-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-right: 168px;
}

@media (max-width: 768px) {
	.sf-footer-bar__inner {
		padding-right: 20px;
	}
}

.sf-footer-bar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sf-footer-bar__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.sf-footer-bar__links a {
	color: var(--sf-primary-text);
	text-decoration: none;
}

.sf-lang-switcher {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.sf-lang-switcher__item {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid var(--sf-border);
	background: var(--sf-surface);
	color: var(--sf-ink);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}

.sf-lang-switcher__item.is-current,
.sf-lang-switcher__item:hover {
	background-color: var(--sf-primary);
	border-color: var(--sf-primary);
	color: var(--sf-on-primary);
}

.sf-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: #128C7E;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 6px 20px rgba(18, 140, 126, 0.35);
}

.sf-whatsapp-float:hover {
	background: #0E7166;
	color: #FFFFFF;
}

@media (max-width: 960px) {
	.sf-cols-3,
	.sf-cols-4,
	.sf-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sf-product-detail {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.sf-cols-2,
	.sf-cols-3,
	.sf-cols-4,
	.sf-product-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.sf-hero__inner {
		padding-block: 40px;
	}
}

/* ---------------------------------------------------------------------------
 * V2 WooCommerce Product Cards, B2B Trade Meta & Hybrid Inquiry Panel
 * --------------------------------------------------------------------------- */
.sf-product-card__price-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.sf-product-card__price {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--sf-primary-text);
}

.sf-stock-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: #FEF3C7;
	color: #92400E;
}

.sf-wc-b2b-meta {
	margin: 18px 0;
}

.sf-wc-hybrid-cta {
	margin: 16px 0 8px;
}

.sf-wc-product-specs,
.sf-wc-hybrid-inquiry {
	clear: both;
	margin-top: 32px;
}

/* Always show WooCommerce /shop/ Add-to-Cart buttons unclipped on desktop & mobile (override Kadence hover-hide) */
.woocommerce ul.products.woo-archive-action-on-hover li.product .product-action-wrap,
.woocommerce ul.products li.product .product-action-wrap {
	position: static !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	margin-top: 12px !important;
	padding: 0 !important;
}

.woocommerce ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap {
	transform: none !important;
}

.woocommerce ul.products li.product .product-action-wrap .button,
.woocommerce ul.products li.product a.add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--sf-primary);
	color: var(--sf-on-primary);
	border-color: var(--sf-primary);
}

/* Bind FluentForm submit button live to Site Data WCAG CSS variables */
.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(.ff_btn_no_style),
form.frm-fluent-form .ff-btn-submit {
	background-color: var(--sf-primary) !important;
	color: var(--sf-on-primary) !important;
	border-color: var(--sf-primary) !important;
	border-radius: 8px;
	font-weight: 600;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:not(.ff_btn_no_style):hover,
form.frm-fluent-form .ff-btn-submit:hover {
	opacity: 0.92;
}
