/*
Theme Name: EcoSlider FSE
Theme URI: https://next.ecoslider.com
Author: UX Genius
Description: Block theme for the Ecoslider greenhouse prototype. Design tokens live in theme.json; this file only holds what theme.json cannot express.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecoslider-fse
*/

/* Template parts and sections sit flush against each other. */
.wp-site-blocks > * + * { margin-block-start: 0; }
body { overflow-x: hidden; }

/* ---------- Header ---------- */
.eco-promo a { color: inherit; text-decoration: none; }
.eco-promo a:hover { text-decoration: underline; }
.eco-header-main { position: relative; }
.eco-header-main .eco-logo {
	position: absolute;
	top: 0;
	left: max(var(--wp--preset--spacing--30), calc((100% - 1440px) / 2 + var(--wp--preset--spacing--30)));
	z-index: 20;
	margin: 0;
	padding: 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--white);
	border-radius: 0 0 20px 20px;
}
.eco-logo img { display: block; width: 162px; max-width: 100%; height: auto; border-radius: 0; }
.eco-logo .wp-block-image { margin: 0; }
.eco-header-row { max-width: 1440px; margin-inline: auto; padding-left: calc(162px + 3.5rem); }
.eco-topbar a { color: var(--wp--preset--color--primary-dark); text-decoration: none; }
.eco-ico-phone, .eco-ico-mail { display: flex; align-items: center; gap: 0.5rem; }
.eco-ico-phone::before, .eco-ico-mail::before { content: ""; width: 18px; height: 18px; background: center / contain no-repeat; }
.eco-ico-phone::before { background-image: url("assets/img/phone-Icon.svg"); }
.eco-ico-mail::before { background-image: url("assets/img/email-Icon.svg"); }
.eco-navbar { min-height: 72px; display: flex; align-items: center; }
.eco-navbar > .wp-block-group { width: 100%; }
.eco-nav .wp-block-navigation-item__content { padding: 8px 16px; border-radius: 8px; white-space: nowrap; }
@media (min-width: 782px) {
	.eco-nav .wp-block-navigation__container { flex-wrap: nowrap; gap: 0; }
	.eco-nav { flex-wrap: nowrap; font-size: clamp(0.8125rem, 1.25vw, 1.125rem); }
	.eco-nav .wp-block-navigation-item__content { padding: 8px clamp(8px, 0.9vw, 16px); }
	.eco-header-nav > .wp-block-navigation { flex: 1 1 auto; min-width: 0; }
	.eco-header-nav .wp-block-search { flex: 0 0 auto; }
}
.eco-nav .wp-block-navigation-item__content:hover,
.eco-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--mint-dark); }
.eco-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--foreground);
	border: 0;
	border-radius: 0 0 20px 20px;
	padding: 10px;
	font-size: 0.875rem;
	min-width: 260px;
}
.eco-header-nav .wp-block-search__button { background: transparent; color: var(--wp--preset--color--foreground); }
@media (max-width: 781px) {
	.eco-header-row { padding-left: 7rem; }
	.eco-logo img { width: 90px; }
	.eco-navbar { min-height: 56px; }
}

/* ---------- Hero ---------- */
.eco-hero-panel { border-radius: 20px 20px 0 0; }
.eco-hero .wp-block-cover__inner-container { padding: 0; }
.eco-hero { padding: 0; }
@media (max-width: 781px) { .eco-hero { min-height: 520px !important; } .eco-hero-panel { padding: var(--wp--preset--spacing--40) !important; } }

