/* EMPRYN custom global footer. The parent Blocksy footer stays in the DOM for
   compatibility, but is visually replaced by this child-theme footer. */
body.empryn-storefront footer.ct-footer { display: none !important; }

.empryn-global-footer {
  position: relative;
  background: var(--empryn-navy);
  color: rgba(255,255,255,.70);
  border-top: 1px solid rgba(255,255,255,.07);
}

.empryn-global-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.empryn-global-footer a:hover { color: var(--empryn-gold-soft); }

.empryn-global-footer__newsletter {
  padding: 54px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0));
}

.empryn-global-footer__newsletter-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px,6vw,86px);
  align-items: center;
}

.empryn-global-footer__newsletter-copy h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.7rem,2.7vw,3.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.empryn-global-footer__newsletter-copy p {
  margin: 0;
  color: rgba(255,255,255,.58);
  max-width: 620px;
}

.empryn-global-footer__newsletter-form form { width: 100%; }
.empryn-global-footer__newsletter-form input[type="email"],
.empryn-global-footer__newsletter-form input[type="text"] {
  width: min(100%, 520px);
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(4,13,23,.38);
  color: #fff;
  padding: 0 16px;
}
.empryn-global-footer__newsletter-form input::placeholder { color: rgba(255,255,255,.47); }
.empryn-global-footer__newsletter-form button,
.empryn-global-footer__newsletter-form input[type="submit"] {
  margin-top: 14px;
  min-height: 48px;
  padding-inline: 24px;
  border: 0;
  border-radius: 7px;
  background: #D6B15E;
  color: var(--empryn-navy);
  font-weight: 750;
}

.empryn-footer-newsletter-placeholder {
  display: grid;
  gap: 7px;
  max-width: 520px;
  padding: 18px 20px;
  border: 1px dashed rgba(234,217,173,.34);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.empryn-footer-newsletter-placeholder span { color: #fff; font-weight: 700; }
.empryn-footer-newsletter-placeholder small { color: rgba(255,255,255,.48); line-height: 1.45; }

.empryn-global-footer__main {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr .9fr;
  gap: clamp(34px,5vw,76px);
  padding-top: clamp(48px,6vw,82px);
  padding-bottom: 54px;
}

.empryn-global-footer__brand { max-width: 290px; }
.empryn-footer-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(190px, 16vw, 230px);
  max-width: 100%;
  padding: 8px 0 4px;
}
.empryn-footer-logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}
.empryn-global-footer__brand > p {
  margin: 22px 0 0;
  color: rgba(255,255,255,.45);
  font-size: .92rem;
  line-height: 1.75;
}

.empryn-footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.empryn-footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--empryn-navy);
}
.empryn-footer-socials a:hover { background: var(--empryn-gold-hover); color: var(--empryn-navy); transform: translateY(-2px); }
.empryn-footer-socials svg { width: 18px; height: 18px; fill: currentColor; }

.empryn-footer-column h3 {
  margin: 2px 0 18px;
  color: #D6B15E;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.empryn-footer-column ul { list-style: none; padding: 0; margin: 0; }
.empryn-footer-column li + li { margin-top: 8px; }
.empryn-footer-column a { font-size: .92rem; }

.empryn-global-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.empryn-global-footer__bottom p { margin: 0; color: rgba(255,255,255,.45); font-size: .84rem; }

.empryn-footer-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.empryn-footer-payments span {
  color: rgba(255,255,255,.38);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.empryn-back-to-top {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  background: rgba(0,0,0,.45);
  color: #fff !important;
  font-size: 1.1rem;
}

@media (max-width: 960px) {
  .empryn-global-footer__newsletter-inner { grid-template-columns: 1fr; }
  .empryn-global-footer__main { grid-template-columns: 1fr 1fr; }
  .empryn-global-footer__brand { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 640px) {
  .empryn-global-footer__newsletter { padding: 42px 0 38px; }
  .empryn-global-footer__main { grid-template-columns: 1fr; gap: 34px; }
  .empryn-global-footer__brand { grid-column: auto; }
  .empryn-global-footer__bottom { align-items: flex-start; flex-direction: column; padding-right: 54px; }
  .empryn-back-to-top { right: 14px; bottom: 18px; }
}

/* v0.3.0 — premium footer polish */
.empryn-global-footer {
  background:
    radial-gradient(circle at 88% 0%, rgba(201,168,91,.08), transparent 25%),
    linear-gradient(180deg,#071524 0%,#06111D 100%);
}
.empryn-global-footer__newsletter { padding: 62px 0 56px; }
.empryn-global-footer__newsletter-inner {
  position: relative;
  padding-block: 8px;
}
.empryn-global-footer__newsletter-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: -28px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg,var(--empryn-gold),transparent);
}
.empryn-global-footer__newsletter-form input[type="email"],
.empryn-global-footer__newsletter-form input[type="text"] {
  min-height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}
.empryn-global-footer__newsletter-form button,
.empryn-global-footer__newsletter-form input[type="submit"] {
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg,var(--empryn-gold-hover),var(--empryn-gold));
  color: #17130a;
}
.empryn-global-footer__main { align-items: start; }
.empryn-global-footer__brand { max-width: 310px; }
.empryn-footer-logo { width: clamp(205px,17vw,250px); }
.empryn-footer-column h3 { letter-spacing: .10em; }
.empryn-footer-column a { position: relative; }
.empryn-footer-column a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: var(--empryn-gold);
  transition: right 220ms ease;
}
.empryn-footer-column a:hover::after { right: 0; }
.empryn-footer-payments span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.empryn-back-to-top {
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(8px);
}
.empryn-back-to-top:hover { background: var(--empryn-gold); color: var(--empryn-navy) !important; transform: translateY(-2px); }


