/* ============================================================
   RiverCatch.info — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0a1628;
  --blue-mid:    #0d2244;
  --blue-accent: #1565c0;
  --teal:        #00acc1;
  --teal-light:  #26c6da;
  --gold:        #f9a825;
  --gold-light:  #ffd54f;
  --white:       #ffffff;
  --off-white:   #f4f8fb;
  --text-dark:   #1a2636;
  --text-muted:  #5a7a99;
  --border:      #d0e4f0;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(10,22,40,.15);
  --transition:  .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section--dark { background: var(--blue-dark); color: var(--white); }
.section--mid  { background: var(--blue-mid);  color: var(--white); }
.section--teal { background: linear-gradient(135deg, var(--teal) 0%, var(--blue-accent) 100%); color: var(--white); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 8px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
}
.section--dark .section-subtitle,
.section--mid  .section-subtitle,
.section--teal .section-subtitle { color: rgba(255,255,255,.75); }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn--primary   { background: var(--gold); color: var(--blue-dark); }
.btn--secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--teal      { background: var(--teal); color: var(--white); }

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--blue-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .5px;
}
.nav-logo span { color: var(--teal-light); }
.nav-logo img  { width: 38px; height: 38px; border-radius: 8px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .92rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { background: var(--teal); color: var(--white); }

.nav-cta { margin-left: 10px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--blue-mid);
  padding: 24px 0;
  border-top: 2px solid var(--teal);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-item span { font-size: .85rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .8px; }

/* ---------- Game Cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(10,22,40,.2); }
.game-card__img  { height: 200px; overflow: hidden; }
.game-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-card__img img { transform: scale(1.06); }
.game-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.game-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  background: rgba(0,172,193,.1);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.game-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.game-card__desc  { font-size: .9rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.game-card__meta  { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.rating-num { font-weight: 700; font-size: .9rem; }
.game-card .btn { width: 100%; }

/* ---------- Featured Game ---------- */
.featured-game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.featured-game__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-game__img img { width: 100%; height: 360px; object-fit: cover; }
.featured-game__tag {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.featured-game h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.featured-game p  { margin-bottom: 12px; color: rgba(255,255,255,.82); }
.feature-list { list-style: none; margin: 16px 0 24px; }
.feature-list li { padding: 6px 0; padding-left: 22px; position: relative; color: rgba(255,255,255,.85); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Wheel Game Section ---------- */
.wheel-section { background: linear-gradient(180deg, #071020 0%, #0d2244 100%); }
.wheel-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: start;
}
.wheel-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.wheel-info p  { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.wheel-rules { list-style: none; margin: 16px 0 28px; }
.wheel-rules li { padding: 8px 0; padding-left: 26px; position: relative; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.08); }
.wheel-rules li::before { content: '🎣'; position: absolute; left: 0; }

/* Canvas Wheel */
.wheel-game-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.wheel-game-wrap h3 { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 20px; }
#wheelCanvas { display: block; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 40px rgba(0,172,193,.4); }
.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 32px solid var(--gold);
  margin: 0 auto 16px;
  filter: drop-shadow(0 2px 6px rgba(249,168,37,.6));
}
#spinBtn {
  margin: 20px auto 0;
  display: block;
  padding: 14px 48px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gold) 0%, #e65100 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .5px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(249,168,37,.4);
}
#spinBtn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 8px 28px rgba(249,168,37,.6); }
#spinBtn:disabled { opacity: .6; cursor: not-allowed; }
#wheelResult {
  margin-top: 18px;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px 16px;
  display: none;
}

/* ---------- Newsletter ---------- */
.newsletter-wrap {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue-accent) 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}
.newsletter-wrap h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-wrap p  { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: .95rem;
  outline: none;
}
.newsletter-form button { white-space: nowrap; }
#newsletter-success {
  display: none;
  margin-top: 16px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text p  { margin-bottom: 14px; color: var(--text-muted); }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 20px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-icon { font-size: 1.4rem; margin-top: 2px; }
.contact-detail strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; color: var(--teal); }
.contact-detail span   { font-size: .95rem; color: var(--text-muted); }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
  background: var(--off-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
#contact-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 14px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 24px;
  border-top: 3px solid var(--teal);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue-dark);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  border-top: 3px solid var(--teal);
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
#cookie-banner p { flex: 1; font-size: .88rem; min-width: 240px; }
#cookie-banner a { color: var(--teal-light); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btns button {
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
#cookie-accept { background: var(--teal); color: var(--white); }
#cookie-decline { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); }
#cookie-accept:hover  { background: var(--teal-light); }
#cookie-decline:hover { background: rgba(255,255,255,.1); }

/* ---------- Policy Pages ---------- */
.policy-hero {
  background: var(--blue-dark);
  padding: 72px 0 48px;
  color: var(--white);
}
.policy-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.policy-hero p  { color: rgba(255,255,255,.7); }
.policy-body { padding: 56px 0; }
.policy-body h2 { font-size: 1.35rem; font-weight: 700; margin: 28px 0 10px; color: var(--blue-accent); }
.policy-body h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
.policy-body p  { margin-bottom: 14px; color: var(--text-muted); }
.policy-body ul { margin: 10px 0 14px 22px; color: var(--text-muted); }
.policy-body ul li { margin-bottom: 6px; }
.policy-body a  { color: var(--teal); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 80px 0 56px;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wheel-layout { grid-template-columns: 1fr; }
  .featured-game { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 16px 20px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: unset; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .wheel-game-wrap { padding: 16px; }
  #wheelCanvas { width: 280px !important; height: 280px !important; }
}
