/*
 * Raccoon Audio – Home Custom Template Styles
 * Scope: only loaded on pages using page-templates/home_custom.php
 */

/* Base type + text color for this template shell */
.ra-home {
  font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e6e6f0;
  background-color: #000000;
}

/* =========================
   HERO – PIXEL STUDIO
   ========================= */
.ra-hero {
  position: relative;

  /* Layout + spacing */
  padding: 72px 16px 56px; /* tightened bottom padding */
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Full-bleed */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

  /* Background: pixel art + gentler darkening toward bottom */
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.55) 65%,
      rgba(0, 0, 0, 0.82) 100%
    ),
    url('/wp-content/uploads/homepage-artwork/Studio_Pixel-q92.webp');

  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #000000;
}

.ra-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* =========================
   EXTENDED BF COUNTDOWN
   ========================= */

.ra-countdown {
  position: relative;
  margin: 0 auto 32px;
  max-width: 880px;
  padding: 20px 20px 24px;
  border-radius: 18px;
  text-align: center;

  background:
    radial-gradient(circle at top, rgba(237, 212, 90, 0.12) 0, transparent 55%),
    rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(237, 212, 90, 0.55);

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(237, 212, 90, 0.25);
}

.ra-countdown-head {
  margin-bottom: 16px;
}

.ra-countdown-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 800;
  color: #f5e7b2;
  opacity: 0.9;
}

.ra-countdown-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.ra-countdown-em {
  color: #ffd76a;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(237, 212, 90, 0.8);
}

.ra-countdown-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #f3f2ff;
}

.ra-countdown-sub strong {
  font-weight: 900;
  color: #ffffff;
}

.ra-countdown-price {
  white-space: nowrap;
  color: #ffd76a;
}

/* Timer row */
.ra-countdown-timer {
  margin: 16px auto 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.ra-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
}

.ra-countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f0eefc;
  opacity: 0.9;
}

/* Flip-style block */
.ra-countdown-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 14px 10px 16px;
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.08em;

  color: #ffffff;
  background:
    linear-gradient(180deg, #19151d 0%, #06040a 60%, #000000 100%);
  border-radius: 12px;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);

  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.9);
}

.ra-countdown-value::before {
  content: '';
  position: absolute;
}

.ra-countdown-footnote {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #cbc7f6;
  opacity: 0.96;
}

/* When sale has ended, dim the panel slightly */
.ra-countdown--ended {
  opacity: 0.75;
}

/* Big playful brand line */
.ra-hero-title {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 58px);
  line-height: 1.05;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.85);
}

/* Hero subline – “meaty” style */
.ra-hero-sub {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.99;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.98),
    0 0 12px rgba(0, 0, 0, 0.97),
    0 0 28px rgba(0, 0, 0, 0.95),
    0 0 52px rgba(0, 0, 0, 0.9);
}

/* =========================
   PRODUCT BANDS – SHARED
   ========================= */

.ra-band {
  position: relative;
  padding: 72px 16px 80px;

  /* Full-bleed band like hero */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #000000;

  /* Kill any stray borders / spacing between bands */
  margin-top: 0;
  margin-bottom: 0;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.ra-band + .ra-band {
  margin-top: 0;
}

.ra-band-inner {
  max-width: 1220px;
  margin: 0 auto;
}

/* Shared product layout */
.ra-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* =========================
   LOGOS & SUBTEXT
   ========================= */

/* Logo */
.ra-product-logo {
  display: block;
  width: min(460px, 80%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 6px;
  filter:
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 14px rgba(0, 0, 0, 0.92))
    drop-shadow(0 0 26px rgba(0, 0, 0, 0.88));
}

/* Subtext wrapper – just handles width now */
.ra-product-subwrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

/* Tagline – bigger, bolder, plain white with strong feathered halo */
.ra-product-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  opacity: 0.99;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.98),
    0 0 12px rgba(0, 0, 0, 0.97),
    0 0 28px rgba(0, 0, 0, 0.95),
    0 0 52px rgba(0, 0, 0, 0.9);
}

