/* ============================================================
   Big Happy Games — Solitaire Squad marketing site
   Palette matches the game: green felt, gold, warm cream.
   ============================================================ */

:root {
  /* Brand palette (from the game art) */
  --felt:     #2f8f5b;
  --felt-d:   #1d6b41;
  --felt-dd:  #124d2d;
  --gold:     #F4B63C;
  --gold-l:   #FFD670;
  --gold-d:   #C98A22;
  --cream:    #FFFBF2;
  --cream-2:  #FBF2DF;
  --ink:      #2A1D10;
  --brown:    #6B5334;
  --slate:    #6E5F49;

  /* jewel accents (card suits / gems) */
  --red:      #E0453C;
  --blue:     #3E86D6;
  --purple:   #7A4FC7;

  --grad-gold:  linear-gradient(180deg, #FFD670 0%, #F4B63C 55%, #E19A24 100%);
  --grad-felt:  linear-gradient(150deg, #35a468 0%, #1d6b41 60%, #124d2d 100%);
  --grad-warm:  linear-gradient(135deg, #FFF4DC 0%, #FBE7C2 100%);

  --shadow-sm: 0 2px 8px rgba(42,29,16,.10);
  --shadow-md: 0 12px 30px rgba(42,29,16,.16);
  --shadow-lg: 0 26px 60px rgba(18,77,45,.28);

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --font: "Fredoka", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--felt-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .13em;
  font-size: .78rem; font-weight: 700; color: var(--gold-d);
  background: var(--cream-2); padding: 7px 15px; border-radius: 100px; margin-bottom: 18px;
  border: 1px solid #F0DFBB;
}
.muted { color: var(--slate); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1.05rem; padding: 14px 28px; border-radius: 100px;
  border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
/* gold "game button" */
.btn-primary {
  background: var(--grad-gold); color: #4A2E06;
  box-shadow: 0 6px 0 var(--gold-d), 0 12px 20px rgba(201,138,34,.35);
  border: 2px solid #ffe9b0;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-d), 0 6px 12px rgba(201,138,34,.35); }
.btn-ghost { background: #fff; color: var(--felt-d); box-shadow: var(--shadow-sm); border: 2px solid #E7DCC4; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1.14rem; }

/* App Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #111; color: #fff;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; border: 1px solid #333;
  transition: transform .12s ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-badge small { display: block; font-size: .68rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 1.18rem; font-weight: 600; line-height: 1.1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,242,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid #EFE3C9;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand b { color: var(--gold-d); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink); font-weight: 500; padding: 9px 15px; border-radius: 100px; font-size: 1rem;
}
.nav-links a:hover { background: var(--cream-2); text-decoration: none; }
.nav-links a.cta { background: var(--grad-gold); color: #4A2E06; font-weight: 600; border: 1px solid #ffe9b0; }
.nav-links a.cta:hover { filter: brightness(1.04); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-felt); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/title-bg.jpg") center/cover no-repeat;
  opacity: .5; mix-blend-mode: soft-light;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.16), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 66px 0 76px; color: #fff;
}
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.hero h1 span { color: var(--gold-l); }
.hero-lead { font-size: 1.22rem; color: rgba(255,255,255,.92); max-width: 30em; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.hero .eyebrow { background: rgba(0,0,0,.22); color: var(--gold-l); border-color: rgba(255,255,255,.15); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.hero-note { color: rgba(255,255,255,.8); font-size: .92rem; margin: 14px 0 0; }
.hero-art { position: relative; text-align: center; }
.hero-art img { margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.hero-logo { max-width: 460px; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.tint { background: var(--cream-2); }
.section.felt { background: var(--grad-felt); color: #fff; }
.section.felt h2, .section.felt h3 { color: #fff; }
.section.felt .eyebrow { background: rgba(0,0,0,.22); color: var(--gold-l); border-color: rgba(255,255,255,.15); }
.section.felt .muted { color: rgba(255,255,255,.85); }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head .muted { font-size: 1.08rem; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid #EFE3C9; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }

/* ---------- Squad (character grid) ---------- */
.squad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.squad-member {
  position: relative; text-align: center; background: var(--grad-warm);
  border: 1px solid #EFE3C9; border-radius: var(--radius); padding: 18px 10px 14px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.section.felt .squad-member {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14);
}
.squad-member:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow-md); }
.squad-member img { height: 190px; width: auto; margin: 0 auto 8px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); transition: transform .2s ease; }
.squad-member:hover img { transform: scale(1.06); }
.squad-member .name {
  display: inline-block; font-weight: 600; font-size: 1rem; color: #4A2E06;
  background: var(--grad-gold); padding: 5px 16px; border-radius: 100px; border: 1px solid #ffe9b0;
}

/* ---------- Split / showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { margin: 0 auto; border-radius: 16px; }
.shot { border-radius: 18px; box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,.6); }
.section.felt .shot { border-color: rgba(255,255,255,.2); }

/* ---------- Modifier chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  border: 1px solid #EFE3C9; border-radius: 100px; padding: 9px 16px; font-weight: 500; font-size: .96rem;
  box-shadow: var(--shadow-sm);
}
.chip b { font-weight: 700; }
.section.felt .chip { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.16); }

/* ---------- Screenshot gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gallery img { border-radius: 14px; box-shadow: var(--shadow-md); border: 3px solid rgba(255,255,255,.6); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; background: var(--grad-gold); color: #4A2E06; border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 2px solid #ffe9b0;
}
.cta-banner h2 { color: #3a2405; }
.cta-banner p { color: #5a3d0c; max-width: 34em; margin: 0 auto 26px; font-size: 1.12rem; }
.badge-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Content pages ---------- */
.page-head { background: var(--grad-felt); color: #fff; padding: 64px 0; text-align: center; position: relative; }
.page-head h1 { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.page-head p { color: rgba(255,255,255,.92); max-width: 34em; margin: 8px auto 0; font-size: 1.14rem; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--felt-d); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--slate); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid #EFE3C9; border-radius: 14px;
  padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-d); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--slate); }

/* ---------- Form ---------- */
.form-card {
  background: #fff; border: 1px solid #EFE3C9; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-md); max-width: 640px; margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 2px solid #EAE0CC; border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .9rem; color: var(--slate); margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--felt-dd); color: #cfe6d8; padding: 56px 0 30px; }
.footer a { color: #cfe6d8; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand b { color: var(--gold-l); }
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer .tagline { color: #9dbfaa; max-width: 26em; font-size: .96rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8fb09c; font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .squad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 46px 0 56px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { max-width: 420px; margin: 22px auto 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 560px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 14px 24px 22px; gap: 4px; border-bottom: 1px solid #EFE3C9;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 460px) {
  .squad-member img { height: 150px; }
}
