/* =========================================================
   SHARED SITE SHELL
   Load this file AFTER assets/css/styles.css.
   ========================================================= */

/* ---------- Shared header ---------- */

/* At the top of every page, the header sits transparently over the hero. */
.shared-site-header.site-header {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: translateY(0);
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}

.shared-site-header .nav-row {
  height: 78px;
  grid-template-columns: 1fr auto;
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.shared-site-header .brand {
  justify-self: end;
}

.shared-site-header .brand img {
  width: 52px;
}

.shared-site-header .menu-toggle span {
  background: #fff;
}

/* Header stays visible in the new version.
   This also prevents older JavaScript from hiding it if header-hidden is added. */
.shared-site-header.header-hidden {
  transform: translateY(0);
}

/* Green header state used away from the top and on all internal pages. */
.shared-site-header.header-scrolled {
  background: rgba(8, 37, 28, 0.97);
  box-shadow: 0 8px 28px rgba(3, 16, 12, 0.2);
}

.shared-site-header.header-scrolled .nav-row {
  background: rgba(8, 37, 28, 0.97);
  border-bottom: 1px solid rgba(185, 154, 93, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Collection page: allow the transparent header to float over the split hero. */
.collection-split {
  padding-top: 0;
}

.collection-scroll {
  height: 100vh;
}

/* ---------- Split-screen navigation menu ---------- */

.site-shell-menu.menu-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: stretch;
  background: transparent;
  color: var(--ink);
  transform: none;
}

.site-shell-menu.menu-panel.active {
  transform: none;
}

.site-shell-menu__navigation,
.site-shell-menu__media {
  position: relative;
  min-width: 0;
  min-height: 100vh;
}

.site-shell-menu__navigation {
  display: flex;
  align-items: flex-start;
  padding: 104px 34px 48px;
  background: var(--paper);
}

.site-shell-menu .menu-close {
  top: 18px;
  left: 24px;
  right: auto;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}

.site-shell-menu .menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  text-align: left;
}

.site-shell-menu .menu-links a {
  position: relative;
  color: #12244a;
  font-family: var(--sans);
  font-size: clamp(28px, 2.35vw, 43px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-shell-menu .menu-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.site-shell-menu .menu-links a:hover,
.site-shell-menu .menu-links a[aria-current="page"] {
  color: var(--green);
  transform: translateX(5px);
}

.site-shell-menu .menu-links a:hover::after,
.site-shell-menu .menu-links a[aria-current="page"]::after {
  width: 48px;
}

.site-shell-menu__media {
  overflow: hidden;
  background: var(--deep);
}

.site-shell-menu__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-shell-menu__pause {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Shared newsletter ---------- */

.shared-newsletter {
  position: relative;
  overflow: hidden;
  padding: 70px 24px 74px;
  background-color: var(--paper);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--ink);
}

.shared-newsletter__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.shared-newsletter__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.shared-newsletter__ornament span {
  display: none;
}

.shared-newsletter__ornament img {
  width: clamp(100px, 9vw, 148px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.shared-newsletter h2 {
  margin: 0 0 16px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 400;
  line-height: 1;
}

.shared-newsletter p {
  max-width: 610px;
  margin: 0 auto;
  color: #54554f;
  font-size: 14px;
  line-height: 1.65;
}

.shared-newsletter__form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 142px;
  gap: 12px;
  max-width: 590px;
  margin: 26px auto 0;
}

.shared-newsletter__field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(14, 36, 27, 0.55);
  border-radius: 8px;
  background: rgba(251, 246, 234, 0.68);
}

.shared-newsletter__field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-newsletter__field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.shared-newsletter__field input::placeholder {
  color: #74756e;
}

.shared-newsletter__form button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  padding: 0 24px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shared-newsletter__form button:hover {
  background: #0d382b;
  transform: translateY(-1px);
}

.shared-newsletter__message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 4px 0 0;
  color: var(--green);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.shared-newsletter__form button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* ---------- Shared luxury footer ---------- */

.shared-footer.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(5, 34, 25, 0.87), rgba(5, 34, 25, 0.93));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.76);
}

.shared-footer__inner {
  display: grid;
  grid-template-columns: 1.45fr repeat(5, minmax(115px, 1fr));
  max-width: 1540px;
  margin: 0 auto;
  padding: 54px 5vw 32px;
}

.shared-footer__brand,
.shared-footer__column {
  min-width: 0;
}

.shared-footer__brand {
  padding: 0 clamp(28px, 3vw, 58px) 0 0;
  text-align: center;
}

