/* ============================================================
   kingph.homes - layout stylesheet
   All custom classes use the w12bf- prefix (CSS variables too).
   Mobile first. Color palette derived from the 6-color brief:
   #262626 dark background, #FFF8DC / #F0E68C light text,
   #DAA520 gold accent, #D3D3D3 neutral, #9370DB purple accent.
   ============================================================ */

:root {
  --w12bf-primary: #DAA520;          /* gold */
  --w12bf-secondary: #F0E68C;        /* khaki */
  --w12bf-accent: #9370DB;           /* purple */
  --w12bf-bg: #262626;               /* dark base */
  --w12bf-bg-alt: #1f1f1f;
  --w12bf-bg-card: #303030;
  --w12bf-text: #FFF8DC;             /* cornsilk */
  --w12bf-text-muted: #D3D3D3;       /* light grey */
  --w12bf-border: rgba(218, 165, 32, 0.35);
  --w12bf-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
  --w12bf-radius: 1.2rem;
  --w12bf-max-width: 430px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%; /* 1rem = 10px base for rem-driven layout */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--w12bf-bg);
  color: var(--w12bf-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: var(--w12bf-max-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  min-height: 100vh;
}

a { color: var(--w12bf-secondary); text-decoration: none; }
a:hover, a:focus { color: var(--w12bf-primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--w12bf-secondary); line-height: 1.3; margin: 0 0 0.8rem; }
h1 { font-size: 2.3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }

.w12bf-wrapper {
  width: 100%;
  max-width: var(--w12bf-max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---------- Header ---------- */
.w12bf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #262626 100%);
  border-bottom: 0.2rem solid var(--w12bf-primary);
  box-shadow: var(--w12bf-shadow);
}

.w12bf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  max-width: var(--w12bf-max-width);
  margin: 0 auto;
}

.w12bf-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--w12bf-primary);
  text-transform: lowercase;
  letter-spacing: 0.05rem;
}
.w12bf-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }

.w12bf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w12bf-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--w12bf-border);
  color: var(--w12bf-secondary);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

.w12bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.4rem;
  border: 0.1rem solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.w12bf-btn:hover { transform: translateY(-0.1rem); }
.w12bf-btn-primary {
  background: linear-gradient(135deg, #DAA520, #F0E68C);
  color: #262626;
  box-shadow: 0 0.4rem 1rem rgba(218, 165, 32, 0.4);
}
.w12bf-btn-secondary {
  background: transparent;
  color: var(--w12bf-secondary);
  border-color: var(--w12bf-primary);
}
.w12bf-btn-ghost {
  background: rgba(147, 112, 219, 0.15);
  color: #b9a5e6;
  border-color: rgba(147, 112, 219, 0.5);
}

/* ---------- Mobile menu ---------- */
.w12bf-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #1c1c1c;
  border-left: 0.2rem solid var(--w12bf-primary);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 7rem 1.4rem 2rem;
  overflow-y: auto;
}
.w12bf-menu-open { transform: translateX(0); }
.w12bf-mobile-menu a {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  color: var(--w12bf-text);
  font-size: 1.5rem;
  border-bottom: 0.1rem solid rgba(218, 165, 32, 0.12);
}
.w12bf-mobile-menu a:hover { background: rgba(218, 165, 32, 0.12); color: var(--w12bf-primary); }
.w12bf-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  color: var(--w12bf-secondary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Banner / carousel ---------- */
.w12bf-banner {
  position: relative;
  margin: 1.2rem 0;
  border-radius: var(--w12bf-radius);
  overflow: hidden;
  box-shadow: var(--w12bf-shadow);
}
.w12bf-banner-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.w12bf-banner-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.w12bf-banner-active { display: block; }
.w12bf-banner-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  padding: 1rem 0.4rem 0;
  color: #fff;
}
.w12bf-banner-caption strong { font-size: 1.6rem; color: var(--w12bf-secondary); }
.w12bf-banner-caption span { font-size: 1.3rem; color: var(--w12bf-text-muted); display: block; }
.w12bf-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--w12bf-secondary);
  border: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w12bf-banner-prev { left: 0.6rem; }
.w12bf-banner-next { right: 0.6rem; }
.w12bf-banner-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.w12bf-banner-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.w12bf-banner-dot-active { background: var(--w12bf-primary); }

/* ---------- Sections ---------- */
.w12bf-section { margin: 2rem 0; }
.w12bf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.w12bf-section-head h2 { margin: 0; }
.w12bf-section-head a { font-size: 1.3rem; color: var(--w12bf-primary); }

/* ---------- Filter chips ---------- */
.w12bf-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.w12bf-filter-chip {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  background: var(--w12bf-bg-card);
  color: var(--w12bf-text-muted);
  font-size: 1.3rem;
  border: 0.1rem solid transparent;
  cursor: pointer;
}
.w12bf-filter-chip-active {
  background: var(--w12bf-primary);
  color: #262626;
  font-weight: 700;
}

