/* Kids with Celiac — shared styles */

:root {
  --teal: #2fa7a0;
  --teal-dark: #21807b;
  --blue: #3b7dd8;
  --blue-dark: #2b5ea3;
  --green: #5fb87a;
  --green-dark: #3f9a5c;
  --ink: #223244;
  --ink-soft: #52606d;
  --bg: #ffffff;
  --bg-soft: #f4f9f9;
  --border: #e3ecec;
  --radius: 16px;
  --max-width: 1040px;
  --shadow: 0 6px 24px rgba(34, 50, 68, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

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

/* Header / nav */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}

.brand .brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  flex-shrink: 0;
}

.brand span.accent {
  color: var(--teal-dark);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom-color: var(--teal);
}

.nav-donate {
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
}

.nav-donate:hover {
  opacity: 0.92;
  border-bottom: none !important;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal-dark);
  background: rgba(47, 167, 160, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-art {
  background: linear-gradient(135deg, rgba(59,125,216,0.12), rgba(95,184,122,0.14));
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  font-size: 5rem;
  line-height: 1;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn-donate {
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff;
}

/* Sections */
section.block {
  padding: 56px 0;
}

section.block.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card .emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

/* Page header (non-home pages) */
.page-hero {
  padding: 48px 0 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
}

/* Story page */
.story-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.story-wrap blockquote {
  border-left: 4px solid var(--teal);
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--ink);
  font-size: 1.1rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  border-left: 3px solid var(--border);
  padding-left: 24px;
}

.timeline li {
  position: relative;
  margin-bottom: 26px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline strong { color: var(--ink); }

/* Picks / reviews grid */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.pick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.pick-card .cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  background: rgba(59,125,216,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.disclaimer-box {
  background: #fff8e8;
  border: 1px solid #f0dca0;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 32px 0;
}

.disclaimer-box h3 {
  margin-bottom: 8px;
  color: #8a6400;
}

.disclaimer-box p {
  margin-bottom: 0;
  color: #6b5200;
}

/* Review page */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
  white-space: nowrap;
}

.review-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.star-select {
  display: flex;
  gap: 8px;
}

.star-select label {
  margin: 0;
  font-weight: 700;
  color: var(--ink-soft);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.checkbox-row input {
  margin-top: 4px;
}

.checkbox-row label {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

button, .submit-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Donation tracker */
.tracker-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto 32px;
}

.tracker-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.tracker-numbers .raised {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.tracker-numbers .goal {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.progress-track {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 999px 0 0 999px;
}

.tracker-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9d4de;
  padding: 40px 0 28px;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: #e7edf2;
}

.site-footer .foot-brand {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.site-footer small {
  color: #93a2af;
  display: block;
  margin-top: 10px;
}

.success-box {
  background: #eaf7ee;
  border: 1px solid #bfe6c9;
  color: #246b3c;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  font-weight: 700;
}
