/* Barkus public site. Mobile-first, system fonts, no external resources. */

:root {
  --grass: #7fb04f;
  --grass-dark: #5f8f36;
  --sky: #5ea8f0;
  --sky-light: #dff0ff;
  --yellow: #ffd23f;
  --yellow-dark: #e6b61a;
  --terra: #b9553f;
  --terra-dark: #9a4432;
  --cream: #f6f1e3;
  --cream-dark: #ece4cf;
  --ink: #2b2a28;
  --ink-soft: #5b584f;
  --white: #fffdf7;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(43, 42, 40, 0.10), 0 2px 6px rgba(43, 42, 40, 0.06);
  --shadow-lift: 0 16px 40px rgba(43, 42, 40, 0.16), 0 4px 10px rgba(43, 42, 40, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 0.92em; background: rgba(43,42,40,0.08); padding: 1px 5px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol { fill: currentColor; }
.sprite .cut { stroke: var(--white); fill: var(--white); }
.sprite .cut[fill="none"] { fill: none; }

/* language toggle: show only the active language */
.en { display: none; }
html[data-lang="en"] .pt { display: none; }
html[data-lang="en"] .en { display: inline; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; z-index: 50;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(246, 241, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--cream-dark);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.5px;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.brand-paw { width: 30px; height: 30px; color: var(--terra); }
.topnav { display: none; gap: 4px; margin-left: 8px; }
.topnav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center;
}
.topnav a:hover { background: var(--cream-dark); color: var(--ink); }
.lang { margin-left: auto; display: inline-flex; background: var(--white); border: 2px solid var(--cream-dark); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: 0; background: transparent; color: var(--ink-soft);
  font: inherit; font-weight: 800; font-size: 0.95rem;
  min-height: 38px; min-width: 48px; padding: 0 12px; border-radius: 999px; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }

@media (min-width: 720px) {
  .topnav { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, #8fc4f6 55%, var(--sky-light) 100%);
  padding: 40px 0 0;
}
.hero::after {
  content: ""; display: block; height: 70px; margin-top: 30px;
  background: var(--grass);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.3);
}
.sun {
  position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 24px rgba(255, 210, 63, 0.25), 0 0 0 52px rgba(255, 210, 63, 0.12);
}
.cloud {
  position: absolute; background: var(--white); border-radius: 999px; opacity: 0.9; height: 36px; width: 110px;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--white); border-radius: 50%; }
.cloud::before { width: 50px; height: 50px; left: 18px; top: -24px; }
.cloud::after { width: 36px; height: 36px; left: 56px; top: -14px; }
.c1 { left: 6%; top: 60px; }
.c2 { left: 48%; top: 24px; transform: scale(0.7); }

.hero-grid { position: relative; display: grid; gap: 28px; align-items: center; }
.hero-text { color: var(--ink); }
.badge {
  display: inline-block; margin: 0 0 12px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.logo {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 6rem); line-height: 0.95; margin: 0 0 12px;
  font-weight: 900; letter-spacing: -1px;
  color: var(--white);
  text-shadow: 0 4px 0 var(--terra), 0 10px 24px rgba(43,42,40,0.25);
}
.pitch { font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 800; line-height: 1.25; margin: 0 0 10px; color: var(--ink); }
.sub { margin: 0 0 22px; color: var(--ink); opacity: 0.85; font-size: 1.02rem; }

.cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.08rem; text-decoration: none; cursor: pointer;
  border: 0; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn svg { width: 26px; height: 26px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); filter: brightness(1.04); }
.btn:active { transform: translateY(1px); }
.btn-play { background: var(--grass); color: var(--ink); }
.btn-win { background: var(--yellow); color: var(--ink); }
.btn-android { background: var(--terra); color: var(--white); }

.notes { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: var(--ink); display: grid; gap: 6px; }
.notes li { background: rgba(255, 253, 247, 0.6); padding: 8px 12px; border-radius: 12px; }
.notes strong { font-weight: 800; }

.hero-shot { margin: 0; }
.hero-shot img {
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  border: 6px solid var(--white);
}

