/* ===== Ban Golf – recreation of the 2022 archived homepage ===== */

:root {
  --navy: #0b1c33;
  --navy-dark: #071526;
  --gray: #2a2e38;
  --gray-light: #3a3f4b;
  --pink: #e11d48;
  --text: #ffffff;
  --text-muted: #c5c9d1;
  --max: 900px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.55;
  font-size: 1.05rem;
}

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--gray);
  border-bottom: 1px solid #1e222b;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text .tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.9;
}

.nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Hero (diagonal split) ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 42%, var(--gray) 42%, var(--gray) 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
}

.hashtags {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Featured post cards ---------- */
.featured-posts {
  background: var(--navy);
  padding: 3.5rem 0 2rem;
}

.featured-posts .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  display: block;
  background: var(--gray);
  padding: 1.75rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}

.post-card:hover {
  background: var(--gray-light);
}

.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Movement section ---------- */
.movement {
  background: var(--navy-dark);
  padding: 4rem 0;
  text-align: center;
}

.movement-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.movement h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1.75rem;
  font-weight: 700;
}

.movement-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--pink);
  color: white;
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* ---------- Newsletter ---------- */
.join {
  background: var(--gray);
  padding: 3.5rem 0;
  text-align: center;
}

.join h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.join p {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter button {
  padding: 0.7rem 1.3rem;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.newsletter button:hover { filter: brightness(1.1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #1a2230;
}

.site-footer p { margin: 0.3rem 0; }

/* ---------- Single post/page (for later) ---------- */
.post, .page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.post-title, .page-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.post-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.post-content{
    font-family: "DM Sans", sans-serif;
    width: 664px;
}

.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  .nav { gap: 1rem; font-size: 0.9rem; }
  .hero { min-height: 50vh; }
}

.post-card {
  display: flex;           /* side-by-side on larger screens */
  flex-direction: column;
  overflow: hidden;
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1f2e;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 1.5rem 1.75rem;
}

/* Optional: side-by-side layout on wider screens */
@media (min-width: 640px) {
  .post-card {
    flex-direction: row;
    align-items: stretch;
  }
  .post-card-image {
    width: 240px;
    flex-shrink: 0;
    aspect-ratio: auto;
  }
  .post-card-body {
    flex: 1;
  }
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid #2a2e38;
  font-size: 0.95rem;
}

.post-nav a {
  color: #7eb8ff;
  text-decoration: none;
  max-width: 45%;
}

.post-nav a:hover {
  text-decoration: underline;
}

.post-nav-prev {
  text-align: left;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* ===== #GolfZero page ===== */

.gz-hero {
  background: linear-gradient(135deg, #0b1c33 0%, #0b1c33 38%, #2a2e38 38%, #2a2e38 100%);
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.gz-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  max-width: 900px;
  letter-spacing: -0.02em;
}

.gz-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  align-items: start;
}

/* Big red flag */
.gz-flag {
  position: relative;
  padding-top: 1rem;
}

.flag-pole {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #8b929e;
  border-radius: 3px;
}

.flag-banner {
  margin-left: 18px;
  width: 160px;
  height: 110px;
  background: #e11d48;
  clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.3);
}

.flag-symbol {
  font-size: 4.5rem;
  font-weight: 700;
  color: #0b1c33;
  line-height: 1;
  margin-right: 12px;
}

.gz-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.gz-content p {
  margin: 0 0 1.25rem;
  color: #d1d5db;
  max-width: 560px;
}

.gz-zero-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.gz-zero-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.75rem;
  font-size: 1.15rem;
  color: #e5e7eb;
}

.gz-zero-list li::before {
  content: "Ø";
  position: absolute;
  left: 0;
  color: #e11d48;
  font-weight: 700;
}

/* Stats section */
.gz-stats {
  background: #071526;
  padding: 3.5rem 0;
}

.gz-stats h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.45;
  font-size: 1.05rem;
}

.stat strong {
  color: #fff;
  font-weight: 700;
}

.stat:hover {
  color: #bfdbfe;
}

/* Help section */
.gz-help {
  background: #0b1c33;
  padding: 3.5rem 0;
  text-align: center;
}

.gz-help h2 {
  margin: 0 0 1.75rem;
  font-size: 1.8rem;
}

.help-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-light {
  background: #fff;
  color: #0b1c33;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.btn-light:hover {
  background: #e5e7eb;
}

/* Sidebar-style contact block */
.gz-sidebar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  color: #9ca3af;
  font-size: 0.95rem;
}

.gz-sidebar a {
  color: #93c5fd;
}

.gz-sidebar .social {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.gz-sidebar .social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f2937;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 700px) {
  .gz-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gz-flag {
    display: flex;
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}