/*
 * EcoFill design system (approved concept, Design Concept v1).
 * Signatures: liquid type · the Loop · the Bite · the Bay · the Drop.
 * All motion is decorative and disabled by prefers-reduced-motion.
 */

/* ---------- Fonts per language ---------- */
:root {
	--ecofill-heading-font: "Unbounded", "Vazirmatn", system-ui, sans-serif;
	--ecofill-body-font: "Montserrat", "Vazirmatn", system-ui, sans-serif;
	--ef-green: #09984A;
	--ef-cyan: #28C6E0;
	--ef-mint: #D7FDF0;
	--ef-deep: #360568;
	--ef-purple: #5B2A86;
	--ef-ease: cubic-bezier(.2, .7, .2, 1);
	--ef-ease-fill: cubic-bezier(.65, 0, .25, 1);
	--ef-radius: 32px;
}
:lang(fa), :lang(ar) {
	--ecofill-heading-font: "Vazirmatn", system-ui, sans-serif;
	--ecofill-body-font: "Vazirmatn", system-ui, sans-serif;
}
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
:focus-visible { outline: 3px solid var(--ef-purple); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.ecofill-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2); border-bottom: 1px solid rgba(54, 5, 104, .1); }
.ecofill-header__inner { min-height: 84px; gap: 24px; }
.ecofill-default-logo img { display: block; height: 34px; width: auto; }
.ecofill-menu ul, .ecofill-language-switcher ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ecofill-menu a { display: inline-block; padding-block: 10px; color: var(--ef-deep); text-decoration: none; font-weight: 500; font-size: 15px; }
.ecofill-menu a:hover, .ecofill-menu .current-menu-item > a { color: var(--ef-deep); text-decoration: underline 2px var(--ef-green); text-underline-offset: 7px; }
.ecofill-menu .sub-menu { display: none; }
.ecofill-lang-inline { display: none; }
.ecofill-lang-inline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ecofill-lang-inline a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(54, 5, 104, .16); border-radius: 12px; color: var(--ef-deep); text-decoration: none; font-weight: 600; }
.ecofill-lang-inline a:lang(fa), .ecofill-lang-inline a:lang(ar) { font-family: "Vazirmatn", sans-serif; }
.ecofill-lang-inline a[aria-current="true"] { background: var(--ef-mint); border-color: var(--ef-deep); }
/* Language capsule (Loop = disclosure marker, Drop = current, Bay = opening) */
.ecofill-lang { position: relative; }
.ecofill-lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 1.5px solid rgba(54, 5, 104, .18); border-radius: 14px; cursor: pointer; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--ef-deep); transition: border-color .3s var(--ef-ease), background .3s var(--ef-ease); }
.ecofill-lang > summary::-webkit-details-marker { display: none; }
.ecofill-lang > summary:hover, .ecofill-lang[open] > summary { border-color: var(--ef-deep); background: var(--ef-mint); }
.ecofill-lang__loop { width: 18px; height: 18px; background: var(--ef-loop) center/contain no-repeat; transform: rotate(135deg); transition: transform .5s var(--ef-ease); }
.ecofill-lang[open] .ecofill-lang__loop { transform: rotate(315deg); }
.ecofill-lang__panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; list-style: none; margin: 0; padding: 8px; min-width: 220px; background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(54, 5, 104, .16), 0 0 0 1px rgba(54, 5, 104, .06); animation: ef-lang-open .32s var(--ef-ease) both; }
@keyframes ef-lang-open { from { clip-path: inset(0 0 100% 0 round 20px); opacity: .4; } to { clip-path: inset(0 round 20px); opacity: 1; } }
.ecofill-lang__panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ef-deep); text-decoration: none; font-weight: 600; font-size: 15px; }
.ecofill-lang__panel a:hover { background: var(--ef-mint); }
.ecofill-lang__panel a:lang(fa), .ecofill-lang__panel a:lang(ar) { font-family: "Vazirmatn", sans-serif; }
.ecofill-lang__panel a:lang(en), .ecofill-lang__panel a:lang(tr), .ecofill-lang__panel a:lang(de), .ecofill-lang-inline a:lang(en), .ecofill-lang-inline a:lang(tr), .ecofill-lang-inline a:lang(de) { font-family: "Montserrat", sans-serif; }
.ecofill-lang__abbr { font-family: "Unbounded", sans-serif; font-size: 12px; letter-spacing: .06em; color: var(--ef-purple); display: inline-flex; align-items: center; gap: 8px; }
.ecofill-lang__panel a[aria-current="true"] { background: var(--ef-mint); }
.ecofill-lang__panel a[aria-current="true"] .ecofill-lang__abbr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ef-cyan); }
.ecofill-menu-toggle { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Header collapses into the drawer up to landscape tablets (6 menu items + capsule + CTA need ~1180px) */
@media (max-width: 1180px) {
	.ecofill-header__inner { flex-wrap: wrap !important; row-gap: 0; }
	.ecofill-header__inner > .wp-block-site-logo, .ecofill-header__inner > .ecofill-default-logo { min-height: 84px; display: flex; align-items: center; }
	.ecofill-header .ecofill-menu--primary { display: none; order: 10; width: 100%; padding: 8px 0 20px; }
	.ecofill-header.is-menu-open .ecofill-menu--primary { display: block; }
	.ecofill-header .ecofill-menu--primary ul { flex-direction: column; gap: 0; }
	.ecofill-header .ecofill-menu--primary a { display: flex; align-items: center; min-height: 48px; font-size: 17px; border-bottom: 1px solid rgba(54, 5, 104, .1); }
	.wp-block-ecofill-nav-menu:has(.ecofill-menu--primary) { order: 3; display: contents; }
	.ecofill-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ef-deep); cursor: pointer; order: 2; }
	.ecofill-menu-toggle > span[aria-hidden] { position: relative; width: 18px; height: 2.5px; background: var(--ef-mint); transition: background .2s; }
	.ecofill-menu-toggle > span[aria-hidden]::before, .ecofill-menu-toggle > span[aria-hidden]::after { content: ""; position: absolute; left: 0; width: 18px; height: 2.5px; background: var(--ef-mint); transition: transform .35s var(--ef-ease), top .35s var(--ef-ease); }
	.ecofill-menu-toggle > span[aria-hidden]::before { top: -6px; }
	.ecofill-menu-toggle > span[aria-hidden]::after { top: 6px; background: var(--ef-cyan); }
	.is-menu-open .ecofill-menu-toggle > span[aria-hidden] { background: transparent; }
	.is-menu-open .ecofill-menu-toggle > span[aria-hidden]::before { top: 0; transform: rotate(45deg); }
	.is-menu-open .ecofill-menu-toggle > span[aria-hidden]::after { top: 0; transform: rotate(-45deg); background: var(--ef-mint); }
	.ecofill-menu-toggle { margin-inline-start: auto; }
	.ecofill-header.is-menu-open .ecofill-header__inner > .wp-block-group { flex-direction: column; align-items: stretch; gap: 16px; }
	.ecofill-header-cta a { box-sizing: border-box; width: 100%; justify-content: center; min-height: 52px !important; font-size: 16px; }
	.ecofill-language-switcher ul { gap: 0 10px; }
	.ecofill-header__inner > .wp-block-group { display: none !important; order: 11; width: 100%; padding-bottom: 16px; }
	.ecofill-header.is-menu-open .ecofill-header__inner > .wp-block-group { display: flex !important; }
	.ecofill-lang { display: none; }
	.ecofill-lang-inline { display: block !important; width: 100%; }
}

