/* ==========================================================================
   PHDREA basefiles stylesheet  (Site: phdrea.homes)
   All custom classes use the `w41c3-` prefix.
   Palette: #2E8B57 | #00CED1 | #98FB98 | #DEE2E6 | #0097A7 | #262626
   ========================================================================== */

:root {
  --w41c3-primary: #0097A7;
  --w41c3-deep: #2E8B57;
  --w41c3-cyan: #00CED1;
  --w41c3-mint: #98FB98;
  --w41c3-smoke: #DEE2E6;
  --w41c3-ink: #262626;
  --w41c3-bg: #0f1a17;
  --w41c3-surface: #142824;
  --w41c3-surface2: #1a3530;
  --w41c3-text: #e8f3ef;
  --w41c3-muted: #9bb5ad;
  --w41c3-gold: #f5c451;
  --w41c3-danger: #ff5a73;
  --w41c3-radius: 14px;
  --w41c3-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #163a31 0%, var(--w41c3-bg) 60%);
  color: var(--w41c3-text);
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--w41c3-cyan); text-decoration: none; }
a:hover { color: var(--w41c3-mint); }

/* ---------- Layout ---------- */
.w41c3-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w41c3-wrapper { padding-top: 6rem; padding-bottom: 2rem; }

/* ---------- Header ---------- */
.w41c3-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(20,40,36,.96), rgba(15,26,23,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 205, 209, .15);
}
.w41c3-header-inner {
  max-width: 430px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.w41c3-brand { display: flex; align-items: center; gap: .55rem; color: var(--w41c3-text); }
.w41c3-brand img { width: 2.6rem; height: 2.6rem; border-radius: 8px; }
.w41c3-brand-name { font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; }
.w41c3-brand-name span { color: var(--w41c3-cyan); }

.w41c3-header-actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- Buttons ---------- */
.w41c3-btn {
  border: 0; cursor: pointer; border-radius: 999px;
  font-weight: 700; font-size: 1.3rem; padding: .55rem 1.1rem;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 3.2rem; line-height: 1;
}
.w41c3-btn:hover { transform: translateY(-1px); }
.w41c3-btn:active { transform: translateY(0) scale(.98); }
.w41c3-btn-primary { background: linear-gradient(135deg, #2E8B57, #00CED1); color: #06251c; box-shadow: 0 4px 14px rgba(0, 205, 209, .35); }
.w41c3-btn-gold { background: linear-gradient(135deg, #f5c451, #e0a93b); color: #2a1c00; }
.w41c3-btn-ghost { background: transparent; border: 1px solid rgba(0,205,209,.45); color: var(--w41c3-cyan); }
.w41c3-btn-block { width: 100%; justify-content: center; padding: .85rem 1rem; font-size: 1.45rem; }

/* Menu toggle */
.w41c3-menu-toggle {
  background: rgba(0,205,209,.08); border: 1px solid rgba(0,205,209,.3);
  color: var(--w41c3-text); width: 3.2rem; height: 3.2rem; border-radius: 10px;
  font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu (slide-down) ---------- */
.w41c3-mobile-menu {
  position: fixed; top: 5.6rem; left: 0; right: 0; z-index: 9999;
  background: var(--w41c3-surface); border-bottom: 1px solid rgba(0,205,209,.18);
  padding: 1rem 1.2rem 1.4rem; transform: translateY(-130%);
  transition: transform .28s ease; max-height: 75vh; overflow-y: auto;
}
.w41c3-menu-open { transform: translateY(0); }
.w41c3-mobile-menu a {
  display: block; padding: .9rem .6rem; border-radius: 10px;
  color: var(--w41c3-text); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.04);
}
.w41c3-mobile-menu a:hover { background: rgba(0,205,209,.08); color: var(--w41c3-cyan); }

/* ---------- Hero carousel ---------- */
.w41c3-hero { margin-top: 1rem; border-radius: var(--w41c3-radius); overflow: hidden; box-shadow: var(--w41c3-shadow); }
.w41c3-slides { position: relative; aspect-ratio: 16 / 9; }
.w41c3-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.w41c3-slide img { width: 100%; height: 100%; object-fit: cover; }
.w41c3-slide.w41c3-active { opacity: 1; }
.w41c3-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  padding: 1rem 1.2rem .9rem; color: #fff;
}
.w41c3-slide-overlay h2 { margin: 0 0 .2rem; font-size: 1.7rem; }
.w41c3-slide-overlay p { margin: 0; font-size: 1.2rem; color: var(--w41c3-mint); }
.w41c3-dots { display: flex; justify-content: center; gap: .5rem; padding: .6rem; }
.w41c3-dot { width: .8rem; height: .8rem; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; }
.w41c3-dot.w41c3-active { background: var(--w41c3-cyan); width: 1.8rem; border-radius: 999px; }

/* ---------- Section ---------- */
.w41c3-section { margin: 2rem 0; }
.w41c3-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.w41c3-section-head h2 { font-size: 1.65rem; margin: 0; color: #fff; }
.w41c3-section-head h2 span { color: var(--w41c3-cyan); }
.w41c3-section-link { font-size: 1.2rem; color: var(--w41c3-cyan); font-weight: 600; }

/* ---------- Game grid ---------- */
.w41c3-gamegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.w41c3-gamecard {
  background: var(--w41c3-surface); border-radius: 12px; padding: .6rem; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid rgba(0,205,209,.08);
}
.w41c3-gamecard:hover { transform: translateY(-2px); box-shadow: var(--w41c3-shadow); border-color: rgba(0,205,209,.4); }
.w41c3-gamecard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.w41c3-gamecard-name { font-size: 1.15rem; font-weight: 600; color: var(--w41c3-text); margin-top: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w41c3-gamecard-tag { font-size: 1rem; color: var(--w41c3-cyan); }

/* ---------- Cards / features ---------- */
.w41c3-card {
  background: linear-gradient(160deg, var(--w41c3-surface), var(--w41c3-surface2));
  border-radius: var(--w41c3-radius); padding: 1.3rem; border: 1px solid rgba(0,205,209,.12);
  box-shadow: var(--w41c3-shadow);
}
.w41c3-card h3 { margin: 0 0 .6rem; font-size: 1.45rem; color: #fff; }
.w41c3-card p { margin: 0; font-size: 1.25rem; color: var(--w41c3-muted); }
.w41c3-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.w41c3-feature-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.25rem; }
.w41c3-feature-list i { color: var(--w41c3-cyan); font-size: 1.6rem; margin-top: .1rem; }

/* ---------- RTP table ---------- */
.w41c3-rtp { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.w41c3-rtp th, .w41c3-rtp td { padding: .7rem .5rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.w41c3-rtp th { color: var(--w41c3-cyan); font-size: 1.15rem; }
.w41c3-rtp tr td:last-child { color: var(--w41c3-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.w41c3-testi { display: grid; gap: .8rem; }
.w41c3-testi-item { background: var(--w41c3-surface); padding: 1rem 1.1rem; border-radius: 12px; border-left: 3px solid var(--w41c3-cyan); }
.w41c3-testi-item p { margin: 0 0 .4rem; font-size: 1.2rem; }
.w41c3-testi-item .w41c3-author { font-size: 1.1rem; color: var(--w41c3-mint); font-weight: 700; }

/* ---------- Payment chips ---------- */
.w41c3-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.w41c3-chip { background: var(--w41c3-surface); border: 1px solid rgba(0,205,209,.2); padding: .55rem .9rem; border-radius: 999px; font-size: 1.15rem; color: var(--w41c3-text); }
.w41c3-chip i { color: var(--w41c3-cyan); margin-right: .3rem; }

/* ---------- Winners ---------- */
.w41c3-winners { background: var(--w41c3-surface); border-radius: 12px; padding: .4rem 1rem; }
.w41c3-winner-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 1.2rem; }
.w41c3-winner-row:last-child { border-bottom: 0; }
.w41c3-amount { color: var(--w41c3-gold); font-weight: 700; }

/* ---------- App download CTA ---------- */
.w41c3-app-cta { background: linear-gradient(135deg, #2E8B57, #0097A7); border-radius: var(--w41c3-radius); padding: 1.4rem; color: #fff; text-align: center; }
.w41c3-app-cta h3 { margin: 0 0 .4rem; font-size: 1.6rem; }
.w41c3-app-cta p { margin: 0 0 1rem; font-size: 1.2rem; color: rgba(255,255,255,.9); }
.w41c3-app-cta .w41c3-btn { margin: .3rem; }

/* ---------- Reveal animation ---------- */
.w41c3-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.w41c3-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.w41c3-footer { background: #0a1512; padding: 2rem 0 9rem; margin-top: 2rem; border-top: 1px solid rgba(0,205,209,.12); }
.w41c3-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w41c3-footer p { font-size: 1.15rem; color: var(--w41c3-muted); }
.w41c3-footer-links { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: .8rem 0; }
.w41c3-footer-links a { color: var(--w41c3-text); font-size: 1.1rem; text-decoration: underline; }
.w41c3-footer-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1.2rem; }
.w41c3-footer-buttons .w41c3-btn { font-size: 1.15rem; padding: .55rem .9rem; }
.w41c3-copy { font-size: 1.05rem; color: var(--w41c3-muted); }

/* ---------- Mobile bottom navigation ---------- */
.w41c3-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 6rem; background: linear-gradient(180deg, rgba(20,40,36,.98), rgba(10,21,18,.99));
  border-top: 1px solid rgba(0,205,209,.2);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 18px rgba(0,0,0,.4);
}
.w41c3-bottomnav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem; background: transparent; border: 0;
  color: var(--w41c3-muted); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; cursor: pointer; padding: .3rem;
  transition: color .15s ease, transform .15s ease;
}
.w41c3-bottomnav-btn i, .w41c3-bottomnav-btn .material-icons-outlined {
  font-size: 2.2rem;
}
.w41c3-bottomnav-btn span { font-size: 1rem; }
.w41c3-bottomnav-btn:hover { color: var(--w41c3-cyan); }
.w41c3-bottomnav-btn:active { transform: scale(.92); }
.w41c3-bottomnav-btn.w41c3-current { color: var(--w41c3-cyan); }
.w41c3-bottomnav-btn.w41c3-current::before {
  content: ""; position: absolute; top: 0; width: 2.4rem; height: 3px; border-radius: 0 0 6px 6px; background: var(--w41c3-cyan);
}
.w41c3-bottomnav-btn { position: relative; }
.w41c3-bn-promo { color: var(--w41c3-gold); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w41c3-bottomnav { display: none; }
  .w41c3-footer { padding-bottom: 2rem; }
}

/* ---------- Mobile padding ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}
