/* ============================================================
   POWDER HOUSE BEND — Patio Brand Collection Styles
   Covers: brand hero, collection grid/cards, glass description
   box, brand links section, and single-card layout.

   Retro palette:
     Phosphor green  #c8f135  — headings, active CTA
     Amber           #ffb347  — subtext, hover accents
     Tron blue       #00e5ff  — borders, body copy
     Terminal black  #050a03  — backgrounds
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   BRAND HERO  — shared base for all brand pages
   Each brand supplies its own background-image via a
   modifier class (.static-kettler-hero, etc.)
════════════════════════════════════════════════════════════ */
.brand-hero,
.static-kettler-hero,
.static-polywood-hero,
.static-erwin-hero,
.static-mallin-hero,
.static-woodard-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.40);
}

/* Generic fallback hero */
.brand-hero {
  background-image: url('../images/patiogallery/kettler-banner.webp');
}

/* Brand-specific backgrounds */
.static-kettler-hero  { background-image: url('../images/backgrounds/kettler-hero.webp'); }
.static-polywood-hero { background-image: url('../images/backgrounds/polywood-hero.webp'); }
.static-erwin-hero    { background-image: url('../images/backgrounds/erwin-hero.webp'); }
.static-mallin-hero   { background-image: url('../images/backgrounds/mallin-hero.webp'); }
.static-woodard-hero  { background-image: url('../images/backgrounds/woodard-hero.webp'); }

.brand-hero .hero-content,
.static-kettler-hero  .hero-content,
.static-polywood-hero .hero-content,
.static-erwin-hero    .hero-content,
.static-mallin-hero   .hero-content,
.static-woodard-hero  .hero-content {
  max-width: 900px;
  z-index: 2;
}

.brand-hero           .hero-content h1,
.static-kettler-hero  .hero-content h1,
.static-polywood-hero .hero-content h1,
.static-erwin-hero    .hero-content h1,
.static-mallin-hero   .hero-content h1,
.static-woodard-hero  .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.brand-hero           .hero-content p,
.static-kettler-hero  .hero-content p,
.static-polywood-hero .hero-content p,
.static-erwin-hero    .hero-content p,
.static-mallin-hero   .hero-content p,
.static-woodard-hero  .hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}


/* ════════════════════════════════════════════════════════════
   GLASS DESCRIPTION BOX
════════════════════════════════════════════════════════════ */
.brand-glassbox {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.glassbox-inner {
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}

.glassbox-inner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.glassbox-inner p {
  font-size: 1.05rem;
  color: #f0f0f0;
  line-height: 1.65;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}


/* ════════════════════════════════════════════════════════════
   COLLECTION GRID & CARDS
════════════════════════════════════════════════════════════ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.collection-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

.collection-card img {
  width: 100%;
  height: auto;
  display: block;
}

.collection-info {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  color: #f4f4f4;
  text-align: left;
}

.collection-info h2 {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.collection-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


/* ════════════════════════════════════════════════════════════
   SINGLE CARD LAYOUT
════════════════════════════════════════════════════════════ */
.collection-single {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.collection-card.single-card {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.collection-card.single-card:hover { transform: scale(1.02); }

.collection-card.single-card img { width: 100%; height: auto; display: block; }

.collection-card.single-card .collection-info {
  padding: 1.5rem;
  text-align: center;
  background: #f5f5f5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.collection-card.single-card .card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333333;
}

.collection-card.single-card .card-description {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.6;
}

/* Toggle card — description hidden by default */
.card-description { display: none; margin-top: 0.5rem; }
.toggle-card.active .card-description { display: block; }
.card-title { cursor: pointer; }


/* ════════════════════════════════════════════════════════════
   BRAND EXTERNAL LINKS
════════════════════════════════════════════════════════════ */
.brand-links {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.brand-links h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.brand-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.brand-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  color: #ffffff;
  min-width: 200px;
  display: inline-block;
  text-align: center;
}

.brand-btn.gray { background: #555555; }
.brand-btn.dark { background: #222222; }

.brand-btn:hover {
  transform: translateY(-2px);
  background: #4dd8ff;
  color: #000000;
}


/* ════════════════════════════════════════════════════════════
   RETRO MODE
════════════════════════════════════════════════════════════ */

/* ── Brand hero ── */
body.retro-mode .brand-hero,
body.retro-mode .static-kettler-hero,
body.retro-mode .static-polywood-hero,
body.retro-mode .static-erwin-hero,
body.retro-mode .static-mallin-hero,
body.retro-mode .static-woodard-hero {
  /* Deeper overlay so the phosphor text reads over the CRT-dimmed image */
  box-shadow: inset 0 0 0 2000px rgba(5, 10, 3, 0.75);
  /* Add a scanline texture via repeating gradient on top of the overlay */
  background-blend-mode: normal;
}

/* Scanline pseudo-element on hero */
body.retro-mode .brand-hero::after,
body.retro-mode .static-kettler-hero::after,
body.retro-mode .static-polywood-hero::after,
body.retro-mode .static-erwin-hero::after,
body.retro-mode .static-mallin-hero::after,
body.retro-mode .static-woodard-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent            0px,
    transparent            3px,
    rgba(0, 0, 0, 0.22)    3px,
    rgba(0, 0, 0, 0.22)    4px
  );
}

body.retro-mode .brand-hero           .hero-content,
body.retro-mode .static-kettler-hero  .hero-content,
body.retro-mode .static-polywood-hero .hero-content,
body.retro-mode .static-erwin-hero    .hero-content,
body.retro-mode .static-mallin-hero   .hero-content,
body.retro-mode .static-woodard-hero  .hero-content {
  position: relative;
  z-index: 2;
}

body.retro-mode .brand-hero           .hero-content h1,
body.retro-mode .static-kettler-hero  .hero-content h1,
body.retro-mode .static-polywood-hero .hero-content h1,
body.retro-mode .static-erwin-hero    .hero-content h1,
body.retro-mode .static-mallin-hero   .hero-content h1,
body.retro-mode .static-woodard-hero  .hero-content h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.10em;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: none;
  color: #c8f135;
  text-shadow:
    0 0 6px  rgba(200, 241, 53, 0.90),
    0 0 24px rgba(200, 241, 53, 0.35),
    0 0 60px rgba(200, 241, 53, 0.12);
}

body.retro-mode .brand-hero           .hero-content p,
body.retro-mode .static-kettler-hero  .hero-content p,
body.retro-mode .static-polywood-hero .hero-content p,
body.retro-mode .static-erwin-hero    .hero-content p,
body.retro-mode .static-mallin-hero   .hero-content p,
body.retro-mode .static-woodard-hero  .hero-content p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: rgba(0, 229, 255, 0.55);
  text-shadow: none;
}

/* ── Glass description box ── */
body.retro-mode .brand-glassbox {
  background: transparent;
}

body.retro-mode .glassbox-inner {
  background: rgba(5, 10, 3, 0.90);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-top: 2px solid #00e5ff;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.05),
    0 0 24px rgba(0, 229, 255, 0.06);
}

body.retro-mode .glassbox-inner h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #c8f135;
  text-shadow:
    0 0 4px  rgba(200, 241, 53, 0.90),
    0 0 16px rgba(200, 241, 53, 0.40);
}

