/* =============================================================================
   site.css — the design of the church's /welcome/ page on community.twobirdschurch.com
   (source: ../portal/welcome.html). publish-portal.mjs copies it into the
   tbc-church-portal must-use plugin. (It was first the design of the old www
   pages, retired 2026-10-02.) Everything is scoped under .tbch so nothing
   leaks into the portal's header, menu or footer. Mobile first: the base rules are the phone layout, the min-width
   queries widen it.

   Voice of the design: calm, warm, readable. The brand colour is the Sky Blue
   the app and the community site use (#1D9BF0, Fluent Community's --fcom-primary-button),
   on warm cream so the illustrations sit well; the illustrations are never
   darkened or cropped. Motion: a slow cross-fade in
   the hero and a gentle hover, both off under prefers-reduced-motion.

   The three tbc-landing-page shortcodes print their own inline CSS. The
   ".tbch …" selectors below out-rank it (one extra class), so the shortcode
   output is re-themed here without touching the plugin.
   ============================================================================= */

.tbch {
  --tb-ink: #2b2322;
  --tb-muted: #6a5d56;
  --tb-cream: #fbf7f1;
  --tb-sand: #f3eadd;
  --tb-card: #fffdf9;
  --tb-line: #e6dccd;
  --tb-accent: #1d9bf0;       /* brand Sky Blue — button fills */
  --tb-accent-dark: #1a8cd8;
  --tb-link: #1270b3;         /* the same blue, deep enough for text on cream */
  --tb-navy: #15202b;         /* the community site's dark mode */
  --tb-sage: #1d9bf0;
  --tb-sage-light: #e8f5fd;   /* --fcom-highlight-bg */
  --tb-radius: 16px;
  --tb-wrap: 1120px;
  color: var(--tb-ink);
  font-size: 17px;
  line-height: 1.65;
}
.tbch *, .tbch *::before, .tbch *::after { box-sizing: border-box; }
.tbch h1, .tbch h2, .tbch h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--tb-ink);
  line-height: 1.2;
  margin: 0 0 .5em;
}
.tbch p { margin: 0 0 1em; }
.tbch a { color: var(--tb-link); }
.tbch img { max-width: 100%; height: auto; display: block; }

