/* ============================================
   EngravingCanada Home FX (test page only)
   Loaded only on /home-xtool-test/.
   Depends on engravingcanada-brand.css for design tokens.
   ============================================ */

/* Note: :root design tokens and font imports live in
   engravingcanada-brand.css, which loads site-wide before this file. */

body.ec-home-fx,
body.ec-home-fx p,
body.ec-home-fx a,
body.ec-home-fx button {
  font-family: var(--ec-font-body);
}

body.ec-home-fx h1,
body.ec-home-fx h2,
body.ec-home-fx h3,
body.ec-home-fx h4 {
  font-family: var(--ec-font-display);
}

@media (prefers-reduced-motion: reduce) {
  body.ec-home-fx .ec-fx-fade-up,
  body.ec-home-fx .ec-fx-fade-in,
  body.ec-home-fx .ec-fx-scale-in,
  body.ec-home-fx .ec-fx-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Reveal states ---------- */
body.ec-home-fx .ec-fx-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
body.ec-home-fx .ec-fx-fade-up.is-in { opacity: 1; transform: translateY(0); }

body.ec-home-fx .ec-fx-fade-in { opacity: 0; transition: opacity 1.2s ease-out; }
body.ec-home-fx .ec-fx-fade-in.is-in { opacity: 1; }

body.ec-home-fx .ec-fx-scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ec-home-fx .ec-fx-scale-in.is-in { opacity: 1; transform: scale(1); }

body.ec-home-fx .ec-fx-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ec-home-fx .ec-fx-stagger.is-in > *:nth-child(1) { transition-delay: 0.00s; }
body.ec-home-fx .ec-fx-stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; }
body.ec-home-fx .ec-fx-stagger.is-in > *:nth-child(3) { transition-delay: 0.20s; }
body.ec-home-fx .ec-fx-stagger.is-in > *:nth-child(4) { transition-delay: 0.30s; }
body.ec-home-fx .ec-fx-stagger.is-in > *:nth-child(5) { transition-delay: 0.40s; }
body.ec-home-fx .ec-fx-stagger.is-in > *:nth-child(6) { transition-delay: 0.50s; }
body.ec-home-fx .ec-fx-stagger.is-in > * { opacity: 1; transform: translateY(0); }

/* ---------- Hero (v2, mockup-style) ---------- */
body.ec-home-fx .ec-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--ec-bg-dark);
  color: var(--ec-text-on-dark);
  padding: 6rem clamp(1rem, 4vw, 2rem) 4rem;
}

/* Hero background photo with webp -> jpg negotiation.
   First declaration is the fallback for browsers without image-set() support.
   Second declaration overrides for modern browsers and picks webp where supported. */
body.ec-home-fx .ec-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--ec-bg-dark);
  background-image: url('/wp-content/uploads/2026/05/hero.jpg');
  background-image: image-set(
    url('/wp-content/uploads/2026/05/hero.webp') type('image/webp'),
    url('/wp-content/uploads/2026/05/hero.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  will-change: transform;
}

body.ec-home-fx .ec-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 26, 20, 0.72) 0%, rgba(30, 26, 20, 0.38) 100%);
  z-index: 1;
}

/* Hero video sits inside .ec-hero__bg, covering the background image fallback.
   If the video fails to load or is hidden via prefers-reduced-motion, the
   background-image (image-set webp/jpg) on .ec-hero__bg remains visible. */
body.ec-home-fx .ec-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border: 0;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  body.ec-home-fx .ec-hero__video {
    display: none;
  }
}

body.ec-home-fx .ec-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
body.ec-home-fx .ec-hero__content {
  max-width: 680px;
}