/* v0.8.7 — official EMPRYN footer palette + logo contrast fix.
 * Based on the approved brand system: Navy #071C33 / #0B2746,
 * Gold #C9A15B / #E4C98A, Ivory #F8F5EE.
 */
.empryn-global-footer {
  background: #071C33 !important;
  color: rgba(248,245,238,.72);
  border-top-color: rgba(248,245,238,.10);
}

.empryn-global-footer__newsletter {
  background: #0B2746 !important;
  border-bottom-color: rgba(248,245,238,.12);
}

.empryn-global-footer__newsletter-copy h2,
.empryn-footer-newsletter-placeholder span {
  color: #F8F5EE;
}

.empryn-global-footer__newsletter-copy p,
.empryn-global-footer__brand > p,
.empryn-footer-newsletter-placeholder small,
.empryn-global-footer__bottom p {
  color: rgba(248,245,238,.68);
}

.empryn-global-footer .empryn-eyebrow,
.empryn-footer-column h3 {
  color: #C9A15B;
}

.empryn-global-footer a {
  color: rgba(248,245,238,.88);
}
.empryn-global-footer a:hover,
.empryn-global-footer a:focus-visible {
  color: #E4C98A;
}

.empryn-global-footer__newsletter-form input[type="email"],
.empryn-global-footer__newsletter-form input[type="text"] {
  border-color: rgba(228,201,138,.34);
  background: rgba(248,245,238,.055);
  color: #F8F5EE;
}
.empryn-global-footer__newsletter-form input::placeholder {
  color: rgba(248,245,238,.50);
}
.empryn-global-footer__newsletter-form button,
.empryn-global-footer__newsletter-form input[type="submit"] {
  background: #C9A15B;
  color: #071C33;
}
.empryn-global-footer__newsletter-form button:hover,
.empryn-global-footer__newsletter-form input[type="submit"]:hover {
  background: #E4C98A;
  color: #071C33;
}

.empryn-global-footer__bottom {
  border-top-color: rgba(248,245,238,.12);
}
.empryn-footer-payments span {
  color: rgba(248,245,238,.62);
  border-color: rgba(248,245,238,.12);
  background: rgba(248,245,238,.04);
}

/* A dedicated inverse logo can be selected in EMPRYN Home Builder →
   Newsletter & Footer. If none is selected, keep the normal site logo readable
   by placing it on a small ivory plate instead of letting navy disappear. */
.empryn-footer-logo--fallback {
  width: max-content;
  max-width: min(250px,100%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #F8F5EE;
}
.empryn-footer-logo--fallback img {
  width: clamp(185px,16vw,225px) !important;
}
.empryn-footer-logo--inverse {
  background: transparent;
}

.empryn-back-to-top {
  border-color: rgba(248,245,238,.14);
  background: rgba(248,245,238,.07);
  color: #F8F5EE !important;
}
.empryn-back-to-top:hover {
  background: #C9A15B;
  color: #071C33 !important;
}


/* v0.9.0 — stable footer + native newsletter form */
.empryn-global-footer {
  background: #071C33 !important;
  color: rgba(248,245,238,.78);
}
.empryn-global-footer__newsletter {
  background: #0B2746 !important;
}
.empryn-global-footer__newsletter-form {
  width: min(100%, 560px);
}
.empryn-native-newsletter__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.empryn-native-newsletter input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(228,201,138,.38) !important;
  border-radius: 999px !important;
  padding: 0 20px;
  background: rgba(248,245,238,.06) !important;
  color: #F8F5EE !important;
}
.empryn-native-newsletter input[type="email"]::placeholder { color: rgba(248,245,238,.55); }
.empryn-native-newsletter button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: #C9A15B !important;
  color: #071C33 !important;
  font-weight: 800;
  cursor: pointer;
}
.empryn-native-newsletter button:hover { background: #E4C98A !important; }
.empryn-native-newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: rgba(248,245,238,.65);
  font-size: .74rem;
  line-height: 1.45;
}
.empryn-native-newsletter__consent input { margin-top: 3px; accent-color: #C9A15B; }
.empryn-newsletter-status { margin: 0 0 10px; font-size: .86rem; }
.empryn-newsletter-status.is-success { color: #E4C98A; }
.empryn-newsletter-status.is-error { color: #F3B4B4; }

.empryn-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 260px;
  text-decoration: none;
}
.empryn-footer-logo--fallback {
  padding: 10px 14px;
  border-radius: 12px;
  background: #F8F5EE;
}
.empryn-footer-logo--fallback .empryn-footer-logo__image {
  width: clamp(180px,16vw,230px) !important;
  max-height: 72px;
  object-fit: contain;
}
.empryn-footer-logo--inverse { background: transparent; padding: 0; }
.empryn-footer-logo--inverse .empryn-footer-logo__image {
  width: clamp(190px,17vw,245px) !important;
  max-height: 82px;
  object-fit: contain;
}
.empryn-footer-wordmark {
  color: #F8F5EE;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .18em;
}

@media (max-width: 640px) {
  .empryn-native-newsletter__row { grid-template-columns: 1fr; }
  .empryn-native-newsletter button { width: 100%; }
}
