:root {
  --epc-deep: #0f2f23;
  --epc-mid: #194434;
  --epc-light: #2f6650;
  --epc-brass: #d3ab65;
  --epc-brass-dark: #b88e4c;
  --epc-paper: #f6f2e9;
  --epc-paper-2: #efe8d9;
  --epc-ink: #1b1f1b;
  --epc-ink-soft: #556058;
  --epc-white: #ffffff;
}

/**
 * EPC demo homepage is inside `.container` + `.entry-content`; global theme CSS
 * rounds direct children and constrains width — that boxes the hero. Reset on shell pages.
 */
body.epc-shell-page #primary.site-main > .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.epc-shell-page #primary.site-main article,
body.epc-shell-page #primary.site-main .entry-content {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.epc-shell-page #primary.site-main article {
  border-radius: 0 !important;
}

body.epc-shell-page #primary.site-main .entry-content .epc-home {
  border-radius: 0 !important;
}

body.epc-shell-page #primary.site-main .entry-content > * {
  border-radius: 0 !important;
  background: transparent !important;
}

body.epc-shell-page .wpb_wrapper {
  border-radius: 0 !important;
  background: transparent !important;
}

body.epc-shell-page .wpb_row,
body.epc-shell-page .vc_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.epc-shell-page {
  overflow-x: hidden;
}

body.epc-shell-page .vc_column_container > .vc_column-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* WPBakery: row/column “Design Options” backgrounds (often blue) win over our hero. */
body.epc-shell-page #primary .vc_row:has(.epc-home),
body.epc-shell-page #primary .wpb_row:has(.epc-home) {
  background-color: transparent !important;
  background-image: none !important;
}

body.epc-shell-page #primary .vc_row:has(.epc-home) > .wpb_column,
body.epc-shell-page #primary .vc_row:has(.epc-home) > .vc_column_container,
body.epc-shell-page #primary .vc_row:has(.epc-home) .vc_column-inner {
  background-color: transparent !important;
  background-image: none !important;
}

.epc-home {
  background: var(--epc-paper);
  color: var(--epc-ink);
  overflow-x: clip;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

.epc-home,
.epc-home section,
.epc-home .epc-home__container,
.epc-home .epc-home__hero,
.epc-home .epc-home__hero-card,
.epc-home .epc-home__trust-strip {
  border-radius: 0 !important;
}

/* Shortcode nav: match reference fixed hero nav */
.epc-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
}

.epc-nav {
  background: transparent;
  border: 0;
}

.epc-nav__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.epc-nav__brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.epc-nav__brand span {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.epc-nav__brand strong {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--epc-brass);
}

.epc-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.epc-nav__menu a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
}

.epc-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 4px;
  background: var(--epc-brass);
  color: var(--epc-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.epc-home__container {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

.epc-home__hero {
  background: var(--epc-deep) !important;
  background-color: var(--epc-deep) !important;
  color: #fff;
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
}

.epc-home__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 42%, rgba(69, 113, 91, 0.42) 0%, rgba(15, 47, 35, 0) 55%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid texture — matches reference `index (1).html` */
.epc-home__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.epc-home__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.epc-home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.epc-home__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--epc-brass);
}

.epc-home__title {
  margin: 20px 0 16px;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.08;
  color: #fff;
}

.epc-home__title-accent {
  display: block;
  color: var(--epc-brass);
  font-style: italic;
}

.epc-home__intro {
  margin: 0 0 28px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.65;
}

.epc-home__mini-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}

.epc-home__mini-trust span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
  font-weight: 500;
}

.epc-home__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.epc-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.epc-home__btn--primary {
  background: var(--epc-brass);
  color: var(--epc-ink);
}

.epc-home__btn--primary:hover {
  background: var(--epc-brass-dark);
  color: var(--epc-deep);
}

.epc-home__btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.epc-home__btn--secondary::after {
  content: " →";
}

.epc-home__stats-row {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}

.epc-home__stats-row > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.epc-home__stats-row strong {
  display: block;
  font-size: 31px;
  color: #fff;
  line-height: 1;
}