/* =========================
   MEDIA BLOCK
   ========================= */

.ra-product-media-link {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 12px auto 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.85),
    0 0 26px rgba(0, 0, 0, 0.9);
}

/* Video */
.ra-product-video {
  display: block;
  width: calc(100% + 2px) !important;
  height: auto;
  background: #000000 !important;
  transform: translateX(-2px);
  filter:
    saturate(1.08)
    contrast(1.04);
}

/* Static image (if needed later) */
.ra-product-image {
  display: block;
  width: 100%;
  height: auto;
  background: #000000 !important;
  filter:
    saturate(1.06)
    contrast(1.03);
}

/* =========================
   CTA BUTTONS – SHARED
   ========================= */

.ra-product-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ra-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 9999px; /* pill shape everywhere */
  border: 0;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;

  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.40),
    0 20px 36px rgba(0, 0, 0, 0.70);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    text-shadow 0.18s ease;
}

/* Primary (buy) button */
.ra-product-btn--primary {
  color: #111111;
}

/* Secondary (learn more) button – darker, more solid */
.ra-product-btn--secondary {
  background: rgba(0, 0, 0, 0.55);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.40),
    0 16px 28px rgba(0, 0, 0, 0.70);
}

/* Owned state */
.ra-product-btn--owned {
  background: #444444 !important;
  color: #cccccc !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.65;
  box-shadow: none;
  text-shadow: none;
}

/* Hover / focus state – more contrast + glow (skip owned) */
.ra-product-btn:hover:not(.ra-product-btn--owned),
.ra-product-btn:focus-visible:not(.ra-product-btn--owned) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.45),
    0 28px 48px rgba(0, 0, 0, 0.85);
  filter: brightness(1.05);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.85),
    0 0 14px rgba(255, 255, 255, 0.7);
}

/* Primary button hover – force text to pure white (skip owned) */
.ra-product-btn--primary:hover:not(.ra-product-btn--owned),
.ra-product-btn--primary:focus-visible:not(.ra-product-btn--owned) {
  color: #ffffff;
}

/* Active press (skip owned) */
.ra-product-btn:active:not(.ra-product-btn--owned) {
  transform: translateY(0);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.45),
    0 14px 28px rgba(0, 0, 0, 0.75);
  filter: brightness(1);
}

/* =========================
   BUTTON COLORS PER PRODUCT
   ========================= */

