/* ===== Matchala Games — static site ===== */
:root {
  --green: #7a9932;
  --green-dark: #5f7726;
  --brown: #a8734c;
  --cream: #faf6ea;
  --cream-2: #fffdf6;
  --ink: #3a352e;
  --muted: #7c7568;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(58, 53, 46, 0.10);
  --shadow-sm: 0 6px 16px rgba(58, 53, 46, 0.08);
  --max: 1080px;
}

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
a { color: var(--green-dark); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 234, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 153, 50, 0.14);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 38px; width: 38px; border-radius: 11px; display: block; }
.brand span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.02em; }
header.site nav a { margin-left: 26px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
header.site nav a:hover { color: var(--green); }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px; text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(122,153,50,0.10), transparent 70%),
    var(--cream);
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); margin: 0 0 18px; }
.hero h1 .accent { color: var(--green); }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 600px; margin: 0 auto; color: var(--muted); }

/* ---- Sections ---- */
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 600; color: var(--brown); margin-bottom: 10px; }
section { padding: 64px 0; }
section h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 8px; }
.section-intro { color: var(--muted); max-width: 560px; margin: 0 0 8px; }

/* ---- Games grid ---- */
.games { background: var(--cream-2); }
.game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px;
}
.game-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(122,153,50,0.1);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card .icon-wrap { margin-bottom: 18px; }
.game-card img.app-icon {
  width: 96px; height: 96px; border-radius: 22px; display: block;
  box-shadow: var(--shadow-sm);
}
.game-card h3 { font-size: 1.3rem; margin: 0 0 8px; color: var(--green-dark); }
.game-card p { margin: 0 0 20px; color: var(--muted); font-size: 0.94rem; flex: 1; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #2b2622; color: #fff; text-decoration: none;
  padding: 9px 15px; border-radius: 13px; min-width: 152px;
  transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #1d1915; }
.store-badge .ico { width: 22px; height: 22px; flex: none; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.08; }
.store-badge .txt small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.4px; opacity: 0.85; text-transform: uppercase; }
.store-badge .txt strong { font-size: 0.98rem; font-weight: 600; }

/* ---- Contact ---- */
.contact { background: var(--green); color: var(--white); text-align: center; }
.contact h2 { color: var(--white); }
.contact p { color: rgba(255,255,255,0.92); margin: 6px 0 26px; }
.btn { display: inline-block; background: var(--white); color: var(--green-dark); text-decoration: none; font-weight: 600; padding: 14px 34px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }

/* ---- Footer ---- */
footer.site { background: var(--ink); color: rgba(255,255,255,0.72); padding: 36px 0; font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
footer.site a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer.site a:hover { color: var(--white); }
footer.site .links a { margin-left: 20px; }

/* ---- Legal pages ---- */
.legal { background: var(--cream-2); padding: 64px 0 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 6px; }
.legal .effective { color: var(--muted); margin: 0 0 32px; font-size: 0.95rem; }
.legal h2 { font-size: 1.3rem; color: var(--green-dark); margin: 34px 0 10px; }
.legal p, .legal li { color: #4a443b; }
.legal ul { padding-left: 22px; }

/* ---- Responsive ---- */
@media (max-width: 860px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; }
  header.site nav { display: none; }
  footer.site .links a { margin-left: 0; margin-right: 18px; }
}
