/*
Theme Name: GSSI
Theme URI: https://gpsupportservices.com
Description: Starter theme for Gastroparesis Support Services, Inc. (GSSI) — a 501(c)(3) supporting gastroparesis patients and families.
Version: 1.3
Author: Gastroparesis Support Services, Inc.
License: GNU General Public License v2 or later
Text Domain: gssi
*/

:root {
  --green: #1f6b4f;
  --green-dark: #14523c;
  --sage: #d9e8dd;
  --cream: #faf7f0;
  --ink: #1e2a24;
  --muted: #5a6a62;
  --gold: #c9a227;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--green-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--green); padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-brand a { text-decoration: none; color: var(--green-dark); }
.site-title { font-size: 1.6rem; font-weight: 800; margin: 0; }
.site-tagline { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.main-nav a:hover { color: var(--green); }

/* Buttons */
.button, .wp-block-button__link {
  display: inline-block; background: var(--green); color: var(--white) !important;
  padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 0;
}
.button:hover { background: var(--green-dark); }
.button-gold { background: var(--gold); color: #1e2a24 !important; }
.button-outline { background: transparent; color: var(--green) !important; border: 2px solid var(--green); }

/* Hero */
.hero { background: var(--green-dark); color: var(--white); padding: 56px 0; }
.hero h1 { color: var(--white); font-size: 2.4rem; margin: 0 0 12px; max-width: 720px; }
.hero p { font-size: 1.15rem; max-width: 720px; opacity: 0.95; }
.hero .button { margin-right: 12px; margin-top: 8px; }
.hero .button-outline { color: var(--white) !important; border-color: var(--white); background: transparent; }

/* Sections */
.section { padding: 48px 0; }
.section-cream { background: var(--cream); }
.section-sage { background: var(--sage); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid #e2ddd2; border-radius: 12px; padding: 24px; }
.card h3 { margin-top: 0; }
.notice { background: #fff8e1; border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 8px 8px 0; }

/* Forms */
.gssi-form label { display: block; font-weight: 600; margin-top: 16px; }
.gssi-form input, .gssi-form select, .gssi-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cbd5cf; border-radius: 8px; font-size: 1rem; margin-top: 6px;
}
.gssi-form fieldset { border: 1px solid #cbd5cf; border-radius: 8px; padding: 16px; margin-top: 16px; }
.gssi-form fieldset label { font-weight: 400; margin-top: 6px; }

/* Content + footer */
.entry-content { max-width: 760px; }
.entry-content img { max-width: 100%; height: auto; }
.site-footer { background: var(--green-dark); color: var(--white); padding: 40px 0; margin-top: 0; }
.site-footer a { color: var(--white); }
.site-footer p { opacity: 0.9; }
.footer-note { font-size: 0.9rem; opacity: 0.85; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
