/* Riverbend (sandbox) — site styles. Design is locked in v1: the Editor
   changes content only. Mobile-first; all text pairs meet WCAG AA (4.5:1). */
:root {
  --teal: #0e4d5c;        /* 9.6:1 on paper */
  --teal-dark: #083642;
  --ink: #1b1b1b;         /* 16:1 on paper */
  --ink-soft: #4b4f52;    /* 7.9:1 on paper */
  --paper: #fbf7f0;
  --sand: #f2e9da;
  --amber: #f7c873;       /* decorative only */
  --white: #ffffff;
  --focus: #b3261e;
  --radius: 14px;
  --font-heading: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; color: var(--teal-dark); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }
main { outline: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--sand); }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--teal-dark); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--amber); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* Buttons */
.button {
  display: inline-block; background: var(--teal); color: var(--white);
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  min-height: 44px;
}
.button:hover { background: var(--teal-dark); color: var(--white); }
.button--secondary { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.button--secondary:hover { background: var(--teal); color: var(--white); }

/* Sections */
.section { padding: var(--space) 0; }
.section:nth-of-type(even) { background: var(--sand); }
.richtext p:last-child { margin-bottom: 0; }
.richtext + .button, .richtext + .card-link, .richtext + .event-link { margin-top: 1.5rem; }

.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero-inner, .text-image-inner { display: grid; gap: 2rem; align-items: center; }
.hero-text .richtext { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.hero-media img, .text-image-media img { border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgb(8 54 66 / 0.55); }

.card-grid, .team-grid, .event-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--sand); }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-title { margin-bottom: 0.4em; }
.card-link, .event-link { display: inline-block; font-weight: 700; }

.event { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.4rem; border-left: 6px solid var(--amber); }
.event-date { font-weight: 700; color: var(--teal-dark); margin-bottom: 0.25rem; }
.event-time { display: block; font-weight: 400; color: var(--ink-soft); }
.event-title { margin-bottom: 0.3em; }
.event-location { color: var(--ink-soft); margin-bottom: 0.5em; }
.event-empty { font-size: 1.2rem; color: var(--ink-soft); }

.team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.person-photo { border-radius: 50%; width: 9rem; height: 9rem; object-fit: cover; margin-bottom: 1rem; }
.person-name { margin-bottom: 0.2em; }
.person-role { color: var(--ink-soft); font-weight: 600; margin-bottom: 0.5em; }

.contact-grid { display: grid; gap: 2rem; margin-top: 2rem; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-item h2, .contact-item h3, .contact-hours h2, .contact-hours h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.contact-map { display: inline-block; margin-top: 0.5rem; font-weight: 700; }
.contact-hours { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.hours-table { border-collapse: collapse; width: 100%; }
.hours-table th, .hours-table td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--sand); }
.hours-table th { font-weight: 600; padding-right: 1rem; }
.hours-note { margin: 0.75rem 0 0; color: var(--ink-soft); }

.not-found { min-height: 50vh; }

/* Footer */
.site-footer { background: var(--teal-dark); color: var(--white); padding: 3rem 0 1.5rem; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--amber); }   /* 7.9:1 on the footer */
.site-footer-inner { display: grid; gap: 1.5rem; }
.footer-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer-tagline { color: #d7e6e9; }
.site-footer address { margin-bottom: 0.75rem; }
.site-footer-inner p { margin-bottom: 0.4rem; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.2); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.95rem; color: #d7e6e9; }
.footer-bottom p { margin: 0 0 0.3rem; }

/* Wider screens */
@media (min-width: 48rem) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .event-list { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .site-footer-inner { grid-template-columns: 2fr 2fr 1fr; }
}
@media (min-width: 56rem) {
  .hero-inner, .text-image-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .text-image--image-left .text-image-media { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.contact-item p:last-child { margin-bottom: 0; }