/* Eyebrow as pill */
body.ec-home-fx .ec-hero__eyebrow {
  display: inline-block;
  font-family: var(--ec-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ec-primary);
  background: rgba(198, 185, 145, 0.15);
  border: 1px solid rgba(198, 185, 145, 0.4);
  border-radius: var(--ec-radius-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

/* Title in Lora serif */
body.ec-home-fx .ec-hero__title {
  font-family: var(--ec-font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #fff;
  letter-spacing: 0;
}
body.ec-home-fx .ec-hero__title em {
  font-style: normal;
  color: var(--ec-primary);
}

body.ec-home-fx .ec-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 0 2rem;
}

body.ec-home-fx .ec-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Trust bar (below the buttons) */
body.ec-home-fx .ec-hero__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--ec-font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 0.02em;
}
body.ec-home-fx .ec-trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ec-primary);
  flex-shrink: 0;
}

/* Brand buttons (pill, mockup-style) */
body.ec-home-fx .ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--ec-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ec-radius-pill);
  border: 2px solid var(--ec-primary);
  background: var(--ec-primary);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  letter-spacing: normal;
  text-transform: none;
  transition: all var(--ec-transition);
  cursor: pointer;
}
body.ec-home-fx .ec-btn:hover {
  background: var(--ec-primary-dark);
  border-color: var(--ec-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(163, 88, 56, 0.35);
}

body.ec-home-fx .ec-btn-ghost,
body.ec-home-fx .ec-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
body.ec-home-fx .ec-btn-ghost:hover,
body.ec-home-fx .ec-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

/* ---------- Pinned story (dark) ---------- */
body.ec-home-fx .ec-pinned {
  background: var(--ec-bg);
  color: var(--ec-text-on-dark);
  position: relative;
}
body.ec-home-fx .ec-pinned__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
  align-items: center;
  min-height: 100vh;
}
body.ec-home-fx .ec-pinned__text {
  position: sticky;
  top: 20vh;
  align-self: start;
}
body.ec-home-fx .ec-pinned__step-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ec-primary);
  margin-bottom: 18px;
}
body.ec-home-fx .ec-pinned__step-title {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  color: var(--ec-text-on-dark);
}
body.ec-home-fx .ec-pinned__step-body {
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ec-text-muted);
  max-width: 480px;
}
body.ec-home-fx .ec-pinned__images {
  position: relative;
  height: 600px;
  border-radius: var(--ec-radius);
  overflow: hidden;
  background: var(--ec-bg-deep);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
body.ec-home-fx .ec-pinned__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.8s ease;
}
body.ec-home-fx .ec-pinned__img.is-active { opacity: 1; transform: scale(1); }

@media (max-width: 850px) {
  body.ec-home-fx .ec-pinned__wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
  body.ec-home-fx .ec-pinned__text { position: static; }
  body.ec-home-fx .ec-pinned__images { height: 380px; }
}

/* ---------- Light band wrapper (Featured + Browse) ---------- */
body.ec-home-fx .ec-light {
  background: var(--ec-bg-light);
  color: var(--ec-text-on-light);
}

body.ec-home-fx .ec-light .ec-section-intro__eyebrow { color: var(--ec-primary-deep); }
body.ec-home-fx .ec-light .ec-section-intro__title { color: var(--ec-text-on-light); }
body.ec-home-fx .ec-light .ec-section-intro__body { color: var(--ec-text-muted-light); }

/* ---------- Section intros ---------- */
body.ec-home-fx .ec-section-intro {
  text-align: center;
  padding: 100px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}
body.ec-home-fx .ec-section-intro--full { max-width: none; }
body.ec-home-fx .ec-section-intro__eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-primary);
  margin-bottom: 16px;
}
body.ec-home-fx .ec-section-intro__title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--ec-text-on-dark);
}
body.ec-home-fx .ec-section-intro__body {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ec-text-muted);
}

