/* New Impact Community Church. Layout idea: big typographic statements, card paths for each kind of visitor, alternating charcoal and brick bands. */
/* Self-hosted fonts: no requests to Google, so visitor IP addresses are not sent to a third party. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
:root {
  --brick: #A92D01;
  --brick-dark: #861F00;
  --char: #2B2829;
  --ink: #2E2B2C;
  --stone: #F5F1EE;
  --line: #D9D2CD;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1180px;
  --radius: 8px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--char); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.band-dark :focus-visible, .band-brick :focus-visible, .site-footer :focus-visible, .announce :focus-visible { outline-color: #fff; }

/* Announcement */
.announce { background: var(--char); color: #fff; font-size: .95rem; }
.announce .container { display: flex; gap: 12px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; }
.announce a { color: #fff; font-weight: 700; }
.announce button { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; margin-left: auto; }
.announce[hidden] { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--char); margin-right: auto; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-top: 3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--char); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--stone); color: var(--brick); }
.nav-toggle { display: none; background: none; border: 2px solid var(--char); border-radius: var(--radius); padding: 8px 12px; font: 700 .95rem var(--body); color: var(--char); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); font: 700 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-dark { background: var(--char); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--char); color: var(--char); background: transparent; }
.btn-outline:hover { background: var(--char); color: #fff; }
.btn-light { background: #fff; color: var(--char); }
.btn-light:hover { background: var(--stone); color: var(--brick); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--char); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.nav .btn { color: #fff; margin-left: 8px; }
.nav .btn:hover { background: var(--brick-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 14px; }
.hero h1 .accent { color: var(--brick); }
.hero .lead { font-size: 1.3rem; max-width: 34ch; color: var(--ink); margin-block: 20px 28px; }
.next-card { color: var(--ink); background: var(--stone); border: 2px solid var(--char); border-radius: var(--radius); padding: 26px; box-shadow: 8px 8px 0 var(--brick); }
.next-card .label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.next-card .when { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--char); margin: 6px 0 2px; }
.next-card .time { font-size: 1.25rem; font-weight: 700; color: var(--char); }
.next-card p { margin: 14px 0 18px; }
.next-card .btn { width: 100%; }
.next-card .btn + .btn { margin-top: 10px; }

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { font-size: 1.15rem; }
.bg-stone { background: var(--stone); }
.band-dark { background: var(--char); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-brick { background: var(--brick); color: #fff; }
.band-brick h2, .band-brick h3 { color: #fff; }
.band-dark a:not(.btn), .band-brick a:not(.btn) { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brick); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(43,40,41,.14); color: var(--ink); }
.card h3 { margin-bottom: 8px; }
.card p { flex: 1; }
.card .more { font-weight: 700; color: var(--brick); }
.card .meta { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brick); margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
.split.reverse > :first-child { order: 2; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { position: relative; padding-left: 58px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brick); color: #fff; font: 800 1.1rem var(--display); display: grid; place-items: center; }
.steps strong { display: block; color: var(--char); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.checks li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--brick); border-bottom: 3px solid var(--brick); transform: rotate(-45deg); }

/* Times */
.times { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.times th, .times td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.times thead th { background: var(--char); color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.times tbody tr:last-child td { border-bottom: 0; }
.times td:first-child { font-weight: 800; color: var(--char); white-space: nowrap; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--stone); color: var(--char); border: 1px solid var(--line); }
.pill.online { background: var(--char); color: #fff; border-color: var(--char); }
.table-wrap { overflow-x: auto; }

/* Events */
.events { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.event .date { text-align: center; background: var(--char); color: #fff; border-radius: var(--radius); padding: 10px 6px; line-height: 1; }
.event .date .m { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.event .date .d { font-family: var(--display); font-weight: 800; font-size: 2rem; margin-top: 4px; }
.event h3 { margin: 0 0 2px; font-size: 1.2rem; }
.event p { margin: 0; color: #5a5557; }
.empty { padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; }

/* Messages */
.messages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.msg { display: flex; flex-direction: column; gap: 6px; background: var(--char); color: #fff; border-radius: var(--radius); padding: 24px; text-decoration: none; min-height: 170px; }
.msg:hover { background: #000; color: #fff; }
.msg .meta { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e9b8a6; }
.msg h3 { color: #fff; margin: 0; }
.msg .go { margin-top: auto; font-weight: 700; }

/* Page header */
.page-hero { background: var(--stone); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 12px; }
.page-hero p { font-size: 1.2rem; max-width: 60ch; margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font: 700 1.15rem var(--display); color: var(--char); padding: 16px 36px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brick); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; margin: 0; }

/* Connect form */
.form-frame { width: 100%; min-height: 1150px; border: 2px solid var(--char); border-radius: var(--radius); background: #fff; }
.notice { background: var(--stone); border-left: 5px solid var(--brick); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }

/* Give */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.give-grid .card h3 { font-size: 1.25rem; }
.big { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--char); word-break: break-word; }

/* Legal prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .strong-note { font-weight: 700; }

/* Footer */
.site-footer { background: var(--char); color: #e8e3e0; padding: 56px 0 28px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--body); font-weight: 700; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f1c3b3; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .chip { background: #fff; border-radius: 12px; padding: 6px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand strong { font: 800 1.2rem var(--display); color: #fff; line-height: 1.1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-flex; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; align-items: center; justify-content: center; }
.social a:hover { background: #fff; color: var(--char); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.legal { border-top: 1px solid #5a5557; margin-top: 36px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Mobile action bar */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .cards, .cards.three, .messages, .give-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.1rem; }
  .nav .btn { margin: 8px 0 0; }
  .site-header .container { position: relative; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 48px; }
  .cards, .cards.three, .messages, .give-grid, .footer-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 68px 1fr; }
  .event .btn { grid-column: 1 / -1; }
  .times { font-size: .95rem; }
  .times th, .times td { padding: 12px 10px; }
  .times thead th { font-size: .72rem; letter-spacing: .06em; }
  .times td:first-child { white-space: normal; width: 34%; }
  .pill { font-size: .68rem; padding: 2px 8px; letter-spacing: .02em; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--char); border-top: 3px solid var(--brick); }
  .mobile-bar a { color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; text-align: center; padding: 14px 6px; }
  .mobile-bar a + a { border-left: 1px solid #5a5557; }
  .mobile-bar a:first-child { background: var(--brick); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Video */
.bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; }
.vtoggle { position: absolute; right: 16px; bottom: 16px; z-index: 3; background: rgba(25,22,23,.72); color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; padding: 8px 16px; font: 700 .85rem var(--body); cursor: pointer; }
.vtoggle:hover { background: #000; }
.hero.video { position: relative; overflow: hidden; background: #1c1a1b; color: #fff; padding: 88px 0 96px; }
.hero.video .overlay { background: linear-gradient(90deg, rgba(25,22,23,.9) 0%, rgba(25,22,23,.68) 55%, rgba(25,22,23,.4) 100%); }
.hero.video .container { position: relative; z-index: 2; }
.hero.video h1, .hero.video .lead { color: #fff; }
.hero.video h1 .accent { color: #F4B79F; }
.hero.video .eyebrow { color: #F4B79F; }
.vband { position: relative; overflow: hidden; background: #1c1a1b; color: #fff; }
.vband .overlay { background: rgba(28,26,27,.74); }
.vband .container { position: relative; z-index: 2; }
.vband h2, .vband h3 { color: #fff; }
.page-hero.video { position: relative; overflow: hidden; background: #1c1a1b; border: 0; padding: 80px 0 72px; }
.page-hero.video .overlay { background: linear-gradient(90deg, rgba(25,22,23,.88), rgba(25,22,23,.55)); }
.page-hero.video .container { position: relative; z-index: 2; }
.page-hero.video h1, .page-hero.video p { color: #fff; }

/* Click-to-load form (privacy by design: nothing from a third party loads until the visitor asks) */
.gate { border: 2px solid var(--char); border-radius: var(--radius); background: var(--stone); padding: 28px; }
.gate h3 { margin-bottom: 8px; }
.gate .btn-row { margin-top: 12px; }
.form-frame[hidden], .gate[hidden] { display: none; }
@media (max-width: 640px) {
  .hero.video { padding: 48px 0 56px; }
  .hero.video .overlay { background: rgba(25,22,23,.78); }
}

/* Chat launcher (the GrowthHub widget itself loads only after "Start chat") */
.chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 70; background: var(--brick); color: #fff; border: 0; border-radius: 99px; padding: 14px 22px; font: 700 1rem var(--body); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.chat-launch:hover { background: var(--brick-dark); }
.chat-launch[hidden], .chat-panel[hidden] { display: none; }
.chat-panel { position: fixed; right: 20px; bottom: 84px; z-index: 70; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--ink); border: 2px solid var(--char); border-radius: var(--radius); padding: 18px; box-shadow: 8px 8px 0 var(--brick); }
.chat-panel strong { font: 800 1.1rem var(--display); color: var(--char); }
.chat-panel p { font-size: .92rem; line-height: 1.5; margin: 8px 0 14px; }
@media (max-width: 640px) { .chat-launch { bottom: 82px; right: 14px; } .chat-panel { bottom: 140px; right: 16px; } }

.small { font-size: .9rem; margin-top: 10px; }

.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards.two { grid-template-columns: 1fr; } }

.card.pastor img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: 16px; }
.card.pastor p { margin: 0 0 14px; }

.big { word-break: normal; overflow-wrap: normal; white-space: nowrap; font-size: clamp(1rem, 2.3vw, 1.4rem); }
@media (max-width: 640px) { .big { font-size: clamp(1rem, 5.2vw, 1.4rem); } }
