/* Donutween landing page — loaded only on the front page (see functions.php) */

:root {
  --dw-orange: #e3652d;
  --dw-orange-bright: #ff7a33;
  --dw-yellow: #ffdd00;
  --dw-black: #0a0a0a;
  --dw-ink: #14110f;
  --dw-panel: rgba(12, 10, 9, 0.82);
  --dw-text: #f3ede7;
  --dw-muted: #b9aea4;
  --dw-display: "Creepster", "Impact", sans-serif;
  --dw-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dw-radius: 18px;
  --dw-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body.dw-landing {
  margin: 0;
  background: var(--dw-black) !important;
  color: var(--dw-text) !important;
  font-family: var(--dw-body) !important;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.dw-landing h1, body.dw-landing h2, body.dw-landing h3 {
  font-family: var(--dw-display) !important;
  color: var(--dw-orange) !important;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 0.35em;
  text-shadow: 0 3px 0 #000, 0 0 24px rgba(227, 101, 45, 0.45);
  animation: none !important;            /* parent theme adds a "glow" animation to every heading */
}
body.dw-landing a { color: inherit; text-decoration: none; }
body.dw-landing a:hover { transform: none !important; }
body.dw-landing img { max-width: 100%; height: auto; display: block; }
body.dw-landing #loading-screen { display: none !important; }   /* no "Summoning the spirits" splash on the landing */

.dw-container { width: min(1180px, 100% - var(--dw-gutter) * 2); margin-inline: auto; }
.dw-eyebrow {
  margin: 0 0 0.6em;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dw-yellow);
}

/* ---------- buttons ---------- */
.dw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.6em;
  border-radius: 999px; border: 2px solid var(--dw-orange);
  font: 700 1rem/1 var(--dw-body); letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff !important; background: transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.dw-btn:hover, .dw-btn:focus-visible { background: var(--dw-orange); color: #000 !important; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(227, 101, 45, .35); outline: none; }
.dw-btn--primary { background: var(--dw-orange); color: #000 !important; }
.dw-btn--primary:hover, .dw-btn--primary:focus-visible { background: var(--dw-orange-bright); }
.dw-btn--ghost { border-color: rgba(255, 255, 255, .55); }
.dw-btn--small { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.85rem; }
.dw-btn--big { min-height: 56px; padding: 0.9em 2.2em; font-size: 1.1rem; }

/* ---------- fog + bats (fixed, behind everything) ---------- */
.dw-fog { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 110%, #2a1a12 0%, #120d0b 45%, #050505 100%); }
.dw-fog__layer {
  position: absolute; inset: 0; opacity: .32;
  background: url("fog.png") repeat-x 0 50% / auto 120%;   /* small seamless alpha tile; no filters, no giant layers */
  animation: dwDrift 90s linear infinite;
}
.dw-fog__layer--2 { opacity: .18; background-position: 300px 30%; background-size: auto 90%; animation-duration: 140s; animation-direction: reverse; }
@keyframes dwDrift { to { background-position-x: 1600px; } }
.dw-fog__video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; opacity: 0; transition: opacity 1.5s ease; }
.dw-fog__video.is-playing { opacity: .55; }
.dw-fog__video.is-playing ~ .dw-fog__layer { opacity: .12; }   /* CSS fog becomes a subtle top layer once the video runs */
.dw-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }   /* bats + witch live in the background, in front of the smoke only */
.dw-bats img { position: absolute; top: 0; left: -120px; width: 64px; height: auto; opacity: .9;
  animation: dwFly var(--dur, 9s) linear forwards; }
/* witch: flies right-to-left with a slow bob, silhouette against the smoke */
.dw-bats img.dw-witch { left: auto; right: -260px; width: 240px; opacity: .92; filter: drop-shadow(0 0 12px rgba(0,0,0,.9));
  animation: dwWitch var(--dur, 16s) linear forwards; }
@keyframes dwWitch {
  0%   { transform: translate(0, var(--y0)) scale(var(--s)); }
  25%  { transform: translate(calc(-25vw - 65px), calc(var(--y0) - 4vh)) scale(var(--s)); }
  50%  { transform: translate(calc(-50vw - 130px), calc(var(--y0) + 2vh)) scale(var(--s)); }
  75%  { transform: translate(calc(-75vw - 195px), calc(var(--y0) - 3vh)) scale(var(--s)); }
  100% { transform: translate(calc(-100vw - 260px), var(--y0)) scale(var(--s)); }
}
@keyframes dwFly {
  from { transform: translate(0, var(--y0)) scale(var(--s)); }
  to   { transform: translate(calc(100vw + 240px), var(--y1)) scale(var(--s)); }
}
@media (prefers-reduced-motion: reduce) {
  .dw-fog__layer, .dw-bats img, .dw-hero__donuts { animation: none !important; }
  .dw-witch { display: none; }
}

/* everything real sits above the fog */
.dw-header, main, .dw-footer, .dw-sound, .dw-pagehero { position: relative; z-index: 1; }
.dw-sound { z-index: 30; }

/* ---------- header ---------- */
.dw-header { position: sticky; top: 0; z-index: 20;
  background: rgba(8, 6, 5, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dw-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.dw-header__logo img { width: 150px; height: auto; }
.dw-header__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.dw-header__nav a { font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--dw-text) !important; opacity: .85; }
.dw-header__nav a:hover { opacity: 1; color: var(--dw-orange) !important; }
.dw-header__actions { display: flex; align-items: center; gap: .9rem; }
.dw-cart { position: relative; display: inline-flex; padding: .35rem; color: var(--dw-text) !important; }
.dw-cart__count { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--dw-orange); color: #000; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }

/* ---------- hero ---------- */
.dw-hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 7vw, 6rem) 0 0; text-align: center; overflow: hidden; }
.dw-hero__house { position: absolute; left: -6%; bottom: -14%; width: min(74vw, 1150px); z-index: -1;   /* base bleeds off the bottom so the ground/fence never shows */
  opacity: .96; filter: drop-shadow(0 0 40px rgba(0,0,0,.95)); pointer-events: none; }
.dw-hero__inner { position: relative; max-width: 760px; text-shadow: 0 2px 10px #000; }
.dw-hero__wordmark { width: min(520px, 80vw); margin: 0 auto 1.2rem; filter: drop-shadow(0 6px 0 #000) drop-shadow(0 0 30px rgba(227,101,45,.35)); }
.dw-hero__title { font-size: clamp(2.6rem, 7vw, 5rem); }
.dw-hero__lead { max-width: 34em; margin: 0 auto 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--dw-text);
  text-shadow: 0 2px 8px #000, 0 0 30px #000; }
.dw-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.dw-hero__note { margin: 1.2rem 0 0; font-size: .9rem; color: var(--dw-muted); }
.dw-hero__donuts { width: min(720px, 92vw); margin: clamp(1.5rem, 4vw, 3rem) auto -2%; animation: dwFloat 5s ease-in-out infinite; }
@keyframes dwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- promo ---------- */
.dw-promo { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.dw-promo__card {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 3rem);
  border-radius: var(--dw-radius);
  background: linear-gradient(135deg, #1c120c 0%, #3a1f0e 55%, #b4430f 100%);
  border: 1px solid rgba(255, 170, 90, .35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.08);
}
.dw-promo__card h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--dw-yellow) !important; }
.dw-promo__text p { margin: 0 0 .6em; max-width: 42em; }
.dw-promo__limit { font-weight: 700; color: var(--dw-yellow); }
.dw-promo__card .dw-btn { flex: 0 0 auto; }

/* ---------- sections ---------- */
.dw-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.dw-section--alt { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); border-block: 1px solid rgba(255,255,255,.06); }
.dw-section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(1.5rem, 4vw, 2.6rem); }
.dw-section__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.dw-section__head p { margin: 0; color: var(--dw-muted); }
.dw-section__more { text-align: center; margin: 2rem 0 0; }

/* designs row */
.dw-designs { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 2vw, 1.5rem); }
.dw-designs__item a { position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 3px solid var(--dw-orange); background: #000; box-shadow: 0 16px 34px rgba(0,0,0,.6);
  transition: transform .25s ease, box-shadow .25s ease; }
