/**
 * Main Layout & Component Stylesheet for Alfafa Modern
 *
 * Implements header, navigation, and footer architectures preserving the
 * authentic botanical brand identity and color palette of ALFAFA Agricultural.
 * Fully responsive via Flexbox and CSS Grid, PHP 8.4 and WordPress 7.1.4 compliant.
 *
 * @package Alfafa_Modern
 * @since 1.0.0
 */

/* ==========================================================================
   1. CSS Custom Properties & Design Tokens
   ========================================================================== */
:root {
	--alfafa-green-primary: #579b06;
	--alfafa-green-accent: #54ac00;
	--alfafa-green-dark: #3f7004;
	--alfafa-green-deep: #1c4205;
	--alfafa-green-footer: #59ae13;
	--alfafa-green-light-bg: #eef7e3;
	--alfafa-text-main: #424242;
	--alfafa-text-muted: #6d6d6d;
	--alfafa-bg-light: #f5f5f5;
	--alfafa-border: #e5e5e5;
	--alfafa-border-focus: #54ac00;
	--alfafa-max-width: 1126px;
	--alfafa-font: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
	--alfafa-transition: all 0.25s ease-in-out;
}

/* ==========================================================================
   2. Structural Layout & Wrappers
   ========================================================================== */
.site-wrapper {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	background-color: #ffffff;
}

.site-content {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--alfafa-max-width);
	margin: 0 auto;
	box-sizing: border-box;
}

@media screen and (min-width: 1127px) {
	.site-content {
		padding: 0 0 20px 0;
	}
}

@media screen and (max-width: 1126px) {
	.site-content {
		padding: 15px;
	}
}

/* ==========================================================================
   3. Botanical Decorative Leaves Artwork
   ========================================================================== */
.leaf-decor {
	position: absolute;
	top: 0;
	pointer-events: none;
	background-repeat: no-repeat;
	z-index: 50;
}

/* On viewports wider than 1126px, calculate leaf position relative to centered container */
@media screen and (min-width: 1127px) {
	.leaf-decor-hanging {
		left: calc(50% - (var(--alfafa-max-width) / 2) + 298px);
		top: 0;
		width: 69px;
		height: 562px;
		background-image: url('../images/leaf2.png');
		z-index: 50;
	}

	.leaf-decor-branch {
		left: calc(50% - (var(--alfafa-max-width) / 2) + 343px);
		top: 20px;
		width: 225px;
		height: 219px;
		background-image: url('../images/leaf3.png');
		z-index: 49;
	}

	.leaf-decor-inner {
		left: calc(50% - (var(--alfafa-max-width) / 2) + 298px);
		top: 0;
		width: 269px;
		height: 415px;
		background-image: url('../images/leaf_small.png');
		background-repeat: no-repeat;
		position: absolute;
		z-index: 50;
		pointer-events: none;
	}
}

/* On viewports between 769px and 1126px: container has 15px side padding, seam is at 15px + 284px = 299px */
@media screen and (min-width: 769px) and (max-width: 1126px) {
	.leaf-decor-hanging {
		left: 298px;
		top: 0;
		width: 69px;
		height: 562px;
		background-image: url('../images/leaf2.png');
		z-index: 50;
	}

	.leaf-decor-branch {
		left: 343px;
		top: 20px;
		width: 225px;
		height: 219px;
		background-image: url('../images/leaf3.png');
		z-index: 49;
	}

	.leaf-decor-inner {
		left: 298px;
		top: 0;
		width: 269px;
		height: 415px;
		background-image: url('../images/leaf_small.png');
		background-repeat: no-repeat;
		position: absolute;
		z-index: 50;
		pointer-events: none;
	}
}

/* Guard: Homepage hanging leaf is strictly for front page */
body:not(.home) .leaf-decor-hanging,
body:not(.home) .leaf-decor-branch {
	display: none !important;
}

body.home .leaf-decor-inner {
	display: none !important;
}

@media screen and (max-width: 768px) {
	.leaf-decor-hanging,
	.leaf-decor-branch,
	.leaf-decor-inner {
		display: none !important;
	}
}

/* ==========================================================================
   4. Header Architecture
   ========================================================================== */
.site-header {
	width: 100%;
	position: relative;
	z-index: 10;
	background-color: transparent;
}

.header-container {
	width: 100%;
	max-width: var(--alfafa-max-width);
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
}

