/* Homepage footer — newsletter signup, socials, site links */

.site-footer {
  --surface: #ffffff;
  --bg: #f3f4f6;
  --bg-soft: #e8eaee;
  --ink: #14151a;
  --ink-muted: #5c616b;
  --border: rgba(20, 21, 26, 0.08);
  --accent: #89cff0;
  --store: #14151a;
  --store-hover: #2a2c35;
  --radius-pill: 999px;
  --font-display: "Gloria Hallelujah", cursive;
  display: block;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem) 2rem;
}

.newsletter-wrap {
  position: relative;
  margin: 0 auto 0;
  padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(1rem, 3vw, 1.5rem);
  overflow: hidden;
}

.footer-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  z-index: 1;
}

.newsletter-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.newsletter-desc {
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
  font-size: 1rem;
}

/* Decorative SVG doodles around Stay updated — kept in the outer gutters */
.newsletter-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.newsletter-doodle {
  position: absolute;
  width: clamp(34px, 6.5vw, 54px);
  height: auto;
  color: var(--ink);
  opacity: 0.13;
  will-change: transform;
}

.newsletter-doodle svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Initial placement before JS drift takes over */
.newsletter-doodle-coffee {
  top: 2%;
  left: 15%;
  --doodle-rotate: -14deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
}

.newsletter-doodle-shades {
  top: 3%;
  right: 20%;
  width: clamp(42px, 7.5vw, 62px);
  --doodle-rotate: 12deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.15;
}

.newsletter-doodle-bolt {
  top: 34%;
  left: 20%;
  width: clamp(26px, 5vw, 40px);
  --doodle-rotate: -18deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.14;
}

.newsletter-doodle-bolt-b {
  top: 36%;
  right: 15%;
  width: clamp(24px, 4.5vw, 36px);
  --doodle-rotate: 16deg;
  --doodle-flip: -1;
  transform: rotate(var(--doodle-rotate)) scaleX(var(--doodle-flip));
  opacity: 0.11;
}

.newsletter-doodle-cassette {
  bottom: 29%;
  left: 3%;
  width: clamp(44px, 7.5vw, 62px);
  --doodle-rotate: -8deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.12;
}

.newsletter-doodle-skate {
  top: 4%;
  right: 1.5%;
  width: clamp(48px, 8vw, 68px);
  --doodle-rotate: 8deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.12;
}

.newsletter-doodle-lips {
  bottom: 4%;
  right: 2%;
  width: clamp(36px, 6.5vw, 52px);
  --doodle-rotate: -10deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.12;
}

.newsletter-doodle-lolli {
  top: 58%;
  left: 15%;
  width: clamp(30px, 5.5vw, 44px);
  --doodle-rotate: 14deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.12;
}

.newsletter-doodle-notebook {
  bottom: 38%;
  right: 2%;
  width: clamp(32px, 5.5vw, 46px);
  --doodle-rotate: 9deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.11;
}

.newsletter-doodle-lighter {
  bottom: 8%;
  left: 25%;
  width: clamp(22px, 4vw, 34px);
  --doodle-rotate: -6deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.12;
}

.newsletter-doodle-coffee-b {
  top: 20%;
  left: 2%;
  width: clamp(28px, 5vw, 40px);
  --doodle-rotate: 18deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.1;
}

.newsletter-doodle-shades-b {
  bottom: 20%;
  right: 20%;
  width: clamp(36px, 6vw, 50px);
  --doodle-rotate: -16deg;
  --doodle-flip: 1;
  transform: rotate(var(--doodle-rotate));
  opacity: 0.1;
}

.newsletter-doodles.is-floating .newsletter-doodle {
  right: auto;
  bottom: auto;
}

/* Keep doodles (and their float animation) on mobile; give them gutter room */
@media (max-width: 700px) {
  .newsletter-wrap {
    padding: 3.25rem 0 3.5rem;
  }

  .newsletter-doodle {
    width: clamp(26px, 9vw, 40px);
    opacity: 0.1;
  }

  .newsletter-doodle-shades,
  .newsletter-doodle-shades-b {
    width: clamp(32px, 11vw, 48px);
  }

  .newsletter-doodle-cassette,
  .newsletter-doodle-skate {
    width: clamp(34px, 12vw, 52px);
  }

  .newsletter-doodle-coffee {
    left: 4%;
    top: 6%;
  }

  .newsletter-doodle-shades {
    right: 4%;
    top: 8%;
  }

  .newsletter-doodle-skate {
    right: 6%;
    top: auto;
    bottom: 8%;
  }

  .newsletter-doodle-bolt {
    left: 6%;
    top: auto;
    bottom: 10%;
  }

  .newsletter-doodle-coffee-b {
    left: 8%;
    top: 18%;
  }

  .newsletter-doodle-lips {
    right: 10%;
    bottom: 14%;
  }

  .newsletter-doodle-lolli {
    left: 12%;
    top: 70%;
  }

  .newsletter-doodle-notebook {
    right: 8%;
    bottom: 28%;
  }

  .newsletter-doodle-lighter {
    left: 20%;
    bottom: 6%;
  }

  .newsletter-doodle-cassette {
    left: 4%;
    bottom: 22%;
  }

  .newsletter-doodle-bolt-b {
    right: 5%;
    top: 40%;
  }

  .newsletter-doodle-shades-b {
    right: 18%;
    bottom: 6%;
  }
}

