/* New Beginnings Church — site styles */
:root {
  --green: #18803b;
  --green-dark: #116330;
  --sage: #5c7653;
  --sage-dark: #46603f;
  --sage-light: #eef2ec;
  --ink: #1f2a22;
  --text: #3d463f;
  --muted: #5f6a62;
  --line: #dde3db;
  --bg: #ffffff;
  --cream: #f7f8f4;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); padding: .4rem 0; }
.brand img { width: 120px; height: auto; }
.brand-tag { font-size: .8rem; line-height: 1.35; color: var(--muted); border-left: 1px solid var(--line); padding-left: .8rem; max-width: 12rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .8rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 44px;
}
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: .75rem .25rem; text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--green); }
.site-nav .nav-give a { color: var(--green); }
@media (max-width: 420px) { .brand-tag { display: none; } }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: .2rem; padding: 0; align-items: center; }
  .site-nav a { border: 0; font-size: .8rem; padding: .55rem .7rem; border-radius: 6px; }
  .site-nav a:hover { background: var(--sage-light); color: var(--green-dark); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
  .site-nav .nav-give a { background: var(--green); color: #fff; border-radius: 999px; padding: .55rem 1.1rem; margin-left: .4rem; }
  .site-nav .nav-give a:hover { background: var(--green-dark); color: #fff; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--sage-light); border-color: var(--sage-light); color: var(--green-dark); }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--sage-dark); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,38,24,.82) 0%, rgba(20,38,24,.55) 55%, rgba(20,38,24,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(4rem, 12vw, 8.5rem) 0; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 34rem; color: #f1f5ef; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem; }
.hero .eyebrow { color: #cde6c9; }

/* Page banner */
.page-hero { background: var(--sage); color: #fff; text-align: center; padding: clamp(2.8rem, 7vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .7rem auto 0; max-width: 40rem; color: #eef3ec; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--cream); }
.section-sage { background: var(--sage-light); }
.center { text-align: center; }
.center .btn-row { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--ink); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split-wide { grid-template-columns: 1.3fr 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { margin-bottom: .4em; }
.verse { border-left: 4px solid var(--green); padding: .3rem 0 .3rem 1.1rem; font-style: italic; color: var(--ink); }

/* Embeds */
.embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed-cal iframe { height: 640px; }
.embed-facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 2rem 1.25rem; background: var(--cream); }
.embed-facade p { margin: 0; color: var(--muted); font-size: .95rem; }
.embed-map iframe { height: 340px; }

/* Staff */
.staff { display: grid; gap: 2rem; }
@media (min-width: 800px) { .staff { grid-template-columns: 320px 1fr; gap: 3rem; } }
.staff figure { margin: 0; }
.staff img { border-radius: var(--radius); width: 100%; }
.staff figcaption { margin-top: .9rem; }
.staff figcaption strong { display: block; font-size: 1.3rem; color: var(--ink); }
.staff figcaption span { color: var(--muted); }
.book-list { padding-left: 1.2rem; }
.book-list li { margin-bottom: .45rem; }
.link-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.link-grid a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink); min-height: 60px; }
.link-grid a:hover { border-color: var(--green); color: var(--green-dark); }
.link-grid a::after { content: "↗"; color: var(--green); }

/* Beliefs */
.beliefs { display: grid; gap: 1.25rem; }
.beliefs .card h2 { font-size: 1.35rem; color: var(--green-dark); }
.beliefs .card p:last-child { margin-bottom: 0; }

/* Sermon grid */
.video-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.video-grid a { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.video-grid a:hover { border-color: var(--green); }
.video-grid .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #ccc; }
.video-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-grid .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(17,99,48,.88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; }
.video-grid .meta { padding: .9rem 1rem 1.1rem; }
.video-grid .meta strong { display: block; font-size: .98rem; line-height: 1.35; }
.video-grid .meta span { display: block; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.video-grid .meta p { font-size: .9rem; margin: .5rem 0 0; color: var(--text); line-height: 1.5; }
.banner-img { border-radius: var(--radius); margin-bottom: 2rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .3rem; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #b9c3b6; border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(24,128,59,.25); border-color: var(--green); }
.form .req { color: #a3311f; }

/* Give */
.give-card { text-align: center; max-width: 620px; margin: 0 auto; }
.give-card .note { font-size: .95rem; color: var(--muted); }

/* Footer */
.site-footer { background: #1d2a20; color: #d9e2d6; padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #bfe3c4; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; }
.footer-logo { background: #fff; border-radius: 8px; padding: .5rem .7rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 130px; }
.footer-time { font-size: 1.2rem; color: #fff; font-weight: 700; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; padding-bottom: 1rem; font-size: .88rem; color: #b8c4b4; }
.footer-bottom p { margin: 0 0 .4rem; }

/* 404 */
.notfound { text-align: center; padding: 6rem 0; }