/* ---------- Buttons and links (the Drop on hover) ---------- */
.ecofill-link { margin: 0; }
.ecofill-link--hero a, .ecofill-link--final a, .ecofill-btn a, .wp-element-button {
	display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 24px; border-radius: 14px;
	background: var(--ef-deep); color: var(--ef-mint); font-weight: 600; text-decoration: none; position: relative;
	transition: background .3s var(--ef-ease), color .3s var(--ef-ease);
}
.ecofill-link--hero a::before, .ecofill-link--final a::before { content: ""; width: 20px; height: 20px; order: 2; background: currentColor; -webkit-mask: url(../icons/arrow.svg) center/contain no-repeat; mask: url(../icons/arrow.svg) center/contain no-repeat; transition: transform .35s var(--ef-ease); }
.ecofill-link--hero a:hover, .ecofill-link--final a:hover { background: var(--ef-purple); color: #fff; }
.ecofill-link--hero a:hover::before, .ecofill-link--final a:hover::before { transform: translateX(5px); }
.ecofill-link--hero a::after, .ecofill-link--final a::after { content: ""; position: absolute; top: -5px; inset-inline-end: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ef-cyan); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ecofill-link--hero a:hover::after, .ecofill-link--final a:hover::after { transform: scale(1); }
[dir="rtl"] .ecofill-link--hero a::before, [dir="rtl"] .ecofill-link--final a::before { transform: scaleX(-1); }
[dir="rtl"] .ecofill-link--hero a:hover::before, [dir="rtl"] .ecofill-link--final a:hover::before { transform: scaleX(-1) translateX(5px); }

.ecofill-link--cta a, .ecofill-related-links a {
	display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ef-deep); text-decoration: none;
	border-bottom: 2px solid var(--ef-green); padding-bottom: 4px; transition: border-color .3s var(--ef-ease), color .3s var(--ef-ease);
}
.ecofill-link--cta a:hover, .ecofill-related-links a:hover { color: var(--ef-purple); border-color: var(--ef-cyan); }
/* Secondary text link after a main action (homepage partner sections): quiet, but a full tap target. */
.ecofill-link--secondary { margin-top: 4px !important; }
.ecofill-link--secondary a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ecofill-link--secondary a:hover, .ecofill-link--secondary a:focus-visible { text-decoration-color: var(--ef-cyan); }
.ecofill-related-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* ---------- Typography helpers ---------- */
.ecofill-lead { font-size: var(--wp--preset--font-size--lead); }
/* Start-aligned text measure inside WordPress's centred (constrained) content column */
.wp-block-post-content > .ecofill-lead, .wp-block-post-content > .ecofill-direct-answer, .wp-block-post-content > .ecofill-link, .wp-block-post-content > .ecofill-related-links {
	max-width: var(--wp--style--global--content-size) !important; padding-inline-end: max(0px, calc(100% - 720px)); box-sizing: border-box;
}
.ecofill-direct-answer { padding-inline-start: 20px; border-inline-start: 3px solid var(--ef-green); }
.ecofill-eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--ef-green); }
.ecofill-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ef-cyan); }
:lang(fa) .ecofill-eyebrow, :lang(ar) .ecofill-eyebrow { letter-spacing: 0; }