/* ---------- Manufacturer strip ---------- */
.eco-strip { border-radius: 20px; border-bottom: 14px solid var(--wp--preset--color--primary-dark); }
.eco-strip h2 { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (min-width: 782px) {
	.eco-strip h2 { font-size: clamp(3.125rem, 5.6vw, 5.625rem) !important; }
	.eco-strip .wp-block-column:nth-child(1) { flex-basis: 40% !important; }
	.eco-strip .wp-block-column:nth-child(2) { flex-basis: 36% !important; }
	.eco-strip .wp-block-column:nth-child(3) { flex-basis: 24% !important; }
}
.eco-badge { flex: 0 0 auto; }
@media (max-width: 781px) {
	.eco-hide-mobile { display: none; }
	.eco-strip { padding: var(--wp--preset--spacing--40) !important; }
}

/* ---------- About ---------- */
.eco-about-panel { margin-left: 100px; border-radius: 20px 0 0 20px; position: relative; }
.eco-about-img { position: relative; }
.eco-about-img img { border-radius: 200px 20px 200px 20px; width: 100%; max-width: 575px; }
.eco-about-img::after {
	content: ""; position: absolute; right: 15%; bottom: 7%; width: 220px; height: 164px;
	background: url("assets/img/leaf.svg") center / contain no-repeat; pointer-events: none;
}
.eco-leaf-list { list-style: none; padding-left: 0; }
.eco-leaf-list li { position: relative; padding-left: 36px; margin-bottom: 21px; }
.eco-leaf-list li::before {
	content: ""; position: absolute; left: 0; top: 0.1em; width: 24px; height: 24px;
	background: url("assets/img/leaf.svg") center / contain no-repeat;
}
@media (max-width: 781px) { .eco-about-panel { margin-left: 0; border-radius: 0; padding: var(--wp--preset--spacing--40) !important; } }

/* Icons for info boxes / opportunity cards (decorative, theme-owned). */
.eco-ico::before { content: ""; display: block; width: 111px; height: 111px; margin-bottom: 20px; background: center / contain no-repeat; }
.eco-opp-card.eco-ico::before { width: 156px; height: 156px; }
.eco-ico--box::before { background-image: url("assets/icons/box.svg"); }
.eco-ico--globe::before { background-image: url("assets/icons/globe.svg"); }
.eco-ico--award::before { background-image: url("assets/icons/award.svg"); }
.eco-ico--doc::before { background-image: url("assets/icons/doc.svg"); }
.eco-ico--tag::before { background-image: url("assets/icons/tag.svg"); }
.eco-ico--ruler::before { background-image: url("assets/icons/ruler.svg"); }
.eco-ico--people::before { background-image: url("assets/icons/people.svg"); }

/* ---------- Category cards ---------- */
.eco-cat-card { position: relative; padding-bottom: 40px; }
.eco-cat-img { max-width: 330px; margin: 0; }
.eco-cat-img img { width: 100%; }
.eco-link-panel { position: absolute; right: 10px; bottom: 10px; max-width: 255px; line-height: 1.8; }
.eco-link-panel a { color: inherit; }
.eco-link-panel p { margin: 0; }

/* ---------- Opportunities ---------- */
.eco-opp-card { position: relative; transition: transform 0.3s; }
.eco-opp-card:hover { transform: translateY(-4px); }
.eco-opp-card a { color: inherit; }
.eco-opp-card a::after { content: ""; position: absolute; inset: 0; }
.eco-opp-card:hover.eco-ico--tag::before, .eco-opp-card:hover.eco-ico--ruler::before, .eco-opp-card:hover.eco-ico--people::before { filter: brightness(0.85); }

/* ---------- Offers ---------- */
.eco-offer { padding: 0; border-radius: 20px 20px 0 0; align-items: flex-end; overflow: hidden; }
.eco-offer .wp-block-cover__inner-container { padding: 0; }
.eco-offer a { color: inherit; }
.eco-offer .wp-block-cover__image-background { transition: transform 0.4s; }
.eco-offer:hover .wp-block-cover__image-background { transform: scale(1.04); }
@media (max-width: 781px) { .eco-offer { min-height: 300px !important; } }

/* ---------- Reviews ---------- */
.eco-reviews-section {
	background-image: url("assets/img/reviews-bg-icon.svg");
	background-repeat: no-repeat; background-position: center bottom; background-size: 100% auto;
}
.eco-review { display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.eco-review:hover { transform: translateY(-10px); }
.eco-review:hover .eco-review-box { box-shadow: 0 13px 12px rgba(0, 0, 0, 0.3); }
.eco-review-photo { position: relative; z-index: 1; margin: 0; }
.eco-review-photo img { width: 100%; height: 300px; aspect-ratio: auto !important; object-fit: cover; }
.eco-review-box { margin-top: -120px; padding-top: 140px !important; border-radius: 20px; flex: 1; }
.eco-review-box p { margin: 0; }
.eco-review-box p:last-child { margin-top: 20px; }
@media (max-width: 781px) {
	.eco-reviews { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px !important; padding-bottom: 20px; }
	.eco-reviews > .eco-review { flex: 0 0 85%; scroll-snap-align: center; }
}

/* ---------- Products ---------- */
.eco-product { border: 1px solid var(--wp--preset--color--grey-100); transition: border-color 0.3s; }
.eco-product:hover { border-color: var(--wp--preset--color--primary-mid); }
.eco-product-img { margin: 0 -20px; }
.eco-product-img img { width: 100%; border-radius: 20px 20px 0 0; }
.eco-product h3 a { color: inherit; }
.eco-product .wp-block-button__link { padding: 10px 20px; text-transform: none; width: 100%; text-align: center; }

/* ---------- News ---------- */
.eco-news-section {
	background-image: url("assets/img/new-bg-img-tomato1-2.svg");
	background-repeat: no-repeat; background-position: right -100px top 10px; background-size: 654px auto;
}
.eco-news-card { position: relative; border-radius: 20px; transition: box-shadow 0.3s; margin-top: 16px; }
.eco-news-card:hover { box-shadow: 9px 22px 22px rgba(0, 0, 0, 0.11); }
.eco-news-img { margin: 0; }
.eco-news-img img { width: 100%; border-radius: 20px 20px 0 0; }
.eco-date { position: absolute; top: -16px; right: 20px; z-index: 2; margin: 0; padding: 8px 15px; border-radius: 10px; }

/* ---------- Footer ---------- */
.eco-footer-main { padding-top: 60px; align-items: flex-start; }
.eco-footer-main a { color: inherit; }
.eco-footer-main a:hover { text-decoration: underline; }
.eco-foot-thumb { margin: 0; flex: 0 0 70px; }
.eco-foot-thumb img { width: 70px; height: 70px; border-radius: 10px; }
.eco-footer-bar a { color: inherit; }

/* ---------- Mobile rhythm (<= 781px) ---------- */
@media (max-width: 781px) {
	.eco-ico::before { width: 72px; height: 72px; margin-bottom: 10px; }
	.eco-opp-card.eco-ico::before { width: 88px; height: 88px; }
	.eco-opp-card { padding: var(--wp--preset--spacing--30) !important; }
	.eco-reviews { align-items: flex-start !important; }
	.eco-product-img img { aspect-ratio: 4 / 3 !important; }
	.eco-news-img img { aspect-ratio: 16 / 9 !important; object-fit: cover; }
}
