/* Coral River — site styles. Palette derived from the logo SVGs. */

:root {
  --brand-dark: #3b4c4c;   /* dark slate teal */
  --brand-dark-2: #324040; /* slightly deeper, for the footer */
  --brand-accent: #9cbd8b; /* sage green */
  --brand-accent-ink: #6f9a5b; /* darker sage, for links on light bg (contrast) */
  --brand-light: #e0e0e0;  /* light gray (wordmark) */
  --page-bg: #fbfcfb;
  --surface: #ffffff;
  --ink: #1f2a2a;
  --ink-soft: #4a5a5a;
  --rule: #e2e8e2;
  --maxw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--brand-dark);
  border-bottom: 3px solid var(--brand-accent);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 34px; width: auto; display: block; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(224, 224, 224, 0.4);
  border-radius: 6px;
  color: var(--brand-light);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--brand-accent);
}

/* ---------- Main content ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

h1, h2, h3 {
  color: var(--brand-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.3rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--brand-accent-ink); }
a:hover { color: var(--brand-dark); }

ul, ol { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }

strong { color: var(--brand-dark); }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.tagline {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0 0 1.75rem;
}

/* Hero / mission blockquote */
blockquote {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--brand-accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 2px rgba(31, 42, 42, 0.06);
}
blockquote p { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--brand-dark); }

/* Teaser cards (home) */
.teasers { display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.teaser {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}
.teaser h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.teaser p { margin: 0 0 0.6rem; }
.teaser a { font-weight: 600; text-decoration: none; }
.teaser a:hover { text-decoration: underline; }

.page-links { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  background: var(--brand-dark-2);
  color: var(--brand-light);
  border-top: 3px solid var(--brand-accent);
  padding: 2rem 1.25rem;
}
.site-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer img { height: 30px; width: auto; display: block; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--brand-light); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__meta { width: 100%; color: rgba(224, 224, 224, 0.6); font-size: 0.85rem; }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 1.95rem; }

  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-block; }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    padding-top: 0.75rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; width: 100%; padding: 0.5rem 0; }
}
