/*
Theme Name: Dracula Rainbow
Description: A gothic, gradient-soaked, parallax-powered theme for dracularainbow.com.
Version: 1.0.0
Author: dracularainbow.com
Text Domain: dracula-rainbow
*/

:root {
  --night: #0d0715;
  --night-2: #1a0f2a;
  --night-3: #2a1745;
  --blood: #b3122e;
  --bone: #f0e8dc;
  --muted: #b9aacb;
  --r: #ff2d55; --o: #ff9500; --y: #ffd60a; --g: #30d158; --b: #0a84ff; --i: #5e5ce6; --v: #bf5af2;
  --spectrum: linear-gradient(90deg, #ff2d55, #ff9500, #ffd60a, #30d158, #0a84ff, #5e5ce6, #bf5af2, #ff2d55);
  --head: "Cinzel Decorative", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--night-2), var(--night) 70%) fixed;
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.28rem;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: .04em; line-height: 1.2; margin: 0 0 .8rem; }
p { margin: 0 0 1.2rem; }
a { color: var(--v); }
a:hover { color: var(--y); }
img { max-width: 100%; height: auto; }

.rb {
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: slide 7s linear infinite;
}
@keyframes slide { to { background-position: -200% 0; } }

.divider { height: 6px; background: var(--spectrum); background-size: 200% 100%; animation: slide 9s linear infinite; box-shadow: 0 0 22px rgba(191,90,242,.5); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.solid { background: rgba(13,7,21,.85); backdrop-filter: blur(10px); padding: .55rem 2rem; box-shadow: 0 2px 24px rgba(0,0,0,.5); }
.brand { white-space: nowrap; font-family: var(--head); font-weight: 900; font-size: 1.25rem; text-decoration: none; color: var(--bone); letter-spacing: .05em; }
.brand:hover { color: var(--bone); }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; }
.site-header li a { white-space: nowrap; text-decoration: none; color: var(--bone); text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; font-weight: 600; position: relative; padding: .3rem 0; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.site-header li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--spectrum); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.site-header li a:hover::after, .site-header li.current-menu-item a::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle i { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--spectrum); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: linear-gradient(180deg, #05020a 0%, #170a2b 55%, #3a1456 100%); }
.hero.hero-short { height: 62vh; min-height: 440px; --aw: min(880px, 120vw); }
.hero-spacer { height: 90px; }
.layer { position: absolute; will-change: transform; pointer-events: none; }
.stars { inset: 0; }
.stars i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 3s infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
.moon { top: 14%; right: 12%; width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e7, #d9cfae 70%); box-shadow: 0 0 80px 14px rgba(255,248,231,.22); }
.arcs { bottom: 0; left: 50%; width: var(--aw, min(1500px, 150vw)); margin-left: calc(var(--aw, min(1500px, 150vw)) / -2); height: auto; opacity: .92; }
.arcs path { fill: none; stroke-width: 28; filter: drop-shadow(0 0 10px currentColor); stroke-dasharray: 1900; stroke-dashoffset: 1900; animation: draw 2.6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mtn, .castle, .hill { left: 0; width: 100%; bottom: 0; }
.mtn { height: 46%; fill: #1d0d33; opacity: .95; }
.castle { height: 42%; fill: #0d0715; }
.castle .win rect { fill: #ffd60a; animation: flicker 4s infinite; }
.castle .win rect:nth-child(2n) { animation-delay: -1.3s; }
.castle .win rect:nth-child(3n) { animation-delay: -2.6s; }
@keyframes flicker { 0%,100% { opacity: 1; } 45% { opacity: .55; } 60% { opacity: .9; } }
.hill { height: 12%; fill: #0d0715; bottom: -2px; }
.bats { inset: 0; }
.bats span { position: absolute; left: 0; font-size: 1.8rem; animation: fly 16s linear infinite; opacity: .85; }
@keyframes fly {
  from { transform: translate(-10vw, 0) rotate(-6deg); }
  25% { transform: translate(22vw, -40px) rotate(6deg); }
  50% { transform: translate(52vw, 10px) rotate(-6deg); }
  75% { transform: translate(80vw, -30px) rotate(6deg); }
  to { transform: translate(110vw, 0) rotate(-6deg); }
}
.hero-text { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6rem 1rem 8%; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 6rem); font-weight: 900; margin: 0; text-shadow: 0 4px 40px rgba(0,0,0,.7); }
.hero.hero-short h1 { font-size: clamp(2rem, 6vw, 4rem); }
.hero .tag { margin: 1rem 0 0; font-style: italic; font-size: clamp(1.2rem, 3vw, 1.8rem); color: #e6d9f5; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.btn { display: inline-block; padding: .85rem 2.2rem; color: #fff !important; text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: 1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blood), #6a0f6f); border: 1px solid rgba(255,255,255,.25); border-radius: 2px; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(191,90,242,.55); }
.btn.alt { background: linear-gradient(135deg, #0a84ff, #bf5af2); }

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; background: var(--spectrum); background-size: 200% 100%; animation: slide 12s linear infinite; padding: .8rem 0; transform: skewY(-1.2deg); margin: 2.5rem 0; box-shadow: 0 0 40px rgba(191,90,242,.35); }
.ribbon-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ribbon span { font-family: var(--head); font-weight: 900; color: #120820; text-transform: uppercase; letter-spacing: .25em; font-size: 1.1rem; padding: 0 1.6rem; white-space: nowrap; }
.ribbon span::after { content: "✦"; margin-left: 3.2rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.block { padding: 5rem 1.5rem; }
.content { padding-top: 4rem; padding-bottom: 5rem; }
.content.narrow { max-width: 780px; }
.block > h2, .content h2 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); text-align: center; margin-bottom: 2.2rem; }
.content > h2:not(:first-child) { margin-top: 4rem; }
.lead { font-size: 1.65rem; line-height: 1.5; text-align: center; max-width: 820px; margin: 0 auto 2.5rem; color: #e6d9f5; }
.lead::first-letter { font-family: var(--head); font-size: 3.4rem; font-weight: 900; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; font-weight: 700; color: var(--y); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; margin: 2rem 0; }
.card {
  padding: 1.7rem; border: 2px solid transparent; border-radius: 6px;
  background: linear-gradient(var(--night-2), var(--night-2)) padding-box, var(--spectrum) border-box;
  background-size: 100% 100%, 300% 100%;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(191,90,242,.35); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.card .big { font-family: var(--head); font-size: 2.4rem; font-weight: 900; display: block; margin-bottom: .3rem; }
.card .meta { font-size: .95rem; opacity: .8; }
.card a { color: var(--bone); text-decoration: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.panel { position: relative; display: block; padding: 3rem 2.2rem; border-radius: 6px; text-decoration: none; color: var(--bone); overflow: hidden; transition: transform .3s, box-shadow .3s; min-height: 320px; }
.panel:hover { transform: translateY(-8px) scale(1.01); color: var(--bone); }
.panel.night { background: radial-gradient(circle at 80% 10%, #5b1a7a, transparent 55%), linear-gradient(160deg, #1a0f2a, #05020a); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.panel.day { background: radial-gradient(circle at 20% 90%, #ffd60a88, transparent 50%), linear-gradient(160deg, #0a84ff, #5e5ce6 50%, #bf5af2); box-shadow: 0 10px 40px rgba(10,132,255,.3); }
.panel h3 { font-size: 2rem; margin: .6rem 0 1rem; }
.panel .more { display: inline-block; margin-top: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }

.tile { display: block; padding: 2rem 1.6rem; border-radius: 6px; text-decoration: none; color: #fff; min-height: 170px; transition: transform .3s, filter .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); filter: brightness(1.12); color: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.5); }
.tile h3 { font-size: 1.3rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tile p { margin: 0; color: rgba(255,255,255,.92); font-size: 1.15rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.t1 { background: linear-gradient(135deg, #ff2d55, #8c0f3a); }
.t2 { background: linear-gradient(135deg, #ff9500, #ff2d55); }
.t3 { background: linear-gradient(135deg, #ffd60a, #ff9500); } .t3 h3, .t3 p { color: #2a1200; text-shadow: none; }
.t4 { background: linear-gradient(135deg, #30d158, #0a84ff); }
.t5 { background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.t6 { background: linear-gradient(135deg, #5e5ce6, #bf5af2); }

/* ---------- Parallax bands ---------- */
.pband { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 5rem 1.5rem; overflow: hidden; isolation: isolate; background-attachment: fixed; background-position: center; background-size: cover; }
.pband.one {
  background-image: linear-gradient(rgba(13,7,21,.55), rgba(13,7,21,.7)),
    repeating-linear-gradient(115deg, #ff2d55 0 90px, #ff9500 90px 180px, #ffd60a 180px 270px, #30d158 270px 360px, #0a84ff 360px 450px, #5e5ce6 450px 540px, #bf5af2 540px 630px);
}
.pband.two {
  background-image: radial-gradient(circle at 20% 25%, #bf5af2cc, transparent 45%), radial-gradient(circle at 80% 60%, #ff2d55cc, transparent 45%), radial-gradient(circle at 45% 100%, #0a84ffcc, transparent 50%), linear-gradient(#1a0f2a, #0d0715);
}
.pband.three {
  background-image: linear-gradient(rgba(13,7,21,.35), rgba(13,7,21,.6)), conic-gradient(from 200deg at 50% 120%, #ff2d55, #ff9500, #ffd60a, #30d158, #0a84ff, #5e5ce6, #bf5af2, #ff2d55);
}
.orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; opacity: .75; }
.o1 { width: 220px; height: 220px; left: 6%; top: 12%; background: radial-gradient(circle at 30% 30%, #fff8, var(--v) 40%, transparent 70%); }
.o2 { width: 300px; height: 300px; right: 5%; bottom: 8%; background: radial-gradient(circle at 30% 30%, #fff6, var(--o) 40%, transparent 70%); }
.o3 { width: 180px; height: 180px; right: 12%; top: 8%; background: radial-gradient(circle at 30% 30%, #fff8, var(--g) 40%, transparent 70%); }
.o4 { width: 260px; height: 260px; left: 8%; bottom: 6%; background: radial-gradient(circle at 30% 30%, #fff8, var(--b) 40%, transparent 70%); }
.band-quote { font-family: var(--head); font-weight: 900; font-size: clamp(1.6rem, 5vw, 3.2rem); line-height: 1.35; max-width: 900px; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.band-quote .big { margin-bottom: 2rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; width: 100%; max-width: 1000px; }
.stat b { display: block; font-family: var(--head); font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 900; background: linear-gradient(180deg, #fff, #ffd60a 60%, #ff9500); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.stat span { text-transform: uppercase; letter-spacing: .15em; font-size: .95rem; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.8); }

/* ---------- Content pieces ---------- */
.timeline { position: relative; max-width: 800px; margin: 2rem auto; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--r), var(--o), var(--y), var(--g), var(--b), var(--i), var(--v)); }
.tl { position: relative; margin-bottom: 2rem; }
.tl::before { content: ""; position: absolute; left: -2.2rem; top: .45rem; width: 18px; height: 18px; border-radius: 50%; background: var(--night); border: 3px solid var(--y); box-shadow: 0 0 14px var(--y); }
.tl b { font-family: var(--head); font-size: 1.15rem; color: var(--y); display: block; }
.tl p { margin: .2rem 0 0; color: #e0d4ee; }

.callout { margin: 3rem auto; max-width: 820px; padding: 2rem 2.2rem; border-left: 6px solid var(--v); border-radius: 0 6px 6px 0; background: linear-gradient(90deg, rgba(191,90,242,.18), rgba(10,132,255,.08)); font-style: italic; font-size: 1.4rem; }
.callout cite { display: block; margin-top: .6rem; font-size: 1rem; font-style: normal; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }

.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 3.2rem; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--head); font-weight: 900; border-radius: 50%; color: #120820; background: var(--spectrum); box-shadow: 0 4px 16px rgba(0,0,0,.5); }

.prism { display: block; width: 100%; max-width: 760px; margin: 2rem auto; }
.prism .beam { stroke: #fff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px #fff); }
.prism .glass { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.7); stroke-width: 3; }
.prism .ray { stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.8s .5s ease-out forwards; }

.spectrum { display: grid; grid-template-columns: repeat(7, 1fr); height: 190px; margin: 2rem 0 1rem; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.spectrum button { border: 0; cursor: pointer; background: var(--c); font-family: var(--body); font-size: 1.05rem; font-weight: 700; color: rgba(0,0,0,.65); transition: transform .2s, filter .2s; writing-mode: vertical-rl; letter-spacing: .15em; text-transform: uppercase; }
.spectrum button:hover, .spectrum button.on { filter: brightness(1.2); transform: scaleY(1.07); }
.spectrum button:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
#verse { min-height: 5rem; text-align: center; font-style: italic; font-size: 1.5rem; padding: 1.2rem; border-left: 5px solid var(--c, var(--blood)); background: rgba(255,255,255,.05); transition: border-color .3s; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.swatch { height: 150px; border: 0; border-radius: 8px; cursor: pointer; color: #fff; font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-shadow: 0 2px 10px rgba(0,0,0,.7); display: flex; align-items: flex-end; padding: 1rem; text-align: left; transition: transform .25s, box-shadow .25s; }
.swatch:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 90px); background: #120820; border: 1px solid var(--v); padding: .7rem 1.4rem; border-radius: 6px; font-size: 1rem; z-index: 100; transition: transform .3s; max-width: 90vw; word-break: break-all; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 3.5rem 1.5rem 4rem; background: #08040e; color: var(--muted); font-size: 1.05rem; }
.foot-brand { font-family: var(--head); font-weight: 900; font-size: 1.6rem; color: var(--bone); margin-bottom: 1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: center; margin-bottom: 1.5rem; }
.foot-links a { color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .9rem; }
.foot-links a:hover { color: var(--y); }

/* ---------- WooCommerce touch-ups ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce div.product .product_title { font-family: var(--head); color: var(--bone); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--y); }
.woocommerce a.button, .woocommerce button.button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit {
  background: linear-gradient(135deg, var(--blood), #6a0f6f); color: #fff; border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: linear-gradient(135deg, #0a84ff, #bf5af2); color: #fff; }
.woocommerce-message, .woocommerce-info { background: var(--night-2); color: var(--bone); border-top-color: var(--v); }
.woocommerce table.shop_table, .woocommerce-checkout #payment { background: var(--night-2); color: var(--bone); border-color: rgba(255,255,255,.12); }
.woocommerce input, .woocommerce select, .woocommerce textarea { background: #120820; color: var(--bone); border: 1px solid rgba(255,255,255,.2); padding: .6rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  #primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,7,21,.97); max-height: 0; overflow: hidden; transition: max-height .35s; }
  .site-header.open #primary-nav { max-height: 80vh; }
  .site-header ul { flex-direction: column; gap: 0; padding: .5rem 2rem 1.2rem; }
  .site-header li a { display: block; padding: .8rem 0; }
  .site-header.open { background: rgba(13,7,21,.97); }
  .split { grid-template-columns: 1fr; }
  .moon { width: 64px; height: 64px; }
  .pband { background-attachment: scroll; }
  .spectrum { height: 150px; }
  .spectrum button { font-size: .8rem; }
  .site-header, .site-header.solid { padding-left: 1.2rem; padding-right: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arcs path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .pband { background-attachment: scroll; }
}
