/* Estevan Alliance Church — faithful rebuild of the Wix site.
   Colours are sampled from the original theme. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --charcoal: #212020;
  --charcoal-2: #242323;
  --charcoal-3: #282626;
  --navy: #002e5d;
  --navy-deep: #0c1e3a;
  --heading: #183c73;
  --blue: #245aad;
  --blue-hover: #1b4787;
  --plum: #1d0621;
  --plum-deep: #140520;
  --text: #212020;
  --muted: #62625f;
  --white: #fff;
  --font: "Figtree", "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --header-h: 68px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute; 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: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--text); padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid #6fa6ff; outline-offset: 2px; }
.center { text-align: center; }
.strong { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1300px; margin: 0 auto; height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand img { width: 290px; height: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a,
.site-nav > ul > li > button {
  display: block; padding: 8px 10px;
  font: 500 15px/1.2 Roboto, Helvetica, Arial, var(--font);
  color: var(--white); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > button:hover,
.site-nav a[aria-current="page"] { color: #b9cdf0; }
.site-nav li ul {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--charcoal); box-shadow: 0 6px 16px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav li:last-child ul { left: auto; right: 0; }
.site-nav li.has-sub:hover > ul,
.site-nav li.has-sub:focus-within > ul,
.site-nav li.has-sub.open > ul { opacity: 1; visibility: visible; transform: none; }
.site-nav li ul a {
  display: block; padding: 8px 18px; color: var(--white);
  text-decoration: none; font-size: 15px; line-height: 1.3;
}
.site-nav li ul a:hover { background: #333; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: var(--white); position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .brand img { width: 220px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--charcoal);
    overflow-y: auto; display: none; padding: 8px 0 32px;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a, .site-nav > ul > li > button {
    width: 100%; text-align: left; padding: 14px 24px; font-size: 18px;
  }
  .site-nav li.has-sub > button::after { content: " +"; opacity: .7; }
  .site-nav li.has-sub.open > button::after { content: " −"; }
  .site-nav li ul {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    display: none; padding: 0 0 8px; background: #1a1919;
  }
  .site-nav li.has-sub:hover > ul, .site-nav li.has-sub:focus-within > ul { display: none; }
  .site-nav li.has-sub.open > ul { display: block; }
  .site-nav li ul a { padding: 10px 40px; font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  font: 700 15px/1 var(--font); letter-spacing: .02em;
  transition: background .15s;
}
.btn-pill {
  background: var(--blue); color: var(--white);
  padding: 12px 28px; border-radius: 999px;
}
.btn-pill:hover { background: var(--blue-hover); }
.btn-black {
  background: #000; color: var(--white); padding: 11px 42px;
  letter-spacing: .12em; font-size: 14px;
}
.btn-black:hover { background: #222; }
.btn-square { background: #4a90c2; color: var(--white); padding: 12px 36px; font-weight: 500; font-size: 14px; }
.btn-square:hover { background: #3b7aa8; }
.btn-black-pill { background: #000; color: var(--white); padding: 11px 48px; border-radius: 999px; font-weight: 500; }
.btn-black-pill:hover { background: #333; }

/* ---------- Heroes ---------- */
.hero {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 270px; padding: 48px var(--gutter);
  background: #111 var(--hero) center / cover no-repeat;
  color: var(--white);
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-content { position: relative; }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-home { min-height: min(640px, 78vh); }
.hero-home h1 { font-size: clamp(38px, 6vw, 76px); margin-bottom: 18px; }

.page-head { padding: 40px var(--gutter); text-align: center; color: var(--white); }
.page-head h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; }
.band-plum-deep { background: var(--plum-deep); }

/* ---------- Home tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile-img { aspect-ratio: 1 / 0.94; background: var(--img) center / cover no-repeat; }
.tile-text {
  background: var(--charcoal-2); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px;
}
.tile-text h2 { font-size: 22px; font-weight: 500; letter-spacing: .08em; }
.tile-text .btn-pill { padding: 10px 30px; font-size: 14px; }
@media (max-width: 800px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bands ---------- */
.band { color: var(--white); padding: 64px var(--gutter); }
.band-navy { background: var(--navy); }
.band-plum { background: var(--plum); color: var(--white); }
.band-charcoal { background: var(--charcoal-2); }
.band-black { background: #000; }

.display-title { font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; margin-bottom: 26px; position: relative; }
.display-title::after {
  content: ""; display: block; width: 20px; height: 1px; background: currentColor;
  margin: 6px auto 0; opacity: .8;
}
.display-title.dark { color: #000; }
.display-title.dark::after { display: none; }

.watch-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
}
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-text h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; margin-bottom: 26px; }
.watch-text p { font-weight: 600; font-size: 17px; margin-bottom: 30px; }
@media (max-width: 800px) { .watch-inner { grid-template-columns: 1fr; } }