.tbch-wrap { max-width: var(--tb-wrap); margin: 0 auto; padding: 0 20px; }
.tbch-section { padding: 56px 0; }
.tbch-section--sand { background: var(--tb-sand); }
.tbch-eyebrow {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tb-muted); margin-bottom: .6em;
}
.tbch-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.tbch-head h2 { font-size: 28px; margin: 0; }
.tbch-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.tbch-more:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.tbch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tbch-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--tb-accent); color: #fff !important;
  font-weight: 600; text-decoration: none; border: 2px solid var(--tb-accent);
  transition: background .2s ease, border-color .2s ease;
}
.tbch-btn:hover { background: var(--tb-accent-dark); border-color: var(--tb-accent-dark); }
.tbch-btn--ghost { background: rgba(255,255,255,.9); color: var(--tb-ink) !important; border-color: rgba(255,255,255,.9); }
.tbch-btn--ghost:hover { background: #fff; border-color: #fff; }
.tbch-btn--line { background: transparent; color: var(--tb-link) !important; }
.tbch-btn--line:hover { background: var(--tb-accent); color: #fff !important; }

/* ===== Hero: words beside the art, the art uncropped ===== */
.tbch-hero { background: var(--tb-cream); padding: 32px 0 48px; }
.tbch-hero-grid { display: grid; gap: 28px; align-items: center; }
.tbch-hero h1 { font-size: 38px; margin-bottom: .35em; }
.tbch-lead { font-size: 19px; color: var(--tb-muted); margin-bottom: 1em; max-width: 34em; }
.tbch-quote { font-style: italic; font-size: 15px; color: var(--tb-muted); margin-bottom: 1.5em; }
.tbch-art { position: relative; aspect-ratio: 2 / 1; border-radius: 24px; overflow: hidden;
  background: var(--tb-sand); box-shadow: 0 16px 40px rgba(43,35,34,.14); }
.tbch-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: tbch-fade 35s infinite; }
/* Every delay starts 1.05s (the 3% fade-in) early, so the first picture is
   already in at page load instead of fading up from the bare sand box. */
.tbch-art img:nth-child(1) { opacity: 1; animation-delay: -1.05s; }
.tbch-art img:nth-child(2) { animation-delay: 5.95s; }
.tbch-art img:nth-child(3) { animation-delay: 12.95s; }
.tbch-art img:nth-child(4) { animation-delay: 19.95s; }
.tbch-art img:nth-child(5) { animation-delay: 26.95s; }
@keyframes tbch-fade { 0% { opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 23% { opacity: 0; } 100% { opacity: 0; } }

/* ===== Jump links (easy navigation on a phone) ===== */
.tbch-jump { background: var(--tb-cream); border-bottom: 1px solid var(--tb-line); }
.tbch-jump ul { list-style: none; margin: 0 auto; padding: 10px 20px; max-width: var(--tb-wrap); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tbch-jump ul::-webkit-scrollbar { display: none; }
.tbch-jump a {
  display: block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--tb-line);
  color: var(--tb-ink); text-decoration: none; font-size: 15px; white-space: nowrap;
}
.tbch-jump a:hover { border-color: var(--tb-accent); color: var(--tb-link); }
.tbch [id] { scroll-margin-top: 72px; }

/* ===== About ===== */
.tbch-about { display: grid; gap: 32px; align-items: center; }
.tbch-about h2 { font-size: 30px; }
.tbch-about img { border-radius: var(--tb-radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ===== Offer cards ===== */
.tbch-cards { display: grid; gap: 20px; margin-top: 40px; }
.tbch-card {
  display: flex; flex-direction: column; background: var(--tb-card);
  border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden;
  color: inherit; text-decoration: none; transition: box-shadow .2s ease;
}
.tbch-card:hover { box-shadow: 0 8px 24px rgba(43,35,34,.10); }
.tbch-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tbch-card-body { padding: 18px 20px 22px; }
.tbch-card h3 { font-size: 21px; margin-bottom: .3em; }
.tbch-card p { color: var(--tb-muted); margin: 0; }

/* ===== Visit ===== */
.tbch-visit { display: grid; gap: 24px; background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 28px 24px; }
.tbch-visit h2 { font-size: 28px; }
.tbch-facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.tbch-facts li { display: flex; gap: 12px; }
.tbch-facts .tbch-label { min-width: 72px; color: var(--tb-muted); font-weight: 600; }

/* ===== Shortcode output, re-themed ===== */
.tbch .events-list, .tbch .video-list, .tbch .blog-list { display: grid; gap: 20px; grid-template-columns: 1fr; }
.tbch .event-entry, .tbch .video-entry, .tbch .blog-entry {
  display: flex; flex-direction: column; align-items: stretch; background: var(--tb-card);
  border: 1px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden;
  color: inherit; text-decoration: none; transition: box-shadow .2s ease;
}
.tbch .event-entry:hover, .tbch .video-entry:hover, .tbch .blog-entry:hover { box-shadow: 0 8px 24px rgba(43,35,34,.10); }
.tbch .event-header, .tbch .video-header, .tbch .blog-header { order: 2; text-align: left; margin: 0; padding: 16px 20px 0; width: 100%; }
.tbch .event-body { padding: 0; }
.tbch .event-body, .tbch .video-body, .tbch .blog-body { display: contents; text-align: left; }
.tbch .event-thumbnail, .tbch .video-thumbnail, .tbch .blog-thumbnail {
  order: 1; float: none; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0;
  object-fit: cover; border-radius: 0; box-shadow: none; transform: none;
}
.tbch .events-list .event-title, .tbch .video-list .video-title, .tbch .blog-list .blog-title {
  background: none; color: var(--tb-ink); text-align: left; padding: 0; margin: 0 0 4px;
  font-size: 20px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px;
}
.tbch .event-badge {
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; background: var(--tb-sand); color: var(--tb-muted);
  box-shadow: none; text-transform: none;
}
.tbch .event-date { background: none; padding: 0; border-radius: 0; text-align: left; color: var(--tb-link); font-weight: 600; font-size: 15px; margin: 0; }
.tbch .event-rsvp, .tbch .event-rsvp.urgent, .tbch .event-rsvp.closed { background: none; padding: 0; border: 0; text-align: left; font-size: 14px; color: var(--tb-muted); margin: 4px 0 0; }
.tbch .event-description, .tbch .video-description, .tbch .blog-description {
  order: 3; padding: 8px 20px 20px; margin: 0; font-size: 15px; color: var(--tb-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: left;
}

/* ===== Your first Sunday ===== */
.tbch-h2 { font-size: 30px; }
.tbch-actions--spaced { margin-top: 28px; }
.tbch-steps { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; }
.tbch-step { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 20px 22px; }
.tbch-step-time { display: inline-block; font-weight: 700; color: var(--tb-link); font-size: 15px; margin-bottom: 4px; }
.tbch-step h3 { font-size: 21px; margin-bottom: .25em; }
.tbch-step p { color: var(--tb-muted); margin: 0; }
.tbch-note { background: var(--tb-sage-light); border-radius: var(--tb-radius); padding: 16px 20px; color: var(--tb-ink); margin: 0 0 24px; }

.tbch-visit-note { font-size: 15px; color: var(--tb-muted); margin: 0 0 20px; }
.tbch-band .tbch-visit-note { margin: 0 0 20px; }

/* ===== Is this for you ===== */
.tbch-values { display: grid; gap: 16px; margin: 28px 0 0; }
.tbch-value { border-left: 3px solid var(--tb-sage); padding: 4px 0 4px 18px; }
.tbch-value h3 { font-size: 22px; margin-bottom: .2em; }
.tbch-value p { color: var(--tb-muted); margin: 0; }

/* ===== Events as a scannable list ===== */
.tbch-events .events-list { gap: 0; grid-template-columns: 1fr !important; border-top: 1px solid var(--tb-line); }
.tbch-events .event-entry { border: 0; border-bottom: 1px solid var(--tb-line); border-radius: 0; background: transparent; }
.tbch-events .event-entry:hover { box-shadow: none; background: var(--tb-card); }
.tbch-events .event-thumbnail, .tbch-events .event-description { display: none; }
.tbch-events .event-header { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 4px; }
.tbch-events .event-date { order: -1; }

/* ===== Closing band + phone bar ===== */
.tbch-band { background: var(--tb-sage-light); color: var(--tb-ink); border-radius: 24px; padding: 36px 28px; text-align: center; }
.tbch-band h2 { font-size: 30px; }
.tbch-band p { color: var(--tb-muted); }
.tbch-band .tbch-actions { justify-content: center; }
.tbch-bar { display: none; }
@media (max-width: 699px) {
  .tbch-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--tb-card); border-top: 1px solid var(--tb-line); box-shadow: 0 -4px 16px rgba(43,35,34,.08);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .tbch-bar a { flex: 1; text-align: center; padding: 10px 4px; border-radius: 12px; font-weight: 600;
    font-size: 14px; text-decoration: none; color: var(--tb-ink); background: var(--tb-sand); }
  .tbch-bar a:first-child { background: var(--tb-accent); color: #fff; }
  .tbch--has-bar { padding-bottom: 72px; }
  body:has(.tbch-bar) #callnowbutton { display: none !important; } /* the bar replaces the floating phone */
}

/* ===== Inner pages (contact, thanks, documents) ===== */
.tbch-pagehead { padding: 48px 0 40px; }
.tbch-pagehead h1 { font-size: 36px; margin-bottom: .3em; }
.tbch-intro { font-size: 19px; color: var(--tb-muted); max-width: 640px; }
.tbch-contact { display: grid; gap: 24px; }
.tbch-visit--stack { grid-template-columns: 1fr !important; align-content: start; }
.tbch-form { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 28px 24px; }
.tbch-form h2 { font-size: 26px; }
.tbch .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.tbch .gform_wrapper textarea, .tbch .gform_wrapper select {
  border: 1px solid var(--tb-line); border-radius: 10px; padding: 12px 14px; font-size: 16px; background: #fff; width: 100%;
}
.tbch .gform_wrapper input:focus, .tbch .gform_wrapper textarea:focus { outline: 2px solid var(--tb-accent); outline-offset: 1px; border-color: var(--tb-accent); }
.tbch .gform_wrapper .gfield_label, .tbch .gform_wrapper legend { font-weight: 600; font-size: 15px; }
.tbch .gform_wrapper .gform_footer input[type=submit], .tbch .gform_wrapper .gform_footer button {
  min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--tb-accent); color: #fff; font-weight: 600; font-size: 16px;
}
.tbch .gform_wrapper .gform_footer input[type=submit]:hover, .tbch .gform_wrapper .gform_footer button:hover { background: var(--tb-accent-dark); }
.tbch-doc { max-width: 760px; }
.tbch-doc h1 { font-size: 26px; margin-top: 1.6em; }
.tbch-doc h2 { font-size: 22px; margin-top: 1.5em; }
.tbch-doc h3, .tbch-doc h4 { font-size: 19px; margin-top: 1.3em; }
.tbch-doc ul, .tbch-doc ol { padding-left: 1.2em; margin: 0 0 1em; }
@media (min-width: 700px) {
  .tbch-pagehead { padding: 72px 0 56px; }
  .tbch-pagehead h1 { font-size: 48px; }
  .tbch-contact { grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
  .tbch-form { padding: 36px; }
}

/* ===== App page ===== */
.tbch-app h1 { font-size: 36px; }
.tbch-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tbch-badges a { display: block; }
.tbch-badges img, .tbch-about .tbch-badges img { height: 54px; width: auto; max-width: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.tbch-about img.tbch-phone { width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: auto; object-fit: contain; border-radius: 28px; box-shadow: 0 12px 32px rgba(43,35,34,.18); }

/* ===== Wider screens ===== */
@media (min-width: 700px) {
  .tbch-section { padding: 80px 0; }
  .tbch-hero { padding: 56px 0 72px; }
  .tbch-hero-grid { grid-template-columns: 5fr 6fr; gap: 48px; }
  .tbch-hero h1 { font-size: 52px; }
  .tbch-steps { grid-template-columns: repeat(3, 1fr); }
  .tbch-values { grid-template-columns: repeat(3, 1fr); }
  .tbch-band { padding: 56px 40px; }
  .tbch-h2 { font-size: 38px; }
  .tbch-head h2 { font-size: 34px; }
  .tbch-about { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .tbch-about h2 { font-size: 38px; }
  .tbch-cards { grid-template-columns: repeat(3, 1fr); }
  .tbch .events-list, .tbch .video-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .tbch .blog-list { grid-template-columns: repeat(2, 1fr); }
  .tbch-visit { grid-template-columns: 1fr 1fr; padding: 40px; align-items: center; }
}
@media (min-width: 1000px) {
  .tbch .blog-list { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tbch * { transition: none !important; }
  .tbch-art img { animation: none; }
  html { scroll-behavior: auto; }
}