.shared-footer__logo {
  width: 165px;
  max-height: 112px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.shared-footer__brand p {
  max-width: 260px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.65;
}

.shared-footer__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 clamp(18px, 2.2vw, 34px);
  border-left: 1px solid rgba(185, 154, 93, 0.48);
}

.shared-footer__column h4 {
  position: relative;
  width: max-content;
  margin: 0 0 16px;
  padding-bottom: 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.shared-footer__column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.shared-footer__column a,
.shared-footer__column p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.shared-footer__column a:hover {
  color: var(--gold2);
}

.shared-footer__social a,
.shared-footer__contact a {
  display: flex;
  align-items: center;
  gap: 11px;
}

.shared-footer__icon,
.shared-footer__contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--gold2);
}

.shared-footer__contact svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.shared-footer__icon--instagram {
  position: relative;
  border: 1.5px solid var(--gold2);
  border-radius: 5px;
}

.shared-footer__icon--instagram::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1.3px solid var(--gold2);
  border-radius: 50%;
}

.shared-footer__icon--instagram::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--gold2);
}

.shared-footer__icon--facebook {
  font-family: Arial, sans-serif;
  font-size: 21px;
}

.shared-footer__icon--linkedin {
  border: 1px solid var(--gold2);
  border-radius: 2px;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.shared-footer__icon--youtube {
  width: 19px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold2);
  color: var(--green);
  font-size: 8px;
}

.shared-footer__divider {
  position: relative;
  height: 21px;
}

.shared-footer__divider::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(185, 154, 93, 0.6);
}

.shared-footer__divider span {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold);
  background: var(--green);
  transform: translateX(-50%) rotate(45deg);
}

.shared-footer__divider span::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(185, 154, 93, 0.65);
}

.shared-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 12px 5vw 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.shared-footer__legal p {
  margin: 0;
}

.shared-footer__legal > div {
  display: flex;
  align-items: center;
  gap: 22px;
}

.shared-footer__legal > div span {
  width: 1px;
  height: 17px;
  background: rgba(185, 154, 93, 0.68);
}

.shared-footer__legal a {
  color: rgba(255, 255, 255, 0.56);
}

.shared-footer__legal a:hover {
  color: var(--gold2);
}

/* ---------- Responsive shared shell ---------- */

@media (max-width: 1180px) {
  .shared-footer__inner {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    row-gap: 44px;
  }

  .shared-footer__social {
    grid-column: 2;
    grid-row: 2;
  }

  .shared-footer__contact {
    grid-column: 3 / span 2;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .site-shell-menu.menu-panel {
    grid-template-columns: 46% 54%;
  }

  .site-shell-menu__navigation {
    padding: 94px 24px 42px;
  }

  .site-shell-menu .menu-links a {
    font-size: clamp(22px, 3.4vw, 34px);
  }

  .shared-newsletter__form {
    grid-template-columns: 1fr 132px;
  }

  .shared-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 44px;
  }

  .shared-footer__brand {
    grid-column: 1 / -1;
    padding: 0 20px 34px;
  }

  .shared-footer__brand p {
    max-width: 440px;
  }

  .shared-footer__column,
  .shared-footer__social,
  .shared-footer__contact {
    grid-column: auto;
    grid-row: auto;
    padding: 0 24px 24px;
  }

  .shared-footer__column:nth-of-type(odd) {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .shared-site-header .nav-row {
    padding: 0 18px;
  }

  .shared-site-header .brand img {
    width: 46px;
  }

  .site-shell-menu.menu-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 42vh;
    overflow-y: auto;
  }

  .site-shell-menu__navigation,
  .site-shell-menu__media {
    min-height: 0;
  }

  .site-shell-menu__navigation {
    min-height: 58vh;
    padding: 84px 24px 40px;
  }

  .site-shell-menu .menu-links {
    gap: 10px;
  }

  .site-shell-menu .menu-links a {
    font-size: 30px;
  }

  .site-shell-menu__pause {
    top: 16px;
    right: 16px;
  }

  .shared-newsletter {
    padding: 58px 20px 62px;
  }

  .shared-newsletter p br {
    display: none;
  }

  .shared-newsletter__form {
    grid-template-columns: 1fr;
  }

  .shared-newsletter__form button {
    width: 100%;
  }

  .shared-footer__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 44px 24px 22px;
  }

  .shared-footer__brand {
    grid-column: auto;
    padding: 0 0 36px;
  }

  .shared-footer__column,
  .shared-footer__social,
  .shared-footer__contact,
  .shared-footer__column:nth-of-type(odd) {
    border-left: 0;
    border-top: 1px solid rgba(185, 154, 93, 0.34);
    padding: 28px 0;
  }

  .shared-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 28px;
  }
}

