/* Booking-site look: matches www.tableofhopeict.org (colors, Woodford Bourne Pro,
   header, footer). app.css is a copy from the service-day app (npm run
   booking:sync); everything specific to this site lives here and wins over it. */

@font-face { font-family: 'Woodford Bourne Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/WoodfordBournePro-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Woodford Bourne Pro'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/WoodfordBournePro-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Woodford Bourne Pro'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/WoodfordBournePro-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Woodford Bourne Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/WoodfordBournePro-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Woodford Bourne Pro'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/WoodfordBournePro-Bold.woff2') format('woff2'); }

:root {
  /* the church site's tokens */
  --brand-blue: #27569a;
  --brand-blue-dark: #1d4178;
  --brand-green: #02a689;
  --brand-green-dark: #017f69;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #f4f7fa;
  /* point the copied app.css at them */
  --blue: var(--brand-blue);
  --navy: var(--brand-blue-dark);
  --blue-soft: #eaf0f8;
  --font: 'Woodford Bourne Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
}
html, body { font-family: var(--font); line-height: 1.55; }
body { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
body > .wrap, body > .login-wrap { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-green); }
button, .btn { font-family: var(--font); font-weight: 600; border-radius: var(--radius); }
button.primary { background: var(--brand-blue); border-color: var(--brand-blue); }
button.primary:hover { background: var(--brand-blue-dark); }
.card > h2 { font-family: var(--font); }

/* ---------- header (like the church site's) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .inner { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 72px; }
.site-header .logo { height: 52px; width: auto; display: block; }
.site-header .spacer { flex: 1; }
.site-header nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.site-header nav a, .site-header .who, .site-header button.link {
  font-family: var(--font); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); padding: 8px 10px; border-radius: 6px; background: none; border: none; cursor: pointer; opacity: 1;
}
.site-header nav a:hover, .site-header button.link:hover { color: var(--brand-green); background: none; }
.site-header nav a.on { color: var(--brand-blue); box-shadow: inset 0 -3px 0 var(--brand-green); border-radius: 0; }
.site-header .who { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-blue); color: #e8eef5; margin-top: 48px; flex-shrink: 0; }
.site-footer a { color: #e8eef5; }
.site-footer a:hover { color: var(--brand-green); }
.site-footer .grid { max-width: 1200px; margin: 0 auto; padding: 36px 20px; display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer img { height: 54px; width: auto; margin-bottom: 12px; }
.site-footer .motto { font-weight: 600; font-size: 17px; color: var(--brand-green); margin: 0 0 6px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.site-footer p { color: #cbd5e1; font-size: 15px; margin: 0 0 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 20px; font-size: 13px; color: #9aa9bd; text-align: center; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* ---------- pages ---------- */
.login { border-top: 4px solid var(--brand-green); }
.login h1 { font-family: var(--font); color: var(--brand-blue); }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 18px 0; }
.card > h2 { color: var(--brand-blue); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.closed-row { opacity: .55; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } .fields2 { grid-template-columns: 1fr; } }

input[type=email], input[type=time], input:not([type]) {
  font-family: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 9px; width: 100%; background: #fff; color: var(--ink);
}
input[type=email]:focus, input[type=time]:focus, input:not([type]):focus { outline: 2px solid var(--brand-blue); outline-offset: -1px; border-color: var(--brand-blue); }
.row > input.grow { width: auto; }
.chip input[type=radio], .chip input[type=checkbox] { width: auto; }
.login-wrap { min-height: 0; padding: 48px 20px; }

.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: #8c2f39; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