/* ---------- Signature 1: liquid type ---------- */
.ecofill-fill, .ecofill-hero h1 {
	color: transparent; -webkit-text-stroke: 1.4px var(--ef-deep);
	background: linear-gradient(0deg, var(--ef-deep) 0 52%, var(--ef-cyan) 52% 54.5%, transparent 54.5%);
	background-size: 100% 220%; background-position: 0 0; -webkit-background-clip: text; background-clip: text;
	animation: ef-fillup 2.2s var(--ef-ease-fill) .25s both;
}
@keyframes ef-fillup { to { background-position: 0 100%; } }

/* ---------- Sections (generic, every page) ---------- */
.ecofill-section { padding-block: clamp(48px, 7vw, 96px); }
.ecofill-section > h2 { max-width: 860px; margin-top: 0; }
.ecofill-section > p { max-width: 760px; }
.ecofill-section .wp-block-list { max-width: 760px; }
.ecofill-section .wp-block-list li { margin-block: 8px; }
.ecofill-section--steps > ol.wp-block-list { list-style: none; padding: 0; counter-reset: ef-step; max-width: none; position: relative; padding-inline-start: 44px; }
.ecofill-section--steps > ol.wp-block-list::before { content: ""; position: absolute; inset-inline-start: 10px; top: 0; bottom: 0; width: 3px; background: rgba(54, 5, 104, .12); }
.ecofill-section--steps > ol.wp-block-list > li { counter-increment: ef-step; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 24px; align-items: center; padding: 28px 0; margin: 0; border-bottom: 1.5px solid rgba(54, 5, 104, .14); font-size: 19px; font-weight: 500; }
.ecofill-section--steps > ol.wp-block-list > li > strong { display: block; font-family: var(--ecofill-heading-font); font-weight: 600; font-size: 19px; align-self: end; }
.ecofill-section--steps > ol.wp-block-list > li:has(> strong) { align-items: start; font-size: 17px; font-weight: 400; }
.ecofill-section--steps > ol.wp-block-list > li::before {
	grid-row: 1 / span 2;
	content: "0" counter(ef-step); font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 56px; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px var(--ef-green);
	background: linear-gradient(0deg, var(--ef-green) 0 52%, var(--ef-cyan) 52% 55%, transparent 55%); background-size: 100% 220%; background-position: 0 100%;
	-webkit-background-clip: text; background-clip: text;
}
:lang(fa) .ecofill-section--steps > ol.wp-block-list > li::before { content: counter(ef-step, persian); font-family: "Vazirmatn", sans-serif; }
:lang(ar) .ecofill-section--steps > ol.wp-block-list > li::before { content: counter(ef-step, arabic-indic); font-family: "Vazirmatn", sans-serif; }
.ecofill-section--features ul.wp-block-list, .ecofill-section--guidance ul.wp-block-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: none; }
.ecofill-section--features ul.wp-block-list > li, .ecofill-section--guidance ul.wp-block-list > li { margin: 0; background: var(--ef-mint); border-radius: 20px; padding: 22px 24px; font-weight: 500; }

/* Purchase steps with icons (homepage H02) */
.ecofill-steps--purchase > ol.wp-block-list > li { grid-template-columns: 110px 64px minmax(0, 1fr); }
.ecofill-steps--purchase > ol.wp-block-list > li::after { content: ""; grid-column: 2; grid-row: 1; width: 64px; height: 64px; border-radius: 18px; background: var(--ef-mint) var(--ef-icon) center/40px no-repeat; }
.ecofill-steps--purchase > ol.wp-block-list > li:nth-child(1) { --ef-icon: url(../icons/select.svg); }
.ecofill-steps--purchase > ol.wp-block-list > li:nth-child(2) { --ef-icon: url(../icons/place-container.svg); }
.ecofill-steps--purchase > ol.wp-block-list > li:nth-child(3) { --ef-icon: url(../icons/confirm.svg); }
.ecofill-steps--purchase > ol.wp-block-list > li:nth-child(4) { --ef-icon: url(../icons/collect.svg); }
/* The list item's text is a text node: place it in column 3 via a wrapper-less trick */
.ecofill-steps--purchase > ol.wp-block-list > li { grid-auto-flow: dense; }