.dw-designs__item a:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(227,101,45,.35); }
.dw-designs__item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.dw-designs__item .dw-btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }

/* parent theme injects a "Selling On:" pseudo-label before every price */
.dw-landing .woocommerce ul.products li.product .price::before,
.dw-landing .woocommerce ul.products li.product .price::after { content: none !important; display: none !important; }
.dw-landing .woocommerce ul.products li.product .button,
.dw-designs__item .dw-btn { white-space: nowrap; }

/* WooCommerce [products] grid inside the landing — inherits the child theme's card styles, tidy up spacing */
.dw-landing .woocommerce ul.products { margin: 0 !important; gap: clamp(.8rem, 2vw, 1.6rem) !important; }
.dw-landing .woocommerce ul.products li.product { max-width: 270px !important; flex-basis: 240px !important; margin: 0 !important; }
.dw-landing .woocommerce ul.products li.product img { height: auto !important; aspect-ratio: 1; }
.dw-landing .woocommerce ul.products li.product .button { border-radius: 999px !important; text-transform: uppercase; font-size: .85rem !important; }
.dw-landing .woocommerce ul.products li.product .button:hover { transform: none !important; }

/* category tiles */
.dw-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem, 2vw, 1.5rem); }
.dw-cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 1.6rem;
  border-radius: var(--dw-radius); overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.1);
  background: var(--bg) center / cover no-repeat; }