/* ---------- Flatsome WooCommerce blocks on light band ---------- */
body.ec-home-fx .ec-light .product-small .name,
body.ec-home-fx .ec-light .product-small .name a {
  color: var(--ec-text-on-light) !important;
}
body.ec-home-fx .ec-light .product-small .price,
body.ec-home-fx .ec-light .product-small .price ins,
body.ec-home-fx .ec-light .product-small .price .amount {
  color: var(--ec-primary-deep) !important;
  font-weight: 700;
}
body.ec-home-fx .ec-light .product-small .price del { color: rgba(33,33,33,0.4) !important; }

/* Quick-view, add-to-cart buttons inside light band */
body.ec-home-fx .ec-light .button.primary,
body.ec-home-fx .ec-light .add_to_cart_button {
  background: var(--ec-primary-deep) !important;
  border-color: var(--ec-primary-deep) !important;
  color: #fff !important;
  border-radius: var(--ec-radius) !important;
}
body.ec-home-fx .ec-light .button.primary:hover,
body.ec-home-fx .ec-light .add_to_cart_button:hover {
  background: var(--ec-text-on-light) !important;
  border-color: var(--ec-text-on-light) !important;
}

/* Category tiles on light band still have their own image overlays, just clean up text */
body.ec-home-fx .ec-light .category-title { color: #fff !important; }

/* ---------- Final CTA ---------- */
body.ec-home-fx .ec-final-cta {
  position: relative;
  background: var(--ec-bg);
  color: var(--ec-text-on-dark);
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
}
body.ec-home-fx .ec-final-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: grayscale(0.5) brightness(0.9);
  will-change: transform;
}
body.ec-home-fx .ec-final-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,33,33,0.7) 0%, rgba(33,33,33,0.5) 50%, rgba(33,33,33,0.85) 100%);
}
body.ec-home-fx .ec-final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
body.ec-home-fx .ec-final-cta__eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ec-primary);
  margin-bottom: 22px;
}
body.ec-home-fx .ec-final-cta__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  color: var(--ec-text-on-dark);
}
body.ec-home-fx .ec-final-cta__title em {
  font-style: normal;
  color: var(--ec-primary);
}
body.ec-home-fx .ec-final-cta__body {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ec-text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
}

/* ---------- Browse: pinned stack reveal ---------- */
body.ec-home-fx .ec-browse {
  background: var(--ec-bg-light);
  color: var(--ec-text-on-light);
  position: relative;
}
body.ec-home-fx .ec-browse__wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
  align-items: start;
  min-height: 100vh;
}

/* Left: heading + counter. No sticky/top here — the GSAP ScrollTrigger pin
   handles keeping the section in viewport, and a JS translateY drives the
   intro's drift. Sticky positioning fights the pin and causes the intro's
   starting Y to differ from what JS expects when computing drift caps. */
body.ec-home-fx .ec-browse__intro {
  align-self: start;
  transform-origin: left center;
  will-change: transform;
}

/* Centered state during intro phase of the scroll animation */
body.ec-home-fx .ec-browse__intro.is-centered {
  text-align: center;
  transform-origin: center center;
}
body.ec-home-fx .ec-browse__intro.is-centered .ec-browse__lead {
  margin-left: auto;
  margin-right: auto;
}
body.ec-home-fx .ec-browse__intro.is-centered .ec-browse__counter {
  justify-content: center;
}
body.ec-home-fx .ec-browse__eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ec-primary-deep);
  margin-bottom: 18px;
}
body.ec-home-fx .ec-browse__title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: var(--ec-text-on-light);
}
body.ec-home-fx .ec-browse__title em { font-style: normal; color: var(--ec-primary-deep); }
body.ec-home-fx .ec-browse__lead {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ec-text-muted-light);
  max-width: 420px;
  margin: 0 0 28px;
}
body.ec-home-fx .ec-browse__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--ec-font);
  color: var(--ec-text-on-light);
}
body.ec-home-fx .ec-browse__counter-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--ec-primary-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  display: inline-block;
}
body.ec-home-fx .ec-browse__counter-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ec-text-muted-light);
}

