/* Site-wide visual consistency layer. Loaded after the legacy theme assets. */
:root {
  --jwl-consistency-container: 1328px;
  --jwl-consistency-h1: clamp(2.35rem, 5.2vw, 4.7rem);
  --jwl-consistency-h2: clamp(2rem, 4.2vw, 3.8rem);
  --jwl-consistency-h3: 1.8rem;
  --jwl-consistency-body: 1.05rem;
  --jwl-inner-h1: clamp(2.5rem, 3.6vw, 3.5rem);
  --jwl-inner-h2: clamp(2rem, 2.8vw, 2.75rem);
  --jwl-inner-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --jwl-consistency-grape: #4b2530;
  --jwl-consistency-muted: #736668;
}

/* Home header composition, with the Products navigation size used globally. */
.jwl-site-header {
  background: rgba(255, 250, 246, 0.97);
  border: 0;
  box-shadow: none;
  min-height: 72px;
  position: relative;
  z-index: 50;
}

.jwl-site-header__inner {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 140px minmax(0, 1fr) auto auto;
  margin-inline: auto;
  max-width: none;
  min-height: 72px;
  padding: 0;
  width: min(calc(100% - 64px), var(--jwl-consistency-container));
}

.jwl-brand,
.jwl-main-nav {
  min-width: 0;
}

.jwl-site-header .custom-logo {
  height: auto;
  max-height: 52px;
  max-width: 112px;
  object-fit: contain;
  width: 112px;
}

.jwl-main-nav {
  justify-self: center;
}

.jwl-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 30px);
  justify-content: center;
}

.jwelllove-elementor-site .jwl-nav a {
  align-items: center;
  color: #17141a;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 4px;
  line-height: 1.15;
  padding: 6px 0;
  white-space: nowrap;
}

.jwl-header-cta {
  align-items: center;
  background: #ef172d;
  border: 1px solid #ef172d;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  padding: 8px 20px;
  text-decoration: none;
}

.jwl-header-whatsapp {
  align-items: center;
  background: #18c869;
  border: 0;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 0;
  height: 38px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 38px;
}

.jwl-header-whatsapp svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 23px;
}

/* A compact editorial scale keeps long inner-page titles visually consistent. */
body:not(.jwelllove-homepage-v3) .jwl-editable-page h1 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-inner-h1);
  line-height: 1.04;
}

body:not(.jwelllove-homepage-v3) .jwl-page-header h1,
body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 h1 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-consistency-h1);
  line-height: 1;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body:not(.jwelllove-homepage-v3) .jwl-product-summary-v1 h1 {
    font-size: 60px;
    line-height: 1.03;
  }
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h2 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-inner-h2);
  line-height: 1.08;
}

body:not(.jwelllove-homepage-v3) .jwl-product-category-navigation h2,
body:not(.jwelllove-homepage-v3) .jwl-product-archive-v1 > .site-container > h2,
body:not(.jwelllove-homepage-v3) .jwl-product-section__heading h2 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-consistency-h2);
  line-height: 1;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page h3 {
  color: var(--jwl-consistency-grape);
  font-size: var(--jwl-inner-h3);
  line-height: 1.15;
}

body:not(.jwelllove-homepage-v3) .jwl-editable-page p:not(.jwl-eyebrow),
body:not(.jwelllove-homepage-v3) .jwl-editable-page li {
  color: var(--jwl-consistency-muted);
  font-size: var(--jwl-consistency-body);
  line-height: 1.72;
}

/* Global footer mirrors the footer embedded in the Home composition. */
.factory-home__footer--global {
  background: #412e25 url("https://jwelllove.com/wp-content/uploads/2026/08/jwell-global-team-meeting.webp") center 48% / cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.factory-home__footer--global::before {
  background: rgba(42, 26, 20, 0.86);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.factory-home__footer--global .factory-home__container {
  margin-inline: auto;
  width: min(calc(100% - 64px), var(--jwl-consistency-container));
}

.factory-home__footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  padding: 26px 0 24px;
}

.factory-home__footer-brand strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.factory-home__footer-brand > span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  margin-top: 5px;
}

.factory-home__footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 15px 0 0;
  max-width: 240px;
}

.factory-home__footer-grid nav {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.factory-home__footer-grid h2 {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 5px;
  text-transform: none;
}

.factory-home__footer-grid a,
.factory-home__footer-grid nav > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.63rem;
  line-height: 1.35;
  text-decoration: none;
}

.factory-home__footer-grid a:hover,
.factory-home__footer-grid a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.factory-home__footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  font-size: 0.59rem;
  gap: 20px;
  justify-content: space-between;
  margin-top: 0;
  max-width: none;
  padding: 14px 0 17px;
}

.factory-home__footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.factory-home__footer-bottom a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

@media (max-width: 1099px) {
  .jwl-site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .jwl-brand {
    justify-self: start;
    order: 0;
  }

  .jwl-header-whatsapp {
    justify-self: end;
    order: 1;
  }

  .jwl-menu-toggle {
    justify-self: end;
    margin-left: 0;
    order: 2;
  }

  .jwl-main-nav,
  .jwl-header-cta {
    display: none;
  }

  .jwl-menu-toggle {
    display: inline-flex;
  }

  .jwl-site-header.is-menu-open .jwl-main-nav {
    display: flex;
  }

  body.jwelllove-homepage-v3 .jwl-site-header.is-menu-open .jwl-main-nav {
    display: flex;
  }

  .jwelllove-elementor-site .jwl-nav,
  body.jwelllove-homepage-v3 .jwl-nav {
    align-items: stretch;
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .jwelllove-elementor-site .jwl-nav a {
    display: block;
    font-size: 22px;
    padding: 15px 0;
    white-space: normal;
  }

  body.jwelllove-homepage-v3 .jwl-nav a {
    display: block;
    font-size: 22px;
    padding: 15px 0;
    white-space: normal;
  }

  .factory-home__footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .jwl-site-header,
  .jwl-site-header__inner {
    min-height: 64px;
  }

  body.jwelllove-homepage-v3 .jwl-site-header,
  body.jwelllove-homepage-v3 .jwl-site-header__inner {
    min-height: 64px;
  }

  .jwl-site-header__inner,
  .factory-home__footer--global .factory-home__container {
    gap: 9px;
    width: min(calc(100% - 30px), var(--jwl-consistency-container));
  }

  .jwl-site-header .custom-logo {
    max-width: 94px;
    width: 94px;
  }

  body.jwelllove-homepage-v3 .jwl-site-header .custom-logo {
    max-width: 94px;
    width: 94px;
  }

  .jwl-header-whatsapp {
    height: 36px;
    width: 36px;
  }

  body.jwelllove-homepage-v3 .jwl-header-whatsapp {
    height: 36px;
    width: 36px;
  }

  body:not(.jwelllove-homepage-v3) .jwl-editable-page h1 {
    font-size: 2.1rem;
  }

  body:not(.jwelllove-homepage-v3) .jwl-editable-page h2 {
    font-size: 1.75rem;
  }

  body:not(.jwelllove-homepage-v3) .jwl-editable-page h3 {
    font-size: 1.25rem;
  }

  .factory-home__footer-grid {
    gap: 24px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-home__footer-brand {
    grid-column: 1 / -1;
  }

  .factory-home__footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .factory-home__footer-grid {
    grid-template-columns: 1fr;
  }

  .factory-home__footer-brand {
    grid-column: auto;
  }
}