/* ManTube – primary */
.ra-product-btn--primary.ra-btn-mantube {
  background: linear-gradient(145deg, #f58235, #e5b45a);
}

/* ManTube – secondary */
.ra-product-btn--secondary.ra-btn-mantube {
  border: 1px solid #f5b76e;
  color: #fbd9a5;
}

/* EchoSnack – primary (green -> purple) */
.ra-product-btn--primary.ra-btn-echosnack {
  background: linear-gradient(145deg, #5df29b, #8a4dff);
}

/* EchoSnack – secondary */
.ra-product-btn--secondary.ra-btn-echosnack {
  border: 1px solid #9be9ff;
  color: #e7f4ff;
}

/* OctoWah – primary (earthy) */
.ra-product-btn--primary.ra-btn-octowah {
  background: linear-gradient(
    145deg,
    rgb(160, 120, 115),
    rgb(170, 150, 70)
  );
}

/* OctoWah – secondary */
.ra-product-btn--secondary.ra-btn-octowah {
  border: 1px solid rgb(190, 165, 100);
  color: #f7edcc;
}

/* =========================
   BAND BACKGROUNDS
   ========================= */

/* ManTube – storm city pixel art */
.ra-band-mantube {
  background-image:
    linear-gradient(
      180deg,
      #000000 0%,
      rgba(0, 0, 0, 0.18) 18%,
      rgba(0, 0, 0, 0.18) 82%,
      #000000 100%
    ),
    url('/wp-content/uploads/homepage-artwork/Storm_Pixel-q92.webp');
  padding-top: 56px; /* slightly tighter above ManTube */
}

/* EchoSnack – lab pixel art */
.ra-band-echosnack {
  background-image:
    linear-gradient(
      180deg,
      #000000 0%,
      rgba(0, 0, 0, 0.2) 20%,
      rgba(0, 0, 0, 0.2) 80%,
      #000000 100%
    ),
    url('/wp-content/uploads/homepage-artwork/Lab_Pixel-q92.webp');
}

/* OctoWah – forest pixel art (lightened bottom fade) */
.ra-band-octowah {
  background-image:
    linear-gradient(
      180deg,
      #000000 0%,
      rgba(0, 0, 0, 0.22) 20%,
      rgba(0, 0, 0, 0.32) 78%,
      rgba(0, 0, 0, 0.80) 100%
    ),
    url('/wp-content/uploads/homepage-artwork/Forest_Pixel-q92.webp');
  box-shadow:
    inset 0 -1px 0 #000000,
    inset 0  1px 0 #000000;
}

/* =========================
   ABOUT BAND
   ========================= */

.ra-about-band {
  position: relative;
  padding: 72px 16px 80px;

  /* Full-bleed black band */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

  background: #000000;
}

.ra-about-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.ra-about-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;

  background: #171721;
  border: 1px solid rgba(77, 208, 225, 0.45);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(77, 208, 225, 0.35);
}

/* Image side */
.ra-about-image {
  flex: 1 1 360px;
  min-width: 0;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ra-about-img-el {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Text side */
.ra-about-content {
  flex: 1 1 420px;
  min-width: 0;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ra-about-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  color: #4dd0e1;
}

.ra-about-body {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #d8ddff;
}

.ra-about-body:last-child {
  margin-bottom: 0;
}

.ra-about-body strong {
  font-weight: 900;
  color: #ffffff;
}

/* =========================
   CONTENT BELOW BANDS
   ========================= */

.ra-home-main {
  padding: 40px 16px 60px;
}

.ra-home-main .entry-content {
  max-width: 1220px;
  margin: 0 auto;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .ra-hero {
    padding: 64px 16px 56px;
    min-height: 54vh;
  }

  .ra-countdown {
    padding: 18px 16px 22px;
    margin-bottom: 26px;
  }

  .ra-countdown-timer {
    gap: 8px;
  }

  .ra-countdown-unit {
    min-width: 64px;
  }

  .ra-band {
    padding: 60px 16px 64px;
  }

  .ra-product-media-link {
    margin-top: 10px;
  }

  .ra-product-actions {
    gap: 10px;
  }

  .ra-product-btn {
    width: 100%;
    max-width: 320px;
  }

  .ra-about-card {
    flex-direction: column;
  }

  .ra-about-img-el {
    max-height: 260px;
  }

  .ra-about-content {
    padding: 28px 22px 30px;
  }
}

@media (max-width: 600px) {
  .ra-hero {
    padding: 56px 16px 48px;
  }

  .ra-hero-title {
    font-size: clamp(32px, 9vw, 40px);
  }

  .ra-hero-sub {
    font-size: clamp(18px, 4vw, 21px);
  }

  .ra-countdown-title {
    font-size: clamp(20px, 5vw, 26px);
  }

  .ra-countdown-sub {
    font-size: 13px;
  }

  .ra-countdown-footnote {
    font-size: 11px;
  }

  .ra-band {
    padding: 52px 14px 56px;
  }

  .ra-product-logo {
    width: min(80%, 360px);
  }

  .ra-about-title {
    font-size: clamp(24px, 6vw, 30px);
  }

  .ra-about-body {
    font-size: 14px;
  }
}

/* Hero subline – “meaty” style with animated dissolve / reappear */
.ra-hero-sub {
  /* (properties already defined above, kept for backwards compatibility) */
  transform-origin: 50% 120%;
  transition:
    opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.6s ease,
    text-shadow 0.6s ease;
}

/* "Hidden" state – drops, shrinks, blurs out, loses glow */
.ra-hero-sub--hidden {
  opacity: 0;
  transform: translateY(22px) scale(0.94) skewX(-3deg);
  filter: blur(6px);
  text-shadow: none;
}