.epc-home__stats-row span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.epc-home__hero-card {
  border-radius: 12px;
  background: rgba(15, 47, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 520px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.epc-home__hero-badge {
  position: absolute;
  top: 22px;
  left: -14px;
  background: var(--epc-light);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  letter-spacing: 0.06em;
}

.epc-home__hero-cage {
  width: min(420px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1.05;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(143, 212, 184, 0.35);
  background: rgba(25, 68, 52, 0.35);
  color: #8fd4b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epc-home__hero-cage-svg {
  width: 78%;
  height: auto;
  max-height: 280px;
  opacity: 0.92;
}

.epc-home__hero-cage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.epc-home__hero-cage::before,
.epc-home__hero-cage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.epc-home__hero-cage::before {
  inset: -14%;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.epc-home__hero-cage::after {
  inset: 6%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.epc-home__hero-price {
  position: absolute;
  right: -14px;
  bottom: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.epc-home__hero-price-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #66716a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.epc-home__hero-price-value {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  color: var(--epc-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}

.epc-home__trust-strip,
.epc-home__products,
.epc-home__faq,
.epc-home__newsletter {
  padding: 82px 0;
}

.epc-home__trust-strip {
  background: var(--epc-deep);
  padding: 0;
}

.epc-home__trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.epc-home__trust-grid article {
  background: transparent !important;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  padding: 32px 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 !important;
  box-shadow: none !important;
  /* inner cells are not blog “cards”; theme globals target #primary article */
  border-radius: 0 !important;
}

.epc-home__trust-grid article:last-child {
  border-right: 0;
}

.epc-home__trust-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

/* WordPress Twemoji replaces emoji with <img>; match prototype icon size */
.epc-home__trust-icon img.emoji {
  width: 24px;
  height: 24px;
  max-width: none;
  display: inline-block;
  vertical-align: -0.2em;
  margin: 0;
}

.epc-home__mini-trust img.emoji {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
}

.epc-home__trust-grid h3 {
  margin: 0 0 4px !important;
  padding-top: 0 !important;
  font-size: 15px !important;
  font-weight: 600;
  color: #fff !important;
  font-family: "Outfit", sans-serif !important;
  letter-spacing: 0.01em;
}

.epc-home__trust-grid p {
  margin: 0 !important;
  padding-top: 0 !important;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.5;
  font-size: 13px;
  font-family: "Outfit", sans-serif;
}

.epc-home__section-title {
  margin: 0 0 30px;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.02em;
}

.epc-home__product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.epc-home__product-card {
  background: #f9f4e9;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.epc-home__product-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.epc-home__product-image-link {
  display: block;
  background: #f0e8d7;
  aspect-ratio: 1 / 1;
}

.epc-home__product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.epc-home__product-copy {
  padding: 16px 18px 18px;
}

.epc-home__product-copy h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.epc-home__product-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.epc-home__product-price {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--epc-deep);
  font-size: 20px;
}

.epc-home__products .epc-home__add-to-cart,
.epc-home__products .added_to_cart {
  width: 100%;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--epc-deep) !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.epc-home__products .added_to_cart {
  margin-top: 8px;
  background: transparent !important;
  color: var(--epc-deep) !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
}

.epc-home__faq-list details {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

.epc-home__faq-list details + details {
  margin-top: 10px;
}

.epc-home__faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  padding: 18px 22px;
  list-style: none;
}

.epc-home__faq-list summary::-webkit-details-marker {
  display: none;
}

.epc-home__faq-list p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--epc-ink-soft);
}

.epc-home__narrow {
  max-width: 860px;
}

.epc-home__newsletter {
  background: var(--epc-deep);
  padding: 64px 0;
}

.epc-home__newsletter .epc-home__narrow {
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.epc-home__newsletter h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 38px);
  color: #fff;
}

.epc-home__newsletter p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.64);
}

.epc-home__newsletter form {
  display: flex;
  gap: 0;
  justify-content: center;
}

.epc-home__newsletter input[type="email"] {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.epc-home__newsletter button[type="submit"] {
  min-height: 44px;
  border-radius: 0 4px 4px 0;
  border: 0;
  background: var(--epc-brass);
  color: var(--epc-ink);
  font-weight: 700;
  padding: 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1100px) {
  .epc-nav__menu {
    gap: 18px;
  }

  .epc-home__hero-grid {
    grid-template-columns: 1fr;
  }

  .epc-home__product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .epc-home__trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epc-home__trust-grid article:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .epc-home {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .epc-nav__inner {
    min-height: 62px;
    gap: 12px;
  }

  .epc-nav__menu {
    display: none;
  }

  .epc-nav__brand span {
    font-size: 20px;
  }

  .epc-nav__brand strong {
    font-size: 10px;
  }

  .epc-home__container {
    width: min(1320px, calc(100% - 24px));
  }

  .epc-home__product-grid,
  .epc-home__trust-grid {
    grid-template-columns: 1fr;
  }

  .epc-home__hero {
    min-height: auto;
    padding-top: 94px;
    padding-bottom: 56px;
  }

  .epc-home__trust-grid article {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .epc-home__stats-row {
    grid-template-columns: 1fr;
  }

  .epc-home__newsletter form {
    flex-direction: column;
    gap: 8px;
  }

  .epc-home__newsletter input[type="email"] {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
  }

  .epc-home__newsletter button[type="submit"] {
    border-radius: 4px;
  }
}