/* =========================================================
   PRODUCT-SPECIFIC SHARED SHELL COLORS
   Scoped by unique body classes so the home page is not affected.
   ========================================================= */

/* Bitcoin page: transparent at the top, then blue/navy when scrolled. */
.bitcoin-page .shared-site-header.header-scrolled {
  background: rgba(4, 9, 20, 0.98);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.bitcoin-page .shared-site-header.header-scrolled .nav-row {
  background: rgba(4, 9, 20, 0.98);
  border-bottom-color: rgba(196, 154, 68, 0.42);
}

/* Bitcoin page footer: blue/gold, matching the product page rather than the default green. */
.bitcoin-page .shared-footer.site-footer {
  background-color: #040914;
  background-image:
    radial-gradient(circle at 72% 8%, rgba(196, 154, 68, 0.12), transparent 32%),
    linear-gradient(180deg, #07101f 0%, #040914 100%);
}

.bitcoin-page .shared-footer__column {
  border-left-color: rgba(196, 154, 68, 0.45);
}

.bitcoin-page .shared-footer__divider::before,
.bitcoin-page .shared-footer__legal > div span {
  background: rgba(196, 154, 68, 0.62);
}

.bitcoin-page .shared-footer__divider span {
  border-color: #c49a44;
  background: #040914;
}

.bitcoin-page .shared-footer__column h4::after {
  background: #c49a44;
}

.bitcoin-page .shared-footer__column h4,
.bitcoin-page .shared-footer__column a:hover,
.bitcoin-page .shared-footer__icon,
.bitcoin-page .shared-footer__contact svg {
  color: #d3ad63;
}

.bitcoin-page .shared-footer__icon--youtube {
  background: #d3ad63;
  color: #040914;
}

/* Devil's Blood page only: transparent at the top, then black when scrolled. */
.devils-theme-page .shared-site-header.header-scrolled {
  background: rgba(1, 1, 1, 0.98);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.devils-theme-page .shared-site-header.header-scrolled .nav-row {
  background: rgba(1, 1, 1, 0.98);
  border-bottom-color: rgba(213, 164, 94, 0.38);
}

/* Devil's Blood page footer only. */
.devils-theme-page .shared-footer.site-footer {
  background-color: #010101;
  background-image:
    radial-gradient(circle at 72% 8%, rgba(213, 94, 39, 0.10), transparent 32%),
    linear-gradient(180deg, #050505 0%, #010101 100%);
}

.devils-theme-page .shared-footer__column {
  border-left-color: rgba(213, 164, 94, 0.34);
}

.devils-theme-page .shared-footer__divider::before,
.devils-theme-page .shared-footer__legal > div span {
  background: rgba(213, 164, 94, 0.55);
}

.devils-theme-page .shared-footer__divider span {
  border-color: #d5a45e;
  background: #010101;
}

.devils-theme-page .shared-footer__column h4::after {
  background: #d5a45e;
}

.devils-theme-page .shared-footer__column h4,
.devils-theme-page .shared-footer__column a:hover,
.devils-theme-page .shared-footer__icon,
.devils-theme-page .shared-footer__contact svg {
  color: #d5a45e;
}

.devils-theme-page .shared-footer__icon--youtube {
  background: #d5a45e;
  color: #010101;
}



/* =========================================================
   FOOTER CENTER DIVIDER FIX
   Keeps the gold footer line, but prevents leafline.png or old spans
   from overflowing diagonally across the footer.
   ========================================================= */

.shared-footer__divider.shared-footer__divider--leaf {
  position: relative;
  height: 28px;
  overflow: hidden;
}

.shared-footer__divider.shared-footer__divider--leaf::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(185, 154, 93, 0.6);
  transform: translateY(-50%);
}

/* Hide the old diamond spans if an older cached JS file still outputs them. */
.shared-footer__divider.shared-footer__divider--leaf span,
.shared-footer__divider.shared-footer__divider--leaf span::after {
  display: none !important;
}

.shared-footer__divider.shared-footer__divider--leaf img {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 58px;
  max-width: 58px;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translate(-50%, -50%);
  background: transparent;
  padding: 0 10px;
}

.bitcoin-page .shared-footer__divider.shared-footer__divider--leaf img {
  background: transparent;
}

.devils-theme-page .shared-footer__divider.shared-footer__divider--leaf img {
  background: transparent;
}