/* Brand collaboration steps as cards (homepage H09) */
.ecofill-steps--brand > ol.wp-block-list { padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ecofill-steps--brand > ol.wp-block-list::before { display: none; }
.ecofill-steps--brand > ol.wp-block-list > li { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; background: #fff; border: 0; border-radius: 24px; padding: 28px 24px 30px; font-size: 16px; line-height: 1.55; min-height: 220px; }
.ecofill-steps--brand > ol.wp-block-list > li::before { content: ""; width: 56px; height: 56px; border-radius: 16px; background: var(--ef-deep) var(--ef-icon) center/34px no-repeat; -webkit-text-stroke: 0; }
.ecofill-steps--brand > ol.wp-block-list > li:nth-child(1) { --ef-icon: url(../icons/discuss-light.svg); }
.ecofill-steps--brand > ol.wp-block-list > li:nth-child(2) { --ef-icon: url(../icons/review-light.svg); }
.ecofill-steps--brand > ol.wp-block-list > li:nth-child(3) { --ef-icon: url(../icons/agree-light.svg); }
.ecofill-steps--brand > ol.wp-block-list > li:nth-child(4) { --ef-icon: url(../icons/pilot-station-light.svg); }
@media (max-width: 960px) { .ecofill-steps--brand > ol.wp-block-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ecofill-steps--brand > ol.wp-block-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Record lists and record pages ---------- */
.ecofill-cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ecofill-card { position: relative; background: var(--ef-mint); border-radius: 24px; padding: 28px 28px 30px; }
.ecofill-card h3 { margin: 0 0 10px; font-size: 20px; }
.ecofill-card h3 a { color: var(--ef-deep); text-decoration: none; }
.ecofill-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.ecofill-card:hover { background: #c6f7e6; }
.ecofill-card p { margin: 0; font-size: 15px; }
/* Hero button that follows the lead paragraph on inner pages (P02). */
.ecofill-lead + .ecofill-link--hero { margin-top: 28px !important; }
/* In-page anchor targets stop below the sticky header. */
.wp-block-heading[id] { scroll-margin-top: 112px; }
/* Section cards (e.g. P02): static content cards; a card with its own action keeps the button at the bottom. */
.ecofill-cards--section { margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ecofill-cards--section > .ecofill-card { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; max-width: none !important; }
.ecofill-cards--section > .ecofill-card:hover { background: var(--ef-mint); }
.ecofill-cards--section > .ecofill-card > * { margin: 0 !important; }
.ecofill-cards--section > .ecofill-card > .ecofill-link { margin-top: auto !important; padding-top: 14px; }
.ecofill-link--card a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; line-height: 1.35; border-radius: 14px; background: var(--ef-deep); color: var(--ef-mint); font-weight: 700; text-decoration: none; }
.ecofill-link--card a:hover, .ecofill-link--card a:focus-visible { background: var(--ef-purple); color: #fff; }
.ecofill-cards--ecofill_station .ecofill-card::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 16px; background: url(../icons/station-pin.svg) center/contain no-repeat; }
.ecofill-record > h1 { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Forms and contact channels ---------- */
.ecofill-form-wrap { max-width: 760px; margin-block: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--ef-mint); border-radius: var(--ef-radius); }
.ecofill-form-wrap > h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
.ecofill-form-wrap > p { margin: 0 0 6px; font-size: 15px; }
.ecofill-form-wrap > .wpcf7 { margin-top: 18px; }
/* Compact grid: short fields two per row on wide screens; Turnstile and the response sit under the fields, next to the button. */
.ecofill-form { display: grid; grid-template-columns: 1fr; gap: 12px 16px; align-items: start; }
.ecofill-form > * { margin: 0; }
.ecofill-form > .hidden-fields-container { display: none; }
@media (min-width: 720px) {
	.ecofill-form { grid-template-columns: 1fr 1fr; }
	.ecofill-form > .wpcf7-turnstile, .ecofill-form > .ecofill-form__submit, .ecofill-form > .wpcf7-response-output, .ecofill-form__field:has(textarea) { grid-column: 1 / -1; }
}
.ecofill-form__field { margin: 0; }
.ecofill-form__field label { display: block; font-weight: 600; font-size: 14px; line-height: 1.5; }
.ecofill-form__field label br { display: none; }
.ecofill-form__field label > span[aria-hidden="true"] { color: var(--ef-purple); }
.ecofill-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.ecofill-form input:not([type="submit"]):not([type="checkbox"]), .ecofill-form select, .ecofill-form textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1.5px solid rgba(54, 5, 104, .2); border-radius: 12px; background: #fff; font: inherit; font-weight: 400; color: var(--ef-deep); }
.ecofill-form textarea { min-height: 96px; height: 112px; resize: vertical; }
.ecofill-form input:focus, .ecofill-form select:focus, .ecofill-form textarea:focus { outline: 3px solid var(--ef-purple); outline-offset: 1px; border-color: var(--ef-deep); }
.ecofill-form__help { display: block; margin-top: 4px; font-size: 13px; color: var(--ef-purple); }
.ecofill-form > .wpcf7-turnstile { order: 1; margin-top: 4px; }
.ecofill-form > .ecofill-form__submit { order: 2; }
.ecofill-form > .wpcf7-response-output { order: 3; }
.ecofill-form input[type="submit"] { min-height: 48px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--ef-deep); color: var(--ef-mint); font: inherit; font-weight: 600; cursor: pointer; }
.ecofill-form input[type="submit"]:hover { background: var(--ef-purple); color: #fff; }
.ecofill-form .wpcf7-not-valid-tip { color: #a3122e; font-size: 13px; font-weight: 500; margin-top: 4px; }
.ecofill-form .wpcf7-response-output { margin: 4px 0 0 !important; padding: 12px 16px !important; border-radius: 12px; border: 1.5px solid var(--ef-deep) !important; background: #fff; }
.ecofill-form.sent .wpcf7-response-output { border-color: var(--ef-green) !important; }
.ecofill-form__privacy { font-size: 14px; }
.ecofill-channels { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ecofill-channels li { background: var(--ef-mint); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ecofill-channel__label { font-size: 15px; }
.ecofill-channels a { display: inline-block; padding-block: 6px; font-weight: 600; color: var(--ef-deep); overflow-wrap: anywhere; }

/* ---------- FAQ (the Loop turns when open) ---------- */
.wp-block-details { border-top: 1.5px solid rgba(54, 5, 104, .18); padding: 6px 0; max-width: 860px; }
.wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; font-family: var(--ecofill-heading-font); font-weight: 500; font-size: 19px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; flex: none; width: 30px; height: 30px; background: url(../brand/loop-green.svg) center/contain no-repeat; transition: transform .5s var(--ef-ease); }
.wp-block-details[open] summary::after { transform: rotate(225deg); }
.wp-block-details > p { margin: 0 0 22px; }

/* ---------- Signature 3: the Bite ----------
 * Background lives in ::before (masked), the cyan dot in ::after (not masked). */
.ecofill-bite { position: relative; isolation: isolate; background: transparent !important; }
.ecofill-bite::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--ef-radius); background: var(--ef-bite-bg, var(--ef-mint));
	-webkit-mask: radial-gradient(circle 26px at calc(100% - 38px) 38px, transparent 25px, #000 26px); mask: radial-gradient(circle 26px at calc(100% - 38px) 38px, transparent 25px, #000 26px); }
[dir="rtl"] .ecofill-bite::before { -webkit-mask: radial-gradient(circle 26px at 38px 38px, transparent 25px, #000 26px); mask: radial-gradient(circle 26px at 38px 38px, transparent 25px, #000 26px); }
.ecofill-bite > :is(h2, h3):first-child { padding-inline-end: 44px; }   /* keep the cyan drop clear of the heading */
@media (max-width: 600px) { .ecofill-bite > :is(h2, h3):first-child { padding-inline-end: 0; padding-top: 34px; } }   /* phones: the drop sits above the heading, full width for long words */
.ecofill-bite::after { content: ""; position: absolute; top: 28px; inset-inline-end: 28px; width: 20px; height: 20px; border-radius: 50%; background: var(--ef-cyan); pointer-events: none; }

/* ---------- Homepage: hero with the Loop ---------- */
.ecofill-hero { padding-block: clamp(40px, 6vw, 72px) 24px; }
.ecofill-hero .wp-block-columns { align-items: center; gap: 48px; }
.ecofill-hero h1 { font-size: var(--wp--preset--font-size--display); margin: 0; }
.ecofill-loop-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto !important; }
.ecofill-loop-visual::before { content: ""; position: absolute; inset: 0; background: url(../brand/loop-green.svg) center/contain no-repeat; transform: rotate(135deg); animation: ef-spin-hero 40s linear infinite; }
/* Owner reference proportions, bottle 52.15% of the Loop (+10% +10%), centre unchanged */
.ecofill-loop-visual img { position: absolute; z-index: 1; left: 23.38%; top: 15.5%; width: 52.15% !important; height: auto !important; filter: drop-shadow(5px 1px 7px rgba(54, 5, 104, .12)); animation: ef-levitate 5s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
/* Levitation: vertical only, harmonic easing. A soft glow on the viewer's right edge separates the white bottle from the white ground without tinting it. */
@keyframes ef-spin { to { transform: rotate(360deg); } }
@keyframes ef-spin-hero { from { transform: rotate(135deg); } to { transform: rotate(495deg); } }
@keyframes ef-levitate { from { transform: translateY(0); } to { transform: translateY(-6%); } }

/* ---------- Signature 4: the Bay (image / future video frame) ---------- */
.ecofill-bay { border-radius: var(--ef-radius); overflow: hidden; }
.ecofill-bay img, .ecofill-bay video { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 21 / 9; }

/* ---------- Homepage section styles ---------- */
.ecofill-hero .wp-block-column > * + * { margin-top: 28px; }
.ecofill-hero .ecofill-link--hero { margin-top: 36px !important; }
.ecofill-band { position: relative; overflow: hidden; padding-block: clamp(80px, 9vw, 120px); }
.ecofill-band > .ecofill-section { padding-block: 0; }
.wp-block-post-content > .ecofill-band, .wp-block-post-content > .ecofill-band + * { margin-block-start: 0; }
.wp-block-post-content > .ecofill-band:last-child { margin-block-end: 0; }

.is-ecofill-split { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.is-ecofill-split > h2 { grid-column: 1; grid-row: 1 / span 8; }
.is-ecofill-split > *:not(h2) { grid-column: 2; }
.is-ecofill-split > * { margin: 0 !important; max-width: none !important; }

.is-ecofill-card { --ef-bite-bg: var(--ef-mint); padding: clamp(32px, 4vw, 56px) !important; margin-block: 0 clamp(48px, 7vw, 96px); display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 56px; align-items: start; }
.is-ecofill-card > h2 { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
.is-ecofill-card > *:not(h2) { grid-column: 2; margin: 0; max-width: 620px; }
.is-ecofill-card > h2 { font-size: clamp(26px, 2.6vw, 34px); }
.is-ecofill-card > h2::before { content: ""; display: block; width: 56px; height: 56px; margin-bottom: 20px; background: url(../icons/container-check.svg) center/contain no-repeat; }

.is-ecofill-impact { background: var(--ef-deep); color: var(--ef-mint); }
.is-ecofill-impact h2 { color: #fff; font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; max-width: 780px; }
.is-ecofill-impact .ecofill-section::before { content: ""; display: block; width: 64px; height: 64px; margin-bottom: 24px; background: url(../icons/reuse-light.svg) center/contain no-repeat; }
.is-ecofill-impact::after { content: ""; position: absolute; inset-inline-end: -180px; top: 50%; width: 760px; height: 760px; margin-top: -380px; background: url(../brand/loop-green.svg) center/contain no-repeat; opacity: .9; animation: ef-spin 60s linear infinite; pointer-events: none; }
.is-ecofill-impact > .ecofill-section { position: relative; z-index: 1; }
.is-ecofill-impact .ecofill-section > p { max-width: 640px; }
.is-ecofill-impact .ecofill-link--cta a { color: #fff; border-color: var(--ef-cyan); }

.is-ecofill-faq { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 56px; align-items: start; }
.is-ecofill-faq > h2 { grid-column: 1; grid-row: 1 / span 6; align-self: start; margin: 0; }
.is-ecofill-faq > .ecofill-link--cta { grid-column: 1; align-self: end; margin: 24px 0 0; }
.is-ecofill-faq > .wp-block-details { grid-column: 2; max-width: none; }
.is-ecofill-faq > h2::before { content: ""; display: block; width: 56px; height: 56px; margin-bottom: 24px; background: url(../icons/faq.svg) center/contain no-repeat; }

.is-ecofill-brands { background: var(--ef-mint); border-radius: 56px 56px 0 0; }
.is-ecofill-brands + .is-ecofill-brands { border-radius: 0; padding-top: 0; }
.is-ecofill-brands h2 { font-size: clamp(min(30px, 9vw), 3.8vw, 52px); }
.is-ecofill-brands .ecofill-steps--brand > h2 { font-size: clamp(22px, 2vw, 26px); }

.is-ecofill-brand-cta { background: var(--ef-mint); padding-top: 0; }
.is-ecofill-brand-cta .ecofill-bite { --ef-bite-bg: var(--ef-deep); color: var(--ef-mint); padding: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.is-ecofill-brand-cta .ecofill-bite > * { margin: 0; grid-column: 1; max-width: 680px; }
.is-ecofill-brand-cta h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); }
.is-ecofill-brand-cta .ecofill-link--cta { grid-column: 2; grid-row: 1 / span 2; margin-inline-end: 40px; }
.is-ecofill-brand-cta .ecofill-link--cta a { background: var(--ef-mint); color: var(--ef-deep); border: 0; border-radius: 14px; padding: 0 22px; min-height: 52px; }

.is-ecofill-franchise { background: var(--ef-green); }
.is-ecofill-franchise-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: center; }
.is-ecofill-franchise-grid > h2 { color: #fff; font-size: clamp(min(34px, 9vw), 4vw, 56px); font-weight: 800; grid-column: 1; grid-row: 1 / span 6; margin: 0; }
.is-ecofill-franchise-grid > h2::before { content: ""; display: block; width: 64px; height: 64px; margin-bottom: 22px; background: url(../icons/network-light.svg) center/contain no-repeat; filter: brightness(10); }
.is-ecofill-franchise-grid > p { grid-column: 2; background: #fff; color: var(--ef-deep); border-radius: 28px 28px 0 0; padding: 32px 36px 8px; margin: 0 !important; max-width: none !important; }
.is-ecofill-franchise-grid > p.ecofill-link { border-radius: 0 0 28px 28px; padding: 16px 36px 32px; }
/* Several paragraphs and links form ONE white card: rounded only at its top and bottom. */
.is-ecofill-franchise-grid > p + p { border-radius: 0; padding-top: 8px; }
.is-ecofill-franchise-grid > p.ecofill-link + p.ecofill-link { padding-top: 0; }
.is-ecofill-franchise-grid > p:has(+ p) { padding-bottom: 8px; }
.is-ecofill-franchise-grid > p:last-child { border-radius: 0 0 28px 28px; padding-bottom: 32px; }
.is-ecofill-franchise-grid > p.ecofill-link:not(:last-child) { border-radius: 0; padding-bottom: 8px; }
.is-ecofill-franchise-grid .ecofill-link--cta a { background: var(--ef-deep); color: var(--ef-mint); border: 0; border-radius: 14px; padding: 0 22px; min-height: 52px; }

@media (max-width: 960px) {
	.is-ecofill-split, .is-ecofill-faq, .is-ecofill-card, .is-ecofill-franchise-grid, .is-ecofill-brand-cta .ecofill-bite { grid-template-columns: minmax(0, 1fr) !important; }
	.is-ecofill-split > *, .is-ecofill-faq > *, .is-ecofill-card > *, .is-ecofill-franchise-grid > * { grid-column: 1 !important; grid-row: auto !important; }
	.is-ecofill-franchise-grid > h2 { margin-bottom: 28px; }
	.is-ecofill-brand-cta .ecofill-link--cta { grid-column: 1; grid-row: auto; margin: 0; }
	.is-ecofill-impact::after { width: 420px; height: 420px; margin-top: -210px; inset-inline-end: -160px; opacity: .45; }
}

/* Header call to action */
.ecofill-header-cta a { min-height: 44px !important; font-size: 14px; padding: 0 16px !important; white-space: nowrap; }
.ecofill-header-cta a::before { display: none; }

/* ---------- Footer ---------- */
.wp-site-blocks > footer { margin-block-start: 0; }
.ecofill-footer { background: var(--ef-deep); color: var(--ef-mint); padding-block: 80px 48px; }
.ecofill-footer a { color: var(--ef-mint); }
.ecofill-footer .ecofill-menu a { color: var(--ef-mint); }
.ecofill-footer .ecofill-menu ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px clamp(24px, 4vw, 48px); max-width: 720px; }
.ecofill-footer .wp-block-ecofill-nav-menu { flex: 0 1 600px; min-width: 0; }
.ecofill-footer img { height: 40px; width: auto; }
/* Footer bottom line: policies link + copyright, deliberately small and quiet. */
.ecofill-legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin: 40px 0 0; padding-top: 16px; border-top: 1px solid rgba(215, 253, 240, .14); font-size: 12px; line-height: 1.6; opacity: .62; }
.ecofill-footer .ecofill-legal-line a { display: inline-block; padding-block: 4px; text-decoration: none; }
.ecofill-footer .ecofill-legal-line a:hover, .ecofill-footer .ecofill-legal-line a:focus-visible { text-decoration: underline; }
/* Policies page: contents list and sub-headings of each policy. */
.ecofill-toc ul { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; }
.ecofill-policy { scroll-margin-top: 96px; }
.ecofill-policy h3.wp-block-heading { margin-block: 32px 8px; }
.ecofill-footer .ecofill-related-links a { color: var(--ef-mint); border-color: rgba(215, 253, 240, .35); }

/* ---------- Scroll-driven motion (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
	.ecofill-section > h2, .ecofill-section > p, .ecofill-section > ul, .ecofill-section > ol > li, .wp-block-details {
		animation: ef-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
	}
	@keyframes ef-rise { from { opacity: 0; transform: translateY(36px); } }
	.ecofill-bay { animation: ef-bay linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
	@keyframes ef-bay { from { clip-path: inset(14% 22% 14% 22% round 120px); } to { clip-path: inset(0 round 32px); } }
	.ecofill-section--steps > ol.wp-block-list > li::before { animation: ef-fillup linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; background-position: 0 0; }
	.is-ecofill-impact { view-timeline: --ef-impact; }
	.is-ecofill-impact::after { animation: ef-turn linear both; animation-timeline: --ef-impact; animation-range: cover 0% cover 100%; }
	@keyframes ef-turn { from { transform: rotate(-90deg) scale(.9); } to { transform: rotate(150deg) scale(1.04); } }
	.ecofill-section--steps { view-timeline: --ef-steps; }
	.ecofill-section--steps > ol.wp-block-list::after { content: ""; position: absolute; inset-inline-start: 2.5px; top: 0; width: 18px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--ef-cyan); box-shadow: 0 0 0 6px rgba(40, 198, 224, .18); animation: ef-drip linear both; animation-timeline: --ef-steps; animation-range: entry 30% exit 70%; }
	@keyframes ef-drip { from { top: 0%; } to { top: calc(100% - 18px); } }
	.ecofill-steps--brand > ol.wp-block-list::after { display: none; }
}

/* Same space before the footer on every page and width (56px on phones, up to 88px on desktop); a full-width band that ends the page keeps meeting the footer edge to edge. */
.wp-site-blocks > main { padding-block-end: clamp(56px, 6vw, 88px); }
.wp-site-blocks > main:has(> .wp-block-post-content > .alignfull:last-child) { padding-block-end: 0; }

/* Mobile overrides (kept last so they win over the base rules above) */
@media (max-width: 960px) {
	.ecofill-section--steps > ol.wp-block-list { padding-inline-start: 28px; }
	/* Step numbers: a fixed 62px box that holds the widest "08" at 32px, so the vertical fill covers the whole glyph and never spills into the text. */
	.ecofill-section--steps > ol.wp-block-list > li { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; font-size: 17px; }
	.ecofill-steps--purchase > ol.wp-block-list > li { grid-template-columns: 62px 48px minmax(0, 1fr); }
	.ecofill-section--steps > ol.wp-block-list > li::before { font-size: 32px; width: 62px; flex: none; white-space: nowrap; }
	.ecofill-steps--purchase > ol.wp-block-list > li::after { width: 48px; height: 48px; background-size: 30px; border-radius: 14px; }
	.ecofill-section--steps > ol.wp-block-list::before { inset-inline-start: 4px; }
	.ecofill-section--steps > ol.wp-block-list::after { inset-inline-start: -3.5px !important; }
	.ecofill-steps--brand > ol.wp-block-list { padding: 0; }
	.ecofill-steps--brand > ol.wp-block-list > li { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ecofill-fill, .ecofill-hero h1 { color: var(--ef-deep); -webkit-text-stroke: 0; background: none; }
	.ecofill-section--steps > ol.wp-block-list > li::before { color: var(--ef-green); -webkit-text-stroke: 0; background: none; }
}

/* Admin preview only (logged-in editors): links to draft pages. Never rendered for visitors. */
.ecofill-is-draft > a, a.ecofill-is-draft { text-decoration: underline dashed var(--ef-purple) 1px; text-underline-offset: 4px; }
.ecofill-draft-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ef-mint, #D7FDF0); color: var(--ef-deep, #360568); font: 600 10px/1.6 var(--wp--preset--font-family--body, sans-serif); letter-spacing: .02em; vertical-align: middle; text-decoration: none; }
.ecofill-menu .ecofill-is-draft { position: relative; }
.ecofill-menu .ecofill-is-draft .ecofill-draft-badge { position: absolute; inset-block-start: -6px; inset-inline-end: 0; margin: 0; font-size: 9px; line-height: 1.5; padding: 0 6px; }
.ecofill-header-cta a.ecofill-is-draft { text-decoration: none; }
@media (max-width: 1180px) { .ecofill-menu .ecofill-is-draft .ecofill-draft-badge { position: static; margin-inline-start: 8px; } }

/* QA (Phase H): decorative Loop must never widen the page on small screens. */
.ecofill-hero { overflow-x: clip; }
/* Long Turkish/German-style words in display type: hyphenate where the browser can, otherwise wrap. */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
:lang(fa) :is(h1, h2, h3, h4), :lang(ar) :is(h1, h2, h3, h4) { hyphens: manual; }
/* QA (responsive): English display words fit whole, so no hyphen splits ("net-work"); Turkish keeps hyphenation for its very long words. */
:lang(en) :is(h1, h2, h3, h4) { hyphens: manual; }
/* Display sizes also follow the viewport on phones so the longest English/Turkish words ("accessibility", "manufacturers") fit on one line. */
:root:root {
	--wp--preset--font-size--display: clamp(32px, min(2.5rem + ((1vw - 3.2px) * 3.75), 10.4vw), 76px);
	--wp--preset--font-size--xx-large: clamp(26px, min(2rem + ((1vw - 3.2px) * 2.083), 9vw), 52px);
}
/* Turkish has the longest single words ("değerlendirilebilir?" ≈ 11.5em) and browsers do not hyphenate it reliably, so its H2 scale goes a step lower on phones. */
html:lang(tr):root { --wp--preset--font-size--xx-large: clamp(24px, min(2rem + ((1vw - 3.2px) * 2.083), 7.6vw), 52px); }
/* German: long compounds ("Reinigungsmittelherstellern") are hyphenated, short words never are; phones get the same lower H2 step as Turkish. */
:lang(de) :is(h1, h2, h3, h4) { hyphens: auto; hyphenate-limit-chars: 12 5 5; }
:lang(de) :is(.wp-block-details summary, .efj-t, .ecofill-link__anchor, .ecofill-card p, li strong, td, th) { hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: anywhere; }
:lang(de) .ecofill-link__anchor { max-width: 100%; }
@media (min-width: 1181px) and (max-width: 1320px) { :lang(de) .ecofill-menu--primary ul { column-gap: 20px; flex-wrap: nowrap; } }   /* six German labels stay on one line */
@media (min-width: 782px) { :lang(de) .ecofill-hero h1 { font-size: min(var(--wp--preset--font-size--display), 5vw); } }   /* the German hero title is long */
html:lang(de):root { --wp--preset--font-size--xx-large: clamp(24px, min(2rem + ((1vw - 3.2px) * 2.083), 7.6vw), 52px); }
/* Two-column homepage hero on tablets
/* Two-column homepage hero on tablets: the H1 column is about half the viewport. */
@media (min-width: 782px) and (max-width: 1180px) { .ecofill-hero h1 { font-size: min(var(--wp--preset--font-size--display), 5.6vw); } }

/* Level graphics: section graphics break out of the reading measure; hero spans the viewport. */
.ecofill-section > .ecofill-graphic { width: min(1240px, calc(100vw - 32px)); max-width: none; margin-block: clamp(24px, 4vw, 48px); margin-inline: calc((100% - min(1240px, calc(100vw - 32px))) / 2); }
.ecofill-section > .ecofill-graphic svg { border-radius: clamp(20px, 3vw, 40px); }
.ecofill-hero-level { margin-block: 0 clamp(24px, 4vw, 48px); }

/* Graphics inside two-column card/split sections take a full row after the text. */
.is-ecofill-card > .ecofill-graphic, .is-ecofill-split > .ecofill-graphic { grid-column: 1 / -1 !important; grid-row: auto !important; order: 99; width: 100% !important; max-width: none !important; margin: clamp(8px, 2vw, 24px) 0 0 !important; }
/* The reuse band's spinning Loop is decoration; when the section carries its own orbit graphic, the graphic replaces it. */
.is-ecofill-impact:has(.ecofill-graphic)::after { display: none; }

/* Reading level (articles, case studies): the page fills like a vessel as it is read. */
.ecofill-reading-level { display: none; }
@supports (animation-timeline: scroll()) {
	.ecofill-reading-level { display: block; position: fixed; inset-inline: 0; top: 0; height: 6px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, var(--ef-green), #0BA552); box-shadow: 0 2px 0 var(--ef-cyan); transform-origin: left center; transform: scaleX(0); animation: ef-reading linear both; animation-timeline: scroll(root); }
	[dir="rtl"] .ecofill-reading-level { transform-origin: right center; }
	.admin-bar .ecofill-reading-level { top: 32px; }
	@keyframes ef-reading { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .ecofill-reading-level { display: none !important; } }