/* Right: stack of category cards */
body.ec-home-fx .ec-browse__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
body.ec-home-fx .ec-cat-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--ec-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ec-text-on-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}
body.ec-home-fx .ec-cat-card.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.ec-home-fx .ec-cat-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: translateY(-4px) scale(1);
  color: var(--ec-text-on-light);
}
body.ec-home-fx .ec-cat-card__img {
  background-size: cover;
  background-position: center;
  min-height: 180px;
}
body.ec-home-fx .ec-cat-card__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.ec-home-fx .ec-cat-card__count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ec-primary-deep);
  margin-bottom: 8px;
}
body.ec-home-fx .ec-cat-card__name {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ec-text-on-light);
  letter-spacing: -0.01em;
}
body.ec-home-fx .ec-cat-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ec-text-muted-light);
  margin: 0;
}
body.ec-home-fx .ec-cat-card__arrow {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ec-primary-deep);
}
body.ec-home-fx .ec-cat-card__arrow::after {
  content: ' \2192';
  transition: transform 0.3s ease;
  display: inline-block;
}
body.ec-home-fx .ec-cat-card:hover .ec-cat-card__arrow::after {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  body.ec-home-fx .ec-browse__wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
  body.ec-home-fx .ec-browse__intro { position: static; }
  body.ec-home-fx .ec-cat-card { grid-template-columns: 1fr; }
  body.ec-home-fx .ec-cat-card__img { min-height: 200px; }
}

body.ec-home-fx .page-wrapper > .page-inner > .entry-content > * { margin-bottom: 0; }
body.ec-home-fx .page-title.shop-page-title { display: none; }


/* ============================================
   Trust Ribbon (Phase 3)
   Full-width gold band, 4 stats with icons.
   ============================================ */
body.ec-home-fx .ec-ribbon {
  background: var(--ec-primary);
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

body.ec-home-fx .ec-ribbon__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

body.ec-home-fx .ec-ribbon__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  text-align: center;
  min-width: 140px;
  flex: 1 1 140px;
  max-width: 240px;
}

body.ec-home-fx .ec-ribbon__icon {
  display: block;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}
body.ec-home-fx .ec-ribbon__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
}