/* Desktop Header Architecture (>= 1127px) - Exact Pixel Alignment with Original Live Site */
@media screen and (min-width: 1127px) {
	.site-header {
		height: 145px;
	}

	.header-container {
		width: 1126px;
		height: 125px;
		padding: 10px 0;
		box-sizing: content-box;
		background-image: url('../images/leaf1.jpg');
		background-repeat: no-repeat;
		background-position: left -7px top;
	}

	.header-top-row {
		display: block;
		width: 100%;
		height: 100%;
		position: relative;
	}

	.site-branding {
		display: none;
	}

	.header-utilities {
		position: absolute;
		right: 0;
		top: 0;
		width: 600px;
		height: 100%;
		display: block;
		z-index: 11;
	}

	.header-welcome-text h2 {
		font-size: 15px;
		line-height: 20px;
		color: #424242;
		font-family: Arial, Helvetica, sans-serif;
		font-weight: 400;
		margin: 0;
		text-align: right;
	}

	.header-subnav-and-search {
		display: block;
	}

	.secondary-navigation {
		position: absolute;
		right: 0;
		top: 25px;
		height: 20px;
		display: flex;
		justify-content: flex-end;
	}

	.secondary-navigation .submenu-nav-list {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		list-style: none;
		margin: 0;
		padding: 0;
		gap: 12px;
	}

	.secondary-navigation .submenu-nav-list li {
		display: flex;
		align-items: center;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 13px;
	}

	.secondary-navigation .submenu-nav-list li a {
		color: var(--alfafa-green-accent);
		font-size: 13px;
		font-weight: 500;
		text-decoration: none;
		transition: var(--alfafa-transition);
	}

	.secondary-navigation .submenu-nav-list li:not(:last-child)::after {
		content: "|";
		margin-left: 12px;
		color: var(--alfafa-green-accent);
		font-size: 11px;
		opacity: 0.6;
	}

	.secondary-navigation .submenu-nav-list li a:hover,
	.secondary-navigation .submenu-nav-list li a:focus {
		color: var(--alfafa-text-muted);
	}

	.header-search-wrap {
		position: absolute;
		right: 0;
		top: 55px;
		width: 320px;
		height: 35px;
		display: flex;
		justify-content: flex-end;
	}

	.header-search-wrap .search-form {
		width: 280px;
		height: 28px;
		margin: 0;
	}

	.search-input-group {
		width: 280px;
		height: 28px;
		background: #ffffff;
		border: 1px solid #e5e5e5;
		border-radius: 15px;
		padding: 0 4px 0 10px;
		box-sizing: border-box;
		display: flex;
		align-items: center;
	}

	.search-input-group .search-field {
		flex: 1 1 auto;
		border: none;
		outline: none;
		background: transparent;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 11px;
		color: #494949;
		padding: 2px 0;
	}

	.search-input-group .search-field::placeholder {
		color: var(--alfafa-text-muted);
		font-size: 11px;
		font-family: Arial, Helvetica, sans-serif;
	}

	.search-input-group .search-submit {
		flex: 0 0 31px;
		width: 31px;
		height: 28px;
		border: none;
		background: transparent url('../images/s_icon.jpg') no-repeat center center;
		cursor: pointer;
		padding: 0;
		opacity: 0.85;
		transition: var(--alfafa-transition);
	}

	.main-navigation {
		position: absolute;
		right: 0;
		top: 110px;
		width: auto;
		margin: 0;
		z-index: 20;
	}

	.primary-menu-list {
		display: flex;
		list-style: none;
		margin: 0;
		padding: 0;
		justify-content: flex-end;
		align-items: center;
		gap: 20px;
	}

	.primary-menu-list > li {
		position: relative;
		font-size: 17px;
		font-weight: 500;
		text-transform: capitalize;
	}

	.primary-menu-list > li > a {
		color: var(--alfafa-green-accent);
		font-family: 'Open Sans', var(--alfafa-font);
		font-size: 17px;
		font-weight: 500;
		display: inline-block;
		padding: 0;
		line-height: 22px;
		text-decoration: none;
		transition: var(--alfafa-transition);
	}
}

/* Intermediate Tablet & Small Desktop (769px to 1126px) */
@media screen and (min-width: 769px) and (max-width: 1126px) {
	.header-container {
		padding: 12px 15px 0;
		background-image: url('../images/leaf1.jpg');
		background-repeat: no-repeat;
		background-position: left -7px top;
	}

	.site-branding {
		display: none;
	}

	.header-top-row {
		display: flex;
		justify-content: flex-end;
	}

	.header-utilities {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;
	}

	.header-welcome-text h2 {
		font-size: 15px;
		line-height: 20px;
		color: var(--alfafa-text-main);
		font-weight: 400;
		margin: 0;
		text-align: right;
	}

	.header-subnav-and-search {
		display: flex;
		align-items: center;
		gap: 15px;
	}

	.secondary-navigation .submenu-nav-list {
		display: flex;
		align-items: center;
		list-style: none;
		margin: 0;
		padding: 0;
		gap: 12px;
	}

	.secondary-navigation .submenu-nav-list li {
		display: flex;
		align-items: center;
		font-size: 13px;
	}

	.secondary-navigation .submenu-nav-list li a {
		color: var(--alfafa-green-accent);
		font-size: 13px;
		font-weight: 500;
		text-decoration: none;
	}

	.secondary-navigation .submenu-nav-list li:not(:last-child)::after {
		content: "|";
		margin-left: 12px;
		color: var(--alfafa-green-accent);
		font-size: 11px;
		opacity: 0.6;
	}

	.header-search-wrap .search-form {
		margin: 0;
	}

	.search-input-group {
		display: flex;
		align-items: center;
		width: 250px;
		height: 30px;
		background: #ffffff;
		border: 1px solid var(--alfafa-border);
		border-radius: 15px;
		padding: 0 4px 0 10px;
		box-sizing: border-box;
	}

	.search-input-group .search-field {
		flex: 1 1 auto;
		border: none;
		outline: none;
		background: transparent;
		font-size: 11px;
		color: var(--alfafa-text-main);
		padding: 2px 0;
	}

	.search-input-group .search-submit {
		flex: 0 0 31px;
		width: 31px;
		height: 28px;
		border: none;
		background: transparent url('../images/s_icon.jpg') no-repeat center center;
		cursor: pointer;
		padding: 0;
	}

	.main-navigation {
		width: 100%;
		position: relative;
		margin-top: 10px;
		z-index: 20;
	}

	.primary-menu-list {
		display: flex;
		list-style: none;
		margin: 0;
		padding: 6px 0 10px;
		justify-content: flex-end;
		align-items: center;
		gap: 16px;
		flex-wrap: wrap;
	}

	.primary-menu-list > li {
		position: relative;
		font-size: 16px;
		font-weight: 700;
	}

	.primary-menu-list > li > a {
		color: var(--alfafa-green-accent);
		font-family: 'Open Sans', var(--alfafa-font);
		font-size: 16px;
		font-weight: 700;
		text-decoration: none;
	}
}

