/* Freedom Baptist site styles. Ported from preview/index.html (concept 4 "Morning Light", light theme). */
:root {
  color-scheme: light;
  --ivory: #FBF9F4; --mist: #EEF2F7; --navy: #1B2F4E; --navy-deep: #13223A; --sky: #6F8FB8;
  --gold: #B8913A; --gold-text: #8A6A23; --crimson: #9B2335; --ink: #1E2533; --muted: #5A6475;
  --line: #DCD6C8; --white: #FFFFFF;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body { background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.1; margin: 0; text-wrap: balance; font-weight: 500; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }


.hero { position: relative; overflow: hidden; color: var(--navy); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 90% 60% at 50% 105%, rgba(232,206,150,0.55) 0%, rgba(242,227,190,0.35) 40%, transparent 72%), linear-gradient(180deg, var(--white) 0%, var(--white) 35%, var(--ivory) 100%); }
.rays { position: absolute; left: 50%; bottom: -40%; width: 160%; aspect-ratio: 1; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(184,145,58,0.07) 0deg 4deg, transparent 4deg 14deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 55%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 55%); pointer-events: none; }
.hero header { position: relative; }
.hero header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; flex-wrap: wrap; max-width: 1120px; }
.wordmark { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.04em; text-decoration: none; }
.wordmark em { color: var(--gold-text); font-style: normal; }
.hero nav { display: flex; gap: 1.5rem; font-size: 0.88rem; letter-spacing: 0.04em; flex-wrap: wrap; }
.hero nav a { text-decoration: none; color: var(--muted); }
.hero nav a:hover { color: var(--navy); }
.hero .stage { position: relative; padding-block: 5rem 9rem; }
.hero .stage .wrap { display: grid; gap: 1.5rem; }
.hero .label { color: var(--gold-text); }
.big-verse { margin: 0; font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.12; max-width: 20ch; text-wrap: balance; color: var(--navy); transition: opacity 0.8s; }
.big-ref { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); transition: opacity 0.8s; }
.fade { opacity: 0; }
.dots { display: flex; gap: 0.5rem; }
.dots button { width: 26px; height: 3px; border: 0; padding: 0; background: rgba(27,47,78,0.18); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold); }
.cta { justify-self: start; display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1rem; background: var(--navy); color: var(--white); text-decoration: none; padding: 0.85rem 1.5rem; font-weight: 600; letter-spacing: 0.02em; }
.cta:hover { background: var(--navy-deep); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.ctas .cta { margin-top: 0; }
.cta.alt { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.cta.alt:hover { background: var(--white); }
.cta.alt span { color: var(--gold-text); }
.menu-btn { display: none; align-items: center; gap: 0.55rem; background: none; border: 1px solid var(--line); color: var(--navy); font: 600 0.9rem var(--body); padding: 0.5rem 0.85rem; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform 0.2s, background 0.2s; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.join .wrap { padding-block: 4.5rem; display: grid; grid-template-columns: 180px 1fr 1fr; gap: 2rem; }
.join .wrap > * { min-width: 0; }
.join h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.join p { color: var(--muted); margin: 0 0 1rem; }
.join ol { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink); }
.join li { margin-bottom: 0.4rem; }
.join form { display: grid; gap: 0.85rem; }
.join label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.join input, .join textarea, .join select { font: 1rem var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 0.65rem 0.75rem; width: 100%; }
.join input:focus, .join textarea:focus, .join select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.join button[type="submit"] { justify-self: start; background: var(--navy); color: var(--white); border: 0; padding: 0.85rem 1.5rem; font: 600 1rem var(--body); cursor: pointer; }
.join button[type="submit"]:hover { background: var(--navy-deep); }
.form-msg { font-size: 0.9rem; color: var(--gold-text); font-weight: 600; }
.cta span { color: #E3C98A; }

.statement .wrap { padding-block: 5rem 4rem; display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.statement .wrap > * { min-width: 0; }
.lines { display: grid; gap: 0.2rem; }
.lines p { margin: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; color: var(--navy); }
.lines p:nth-child(2) { padding-left: 1.5em; }
.lines p:nth-child(3) { padding-left: 3em; color: var(--gold-text); font-style: italic; }

hr.orn { border: 0; height: 18px; margin: 0; background: radial-gradient(circle, var(--gold) 2px, transparent 2.5px) center / 18px 18px no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }

.letter .wrap { padding-block: 4.5rem; display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.letter .wrap > * { min-width: 0; }
.letter .body { max-width: 60ch; }
.letter h2 { font-size: 2.4rem; margin-bottom: 1.25rem; }
.letter p { margin: 0 0 1rem; }
.letter p:first-of-type::first-letter { font-family: var(--display); font-size: 3.6em; float: left; line-height: 0.85; padding: 0.08em 0.1em 0 0; color: var(--gold-text); }
.sig { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--navy); margin-top: 0.5rem; }
.sig small { display: block; font-family: var(--body); font-style: normal; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

.times { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.times .wrap { padding-block: 4rem; display: grid; grid-template-columns: 180px 1fr 1fr; gap: 2rem; }
.times .wrap > * { min-width: 0; }
.times h3 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.trow { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums lining-nums; }
.trow b { font-family: var(--display); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.addr { color: var(--muted); }
.addr a { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.gather .wrap { padding-block: 4.5rem; display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.gather .wrap > * { min-width: 0; }
.ev { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ev:first-child { border-top: 1px solid var(--line); }
.ev .d { font-family: var(--display); font-size: 2.4rem; color: var(--navy); line-height: 1; font-variant-numeric: lining-nums; }
.ev .d small { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-text); display: block; margin-bottom: 0.2rem; }
.ev h3 { font-size: 1.55rem; }
.ev p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.ev .t { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.fund { background: #F5F0E4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fund .wrap { padding-block: 4rem; display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.fund .wrap > * { min-width: 0; }
.fund h2 { font-size: 2.2rem; }
.fund p { color: var(--muted); max-width: 55ch; }
.bar { position: relative; height: 2px; background: var(--line); margin: 2rem 0 0.75rem; }
.bar i { position: absolute; left: 0; top: -1px; height: 4px; width: 62%; background: var(--gold); }
.bar i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.fn { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; color: var(--muted); }
.fn b { font-family: var(--display); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.link { display: inline-block; margin-top: 1.25rem; font-weight: 600; color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.note { font-size: 0.75rem; color: var(--muted); font-style: italic; }

footer { background: var(--white); color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
footer .wrap { padding-block: 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; max-width: 1120px; }
footer .wordmark { color: var(--navy); }

@media (max-width: 820px) {
  .statement .wrap, .letter .wrap, .times .wrap, .gather .wrap, .fund .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .menu-btn { display: inline-flex; }
  .hero header .wrap { position: relative; }
  .hero nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; z-index: 10; flex-direction: column; gap: 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(27,47,78,0.12); }
  .hero nav.open { display: flex; }
  .hero nav a { color: var(--navy); font-size: 1.05rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
  .hero nav a:last-child { border-bottom: 0; }
  .join .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .ev { grid-template-columns: 4.5rem 1fr; }
  .ev .t { grid-column: 2; }
  .lines p:nth-child(2) { padding-left: 0.75em; } .lines p:nth-child(3) { padding-left: 1.5em; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