body.ec-home-fx .ec-ribbon__stat {
  font-family: var(--ec-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

body.ec-home-fx .ec-ribbon__label {
  font-family: var(--ec-font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Scale-up stagger reveal (used by ribbon items) */
body.ec-home-fx .ec-fx-scale-stagger > * {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
body.ec-home-fx .ec-fx-scale-stagger.is-in > * { opacity: 1; transform: scale(1); }
body.ec-home-fx .ec-fx-scale-stagger.is-in > *:nth-child(1) { transition-delay: 0s; }
body.ec-home-fx .ec-fx-scale-stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; }
body.ec-home-fx .ec-fx-scale-stagger.is-in > *:nth-child(3) { transition-delay: 0.20s; }
body.ec-home-fx .ec-fx-scale-stagger.is-in > *:nth-child(4) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  body.ec-home-fx .ec-fx-scale-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   Section header (reusable across phases)
   ============================================ */
body.ec-home-fx .ec-sec-head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
body.ec-home-fx .ec-sec-head__eyebrow {
  display: inline-block;
  font-family: var(--ec-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-primary);
  margin-bottom: 0.75rem;
}
body.ec-home-fx .ec-sec-head__title {
  font-family: var(--ec-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ec-text-dark);
  line-height: 1.12;
  margin: 0 0 1rem;
}
body.ec-home-fx .ec-sec-head__sub {
  font-family: var(--ec-font-body);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ec-text-muted-light);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Categories (Phase 4)
   ============================================ */
body.ec-home-fx .ec-categories {
  background: var(--ec-bg-light);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
body.ec-home-fx .ec-categories__inner {
  max-width: 1200px;
  margin: 0 auto;
}
body.ec-home-fx .ec-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  body.ec-home-fx .ec-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  body.ec-home-fx .ec-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Wrapper handles reveal stagger; tile handles tilt.
   This isolation prevents transform conflicts. */
body.ec-home-fx .ec-cat-tile-wrap {
  perspective: 1200px;
}

body.ec-home-fx .ec-cat-tile {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 100%;
  box-shadow: var(--ec-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}
body.ec-home-fx .ec-cat-tile:hover {
  box-shadow: var(--ec-shadow-card-hover);
  border-color: var(--ec-primary-light);
}

body.ec-home-fx .ec-cat-tile__icon {
  width: 56px;
  height: 56px;
  background: var(--ec-bg-warm);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-primary);
  transition: background var(--ec-transition), color var(--ec-transition);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}
body.ec-home-fx .ec-cat-tile:hover .ec-cat-tile__icon {
  background: var(--ec-primary);
  color: #fff;
}
body.ec-home-fx .ec-cat-tile__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

body.ec-home-fx .ec-cat-tile__name {
  font-family: var(--ec-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ec-text-dark);
  margin: 0;
  line-height: 1.3;
}

body.ec-home-fx .ec-cat-tile__desc {
  font-family: var(--ec-font-body);
  font-size: 0.9rem;
  color: var(--ec-text-muted-light);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

body.ec-home-fx .ec-cat-tile__meta {
  font-family: var(--ec-font-body);
  font-size: 0.72rem;
  color: var(--ec-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

body.ec-home-fx .ec-cat-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ec-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ec-primary);
  margin-top: 0.5rem;
  transition: color var(--ec-transition);
}
body.ec-home-fx .ec-cat-tile:hover .ec-cat-tile__link {
  color: var(--ec-primary-dark);
}
body.ec-home-fx .ec-cat-tile__link-arrow {
  display: inline-block;
  transition: transform var(--ec-transition);
}
body.ec-home-fx .ec-cat-tile:hover .ec-cat-tile__link-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  body.ec-home-fx .ec-cat-tile,
  body.ec-home-fx .ec-cat-tile:hover {
    transform: none !important;
  }
}

/* ============================================
   About section (Phase 5)
   ============================================ */
body.ec-home-fx .ec-about {
  background: var(--ec-bg-warm);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
body.ec-home-fx .ec-about__inner {
  max-width: 1200px;
  margin: 0 auto;
}
body.ec-home-fx .ec-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  body.ec-home-fx .ec-about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

body.ec-home-fx .ec-about__eyebrow {
  display: inline-block;
  font-family: var(--ec-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-primary);
  margin-bottom: 0.75rem;
}
body.ec-home-fx .ec-about__title {
  font-family: var(--ec-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ec-text-dark);
  line-height: 1.12;
  margin: 0 0 1.5rem;
}
body.ec-home-fx .ec-about__text p {
  font-family: var(--ec-font-body);
  font-size: 1rem;
  color: var(--ec-text-body);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

/* Signature block: gold badge + signoff */
body.ec-home-fx .ec-about__sig {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
body.ec-home-fx .ec-about__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(198, 185, 145, 0.18);
  border: 1px solid rgba(198, 185, 145, 0.5);
  border-radius: var(--ec-radius-pill);
  padding: 0.45rem 1rem;
  font-family: var(--ec-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ec-primary-dark);
  letter-spacing: 0.02em;
}
body.ec-home-fx .ec-about__badge svg {
  width: 16px;
  height: 16px;
  fill: var(--ec-primary);
  flex-shrink: 0;
}
body.ec-home-fx .ec-about__signoff {
  font-family: var(--ec-font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ec-text-muted-light);
}

/* Visual column */
body.ec-home-fx .ec-about__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Main photo (placeholder gradient until photo uploaded) */
body.ec-home-fx .ec-about__photo {
  position: relative;
  border-radius: var(--ec-radius-card);
  overflow: hidden;
  box-shadow: var(--ec-shadow-card);
  aspect-ratio: 4 / 3;
  background-color: var(--ec-primary-light);
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #F2DFD4 0%, #C6B991 60%, #A35838 100%);
  background-size: cover;
  background-position: center;
}
body.ec-home-fx .ec-about__photo--placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ec-font-body);
  font-size: 0.85rem;
  color: rgba(30, 26, 20, 0.6);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1rem;
}

/* Caption photo block (round photo + caption text) */
body.ec-home-fx .ec-about__caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border-radius: var(--ec-radius-card);
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-card);
}
body.ec-home-fx .ec-about__caption-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--ec-bg-warm);
  background-image:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #F0E9DC 0%, #C6B991 100%);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--ec-primary-light);
}
body.ec-home-fx .ec-about__caption-text {
  font-family: var(--ec-font-body);
  font-size: 0.85rem;
  color: var(--ec-text-muted-light);
  line-height: 1.45;
  font-style: italic;
}

/* ============================================
   Animation utilities (Phase 5)
   ============================================ */
body.ec-home-fx .ec-fx-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
body.ec-home-fx .ec-fx-slide-left.is-in {
  opacity: 1;
  transform: translateX(0);
}

body.ec-home-fx .ec-fx-clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path;
}
body.ec-home-fx .ec-fx-clip-reveal.is-in {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  body.ec-home-fx .ec-fx-slide-left,
  body.ec-home-fx .ec-fx-clip-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ============================================
   Featured Products (Phase 6)
   Dark band showcasing newest products.
   ============================================ */
body.ec-home-fx .ec-products {
  background: var(--ec-bg-dark);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(198, 185, 145, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(163, 88, 56, 0.07) 0%, transparent 55%);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
body.ec-home-fx .ec-products__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section header override for dark band: white title, light sub */
body.ec-home-fx .ec-products .ec-sec-head__title {
  color: #fff;
}
body.ec-home-fx .ec-products .ec-sec-head__sub {
  color: rgba(255, 255, 255, 0.72);
}

body.ec-home-fx .ec-products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  body.ec-home-fx .ec-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  body.ec-home-fx .ec-products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product card */
body.ec-home-fx .ec-prod-card {
  background: #fff;
  border-radius: var(--ec-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  height: 100%;
}
body.ec-home-fx .ec-prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* Media: square aspect ratio, image fills, zoom on hover */
body.ec-home-fx .ec-prod-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ec-bg-warm);
  position: relative;
}
body.ec-home-fx .ec-prod-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ec-home-fx .ec-prod-card:hover .ec-prod-card__media img {
  transform: scale(1.08);
}

/* Body */
body.ec-home-fx .ec-prod-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
body.ec-home-fx .ec-prod-card__name {
  font-family: var(--ec-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ec-text-dark);
  margin: 0;
  line-height: 1.35;
  /* Clamp to 2 lines so cards stay even */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.ec-home-fx .ec-prod-card__price {
  font-family: var(--ec-font-body);
  font-size: 1.1rem;
  color: var(--ec-primary-dark);
  font-weight: 700;
  margin-top: auto;
}
body.ec-home-fx .ec-prod-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ec-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ec-primary);
  transition: color var(--ec-transition);
  margin-top: 0.1rem;
}
body.ec-home-fx .ec-prod-card:hover .ec-prod-card__link {
  color: var(--ec-primary-dark);
}
body.ec-home-fx .ec-prod-card__link-arrow {
  display: inline-block;
  transition: transform var(--ec-transition);
}
body.ec-home-fx .ec-prod-card:hover .ec-prod-card__link-arrow {
  transform: translateX(4px);
}