body.retro-mode .glassbox-inner p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.80rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(0, 229, 255, 0.52);
  text-shadow: none;
}

/* ── Collection grid & cards ── */
body.retro-mode .collection-card {
  background: rgba(200, 241, 53, 0.015);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 2px;
  box-shadow: none;
}

body.retro-mode .collection-card:hover {
  transform: scale(1.02);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

body.retro-mode .collection-card img {
  filter: brightness(0.80) saturate(0.60) sepia(0.10);
  transition: filter 0.35s ease;
}

body.retro-mode .collection-card:hover img {
  filter: brightness(0.88) saturate(0.75) sepia(0.06);
}

body.retro-mode .collection-info {
  background: rgba(5, 10, 3, 0.90);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 0;
}

body.retro-mode .collection-info h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #c8f135;
  text-shadow:
    0 0 4px  rgba(200, 241, 53, 0.90),
    0 0 12px rgba(200, 241, 53, 0.40);
}

body.retro-mode .collection-info p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  line-height: 1.70;
  letter-spacing: 0.03em;
  color: rgba(0, 229, 255, 0.48);
  text-shadow: none;
}

/* ── Brand links ── */
body.retro-mode .brand-links { background: transparent; }

body.retro-mode .brand-links h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #c8f135;
  text-shadow:
    0 0 4px  rgba(200, 241, 53, 0.90),
    0 0 16px rgba(200, 241, 53, 0.35);
}

body.retro-mode .brand-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(0, 229, 255, 0.55);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 2px;
}

body.retro-mode .brand-btn.gray,
body.retro-mode .brand-btn.dark {
  background: transparent;
}

body.retro-mode .brand-btn:hover {
  background: rgba(200, 241, 53, 0.07);
  border-color: rgba(200, 241, 53, 0.60);
  color: #c8f135;
  text-shadow:
    0 0 4px  rgba(200, 241, 53, 0.90),
    0 0 12px rgba(200, 241, 53, 0.40);
  transform: translateY(-2px);
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .brand-hero,
  .static-kettler-hero,
  .static-polywood-hero,
  .static-erwin-hero,
  .static-mallin-hero,
  .static-woodard-hero {
    padding: 1.5rem 1rem;
    min-height: 50vh;
  }

  .collection-grid {
    padding: 2rem 1rem;
    gap: 1.25rem;
  }

  .collection-info h2 { font-size: 1.2rem; }
  .collection-info p  { font-size: 0.9rem; }

  .brand-btn { min-width: 160px; padding: 0.85rem 1.5rem; }

  .collection-card.single-card { width: 100%; max-width: 100%; }
}


/* ────────────────────────────────────────────────────────────
   REDUCED MOTION
──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .collection-card,
  .collection-card img,
  .brand-btn {
    transition: none !important;
    animation: none !important;
  }
}