/* ---------- Game grid ---------- */
.w12bf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w12bf-game-card {
  background: var(--w12bf-bg-card);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 0.1rem solid var(--w12bf-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.w12bf-game-card:hover { transform: translateY(-0.2rem); box-shadow: var(--w12bf-shadow); }
.w12bf-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w12bf-game-name {
  font-size: 1.2rem;
  padding: 0.4rem 0.2rem 0.6rem;
  color: var(--w12bf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w12bf-game-tag {
  display: inline-block;
  font-size: 1rem;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  background: rgba(218, 165, 32, 0.2);
  color: var(--w12bf-secondary);
  margin-bottom: 0.4rem;
}

/* ---------- Info / content blocks ---------- */
.w12bf-card {
  background: var(--w12bf-bg-card);
  border-radius: var(--w12bf-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 0.1rem solid var(--w12bf-border);
  box-shadow: var(--w12bf-shadow);
}
.w12bf-card h3 { margin-top: 0; color: var(--w12bf-primary); }
.w12bf-card p { color: var(--w12bf-text-muted); }
.w12bf-card ul { padding-left: 1.4rem; color: var(--w12bf-text-muted); }
.w12bf-card li { margin-bottom: 0.4rem; }

.w12bf-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.w12bf-feature {
  background: rgba(147, 112, 219, 0.08);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  border: 0.1rem solid rgba(147, 112, 219, 0.3);
}
.w12bf-feature .material-icons,
.w12bf-feature .bi { font-size: 2.6rem; color: var(--w12bf-accent); }
.w12bf-feature h4 { margin: 0.6rem 0 0.2rem; font-size: 1.4rem; color: var(--w12bf-secondary); }
.w12bf-feature p { margin: 0; font-size: 1.2rem; color: var(--w12bf-text-muted); }

/* ---------- Testimonials ---------- */
.w12bf-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.w12bf-testimonial {
  background: var(--w12bf-bg-card);
  border-left: 0.3rem solid var(--w12bf-primary);
  padding: 1.2rem;
  border-radius: 0.6rem;
}
.w12bf-testimonial .w12bf-stars { color: var(--w12bf-primary); font-size: 1.3rem; }
.w12bf-testimonial p { color: var(--w12bf-text-muted); margin: 0.6rem 0; }
.w12bf-testimonial cite { color: var(--w12bf-secondary); font-style: normal; font-size: 1.3rem; }

/* ---------- Payment / app CTA ---------- */
.w12bf-cta {
  background: linear-gradient(135deg, rgba(218,165,32,0.15), rgba(147,112,219,0.15));
  border: 0.1rem solid var(--w12bf-primary);
  border-radius: var(--w12bf-radius);
  padding: 1.6rem;
  text-align: center;
}
.w12bf-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.w12bf-pay-item {
  background: #fff;
  color: #262626;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
}

/* ---------- Winners / achievements ---------- */
.w12bf-winners li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 0.1rem dashed rgba(218,165,32,0.2);
  font-size: 1.3rem;
}
.w12bf-winners .w12bf-amount { color: var(--w12bf-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.w12bf-footer {
  background: #1a1a1a;
  border-top: 0.2rem solid var(--w12bf-primary);
  padding: 2rem 1.2rem;
  color: var(--w12bf-text-muted);
}
.w12bf-footer h4 { color: var(--w12bf-secondary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.w12bf-footer a { display: inline-block; margin: 0.2rem 0.4rem 0.2rem 0; font-size: 1.3rem; }
.w12bf-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  margin: 1rem 0;
}
.w12bf-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}
.w12bf-footer-bottom {
  text-align: center;
  font-size: 1.2rem;
  color: var(--w12bf-text-muted);
  padding-top: 1rem;
  border-top: 0.1rem solid rgba(218,165,32,0.15);
}

/* ---------- Mobile bottom nav ---------- */
.w12bf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--w12bf-max-width);
  height: 6rem;
  background: #1a1a1a;
  border-top: 0.15rem solid var(--w12bf-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.5);
}
.w12bf-bottom-nav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--w12bf-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
}
.w12bf-bottom-nav-btn .material-icons,
.w12bf-bottom-nav-btn .bi,
.w12bf-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.w12bf-bottom-nav-btn:hover { color: var(--w12bf-secondary); transform: translateY(-0.1rem); }
.w12bf-bottom-nav-btn.w12bf-nav-current,
.w12bf-bottom-nav-btn:active { color: var(--w12bf-primary); }
.w12bf-bottom-nav-btn.w12bf-nav-current::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--w12bf-primary);
  margin-top: 0.1rem;
}

/* ---------- Spacing for mobile nav clearance ---------- */
main { padding-bottom: 8rem; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w12bf-wrapper { max-width: 1100px; padding: 0 2rem; }
  .w12bf-header-inner { max-width: 1100px; }
  .w12bf-grid { grid-template-columns: repeat(6, 1fr); }
  .w12bf-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .w12bf-testimonials { grid-template-columns: repeat(3, 1fr); }
  .w12bf-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
}