/* Section-level CTA below grid */
body.ec-home-fx .ec-products__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   Testimonials (Phase 7)
   ============================================ */
body.ec-home-fx .ec-testimonials {
  background: var(--ec-bg-light);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
body.ec-home-fx .ec-testimonials__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Featured testimonial card (larger, prominent) */
body.ec-home-fx .ec-tst-featured {
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--ec-radius-card);
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-card);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
/* Decorative quote mark in corner */
body.ec-home-fx .ec-tst-featured::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  font-family: var(--ec-font-display);
  font-size: 7rem;
  color: var(--ec-primary);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}
body.ec-home-fx .ec-tst-featured__quote {
  font-family: var(--ec-font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ec-text-dark);
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Stars row */
body.ec-home-fx .ec-tst-stars {
  color: var(--ec-primary);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  line-height: 1;
}

/* Author block (avatar + name/location) */
body.ec-home-fx .ec-tst-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
body.ec-home-fx .ec-tst-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ec-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ec-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
body.ec-home-fx .ec-tst-author__name {
  font-family: var(--ec-font-body);
  font-weight: 700;
  color: var(--ec-text-dark);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
}
body.ec-home-fx .ec-tst-author__location {
  font-family: var(--ec-font-body);
  font-size: 0.82rem;
  color: var(--ec-text-muted-light);
  margin: 0;
}

/* Small testimonial cards grid */
body.ec-home-fx .ec-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  body.ec-home-fx .ec-testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.ec-home-fx .ec-tst-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--ec-radius-card);
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
body.ec-home-fx .ec-tst-card__quote {
  font-family: var(--ec-font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ec-text-body);
  margin: 0;
  flex: 1;
}

