/* Corunna Bible Chapel — shared styles
   Colors are named by role. To change a color site-wide, edit it here once. */

:root {
  --color-brand: #8d1408;
  --color-brand-hover: #6e0f06;
  --color-on-brand: #ffffff;
  --color-text: #302c25;
  --color-text-on-image: #ffffff;
  --color-surface: #ffffff;
  --color-surface-band: #e3d8c8;
  --color-accordion: #f2f2f2;
  --color-accordion-panel: #eeebeb;
  --color-border: #302c25;
  --color-focus: #8d1408;
  --color-focus-on-brand: #ffffff;
  --color-error: #8d1408;
  --color-success: #2f5d27;
  --color-skeleton: #ebe3d7;
  --color-skeleton-shine: #f8f4ee;
  --color-scrim: rgba(94, 92, 89, 0.55);
  --color-shadow: rgba(36, 24, 24, 0.22);
  --color-shadow-soft: rgba(0, 0, 0, 0.1);

  --font-display: "Gloock", Georgia, serif;
  --font-body: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.875;
  color: var(--color-text);
  background-color: var(--color-surface);
  background-image: url("../images/strokes.svg");
  background-repeat: repeat;
  background-size: 1100px 760px;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-brand); }
a:hover { color: var(--color-brand-hover); }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--color-surface); color: var(--color-brand); font-weight: 500;
}
.skip:focus { top: 12px; outline: 3px solid var(--color-focus); outline-offset: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */

.hd {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
  min-height: 68px; padding: 12px 28px;
  background: var(--color-brand); box-shadow: 0 2px 5px var(--color-shadow-soft);
}
.brand {
  padding: 10px 0; color: var(--color-on-brand);
  font-family: var(--font-display); font-size: 25px; line-height: 1; text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.nav a {
  padding: 11px 0; color: var(--color-on-brand);
  font-weight: 500; line-height: 1.4; text-decoration: none;
}
.nav a:hover, .brand:hover, .nav a[aria-current="page"] {
  color: var(--color-on-brand); text-decoration: underline; text-underline-offset: 4px;
}
.nav-toggle {
  display: none; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--color-on-brand); border-radius: 32px;
  background: transparent; color: var(--color-on-brand);
  font-family: inherit; font-size: 17px; cursor: pointer;
}
.hd a:focus-visible, .ft a:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--color-focus-on-brand); outline-offset: 3px;
}

/* Layout */

.wrap { width: min(950px, calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.block { padding: 72px 0; text-align: center; }
.block-tight { padding: 54px 0 36px; text-align: center; }
.band { padding: 80px 0; background: var(--color-surface-band); }

.title {
  margin: 0 0 26px; text-align: center;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 3vw, 42px); line-height: 1.375;
}
.group-title {
  margin: 36px 0 16px; text-align: left;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.2vw, 31px); line-height: 1.3;
}
.group-title:first-child { margin-top: 0; }
.lede { max-width: 830px; margin: 0 auto; text-align: left; font-size: clamp(20px, 1.6vw, 22px); }
.prose { max-width: 830px; margin: 0 auto; text-align: left; }
.prose p + p { margin-top: 18px; }
.verse { margin: 28px 0 0; text-align: left; }

/* Hero */

.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 540px; padding: 96px 20px;
  text-align: center; color: var(--color-text-on-image);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: var(--color-scrim); }
.hero-inner { position: relative; width: min(950px, 100%); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.hero h1 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 5.8vw, 84px); line-height: 1.125;
}
.hero-tagline { font-size: clamp(18px, 1.4vw, 20px); }
.hero-when { margin: 10px 0 6px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; line-height: 1.5; }
.hero .actions { text-shadow: none; }

/* Buttons */

.actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 13px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px;
  border: 3px solid var(--color-brand); border-radius: 40px;
  background: var(--color-surface); color: var(--color-brand);
  font-family: inherit; font-size: 18px; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform 0.25s ease;
}
.button:hover { color: var(--color-brand); transform: scale(0.94); }
.button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.button svg { width: 15px; height: 15px; fill: currentColor; }
.button[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Schedule cards */

.schedule {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 26px; max-width: 800px; margin: 0 auto;
}
.schedule-compact { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.card {
  padding: 26px; text-align: center;
  background: var(--color-surface); border-radius: 16px;
  border-left: 6px solid var(--color-brand); border-right: 6px solid var(--color-brand);
  box-shadow: 0 4px 10px var(--color-shadow-soft);
}
.card h3 { margin: 0 0 12px; color: var(--color-brand); font-size: 24px; font-weight: 400; line-height: 1.3; }
.card p { color: var(--color-text); font-size: 19px; line-height: 1.4; }
.card-wide { grid-column: 1 / -1; }
.schedule-compact .card { padding: 22px 18px; }
.schedule-compact .card h3 { margin-bottom: 10px; font-size: 22px; }
.schedule-compact .card p { font-size: 17px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > div { flex: 1 1 420px; min-width: 0; }

/* Accordions */

.acc-list { display: flex; flex-direction: column; gap: 7px; }
.acc-item h3 { font-size: inherit; font-weight: inherit; }
.acc {
  width: 100%; min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 0; border-radius: 8px;
  background: var(--color-accordion); color: var(--color-text);
  font-family: inherit; font-size: 18px; line-height: 1.4; text-align: left; cursor: pointer;
}
.acc:hover, .acc:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.acc[aria-expanded="true"] { background: var(--color-brand); color: var(--color-on-brand); border-radius: 8px 8px 0 0; }
.acc-sym { flex: 0 0 auto; font-size: 24px; font-weight: 700; line-height: 1; transition: transform 0.3s ease; }
.acc[aria-expanded="true"] .acc-sym { transform: rotate(45deg); }
.panel {
  margin: 0 0 0; padding: 12px 18px;
  border-radius: 0 0 8px 8px; background: var(--color-accordion-panel); text-align: left;
}
.panel[hidden] { display: none; }
.panel p + p { margin-top: 6px; }
.panel a { display: inline-block; padding: 6px 0; font-weight: 500; }

/* Photos and skeleton loaders */

.frame { position: relative; margin: 0 auto; border-radius: 24px; box-shadow: 0 16px 54px var(--color-shadow); }
.frame img, .frame picture { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.skel {
  background-color: var(--color-skeleton);
  background-image: linear-gradient(100deg, transparent 30%, var(--color-skeleton-shine) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.js .fade { opacity: 0; transition: opacity 0.4s ease; }
.js .fade.shown { opacity: 1; }

/* Contact form */

.contact-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.contact-form { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-form .field-wrap { width: 100%; }
.lbl { display: block; margin: 0 0 4px 6px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.field {
  width: 100%; padding: 14px 20px;
  border: 1px solid var(--color-border); border-radius: 40px;
  background: var(--color-surface); color: var(--color-text);
  font-family: inherit; font-size: 18px;
}
textarea.field { min-height: 180px; border-radius: 24px; resize: vertical; }
.field:focus { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field[aria-invalid="true"] { border: 2px solid var(--color-error); }
.field-error { margin: 4px 0 0 6px; color: var(--color-error); font-size: 16px; font-weight: 500; }
.consent { display: flex; align-items: flex-start; gap: 13px; }
.consent input { width: 22px; height: 22px; margin: 5px 0 0; flex: 0 0 auto; accent-color: var(--color-brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { width: 100%; padding: 12px 16px; border-radius: 16px; background: var(--color-surface); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.is-error { border: 2px solid var(--color-error); color: var(--color-error); }
.form-status.is-success { border: 2px solid var(--color-success); color: var(--color-success); }

.conference-frame {
  display: block; width: min(100%, 52rem); height: 72rem; margin: 32px auto 0;
  border: 0; border-radius: 16px; background: var(--color-surface); box-shadow: 0 16px 54px var(--color-shadow);
}

/* Footer */

.ft { padding: 38px clamp(20px, 4vw, 64px); background: var(--color-brand); color: var(--color-on-brand); }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; max-width: 1280px; margin: 0 auto; }
.ft h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.25; }
.ft p { font-size: 19px; }
.ft p a { color: var(--color-on-brand); }
.ft-list { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.8; }
.ft-connect { text-align: right; }
.social { display: flex; justify-content: flex-end; gap: 24px; margin: 16px 0 0; padding: 0; list-style: none; }
.social a {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--color-surface); color: var(--color-brand); transition: transform 0.25s ease;
}
.social a:hover { transform: scale(0.9); }
.social svg { width: 55%; height: 55%; fill: currentColor; }

/* Phones */

@media (max-width: 736px) {
  .hd { padding: 12px 20px; }
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 4px 0 8px; }
  .js .nav.is-open { display: flex; }
  .nav a { width: 100%; }
  .hero { min-height: 420px; padding: 72px 20px; }
  .block, .band { padding: 56px 0; }
  .ft-connect { text-align: left; }
  .social { justify-content: flex-start; }
  .conference-frame { height: 48rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nowrap { white-space: nowrap; }