.quote { position: relative; overflow: hidden; }
.quote::before {
  content: "\201D"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  font: 700 380px/1 Georgia, serif; color: rgba(255,255,255,.08); pointer-events: none;
}
.quote blockquote { position: relative; max-width: 760px; margin: 0 auto; text-align: center; font-size: 20px; font-weight: 600; line-height: 1.5; }
.quote blockquote p { margin: 0; }
.quote cite { font-style: normal; display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-half { padding: 64px 48px; }
.split-half.center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.split-half .display-title { margin-bottom: 22px; }
.split-half:not(.band-plum) .display-title { color: #000; }
.split-half p.strong { max-width: 380px; font-size: 16px; line-height: 1.75; }
.identity ul { margin: 0; padding-left: 20px; }
.identity p { margin: 0; }
.split-copy { max-width: 400px; margin: 0 auto; font-size: 15px; line-height: 1.65; }
.split-photo { padding: 60px 0 60px 16px; display: flex; align-items: flex-start; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-half { padding: 48px var(--gutter); }
  .split-photo { padding: 0; }
}

.photo-band { height: clamp(220px, 32vw, 460px); background: var(--img) center / cover no-repeat; }
.photo-band.tall { height: clamp(220px, 30vw, 420px); }
.photo-band.blurred { position: relative; overflow: hidden; background: none; }
.photo-band.blurred::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--img) center / cover no-repeat; filter: blur(22px);
}

.priorities ul { margin: 0; padding-left: 22px; }
.priorities p, .priorities li { font-size: 15px; }
.sof-cta { padding: 40px var(--gutter) 30px; }
.sof-cta .display-title { margin-bottom: 20px; }

.believe p { font-size: 15px; line-height: 1.6; }

/* ---------- Content sections ---------- */
.section { padding: 56px var(--gutter); }
.container { max-width: 980px; margin: 0 auto; }
.container.narrow { max-width: 760px; }
.prose { max-width: 760px; font-size: 15.5px; }
.prose a { color: var(--text); }
.section-title {
  color: var(--heading); font-size: clamp(26px, 2.6vw, 32px); font-weight: 700;
  margin-bottom: 40px; position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -14px; width: 30px; height: 3px; background: var(--charcoal);
}
.with-logo { position: relative; }
.ministry-logo { float: right; width: 200px; margin: 0 0 16px 24px; }
@media (max-width: 600px) { .ministry-logo { float: none; margin: 0 0 24px; } }
.sof ol { padding-left: 22px; margin: 0 0 1.5em; }
.sof li { margin-bottom: .25em; line-height: 1.6; }

.pastor { padding-top: 40px; }
.pastor-inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.pastor-inner img { width: 300px; }
@media (max-width: 700px) { .pastor-inner { grid-template-columns: 1fr; } }

/* ---------- Gallery slider ---------- */
.gallery { position: relative; background: #fff; }
.gallery-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery-track a { display: block; height: clamp(240px, 32vw, 464px); }
.gallery-track img { height: 100%; width: auto; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 64px; border: 0; background: rgba(0,0,0,.25); cursor: pointer;
  display: grid; place-items: center;
}
.gallery-nav:hover { background: rgba(0,0,0,.45); }
.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }
.gallery-nav svg, .lb-nav svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(0,0,0,.92);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lb-close {
  position: absolute; top: 10px; right: 14px; font-size: 40px; line-height: 1; color: #fff;
  background: none; border: 0; cursor: pointer; padding: 4px 10px;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0;
  cursor: pointer; padding: 16px;
}
.lb-nav.prev { left: 4px; }
.lb-nav.next { right: 4px; }

