/* ============================================================
   OC AUTISM FOUNDATION — STYLESHEET
   ------------------------------------------------------------
   This file controls colors, fonts, spacing, and layout.
   The most common things to change are in the COLORS block
   right below. Change a color value (like #1f6feb) and every
   matching element on the site updates at once.
   ============================================================ */

:root {
  /* ---- COLORS (edit these to re-theme the whole site) ---- */
  /* These match the OC Autism Foundation logo: orange + green. */
  --color-primary: #ef8a17;        /* logo orange — buttons, links, accents */
  --color-primary-dark: #d2760c;   /* darker orange — button hover */
  --color-accent: #7cb928;         /* logo green — highlights, Donate button */
  --color-text: #1c2430;           /* main text color */
  --color-muted: #5b6673;          /* softer text (captions, labels) */
  --color-bg: #ffffff;             /* page background */
  --color-bg-soft: #f4f7fb;        /* light section background */
  --color-border: #e2e8f0;         /* thin lines and borders */

  /* ---- SPACING + SHAPE ---- */
  --radius: 12px;
  --max-width: 1080px;
  --section-pad: 4rem;
}

/* ---- BASE ---- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-top: 0; }

a { color: var(--color-primary); }

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-donate {
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
}
.btn-donate:hover { background: #6aa31f; }

/* ---- HEADER ---- */
.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}
.brand { text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--color-text); }
.brand-logo { max-height: 48px; }

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.main-nav a:hover { color: var(--color-primary); }

/* ---- SHARED SECTION LAYOUT ---- */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
}
.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; }
.contact-line { color: var(--color-muted); margin-top: 1.5rem; }

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.hero-tagline { font-size: 1.15rem; color: var(--color-muted); margin-bottom: 1.5rem; }

/* ---- EVENT ---- */
.event { background: var(--color-bg-soft); border-radius: var(--radius); }
.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.fact {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.fact-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.fact-value { display: block; }

/* ---- VILLAGE / DONATE ---- */
.village-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---- SPONSORS ---- */
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}
.sponsor-logo { max-width: 180px; }

/* ---- SUBSCRIBE ---- */
.subscribe { background: var(--color-bg-soft); border-radius: var(--radius); text-align: center; }
.subscribe-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.subscribe-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 260px;
  font-size: 1rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-text);
  color: #e6edf5;
  padding: 3rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.site-footer a { color: #9ec3ff; }
.footer-social { display: flex; gap: 1.25rem; }
.copyright { color: #8b97a6; font-size: 0.9rem; margin: 0; }

/* ---- IMAGE PLACEHOLDERS (only show until real images are added) ---- */
.hero-image {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-image.placeholder,
.placeholder-small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e6ecf3 12px, #e6ecf3 24px);
  border: 2px dashed var(--color-border);
}
.placeholder-small { min-height: 120px; width: 180px; border-radius: var(--radius); }
.placeholder-label {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
/* Hide the label automatically when a real image is present. */
.hero-image:not(.placeholder) .placeholder-label { display: none; }

/* ---- PULL QUOTE (About page) ---- */
.pull-quote {
  border-left: 4px solid var(--color-primary);
  margin: 2rem 0 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text);
}

/* ---- TIMELINE (About page) ---- */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.timeline li {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--color-border);
  position: relative;
}
.timeline .year {
  display: inline-block;
  font-weight: 800;
  color: var(--color-primary);
  margin-right: 0.5rem;
}

/* ---- SPONSOR TIERS ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.tier {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tier-highlight { border-color: var(--color-accent); border-width: 2px; }
.tier-price { font-size: 1.75rem; font-weight: 800; color: var(--color-primary); }
.tier-name { font-weight: 700; }
.tier-note { color: var(--color-muted); font-size: 0.9rem; }

/* ---- BENEFITS LIST ---- */
.benefits { max-width: 60ch; margin-top: 1rem; }
.benefits li { margin-bottom: 0.5rem; }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label { font-weight: 600; margin-top: 0.75rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400 !important;
}
.contact-form button { margin-top: 1rem; align-self: flex-start; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- FORM STATUS MESSAGE ---- */
.form-msg {
  margin-top: 1rem;
  font-weight: 600;
  width: 100%;
}
.form-msg.is-ok { color: #2e7d32; }
.form-msg.is-error { color: #c62828; }

/* ---- ACCESSIBILITY HELPER ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- MOBILE / SMALL SCREENS ---- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .main-nav { width: 100%; margin-left: 0; }
  :root { --section-pad: 2.5rem; }
}