/* ---------- Mailchimp embed (site-matched overrides) ---------- */
#mc_embed_shell {
  width: 100%;
}

#mc_embed_signup {
  background: transparent !important;
  clear: none !important;
  font: inherit !important;
  width: 100% !important;
  max-width: 100%;
}

#mc_embed_signup form {
  width: 100%;
  margin: 0;
  padding: 0;
}

#mc_embed_signup h2,
#mc_embed_signup .indicates-required,
#mc_embed_signup .refferal_badge,
#mc_embed_signup .optionalParent .foot > p {
  display: none !important;
}

#mc_embed_signup .mc-field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  width: 100%;
  padding-bottom: 0;
  min-height: 0;
}

#mc_embed_signup .mc-field-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#mc_embed_signup input.email,
#mc_embed_signup input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  width: auto !important;
  padding: 0.85rem 1.15rem !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-pill) !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font: inherit !important;
  outline: none;
  text-indent: 0 !important;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#mc_embed_signup input.email::placeholder {
  color: #8b909a;
}

#mc_embed_signup input.email:focus {
  border-color: rgba(15, 118, 110, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

#mc_embed_signup .optionalParent,
#mc_embed_signup .optionalParent .clear.foot {
  display: contents;
}

#mc_embed_signup #mc-embedded-subscribe,
#mc_embed_signup input.button {
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.85rem 1.5rem !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  background: var(--store) !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

#mc_embed_signup #mc-embedded-subscribe:hover {
  background: var(--store-hover) !important;
  transform: translateY(-1px);
}

#mc_embed_signup #mc-embedded-subscribe:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#mc_embed_signup #mce-responses {
  margin: 0.75rem 0 0;
  width: 100%;
}

#mc_embed_signup .response {
  font-size: 0.9rem;
  margin: 0 !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 12px;
}

#mc_embed_signup #mce-success-response {
  color: #0d5f59;
  background: rgba(15, 118, 110, 0.1);
}

#mc_embed_signup #mce-error-response {
  color: #8a1f1f;
  background: rgba(180, 40, 40, 0.08);
}

.privacy-text {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-bottom .social-links {
  gap: 0.15rem;
  padding: 0;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem 1.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.footer-links::-webkit-scrollbar {
  display: none;
}

.footer-links a {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-footer .footer-links.social-fade-right {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 calc(100% - 18px),
    rgba(0, 0, 0, 0.45) calc(100% - 8px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 calc(100% - 18px),
    rgba(0, 0, 0, 0.45) calc(100% - 8px),
    transparent 100%
  );
}

.site-footer .footer-links.social-fade-left {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 8px,
    #000 18px,
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 8px,
    #000 18px,
    #000 100%
  );
}

.site-footer .footer-links.social-fade-left.social-fade-right {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 8px,
    #000 18px,
    #000 calc(100% - 18px),
    rgba(0, 0, 0, 0.45) calc(100% - 8px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 8px,
    #000 18px,
    #000 calc(100% - 18px),
    rgba(0, 0, 0, 0.45) calc(100% - 8px),
    transparent 100%
  );
}

@media (max-width: 900px) {
  .footer-links {
    flex-wrap: nowrap;
  }
}

.footer-links a:hover {
  color: var(--ink);
}

/* Homepage footer night theme (8pm–8am local time) */
.site-footer.footer-night {
  background: #14151a;
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.12);
}

.site-footer.footer-night .newsletter-heading {
  color: #fff;
}

.site-footer.footer-night .newsletter-desc,
.site-footer.footer-night .privacy-text,
.site-footer.footer-night .footer-bottom {
  color: #fff;
}

.site-footer.footer-night .newsletter-doodle {
  color: rgba(255, 255, 255, 0.28);
}

.site-footer.footer-night .newsletter-doodles {
  display: none;
}

.site-footer.footer-night #mc_embed_signup .mc-field-group input[type="email"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.site-footer.footer-night #mc_embed_signup .mc-field-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer.footer-night #mc_embed_signup #mc-embedded-subscribe {
  background: #89cff0 !important;
  color: #14151a !important;
}

.site-footer.footer-night #mc_embed_signup #mc-embedded-subscribe:hover {
  background: #9fd8f4 !important;
}

.site-footer.footer-night .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.site-footer.footer-night .footer-links a:hover {
  color: #89cff0;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  #mc_embed_signup #mc-embedded-subscribe {
    width: 100% !important;
  }
}