/* ---------- Calendar ---------- */
.upcoming { padding-bottom: 24px; }
.calendar-embed { position: relative; height: 620px; border: 1px solid #e3e3e3; }
.calendar-embed iframe { width: 100%; height: 100%; border: 0; }
.calendar-fallback {
  border: 1px solid #e3e3e3; padding: 28px; text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto;
}
.calendar-fallback p:last-child { margin: 0; }

/* ---------- Bulletin ---------- */
.bulletin { padding-top: 32px; }
.bulletin-title { color: var(--heading); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; margin-bottom: 20px; }
.bulletin-sub { color: var(--heading); font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.bulletin-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bulletin-form input {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #bbb; min-width: 220px;
}
.bulletin-form .form-status { flex-basis: 100%; }

.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Donate ---------- */
.donate {
  background: #111 var(--hero) center / cover no-repeat;
  padding: 48px var(--gutter) 56px;
}
.donate-card {
  background: #000; color: var(--white); max-width: 880px; min-height: 340px; margin: 0 auto;
  padding: 32px 40px 40px 34%;
}
.donate-card h2 { font-size: 26px; font-weight: 600; margin-bottom: 26px; }
.donate-card p { margin: 0; font-size: 15px; }
.donate-card ul { margin: 0; padding-left: 26px; font-size: 15px; }
@media (max-width: 700px) { .donate-card { padding: 28px 24px; min-height: 0; } }

/* ---------- Forms ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #c62828; }

.line-form .row, .prayer-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.line-form label, .prayer-form label:not(.check) { display: block; margin-bottom: 14px; }
.line-form span, .prayer-form label:not(.check) span { display: block; font-size: 15px; }
.line-form input, .line-form textarea,
.prayer-form input:not([type=checkbox]), .prayer-form textarea {
  display: block; width: 100%; font: inherit; font-size: 15px;
  background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 6px 0; color: inherit;
  border-radius: 0; resize: vertical;
}
.line-form input:focus, .line-form textarea:focus,
.prayer-form input:focus, .prayer-form textarea:focus { outline: none; border-bottom-width: 2px; }

.prayer-wrap { max-width: 640px; margin-top: 36px; }
.prayer-title { font-size: 26px; font-weight: 600; margin-bottom: 24px; }
.prayer-form span { font-size: 13px !important; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 8px 0 32px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: #000; }
@media (max-width: 600px) {
  .line-form .row, .prayer-form .row, .checks { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { color: var(--white); }
.footer-cols { display: grid; grid-template-columns: 1fr 1.26fr; }
.footer-info { background: var(--charcoal-2); padding: 36px 40px 48px 7.5%; font-size: 15px; }
.footer-info p { margin: 0 0 14px; line-height: 1.5; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.footer-logo { width: 330px; margin: 0 0 26px -10px; }
.social svg { width: 24px; height: 24px; display: block; }
.hours { margin: 26px 0 36px; }
.hours p { margin: 0; line-height: 1.45; }
.hours-title { font-weight: 700; }
.btn-misconduct {
  display: inline-block; background: #f2f2f2; color: #000 !important; text-decoration: none !important;
  font-weight: 700; font-size: 13px; letter-spacing: .12em; padding: 8px 8px;
}
.btn-misconduct:hover { background: #fff; }
.footer-form { background: var(--charcoal-3); padding: 30px 7.5% 48px 30px; }
.connect-title { display: flex; align-items: center; gap: 12px; font: 700 24px/1.2 Helvetica, Arial, var(--font); margin-bottom: 30px; }
.connect-title .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--white); flex: none; }
.line-form { max-width: 480px; margin-left: 8px; }
.line-form label span { color: #ddd; }
.btn-submit-text {
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px 4px;
  font: 700 24px/1.2 Helvetica, Arial, var(--font);
}
.btn-submit-text:hover { text-decoration: underline; }
.footer-bottom { background: var(--navy-deep); padding: 16px 5.9% 48px; font: 12px/1.4 Helvetica, Arial, var(--font); }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-info, .footer-form { padding: 36px var(--gutter); }
  .footer-logo { width: 260px; margin-left: -6px; }
  .line-form { margin-left: 0; }
}
@media (max-width: 560px) {
  .bulletin-form { flex-direction: column; align-items: stretch; }
  .bulletin-form input { min-width: 0; width: 100%; }
}

/* ---------- Home: Members links ---------- */
.members { padding-bottom: 64px; }
.members .container { max-width: 1240px; }
.member-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.member-links a {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: 24px 22px; border: 1px solid #e3e3e3; border-radius: 6px;
  text-decoration: none; color: var(--text); background: var(--white);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.member-links a:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(0,46,93,.12); transform: translateY(-2px); }
.ml-icon { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.ml-icon-drawn { display: grid; place-items: center; background: var(--navy); }
.ml-icon-drawn svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ml-text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ml-text strong { color: var(--heading); font-size: 19px; font-weight: 700; }
.ml-text > span { font-size: 14.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.ml-text em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--blue); margin-top: 4px; }
@media (max-width: 1180px) { .member-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .member-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .member-links { grid-template-columns: 1fr; gap: 12px; }
  .member-links a { flex-direction: row; align-items: flex-start; padding: 18px 16px; }
}

/* ---------- Serve page ---------- */
.serve-areas-wrap { padding-top: 0; }
.serve-areas {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.serve-areas li { border: 1px solid #e3e3e3; border-left: 4px solid var(--navy); border-radius: 4px; padding: 18px 20px; }
.serve-areas h3 { color: var(--heading); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.serve-areas p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.serve-areas p.serve-note { margin-top: 8px; color: var(--navy); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .serve-areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .serve-areas { grid-template-columns: 1fr; } }
.plan-to-protect p { font-size: 16px; line-height: 1.7; }
.plan-to-protect a { color: #fff; }
.serve-form-wrap { max-width: 700px; }
.form-intro { margin-bottom: 24px; }
fieldset.serve-checks { border: 0; padding: 0; margin: 8px 0 18px; }
fieldset.serve-checks legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.ptp-check { margin: 0 0 22px; font-size: 14.5px; }
