/* Image-led storefront. Shares .container with both header rows; no frontend JS. */
.ec-home { --ec-home-space: clamp(2.75rem, 5vw, 5rem); display: grid; gap: var(--ec-home-space); padding-block: 1.5rem var(--ec-home-space); }
.ec-home--compact { --ec-home-space: clamp(2rem, 3vw, 3rem); }
.ec-home--airy { --ec-home-space: clamp(3rem, 7vw, 6.5rem); }
.ec-home > *, .ec-home-copy, .ec-home-section-heading > div { min-width: 0; }
.ec-home-button, .ec-home-link, .ec-home-category-label { overflow-wrap: anywhere; }
.ec-home-visual { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; border-radius: 1.25rem; background: #f0f3f3; color: var(--ec-text); }
.ec-home-photo { grid-column: 2; grid-row: 1; min-width: 0; min-height: 420px; }
.ec-home-photo picture { display: block; height: 100%; }
.ec-home-photo img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: var(--ec-home-focal, center); }
.ec-home-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 3.5vw, 3.5rem); }
.ec-home .ec-home-eyebrow { margin: 0 0 1rem; font-size: .7rem; font-weight: 750; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.ec-home-copy h1, .ec-home-copy h2 { margin: 0; max-width: 16ch; color: inherit; font-size: clamp(2rem, 3.7vw, 3.7rem); font-weight: 750; line-height: 1.06; letter-spacing: -.035em; overflow-wrap: anywhere; }
.ec-home .ec-home-description { max-width: 34ch; margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.6; }
.ec-home .ec-home-button { display: inline-flex; gap: 1.5rem; align-items: center; justify-content: space-between; margin-top: 1.75rem; padding: .85rem 1.25rem; font-size: .9rem; line-height: 1.4; text-decoration: none; }
.ec-home-tone-dark { background: var(--ec-primary, #173e59); color: #fff; }
.ec-home-tone-dark .ec-home-button { background: #fff; color: #173e59; border-color: #fff; }
.ec-home-image-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.ec-home-image-left .ec-home-photo { grid-column: 1; }
.ec-home-image-left .ec-home-copy { grid-column: 2; }
.ec-home-catalogue .ec-home-photo { background: #fff; }
.ec-home-catalogue .ec-home-photo img { object-fit: contain; aspect-ratio: 4 / 3; max-height: 560px; }
.ec-home-no-image { grid-template-columns: 1fr; }
.ec-home-no-image .ec-home-copy { grid-column: 1; min-height: 300px; }
.ec-home-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ec-home-banner .ec-home-photo { min-height: 320px; }
.ec-home-banner h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.ec-home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ec-home-section-heading .ec-home-eyebrow { margin-bottom: .5rem; color: var(--ec-muted); }
.ec-home-section-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.ec-home-link { display: inline-flex; align-items: center; gap: .75rem; font-size: .9rem; text-underline-offset: .25em; }
.ec-home-categories { display: grid; grid-template-columns: repeat(var(--ec-home-columns, 4), minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.ec-home-category { display: block; min-width: 0; color: inherit; text-decoration: none; }
.ec-home-category-photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 1rem; background: #f2f5f5; }
.ec-home-category-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ec-home-category:hover img { transform: scale(1.035); }
.ec-home-category-letter { font-size: 4rem; font-weight: 700; color: var(--ec-muted); }
.ec-home-category-label { display: flex; justify-content: space-between; gap: .75rem; padding-top: .9rem; font-weight: 650; font-size: 1rem; line-height: 1.4; }
.ec-home-products .woocommerce ul.products { grid-template-columns: repeat(var(--ec-home-columns, 4), minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 900px) {
 .ec-home-photo { min-height: 350px; }
 .ec-home-copy { padding: 1.5rem; }
 .ec-home-copy h1 { font-size: clamp(2rem, 4vw, 3rem); }
}
@media (max-width: 640px) {
 .ec-home { padding-top: 1rem; }
 .ec-home-visual { grid-template-columns: minmax(0, 1fr); border-radius: 1rem; }
 .ec-home-visual .ec-home-photo { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 3; }
 .ec-home-visual .ec-home-copy { grid-column: 1; grid-row: 2; padding: 1.5rem; }
 .ec-home-copy h1, .ec-home-copy h2 { max-width: 21ch; font-size: clamp(1.85rem, 7vw, 2.6rem); }
 .ec-home .ec-home-eyebrow { margin-bottom: .65rem; }
 .ec-home .ec-home-button { margin-top: 1.25rem; }
 .ec-home-categories, .ec-home-products .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .ec-home-category-label { font-size: .85rem; }
 .ec-home-section-heading { align-items: flex-start; }
 .ec-home-catalogue .ec-home-photo img { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { .ec-home-category-photo img { transition: none; } }