/* Mobile Screens (<= 768px) Header */
@media screen and (max-width: 768px) {
	.header-container {
		padding: 10px 15px;
		background-image: none;
	}

	.header-top-row {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.site-branding {
		display: flex;
		align-items: center;
	}

	.site-branding .custom-logo {
		width: 130px;
		height: auto;
		display: block;
	}

	.header-utilities {
		display: none; /* Accessible inside mobile drawer */
	}

	.main-navigation {
		position: static;
		margin-top: 0;
	}
}

/* ==========================================================================
   5. Main Navigation Dropdowns & Shared Rules
   ========================================================================== */
.nav-toggle-wrapper,
.menu-toggle {
	display: none;
}

.primary-menu-list > li.current-menu-item > a,
.primary-menu-list > li.current-menu-ancestor > a {
	color: #6d6d6d;
	font-weight: 500;
}

.primary-menu-list > li > a:hover,
.primary-menu-list > li > a:focus {
	color: var(--alfafa-text-muted);
}

/* Authentic Original Layout: Flat Single-Tier Navigation (No Dropdown Menus) */
.primary-menu-list .sub-menu {
	display: none !important;
}

.mobile-menu-utilities {
	display: none;
}

/* ==========================================================================
   6. Homepage Banner Wrapper Scaffold (Prepared for Phase 4.4)
   ========================================================================== */
.home-banner-wrapper {
	width: 100%;
	max-width: var(--alfafa-max-width);
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
	gap: 0;
	border-radius: 10px;
	background-color: #e9e9e9;
	border: 1px solid #e2e2e2;
	overflow: hidden;
	position: relative;
}

.banner-logo-card {
	flex: 0 0 284px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 45px 50px;
	box-sizing: border-box;
}

.banner-slider-container {
	flex: 1 1 auto;
	position: relative;
	overflow: hidden;
	min-height: 271px;
}

/* ==========================================================================
   7. Authentic ALFAFA Footer Architecture (100% Visual Parity with Original)
   ========================================================================== */
#footer,
.site-footer {
	width: 100%;
	margin-top: 40px;
	position: relative;
	background-color: transparent;
	clear: both;
}

/* Decorative Botanical Silhouette Graphic (1126x116px) */
.foot_top,
.footer-top-decor {
	width: 100%;
	max-width: var(--alfafa-max-width, 1126px);
	height: 116px;
	margin: 0 auto;
	background: url('../images/footer.jpg') no-repeat center top;
	background-size: 1126px 116px;
}

/* Centered Green Card (1126px max-width, rounded top corners matching original) */
.footer-card-container {
	width: 100%;
	max-width: var(--alfafa-max-width, 1126px);
	margin: -10px auto 0;
	background-color: #59ae13;
	border-radius: 10px 10px 0 0;
	box-sizing: border-box;
	overflow: hidden;
}

/* Main 3-Column Content Row */
.foot_cntns,
.footer-main-section {
	width: 100%;
	padding: 15px 30px 10px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Column 1: Logo & Contact Address (.foot_c_1)
   -------------------------------------------------------------------------- */
.foot_c_1,
.footer-col-contact {
	width: 200px;
	flex: 0 0 200px;
	text-align: center;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	box-sizing: border-box;
}

.foot_c_1 .footer-branding-logo {
	margin: 0 auto 10px;
	text-align: center;
}

.foot_c_1 .footer-branding-logo a {
	display: inline-block;
}

.foot_c_1 .footer-logo-img {
	width: 134px;
	height: 119px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.foot_c_1 .footer-contact-address p {
	margin: 0;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
}

.foot_c_1 .footer-contact-address a {
	color: #ffffff;
	text-decoration: none;
}

.foot_c_1 .footer-contact-address a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Column 2: Authentic 2-Column Sitemap (.foot_c_2)
   -------------------------------------------------------------------------- */
.foot_c_2,
.footer-col-sitemap {
	width: 380px;
	flex: 0 0 380px;
	margin: 30px 0 0 50px;
	box-sizing: border-box;
}

.foot_c_2 ul.sitemap,
.foot_c_2 .sitemap {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.foot_c_2 .menu-footer-menu-container > ul.menu {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	gap: 25px;
}

.foot_c_2 .menu-footer-menu-container > ul.menu > li {
	list-style: none !important;
	list-style-type: none !important;
	width: 170px;
	margin: 0 !important;
	padding: 0 !important;
}

.foot_c_2 .menu-footer-menu-container > ul.menu > li > a {
	display: block;
	font-family: 'Nova Flat', Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 12px;
	text-decoration: none;
	letter-spacing: normal;
}

.foot_c_2 ul.sub-menu,
.foot_c_2 .sub-menu {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.foot_c_2 ul.sub-menu li,
.foot_c_2 .sub-menu li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 0 4px 0 !important;
	padding: 0 !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	line-height: 20px;
}

.foot_c_2 ul.sub-menu li a,
.foot_c_2 .sub-menu li a {
	color: #ffffff;
	text-decoration: none;
	display: inline-block;
	transition: var(--alfafa-transition);
}

.foot_c_2 ul.sub-menu li a:hover,
.foot_c_2 .sub-menu li a:focus {
	color: #1c4205;
}

/* --------------------------------------------------------------------------
   Column 3: Quick Contact Form (.foot_c_3)
   -------------------------------------------------------------------------- */
.foot_c_3,
.footer-col-quick-contact {
	width: 400px;
	flex: 0 0 400px;
	margin-top: 30px;
	box-sizing: border-box;
	position: relative;
}

.foot_c_3 h2,
.footer-quick-contact-title {
	font-weight: 700;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	margin: 0 0 12px;
	color: #ffffff;
}

.foot_c_3 .cform,
.footer-quick-form {
	width: 100%;
	position: relative;
	margin: 0;
	padding: 0;
}

.foot_c_3 ol.cf-ol,
.footer-form-fields {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: 185px 185px;
	gap: 6px 15px;
}

.foot_c_3 ol.cf-ol li,
.footer-form-fields li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.foot_c_3 .cform input.single,
.footer-form-fields input.single {
	width: 100%;
	height: 26px;
	box-sizing: border-box;
	background: #8dd52b;
	border: 1px solid #8bd834;
	border-radius: 5px;
	color: #ffffff;
	font-size: 11px;
	font-family: Arial, Helvetica, sans-serif;
	padding: 4px 10px;
	outline: none;
}

.foot_c_3 .cform textarea.area,
.footer-form-fields textarea.area {
	width: 100%;
	height: 90px;
	box-sizing: border-box;
	background: #8dd52b;
	border: 1px solid #8bd834;
	border-radius: 5px;
	color: #ffffff;
	font-size: 11px;
	font-family: Arial, Helvetica, sans-serif;
	padding: 6px 10px;
	outline: none;
	resize: none;
}

.foot_c_3 input::placeholder,
.foot_c_3 textarea::placeholder {
	color: #ffffff;
	opacity: 1;
}

.foot_c_3 input:focus,
.foot_c_3 textarea:focus,
.foot_c_3 input:hover,
.foot_c_3 textarea:hover {
	background: #8bd834;
}

#li--1 { grid-column: 1; grid-row: 1; }
#li--2 { grid-column: 1; grid-row: 2; }
#li--3 { grid-column: 1; grid-row: 3; }
#li--4 { grid-column: 2; grid-row: 1 / span 3; }

.foot_c_3 p.cf-sb,
.footer-form-submit {
	margin: 6px 0 0 !important;
	padding: 0 !important;
	text-align: right;
}

.foot_c_3 input.sendbutton,
.footer-form-submit .sendbutton {
	background: url('../images/submit.jpg') no-repeat center center;
	cursor: pointer;
	width: 76px;
	height: 27px;
	border: none !important;
	text-indent: -9999px;
	display: inline-block;
	border-radius: 5px;
	padding: 0;
	margin: 0;
	outline: none;
	transition: var(--alfafa-transition);
}

.foot_c_3 input.sendbutton:hover,
.foot_c_3 input.sendbutton:focus {
	opacity: 0.92;
	transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Divider Line (.foot_btm_top / .footer-line-divider)
   -------------------------------------------------------------------------- */
.foot_btm_top,
.footer-line-divider {
	width: calc(100% - 60px);
	height: 10px;
	margin: 15px auto 10px;
	background: url('../images/footerline.jpg') repeat-x top;
	display: block;
}

/* --------------------------------------------------------------------------
   Bottom Social & Copyright Bar (.foot_btm)
   -------------------------------------------------------------------------- */
.foot_btm,
.footer-bottom-section {
	width: 100%;
	padding: 0 30px 15px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.foot_btm_l,
.footer-social-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.foot_btm_l p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.foot_btm_l a.social-icon-btn,
.foot_btm_l p a {
	display: inline-block;
	line-height: 0;
	transition: var(--alfafa-transition);
}

.foot_btm_l a.social-icon-btn:hover,
.foot_btm_l p a:hover {
	opacity: 0.85;
	transform: scale(1.05);
}

.foot_btm_l img,
.social-icon-img {
	width: 29px;
	height: 29px;
	display: block;
	border-radius: 4px;
}

.foot_btm_r,
.footer-copyright-text {
	text-align: right;
	color: #ffffff;
	font-weight: 600;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
}

.foot_btm_r p,
.footer-copyright-text p {
	margin: 0;
	color: #ffffff;
	font-weight: 600;
	font-size: 12px;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

/* Authentic Social Media Square Badges */
.footer-social-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
}

.social-icon-btn {
	display: inline-block;
	width: 29px;
	height: 29px;
	text-decoration: none;
	line-height: 0;
	border-radius: 4px;
	transition: var(--alfafa-transition);
}

.social-icon-btn:hover,
.social-icon-btn:focus {
	transform: translateY(-2px);
	filter: brightness(1.15);
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.social-icon-img {
	width: 29px;
	height: 29px;
	border-radius: 4px;
	display: block;
	object-fit: cover;
}

.footer-copyright-text {
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	text-align: right;
}

.footer-copyright-text p {
	margin: 0;
}

/* ==========================================================================
   8. Responsive Adaptations & Breakpoints
   ========================================================================== */

/* Tablet & Intermediate Desktops (<= 1024px) */
@media screen and (max-width: 1024px) {
	/* Tablet & Intermediate Desktops (<= 1024px): Preserve 4 columns side-by-side */
	.foot_cntns,
	.footer-main-section {
		padding: 15px 20px 10px;
		gap: 15px;
	}

	.foot_c_1,
	.footer-col-contact {
		width: 170px;
		flex: 0 0 170px;
	}

	.foot_c_1 .footer-logo-img {
		width: 110px;
		height: auto;
	}

	.foot_c_2,
	.footer-col-sitemap {
		width: 320px;
		flex: 0 0 320px;
		margin: 20px 0 0 0;
	}

	.foot_c_2 .menu-footer-menu-container > ul.menu {
		gap: 15px;
	}

	.foot_c_2 .menu-footer-menu-container > ul.menu > li {
		width: 145px;
	}

	.foot_c_3,
	.footer-col-quick-contact {
		width: 370px;
		flex: 0 0 370px;
		margin-top: 20px;
	}

	.foot_c_3 ol.cf-ol {
		grid-template-columns: 165px 165px;
		gap: 6px 10px;
	}
}

/* Tablet Screens (<= 992px) */
@media screen and (max-width: 992px) {
	.header-top-row {
		flex-wrap: wrap;
	}
}

/* Mobile Screens (<= 768px) - Clean Flexbox Layout (No Fragile Negative Coordinates) */
@media screen and (max-width: 768px) {
	/* Hide complex absolute botanical leaves on mobile to prevent obstruction */
	.leaf-decor {
		display: none;
	}

	.site-header {
		background-position: left -40px top;
	}

	/* Stable Flexbox container on mobile */
	.header-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		padding: 10px 15px;
		position: relative;
	}

	.header-top-row {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		width: auto;
		margin: 0;
		padding: 0;
		gap: 0;
	}

	.site-branding {
		display: flex;
		align-items: center;
	}

	.site-branding .custom-logo {
		width: 140px;
		height: auto;
	}

	.header-utilities {
		display: none; /* Relocated into mobile menu drawer */
	}

	/* Clean, static-positioned mobile toggle aligned via Flexbox */
	.main-navigation {
		margin: 0;
		width: auto;
		flex: 0 0 auto;
	}

	.nav-toggle-wrapper {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: auto;
		position: static;
		margin: 0;
		padding: 0;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background-color: var(--alfafa-green-accent);
		color: #ffffff;
		border: none;
		border-radius: 6px;
		padding: 8px 14px;
		font-family: var(--alfafa-font);
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		transition: var(--alfafa-transition);
	}

	.menu-toggle:hover,
	.menu-toggle:focus {
		background-color: var(--alfafa-green-dark);
		outline: 2px solid var(--alfafa-green-primary);
		outline-offset: 2px;
	}

	.hamburger-box {
		width: 20px;
		height: 14px;
		display: inline-block;
		position: relative;
	}

	.hamburger-inner,
	.hamburger-inner::before,
	.hamburger-inner::after {
		width: 100%;
		height: 2px;
		background-color: #ffffff;
		position: absolute;
		left: 0;
		transition: transform 0.2s ease, top 0.2s ease;
	}

	.hamburger-inner {
		top: 6px;
	}

	.hamburger-inner::before {
		content: '';
		top: -6px;
	}

	.hamburger-inner::after {
		content: '';
		top: 6px;
	}

	/* Hamburger Active / Toggled State */
	.main-navigation.is-active .hamburger-inner {
		background-color: transparent;
	}

	.main-navigation.is-active .hamburger-inner::before {
		top: 0;
		transform: rotate(45deg);
	}

	.main-navigation.is-active .hamburger-inner::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* Mobile Menu Container Drawer: Drops full width below header row */
	.primary-menu-container {
		display: none;
		background: #ffffff;
		border: 1px solid var(--alfafa-border);
		border-radius: 8px;
		padding: 18px;
		margin-top: 15px;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
		width: 100%;
		flex: 0 0 100%;
		order: 10;
		box-sizing: border-box;
	}

	.main-navigation.is-active .primary-menu-container {
		display: block;
		animation: alfafaMenuFadeIn 0.25s ease-out;
	}

	.primary-menu-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0;
	}

	.primary-menu-list > li {
		border-bottom: 1px solid #f0f0f0;
		width: 100%;
		font-size: 16px;
	}

	.primary-menu-list > li > a {
		display: block;
		padding: 12px 4px;
	}

	/* Mobile Dropdowns */
	.primary-menu-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-left: 3px solid var(--alfafa-green-accent);
		background-color: var(--alfafa-bg-light);
		margin: 0 0 10px 10px;
		border-radius: 4px;
		padding: 6px 0;
	}

	.primary-menu-list .sub-menu li a {
		padding: 8px 14px;
		font-size: 14px;
	}

	/* Mobile Drawer Utilities */
	.mobile-menu-utilities {
		display: block;
		margin-top: 20px;
		padding-top: 18px;
		border-top: 2px solid var(--alfafa-border);
	}

	.mobile-search .search-input-group {
		width: 100%;
	}

	.mobile-submenu {
		margin-top: 15px;
	}

	.mobile-subnav-title {
		font-size: 12px;
		font-weight: 700;
		text-transform: uppercase;
		color: var(--alfafa-text-muted);
		margin-bottom: 8px;
	}

	.mobile-submenu-list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.mobile-submenu-list li a {
		display: inline-block;
		font-size: 13px;
		color: var(--alfafa-green-accent);
		background-color: var(--alfafa-green-light-bg);
		padding: 6px 12px;
		border-radius: 4px;
		text-decoration: none;
	}

	/* Footer Responsive Layout (<= 768px) */
	.foot_top,
	.footer-top-decor {
		height: 70px;
		background-size: cover;
	}

	.footer-card-container {
		margin-top: 0;
	}

	.foot_cntns,
	.footer-main-section {
		flex-direction: column;
		align-items: center;
		padding: 20px 20px 15px;
		gap: 25px;
	}

	.foot_c_1,
	.footer-col-contact {
		width: 100%;
		flex: 0 0 auto;
		text-align: center;
	}

	.foot_c_1 .footer-branding-logo .footer-logo-img {
		margin: 0 auto 10px;
	}

	.foot_c_2,
	.footer-col-sitemap {
		width: 100%;
		max-width: 420px;
		flex: 0 0 auto;
		margin: 0 auto;
		text-align: center;
	}

	.foot_c_2 .menu-footer-menu-container > ul.menu {
		display: flex;
		justify-content: center;
		gap: 30px;
	}

	.foot_c_2 .menu-footer-menu-container > ul.menu > li {
		width: 160px;
		text-align: left;
	}

	.foot_c_3,
	.footer-col-quick-contact {
		width: 100%;
		max-width: 400px;
		flex: 0 0 auto;
		margin: 0 auto;
	}

	.foot_c_3 h2,
	.footer-quick-contact-title {
		text-align: center;
	}

	.foot_c_3 ol.cf-ol {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6px 12px;
	}

	.foot_btm,
	.footer-bottom-section {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		gap: 12px;
		padding: 0 20px 15px;
	}

	.foot_btm_l,
	.footer-social-wrapper {
		justify-content: center;
		width: 100%;
	}

	.foot_btm_r,
	.footer-copyright-text {
		text-align: center;
		width: 100%;
	}
}

/* Small Smartphone Screens (<= 480px) */
@media screen and (max-width: 480px) {
	.site-branding .custom-logo {
		width: 120px;
	}

	.foot_c_2 .menu-footer-menu-container > ul.menu {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.foot_c_2 .menu-footer-menu-container > ul.menu > li {
		width: 100%;
		text-align: center;
	}

	.foot_c_3 ol.cf-ol {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.foot_c_3 #li--1,
	.foot_c_3 #li--2,
	.foot_c_3 #li--3,
	.foot_c_3 #li--4 {
		grid-column: auto;
		grid-row: auto;
		width: 100%;
	}

	.foot_c_3 .cform input.single,
	.foot_c_3 .cform textarea.area {
		width: 100% !important;
		min-height: 40px;
	}

	.foot_c_3 .cform textarea.area {
		height: 80px;
	}

	.foot_c_3 p.cf-sb {
		text-align: center;
		margin-top: 8px !important;
	}

	.foot_c_3 input.sendbutton {
		display: inline-block;
		float: none;
	}

	.footer-container {
		padding: 0 16px;
	}

	.footer-menu-list {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   9. Keyframe Animations
   ========================================================================== */
@keyframes alfafaMenuFadeIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* ==========================================================================
   10. Homepage Architecture (Phase 4.4)
   ========================================================================== */

/* Desktop Header Optimization for Authentic Banner Composition (All Pages) */
@media screen and (min-width: 769px) {
	.site-header .site-branding {
		display: none;
	}
	.site-header .header-top-row {
		justify-content: flex-end;
	}
	.site-header {
		min-height: 125px;
	}
}

/* Row 1: Hero Banner & Logo Card Composition */
.home-banner-wrapper {
	width: 100%;
	max-width: 1124px;
	height: 271px;
	background: #e9e9e9;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

@media screen and (min-width: 1127px) {
	.home-banner-wrapper {
		display: block;
	}

	.banner-logo-card {
		width: 184px;
		height: 179px;
		margin: 45px 50px;
		float: left;
		padding: 0;
		background: transparent;
		display: block;
		position: relative;
		z-index: 2;
	}

	.banner-logo-link {
		display: block;
		width: 184px;
		height: 179px;
		text-decoration: none;
	}

	.banner-logo-img {
		width: 184px;
		height: 179px;
		display: block;
		object-fit: contain;
	}

	.banner-slider-container {
		width: 778px;
		height: 271px;
		float: right;
		position: relative;
		overflow: hidden;
		background: transparent;
	}
}

@media screen and (max-width: 1126px) {
	.home-banner-wrapper {
		display: flex;
		align-items: stretch;
	}

	.banner-logo-card {
		flex: 0 0 240px;
		width: 240px;
		height: 271px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		position: relative;
		z-index: 2;
	}

	.banner-logo-link {
		display: flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
	}

	.banner-logo-img {
		width: 184px;
		height: 179px;
		max-width: 184px;
		max-height: 179px;
		object-fit: contain;
		display: block;
	}

	.banner-slider-container {
		flex: 1 1 auto;
		height: 271px;
		position: relative;
		overflow: hidden;
	}
}

.banner-slider {
	width: 100%;
	height: 100%;
	position: relative;
}

.banner-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
	z-index: 1;
}

.banner-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.banner-slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.banner-caption {
	display: none !important;
}

.banner-caption-title {
	display: none !important;
}

.slider-controls {
	display: none !important;
}

.slider-arrow {
	pointer-events: auto;
	background: rgba(0, 0, 0, 0.4);
	color: #ffffff;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	transition: background 0.2s ease, transform 0.2s ease;
	user-select: none;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
	background: var(--alfafa-green-btn);
	transform: scale(1.1);
	outline: none;
}

.slider-indicators {
	pointer-events: auto;
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 7px;
	z-index: 4;
}

.indicator-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(0, 0, 0, 0.2);
	padding: 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.indicator-dot.active {
	background: var(--alfafa-green-primary);
	border-color: #ffffff;
	transform: scale(1.25);
}

/* Homepage Content Wrapper */
.home-content-wrapper {
	width: 100%;
	max-width: var(--alfafa-max-width);
	margin: 0 auto;
}

/* Row 2: Newsletter, Mission, Quick Info */
.home-row-top {
	display: grid;
	grid-template-columns: 300px 1fr 280px;
	gap: 30px;
	align-items: start;
	margin: 25px 0 20px;
}

/* Newsletter Section */
.home-newsletter-card {
	width: 100%;
	overflow: hidden;
}

.nsltr-header {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.nsltr-icon {
	flex: 0 0 75px;
	width: 75px;
	height: 51px;
}

.nsltr-envelope-img {
	width: 75px;
	height: 51px;
	display: block;
	object-fit: contain;
}

.nsltr-text {
	flex: 1 1 auto;
}

.nsltr-title {
	font-size: 20px;
	line-height: 22px;
	color: #627700;
	font-weight: 700;
	margin: 0 0 4px;
}

.nsltr-description {
	font-size: 12px;
	line-height: 16px;
	color: #555555;
	margin: 0;
}

.newsletterbox {
	position: relative;
	margin-top: 15px;
}

.newsletter-input-wrap {
	position: relative;
	width: 100%;
	max-width: 255px;
}

.newsletterTextInput {
	background: #ffffff;
	width: 100%;
	color: #666666;
	border: 1px solid #e7e7e7;
	font-size: 11px;
	padding: 7px 38px 7px 12px;
	border-radius: 15px;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletterTextInput:focus {
	border-color: #627700;
	box-shadow: 0 0 4px rgba(98, 119, 0, 0.3);
}

.newsletter-submit-btn {
	width: 31px;
	height: 32px;
	background: url('../images/s_icon.jpg') no-repeat center;
	border: none;
	cursor: pointer;
	position: absolute;
	top: 0;
	right: 0;
	border-radius: 0 15px 15px 0;
}

.newsletter-feedback {
	font-size: 11px;
	margin-top: 5px;
	min-height: 16px;
}

/* Mission & Vision Section */
.home-mission-card {
	border-bottom: 6px solid #e9e9e9;
	padding-bottom: 17px;
}

.mission-title {
	font-size: 20px;
	line-height: 24px;
	color: #627700;
	font-weight: 700;
	margin: 0 0 10px;
}

.mission-excerpt p {
	font-size: 15px;
	line-height: 20px;
	color: #474747;
	margin: 0;
}

.mission-readmore {
	font-size: 12px;
	font-weight: 600;
	color: #54ac00;
	text-decoration: none;
	white-space: nowrap;
	margin-left: 4px;
	transition: color 0.2s ease;
}

.mission-readmore:hover,
.mission-readmore:focus {
	color: #627700;
	text-decoration: underline;
}

/* Quick Info Card */
.home-quick-info-card {
	background: #54ac00;
	border-radius: 10px;
	padding: 18px 20px;
	color: #d5fb74;
	box-sizing: border-box;
}

.quick-info-inner {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.quick-info-icon {
	flex: 0 0 53px;
	width: 53px;
	height: 79px;
}

.quick-location-img {
	width: 53px;
	height: 79px;
	display: block;
	object-fit: contain;
}

.quick-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	color: #d5fb74;
}

.quick-info-list li {
	margin-bottom: 2px;
	color: #d5fb74;
}

.quick-label {
	margin-right: 4px;
	color: #d5fb74;
}

.quick-link {
	color: #d5fb74 !important;
	text-decoration: none;
	transition: text-decoration 0.2s ease;
}

.quick-link:hover,
.quick-link:focus {
	text-decoration: underline;
	color: #d5fb74 !important;
}

/* Row 3: Product Scroller, About Alfafa, Latest News */
.home-row-bottom {
	display: grid;
	grid-template-columns: 290px 1fr 300px;
	gap: 30px;
	align-items: start;
	margin: 10px 0 35px;
}

/* Featured Products Carousel Card */
.home-products-card {
	background: #54ac00;
	border-radius: 10px;
	padding: 18px 15px;
	color: #ffffff;
	box-sizing: border-box;
	min-height: 220px;
	position: relative;
}

.product-carousel-wrap {
	position: relative;
	width: 100%;
}

.product-carousel-viewport {
	width: 100%;
	position: relative;
}

.product-item {
	display: none;
	text-align: center;
	animation: alfafaMenuFadeIn 0.3s ease;
}

.product-item.active {
	display: block;
}

.product-item-title {
	font-size: 18px;
	line-height: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	text-align: center;
}

.product-title-link {
	color: #ffffff;
	text-decoration: none;
}

.product-title-link:hover,
.product-title-link:focus {
	text-decoration: underline;
}

.product-thumb-wrap {
	margin-bottom: 8px;
	text-align: center;
}

.product-thumb-img {
	width: 190px;
	height: 78px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 4px;
	display: inline-block;
}

.product-item-desc p {
	font-size: 12px;
	line-height: 16px;
	color: #eaf8c9;
	margin: 0;
	text-align: center;
	max-height: 48px;
	overflow: hidden;
}

.product-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	width: 25px;
	height: 26px;
	padding: 0;
	cursor: pointer;
	z-index: 5;
}

.product-carousel-btn:hover,
.product-carousel-btn:focus-visible {
	opacity: 0.8;
	outline: none;
}

.product-carousel-btn.prev-btn {
	left: -5px;
}

.product-carousel-btn.next-btn {
	right: -5px;
}

/* About Alfafa Card */
.home-about-card {
	width: 100%;
}

.about-title {
	color: #5d7600;
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
	margin: 0 0 12px;
}

.about-card-body {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.about-thumb-wrap {
	flex: 0 0 178px;
	width: 178px;
}

.about-thumb-img {
	width: 178px;
	height: 154px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.about-text-wrap {
	flex: 1 1 auto;
}

.about-lead {
	font-size: 13px;
	line-height: 17px;
	color: #222222;
	margin: 0 0 6px;
}

.about-subtext {
	font-size: 12px;
	line-height: 16px;
	color: #555555;
	margin: 0 0 8px;
}

.about-readmore-wrap {
	margin: 0;
}

.about-readmore {
	color: #54ac00;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.about-readmore:hover,
.about-readmore:focus {
	color: #627700;
	text-decoration: underline;
}

/* Latest News Card */
.home-news-card {
	width: 100%;
}

.news-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.news-icon {
	flex: 0 0 69px;
	width: 69px;
	height: 65px;
}

.news-icon-img {
	width: 69px;
	height: 65px;
	display: block;
	object-fit: contain;
}

.news-main-title {
	color: #627700;
	font-size: 18px;
	line-height: 22px;
	font-weight: 700;
	margin: 0;
}

.news-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.news-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.news-item-thumb {
	flex: 0 0 60px;
	width: 60px;
}

.news-thumb-img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.news-item-content {
	flex: 1 1 auto;
}

.news-date {
	display: block;
	font-size: 11px;
	color: #888888;
	margin-bottom: 2px;
}

.news-item-title {
	font-size: 12px;
	line-height: 15px;
	font-weight: 600;
	margin: 0 0 2px;
}

.news-title-link {
	color: #333333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.news-title-link:hover,
.news-title-link:focus {
	color: #54ac00;
	text-decoration: underline;
}

.news-item-excerpt {
	font-size: 11px;
	line-height: 14px;
	color: #666666;
	margin: 0;
}

/* ==========================================================================
   Homepage Responsive Styles
   ========================================================================== */

/* Intermediate Desktops & Tablets (<= 1024px) */
@media screen and (max-width: 1024px) {
	.home-banner-wrapper {
		height: auto;
		min-height: 240px;
	}

	.banner-logo-card {
		flex: 0 0 220px;
		width: 220px;
	}

	.banner-logo-img {
		width: 150px;
		height: 146px;
	}

	.home-row-top {
		grid-template-columns: 1fr 1fr;
		gap: 25px;
	}

	.home-quick-info-card {
		grid-column: span 2;
	}

	.home-row-bottom {
		grid-template-columns: 1fr 1fr;
		gap: 25px;
	}

	.home-news-card {
		grid-column: span 2;
	}
}

/* Tablets and Mobile Devices (<= 768px) */
@media screen and (max-width: 768px) {
	.home-banner-wrapper {
		flex-direction: column;
		height: auto;
		min-height: auto;
		border-radius: 8px;
		margin-bottom: 20px;
	}

	/* Logo is already in mobile header, so hide redundant card in banner */
	.banner-logo-card {
		display: none;
	}

	.banner-slider-container {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		height: clamp(140px, 40vw, 220px);
		min-height: 140px;
	}

	.banner-caption-title {
		font-size: 15px;
		line-height: 19px;
	}

	.home-row-top {
		grid-template-columns: 1fr;
		gap: 20px;
		margin: 15px 0;
	}

	.home-quick-info-card {
		grid-column: span 1;
	}

	.home-row-bottom {
		grid-template-columns: 1fr;
		gap: 20px;
		margin: 15px 0 25px;
	}

	.home-news-card {
		grid-column: span 1;
	}

	.about-card-body {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.about-thumb-wrap {
		flex: 0 0 auto;
		width: auto;
		margin-bottom: 10px;
	}

	.about-readmore-wrap {
		text-align: center;
	}

	.newsletter-input-wrap {
		max-width: 100%;
	}

	.nsltr-header {
		justify-content: flex-start;
	}
}

/* Small Smartphone Screens (<= 480px) */
@media screen and (max-width: 480px) {
	.banner-caption {
		bottom: 12px;
		left: 12px;
		right: 12px;
	}

	.banner-caption-title {
		font-size: 13px;
		line-height: 16px;
	}

	.slider-arrow {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.quick-info-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.quick-info-icon {
		margin-bottom: 5px;
	}
}