@media (min-width: 720px) {
  .hero { padding-top: 56px; }
  .cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-shot img { transform: rotate(1.5deg); }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--white); border-top: 2px solid var(--cream-dark); border-bottom: 2px solid var(--cream-dark); }
h2 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; margin: 0 0 10px; font-weight: 900;
}
h3 { font-size: 1.2rem; margin: 0 0 6px; line-height: 1.25; font-weight: 800; }
.lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 760px; }

/* ---------- feature cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px 20px 20px;
  box-shadow: var(--shadow); border: 2px solid var(--cream-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.icon {
  width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--white);
}
.icon svg { width: 32px; height: 32px; }
.icon.big { width: 72px; height: 72px; border-radius: 24px; }
.icon.big svg { width: 42px; height: 42px; }
.ic-green { background: var(--grass); }
.ic-yellow { background: var(--yellow); color: var(--ink); }
.ic-yellow .cut { stroke: var(--yellow); fill: var(--yellow); }
.ic-sky { background: var(--sky); }
.ic-terra { background: var(--terra); }

.honest {
  margin: 28px 0 0; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--yellow); color: var(--ink); font-weight: 600;
}

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }
}

/* ---------- gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; background: var(--cream);
  border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; text-align: left;
  box-shadow: var(--shadow); font: inherit; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot .cap { display: block; padding: 10px 14px; font-weight: 700; font-size: 0.95rem; }
@media (min-width: 540px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- parents ---------- */
.parents-grid { display: grid; gap: 28px; }
.rating { background: var(--sky-light); padding: 14px 16px; border-radius: var(--radius-sm); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  position: relative; background: var(--white); padding: 14px 16px 14px 52px; border-radius: var(--radius-sm);
  border: 2px solid var(--cream-dark); box-shadow: var(--shadow);
}
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grass);
}
.checks li::after {
  content: ""; position: absolute; left: 23px; top: 21px; width: 7px; height: 11px;
  border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.checks strong { font-weight: 800; }
@media (min-width: 900px) { .parents-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }

/* ---------- board ---------- */
.board-grid { display: grid; gap: 24px; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.board-list li {
  background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; border: 2px solid var(--cream-dark);
}
.board-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.board-name { font-weight: 800; }
.board-when { color: var(--ink-soft); font-size: 0.88rem; }
.board-msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-note { color: var(--ink-soft); background: var(--cream); padding: 14px 16px; border-radius: var(--radius-sm); margin: 0; }

.board-form {
  background: var(--cream); border-radius: var(--radius); padding: 22px 20px; border: 2px solid var(--cream-dark);
  display: grid; gap: 6px; align-content: start;
}
.board-form h3 { margin-bottom: 6px; }
.board-form label { font-weight: 700; margin-top: 8px; }
.board-form label small { color: var(--ink-soft); font-weight: 600; }
.board-form input, .board-form textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; min-height: 48px;
}
.board-form textarea { resize: vertical; }
.board-form input:focus, .board-form textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 4px rgba(94, 168, 240, 0.3); }
.board-form button { margin-top: 12px; justify-self: start; }
.board-form button[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin: 8px 0 0; min-height: 1.4em; font-weight: 700; }
.form-status.ok { color: var(--grass-dark); }
.form-status.warn { color: var(--terra-dark); }
@media (min-width: 900px) { .board-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* ---------- footer ---------- */
.footer { background: var(--grass); color: var(--ink); padding: 28px 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-weight: 600; }
.footer p { margin: 0; }
.admin-link { color: var(--ink); opacity: 0.7; font-size: 0.9rem; font-weight: 600; }
.admin-link:hover { opacity: 1; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 42, 40, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1280px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-figure img { max-height: calc(100vh - 140px); max-width: calc(100vw - 32px); width: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); }
.lb-figure figcaption { color: var(--white); font-weight: 700; text-align: center; padding: 0 56px; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.lb-btn svg { width: 28px; height: 28px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-btn:focus-visible { outline-color: var(--yellow); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .shot:hover { transform: none; }
}

/* A download whose file is missing on the server (see site.js). */
.is-missing { opacity: 0.45; pointer-events: none; filter: grayscale(0.6); }
