/* Kimaa Squash — rebuilt from actual rendered screenshots of kimaasquash.org */
:root {
  --pastel-green: #B8D39C;
  --peach-blush: #FFB299;
  --sky-breeze: #9FD7F4;
  --lemon-meringue: #FFE67B;
  --lilac: #C6A1CF;
  --snow-white: #FFFDF8;
  --pure-black: #000000;

  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--snow-white);
  line-height: 1.6;
  min-height: 100vh;
}

/* page background — set per page via body class */
body.bg-peach { background: var(--peach-blush); }
body.bg-green { background: var(--pastel-green); }
body.bg-blue { background: var(--sky-breeze); }
body.bg-yellow { background: var(--lemon-meringue); }
body.bg-lilac { background: var(--lilac); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--snow-white);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.site-nav a.current { font-weight: 700; opacity: 1; }
.site-nav a:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Hamburger toggle (mobile only) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: -1;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--snow-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.social-icon { color: var(--snow-white); display: flex; }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--snow-white);
  color: var(--snow-white);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---------- Hero logo lockup (every page) ---------- */
.hero-logo {
  display: flex;
  justify-content: center;
  padding: 60px 24px 80px;
}

.hero-logo img { width: 445px; max-width: 90%; }

/* ---------- Intro / centered text block ---------- */
.intro-block {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 0 24px;
}

.intro-block p {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.35;
}

.page-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto 8px;
  padding: 0 24px;
}

/* ---------- Divider ---------- */
.divider {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 10px;
  margin: 32px 0;
  opacity: 0.9;
}

/* ---------- Mission / section photo ---------- */
.section-photo {
  border-radius: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.section-photo-wide {
  border-radius: 16px;
  max-width: 900px;
  margin: 40px auto;
}

/* ---------- Alternating info block (About page) ---------- */
.info-block {
  display: flex;
  align-items: center;
  gap: 56px;
  margin: 0 0 72px;
  padding: 0 24px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.info-block.reverse { flex-direction: row-reverse; }

.info-block img {
  flex: 0 0 46%;
  width: 46%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 340px;
}

.info-block .text { flex: 1; text-align: center; }
.info-block .text h3 { font-size: 1.4rem; margin-bottom: 14px; font-weight: 700; }
.info-block .text p { font-size: 1rem; }

@media (max-width: 760px) {
  .info-block, .info-block.reverse { flex-direction: column; }
  .info-block img { width: 100%; flex-basis: auto; }
}

/* ---------- Impact list (Donate page) ---------- */
.impact-list {
  list-style: none;
  max-width: 640px;
  margin: 24px auto 40px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  display: grid;
  gap: 10px;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.contact-form .field { margin-bottom: 28px; }

.contact-form label {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.contact-form label .req { color: #d9534f; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--snow-white);
  color: var(--pure-black);
}

.contact-form textarea { border-radius: 20px; min-height: 120px; resize: vertical; }

.checkbox-list { display: grid; gap: 10px; }
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1rem;
}
.checkbox-list input { width: 18px; height: 18px; }

.contact-form .submit-row { text-align: left; margin-top: 8px; padding-bottom: 60px; }

/* ---------- Doc / fact page (Transparency) ---------- */
.doc-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.doc-section h1.page-title { text-align: left; margin: 0 0 24px; padding: 0; max-width: none; }
.doc-section h2 { font-size: 1.3rem; margin: 32px 0 12px; font-weight: 700; }
.doc-section h2:first-of-type { margin-top: 0; }
.doc-section p { margin-bottom: 10px; }
.doc-section ul { margin: 8px 0 16px 20px; }
.doc-section a { color: var(--snow-white); font-weight: 700; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
}

.board-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
}

.board-table th, .board-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

/* ---------- Brand pattern band (real brand asset, color-matched per page) ---------- */
.brand-pattern {
  height: 260px;
  margin-top: 64px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.brand-pattern.pattern-peach { background-image: url('assets/pattern-peach.jpg'); }
.brand-pattern.pattern-green { background-image: url('assets/pattern-green.jpg'); }
.brand-pattern.pattern-blue { background-image: url('assets/pattern-blue.jpg'); }
.brand-pattern.pattern-lilac { background-image: url('assets/pattern-lilac.jpg'); }

@media (max-width: 640px) {
  .brand-pattern { height: 160px; }
}

/* ---------- Bulleted impact list (Donate) ---------- */
.impact-list li {
  position: relative;
  padding-left: 28px;
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--snow-white);
}

/* ---------- WhyDonate widget slot ---------- */
.donate-widget {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.donate-widget .share-widget,
.donate-widget .share-widget * {
  background-color: var(--sky-breeze) !important;
}

.donate-widget .share-widget button,
.donate-widget .share-widget [class*="button"] {
  background-color: #2E2C96 !important;
}

/* ---------- VCP / trusted contact section ---------- */
.vcp-section {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
}

.vcp-section h2 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }
.vcp-section p { margin-bottom: 8px; }
.vcp-section a { color: var(--snow-white); font-weight: 700; }

/* ---------- Language toggle (fixed, bottom-right) ---------- */
.lang-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--snow-white);
  color: var(--pure-black);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 50;
  cursor: pointer;
  font-family: var(--font-body);
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 4px 8px;
  }

  .site-nav.open { display: flex; }

  .nav-right { order: 2; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px; }
  .hero-logo img { width: 300px; }
  .intro-block p { font-size: 1.2rem; }
  .page-title { font-size: 1.5rem; }
  .vcp-section { padding: 20px; }
  .nav-right { gap: 14px; }
  .btn-outline { padding: 10px 18px; font-size: 0.75rem; }
}

@media (max-width: 400px) {
  .hero-logo img { width: 80vw; }
  .intro-block p { font-size: 1.05rem; }
  .divider { font-size: 1.2rem; letter-spacing: 6px; }
}
