/* Groveheart Online - website. Plain CSS, mobile first. Palette from the logo (leaf greens) and the game UI. */
:root {
  --deep: #10301f;
  --forest: #1d4a30;
  --leaf: #2f8f4e;
  --leaf-2: #57b968;
  --lime: #a7e07a;
  --cream: #fbf7e8;
  --paper: #f3eed8;
  --ink: #17301f;
  --muted: #557060;
  --gold: #ffcb45;
  --gold-2: #f2a93b;
  --sky: #dff2ff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 48, 31, .18);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); color: var(--forest); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; color: var(--forest); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-play { background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, var(--gold-2)); color: #4a2a00;
  box-shadow: 0 6px 0 #c98420, 0 12px 24px rgba(201, 132, 32, .35); }
.btn-play:hover { box-shadow: 0 8px 0 #c98420, 0 16px 28px rgba(201, 132, 32, .4); }
.btn-download { background: linear-gradient(180deg, #4fb465, var(--leaf)); color: #fff;
  box-shadow: 0 6px 0 #1d6b36, 0 12px 24px rgba(29, 107, 54, .3); }
.btn-download:hover { box-shadow: 0 8px 0 #1d6b36, 0 16px 28px rgba(29, 107, 54, .35); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; box-shadow: 0 4px 0 #c98420; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 16px;
  padding: 0 max(16px, env(safe-area-inset-left)); transition: background .25s ease, box-shadow .25s ease;
}
.topbar.solid { background: rgba(16, 48, 31, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900;
  font-size: 1.2rem; letter-spacing: .01em; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .14); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(16, 48, 31, .55); padding: 11px 10px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; margin: 4px 0; background: #fff; border-radius: 3px; transition: transform .2s; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: min(100svh, 860px); display: flex; align-items: center; justify-content: center;
  padding: 96px 20px 120px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, rgba(10, 40, 24, .55) 0%, rgba(10, 40, 24, .15) 40%, rgba(10, 40, 24, .45) 100%),
              url("/img/hero-bg.webp") center 40% / cover no-repeat, #7fb8d8;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; text-align: center; }
.hero-logo { margin: 0 auto 14px; width: min(560px, 92%); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.tagline { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  margin-bottom: 1.4em; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 1.2em; font-weight: 700; font-size: .95rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.status { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: rgba(16, 48, 31, .6); font-size: .88rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6ee07f; box-shadow: 0 0 8px #6ee07f; }
.status.down::before { background: #ff8a7a; box-shadow: 0 0 8px #ff8a7a; }
.status[hidden] { display: none; }
.hero-phone { display: none; margin: 0; }
.hero-fade { position: absolute; inset: auto 0 -1px 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, rgba(251, 247, 232, 0), var(--cream)); }
.phone { border-radius: 28px; padding: 10px; background: #0d1f15; box-shadow: 0 24px 50px rgba(0, 0, 0, .45),
  inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(-3deg); }
.phone img { border-radius: 18px; }

@media (min-width: 1000px) {
  .hero { justify-content: space-between; gap: 40px; padding: 110px max(40px, calc((100% - 1180px) / 2)) 140px; }
  .hero-inner { text-align: left; flex: 0 1 560px; }
  .hero-logo { margin-left: 0; }
  .hero .cta { justify-content: flex-start; }
  .hero-phone { display: block; position: relative; z-index: 2; flex: 0 1 600px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .8rem; color: var(--leaf);
  margin-bottom: .6em; }
.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .two-col.reverse > :first-child { order: 2; }
}
.col-text p { font-size: 1.08rem; color: #2c4a37; }

.regions { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.regions li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 16px;
  background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 48, 31, .07); border-left: 6px solid var(--leaf-2); }
.regions li span { color: var(--muted); font-size: .92rem; text-align: right; }
.map { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff;
  transform: rotate(1.2deg); background: #fff; }
.map img { aspect-ratio: 1400 / 1528; object-fit: cover; }

/* classes */
.classes { background: linear-gradient(180deg, rgba(251, 247, 232, .92), rgba(243, 238, 216, .96)),
  url("/img/garden-bg.webp") center / cover; }
.class-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.class-card { display: grid; grid-template-columns: 92px 1fr; gap: 4px 16px; align-items: center; padding: 16px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(16, 48, 31, .1);
  transition: transform .2s ease, box-shadow .2s ease; }
.class-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 48, 31, .16); }
.class-card img { grid-row: span 2; width: 92px; height: 92px; border-radius: 16px; image-rendering: auto;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .06); }
.class-card h3 { margin: 0; align-self: end; }
.class-card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; align-self: start; }

/* story gates */
.gates { background: linear-gradient(180deg, var(--cream), #e7f4e3); }
.gate-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 16px; overflow-x: auto;
  padding: 8px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gate { margin: 0; scroll-snap-align: start; text-align: center; }
.gate img { width: 168px; height: 222px; object-fit: cover; border-radius: 14px; border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(16, 48, 31, .18); transition: transform .2s ease; }
.gate:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.gate figcaption { margin-top: 10px; font-weight: 800; color: var(--forest); font-size: .95rem; }
@media (min-width: 1100px) { .gate-strip { grid-auto-flow: row; grid-template-columns: repeat(9, 1fr); grid-auto-columns: auto; overflow: visible; }
  .gate img { width: 100%; height: auto; aspect-ratio: 200 / 264; } }

/* cards + gallery */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0d1f15;
  border: 6px solid #fff; }
.shot img { aspect-ratio: 1280 / 576; object-fit: cover; }
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.gallery .shot { position: relative; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(16, 48, 31, .78); color: #fff; font-weight: 800; font-size: .9rem; }
.anywhere { background: #e7f4e3; }

/* news */
.news-list { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.news-item { background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 6px 20px rgba(16, 48, 31, .08);
  border-top: 6px solid var(--lime); }
.news-item time { display: block; color: var(--muted); font-weight: 800; font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 4px; }
.news-item h3 { font-size: 1.3rem; }
.news-item p { color: #2c4a37; }
.news-item p:last-child { margin-bottom: 0; }

/* join */
.join { background: radial-gradient(circle at 50% 0%, #2f7a48, var(--forest) 60%, var(--deep)); color: #fff; text-align: center; }
.join h2 { color: #fff; }
.join-inner img { margin: 0 auto 14px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.join p { color: #d8eedb; font-size: 1.1rem; margin-bottom: 1.6em; }

/* footer */
.footer { background: var(--deep); color: #b9d3bf; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #e5f3e8; }
.footer-brand img { width: 74px; }
.footer-brand span { font-weight: 900; letter-spacing: .12em; line-height: 1.05; font-size: .95rem; text-align: left; }
.footer .badge { width: 62px; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: #e5f3e8; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copy { width: 100%; margin: 0; font-size: .9rem; }

/* reveal on scroll (js/site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: rgba(16, 48, 31, .96); border-radius: 18px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .nav .btn { margin-top: 6px; }
  .topbar.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .topbar.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body { font-size: 16px; }
  .btn { width: 100%; max-width: 340px; }
  .regions li { flex-direction: column; gap: 0; }
  .regions li span { text-align: left; }
  .map { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .class-card, .gate img { transition: none; }
}

/* ------------------------------------------------------------------ simple pages (privacy, 404) */
.page { background: var(--cream); }
.page .topbar { position: sticky; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--forest); }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.muted { color: var(--muted); }
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 30%, #e7f4e3, var(--cream) 60%); }
.lost img { margin-bottom: 12px; }
.lost h1 { color: var(--forest); font-size: clamp(2rem, 6vw, 3rem); }