/* Slide-from-right utility for testimonials column */
body.ec-home-fx .ec-fx-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
body.ec-home-fx .ec-fx-slide-right.is-in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  body.ec-home-fx .ec-fx-slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   Contact (Phase 8)
   ============================================ */
body.ec-home-fx .ec-contact {
  background: var(--ec-bg-warm);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
body.ec-home-fx .ec-contact__inner {
  max-width: 1100px;
  margin: 0 auto;
}
body.ec-home-fx .ec-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  body.ec-home-fx .ec-contact__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* Info column */
body.ec-home-fx .ec-contact__info-title {
  font-family: var(--ec-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ec-text-dark);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
body.ec-home-fx .ec-contact__info-text {
  font-family: var(--ec-font-body);
  color: var(--ec-text-body);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}
body.ec-home-fx .ec-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
body.ec-home-fx .ec-contact__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--ec-font-body);
  font-size: 0.95rem;
  color: var(--ec-text-body);
}
body.ec-home-fx .ec-contact__icon {
  width: 38px;
  height: 38px;
  background: var(--ec-primary-light);
  color: var(--ec-primary-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.ec-home-fx .ec-contact__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
body.ec-home-fx .ec-contact__list a {
  color: var(--ec-primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ec-transition);
}
body.ec-home-fx .ec-contact__list a:hover {
  color: var(--ec-primary);
  text-decoration: underline;
}

/* Form column (CF7 styling) */
body.ec-home-fx .ec-contact__form-wrap {
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--ec-radius-card);
  box-shadow: var(--ec-shadow-card);
  border: 1px solid var(--ec-border);
}
body.ec-home-fx .ec-contact__form-wrap .wpcf7-form p {
  margin: 0 0 1rem;
}
body.ec-home-fx .ec-contact__form-wrap label {
  display: block;
  font-family: var(--ec-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ec-text-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
body.ec-home-fx .ec-contact__form-wrap input[type="text"],
body.ec-home-fx .ec-contact__form-wrap input[type="email"],
body.ec-home-fx .ec-contact__form-wrap input[type="tel"],
body.ec-home-fx .ec-contact__form-wrap input[type="url"],
body.ec-home-fx .ec-contact__form-wrap textarea,
body.ec-home-fx .ec-contact__form-wrap select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  font-family: var(--ec-font-body);
  font-size: 0.95rem;
  color: var(--ec-text-dark);
  background: var(--ec-bg-light);
  transition: border-color var(--ec-transition), background var(--ec-transition);
  box-sizing: border-box;
}
body.ec-home-fx .ec-contact__form-wrap input:focus,
body.ec-home-fx .ec-contact__form-wrap textarea:focus,
body.ec-home-fx .ec-contact__form-wrap select:focus {
  outline: none;
  border-color: var(--ec-primary);
  background: #fff;
}
body.ec-home-fx .ec-contact__form-wrap textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--ec-font-body);
}
body.ec-home-fx .ec-contact__form-wrap .wpcf7-submit {
  background: var(--ec-primary);
  color: #fff;
  border: none;
  padding: 0.85rem 1.9rem;
  font-family: var(--ec-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--ec-radius-pill);
  cursor: pointer;
  transition: background var(--ec-transition), transform var(--ec-transition), box-shadow var(--ec-transition);
}
body.ec-home-fx .ec-contact__form-wrap .wpcf7-submit:hover {
  background: var(--ec-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(163, 88, 56, 0.25);
}
/* CF7 status messages */
body.ec-home-fx .ec-contact__form-wrap .wpcf7-response-output {
  border-radius: var(--ec-radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0 0;
  font-family: var(--ec-font-body);
  font-size: 0.9rem;
}

/* ============================================
   Footer (Phase 9)
   Custom dark footer scoped to ec-home-fx pages.
   ============================================ */

/* Hide Flatsome / WP default footers only on home-fx pages */
body.ec-home-fx #footer,
body.ec-home-fx footer#colophon,
body.ec-home-fx .site-footer,
body.ec-home-fx .footer-wrapper,
body.ec-home-fx .absolute-footer,
body.ec-home-fx footer.site-footer-wrapper {
  display: none !important;
}

body.ec-home-fx .ec-footer {
  background: var(--ec-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 0;
  position: relative;
  z-index: 1;
}
body.ec-home-fx .ec-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
body.ec-home-fx .ec-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  body.ec-home-fx .ec-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  body.ec-home-fx .ec-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

body.ec-home-fx .ec-footer__col-title {
  font-family: var(--ec-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.1rem;
  line-height: 1.3;
}

/* Brand column */
body.ec-home-fx .ec-footer__brand-name {
  font-family: var(--ec-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ec-primary);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
body.ec-home-fx .ec-footer__brand-text {
  font-family: var(--ec-font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.25rem;
}
body.ec-home-fx .ec-footer__social {
  display: flex;
  gap: 0.55rem;
}
body.ec-home-fx .ec-footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background var(--ec-transition), color var(--ec-transition), transform var(--ec-transition);
}
body.ec-home-fx .ec-footer__social a:hover {
  background: var(--ec-primary);
  color: #fff;
  transform: translateY(-2px);
}
body.ec-home-fx .ec-footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Link list (Shop, Help columns) */
body.ec-home-fx .ec-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
body.ec-home-fx .ec-footer__list a {
  font-family: var(--ec-font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--ec-transition);
}
body.ec-home-fx .ec-footer__list a:hover {
  color: var(--ec-primary);
}

/* Contact rows */
body.ec-home-fx .ec-footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--ec-font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}
body.ec-home-fx .ec-footer__contact-row + .ec-footer__contact-row {
  margin-top: 0.7rem;
}
body.ec-home-fx .ec-footer__contact-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--ec-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 4px;
}
body.ec-home-fx .ec-footer__contact-row a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ec-transition);
}
body.ec-home-fx .ec-footer__contact-row a:hover {
  color: var(--ec-primary);
}

/* Bottom bar */
body.ec-home-fx .ec-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--ec-font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 640px) {
  body.ec-home-fx .ec-footer__bottom {
    flex-direction: row;
  }
}
body.ec-home-fx .ec-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
body.ec-home-fx .ec-footer__bottom-links a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ec-transition);
}
body.ec-home-fx .ec-footer__bottom-links a:hover {
  color: var(--ec-primary);
}