.dw-cat::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.88) 100%); }
.dw-cat__label { font: 400 2.2rem/1 var(--dw-display); color: var(--dw-orange); text-shadow: 0 3px 0 #000; }
.dw-cat__sub { color: var(--dw-text); font-weight: 600; }
.dw-cat:hover .dw-cat__label { color: var(--dw-yellow); }

/* ---------- footer ---------- */
.dw-footer { padding: 2.5rem 0 5rem; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.6); text-align: center; }
.dw-footer__inner p { margin: 0 0 .8rem; }
.dw-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-bottom: 1rem; }
.dw-footer nav a { color: var(--dw-orange) !important; font-weight: 600; }
.dw-footer__copy { color: var(--dw-muted); font-size: .85rem; }

/* ---------- sound toggle ---------- */
.dw-sound { position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem .5rem .7rem;
  border-radius: 999px; border: 2px solid var(--dw-orange); background: rgba(8,6,5,.9); color: var(--dw-text);
  font: 700 .8rem/1 var(--dw-body); letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.dw-sound__icon { width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4z'/></svg>") center / contain no-repeat; }
.dw-sound[aria-pressed="true"] { background: var(--dw-orange); color: #000; }
.dw-sound[aria-pressed="true"] .dw-sound__icon { animation: dwPulse 1.2s ease-in-out infinite; }
@keyframes dwPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .dw-designs { grid-template-columns: repeat(2, 1fr); }
  .dw-promo__card { flex-direction: column; align-items: flex-start; text-align: left; }
  .dw-promo__card .dw-btn { width: 100%; }
}
@media (max-width: 720px) {
  .dw-header__nav { display: none; }              /* logo + Shop + cart is the whole mobile header */
  .dw-header__actions { margin-left: auto; }
  .dw-hero { padding-top: 2rem; }
  .dw-hero__house { left: -22%; bottom: -10%; width: 135vw; opacity: .8; }
  .dw-hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .dw-hero__cta { flex-direction: column; align-items: stretch; }
  .dw-hero__cta .dw-btn { width: 100%; }
  .dw-hero__donuts { margin-top: 1.5rem; }
  .dw-cats { grid-template-columns: 1fr; }
  .dw-cat { min-height: 200px; }
  .dw-sound__label { display: none; }
  .dw-sound { padding: .5rem .6rem; }
  .dw-landing .woocommerce ul.products li.product { flex-basis: calc(50% - .5rem) !important; max-width: none !important; }
}
@media (max-width: 420px) {
  .dw-designs { grid-template-columns: 1fr 1fr; }
  .dw-designs__item .dw-btn { min-height: 34px; padding: .4em .8em; font-size: .72rem; }
}
