/* ═══════════════════════════════════════════════
   SPOGC — St. Paul's Ocean Grove Church
   "Ocean Grove at dawn" design system
   ═══════════════════════════════════════════════ */

:root {
  --ink: #0E2235;
  --ink-soft: #1B3A52;
  --foam: #F7F4ED;
  --sand: #EDE6D8;
  --tide: #2E7E78;
  --tide-light: #7FB8B2;
  --dawn: #E0A458;
  --drift: #7C7468;
  --radius: 18px;
  --maxw: 1120px;
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Karla', sans-serif;
  background: var(--foam);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Utilities ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tide);
}
.display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  font-size: 1rem;
  padding: .95em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; }
.btn-dawn { background: var(--dawn); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 2px rgba(247,244,237,.55); }
.btn-tide { background: var(--tide); color: var(--foam); }

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,34,53,.88);
  backdrop-filter: blur(10px);
  color: var(--foam);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: .01em;
}
.logo span { color: var(--dawn); }
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  opacity: .9;
}
.nav-links a:hover { opacity: 1; color: var(--dawn); }
.nav-cta {
  background: var(--dawn);
  color: var(--ink);
  padding: .55em 1.2em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: .92rem;
  white-space: nowrap;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foam);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,34,53,.96);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    gap: 16px;
  }
}

/* ── Homepage Hero ── */
.hero {
  position: relative;
  color: var(--foam);
  background:
    radial-gradient(120% 80% at 80% 110%, rgba(224,164,88,.32), transparent 55%),
    linear-gradient(178deg, #08141F 0%, #0E2235 38%, #16405C 72%, #2E7E78 105%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px 150px;
  position: relative;
  z-index: 2;
}
.hero .eyebrow { color: var(--tide-light); }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  margin: .45em 0 .4em;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--dawn); }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 34ch;
  opacity: .92;
  margin-bottom: 2em;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* times bar */
.times-bar {
  position: relative;
  z-index: 2;
  background: rgba(8,20,31,.5);
  border-top: 1px solid rgba(247,244,237,.14);
}
.times-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 10px 34px;
  flex-wrap: wrap;
  font-size: .95rem;
}
.times-inner strong { color: var(--dawn); font-weight: 700; }

/* moon */
.moon {
  position: absolute;
  top: 70px;
  right: 12%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDF6E8, #E8D9BC 60%, #C9B894);
  box-shadow: 0 0 60px 18px rgba(253,246,232,.18);
  opacity: .9;
  z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .moon { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateY(0); } to { transform: translateY(14px); } }
}
@media (max-width: 600px) { .moon { display: none; } }

/* ── Interior Hero (Start Here, Next Steps) ── */
.ihero {
  color: var(--foam);
  position: relative;
  background:
    radial-gradient(110% 90% at 85% 115%, rgba(224,164,88,.28), transparent 55%),
    linear-gradient(176deg, #08141F 0%, #0E2235 45%, #1B4B66 100%);
}
.ihero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 96px;
}
.ihero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 500;
  margin: .4em 0 .35em;
  max-width: 16ch;
}
.ihero h1 em { font-style: italic; color: var(--dawn); }
.ihero p {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 46ch;
  opacity: .92;
}
.ihero .eyebrow { color: var(--tide-light); }

/* ── Tide-line divider ── */
.tideline {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* ── Section scaffolding ── */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
  margin: .35em 0 .35em;
}
.section-head p { color: var(--drift); font-size: 1.08rem; }

/* ── Pathways (homepage) ── */
#start { background: var(--foam); }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  border: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.path:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(14,34,53,.10);
}
.path .stage {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--drift);
}
.path h3 { font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 500; }
.path p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.path .go {
  font-weight: 700;
  color: var(--tide);
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.path:hover .go { color: var(--dawn); }
.path .wave {
  height: 5px;
  width: 54px;
  border-radius: 99px;
  background: var(--tide-light);
}
.path:nth-child(2) .wave { background: var(--dawn); }
.path:nth-child(3) .wave { background: var(--tide); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* ── Connect / Gather section ── */
#connect { background: var(--ink); color: var(--foam); }
#connect .section-head p { color: rgba(247,244,237,.75); }
.connect-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.connect-card {
  background: rgba(247,244,237,.06);
  border: 1px solid rgba(247,244,237,.16);
  border-radius: var(--radius);
  padding: 34px;
}
.connect-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.connect-card p.small { font-size: .95rem; opacity: .8; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .8;
}
.field input {
  width: 100%;
  padding: .85em 1em;
  border-radius: 12px;
  border: 1px solid rgba(247,244,237,.25);
  background: rgba(8,20,31,.5);
  color: var(--foam);
  font-family: inherit;
  font-size: 1rem;
}
.field input:focus { outline: 2px solid var(--dawn); }
.fine { font-size: .8rem; opacity: .6; margin-top: 14px; }
.textline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(46,126,120,.25);
  border: 1px solid rgba(127,184,178,.4);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 26px;
}
.textline .kbd {
  font-weight: 700;
  background: var(--dawn);
  color: var(--ink);
  border-radius: 8px;
  padding: .3em .7em;
  white-space: nowrap;
}
@media (max-width: 860px) { .connect-grid { grid-template-columns: 1fr; } }

/* ── This Week / Media section ── */
#thisweek { background: var(--foam); }
.media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
}
.video-main {
  background: var(--ink);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foam);
  position: relative;
  overflow: hidden;
}
.video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
.video-main .play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--dawn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
}
.video-main .vid-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: .9rem;
  opacity: .85;
}
.clips { display: flex; flex-direction: column; gap: 16px; }
.clip {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: transform .15s ease;
}
.clip:hover { transform: translateX(4px); }
.clip .thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--tide), var(--ink-soft));
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foam);
  font-size: .7rem;
  font-weight: 700;
}
.clip strong { display: block; font-size: .98rem; line-height: 1.35; }
.clip span { font-size: .82rem; color: var(--drift); }
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } }

/* ── Invite section ── */
#invite { background: linear-gradient(180deg, var(--sand), var(--foam)); }
.invite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.invite-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.invite-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--dawn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.invite-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; }
.invite-card p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.invite-card a { font-weight: 700; color: var(--tide); text-decoration: none; }
.invite-card a:hover { color: var(--dawn); }
@media (max-width: 860px) { .invite-grid { grid-template-columns: 1fr; } }

/* ── What to Expect grid (Start Here) ── */
.expect {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fact {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.fact .ic { font-size: 1.5rem; margin-bottom: 10px; }
.fact h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.fact p { font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 980px) { .expect { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expect { grid-template-columns: 1fr; } }

/* ── FAQ (Start Here) ── */
.faq { max-width: 760px; }
details {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 14px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--tide);
  flex-shrink: 0;
  margin-left: 12px;
}
details[open] summary::after { content: "–"; }
details .answer { padding: 0 22px 20px; color: var(--ink-soft); font-size: .98rem; }

/* ── Gather panel (dark form sections) ── */
.gather { background: var(--ink); color: var(--foam); }
.gather-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}
.gather .section-head { margin-bottom: 0; }
.gather .section-head p { color: rgba(247,244,237,.78); }
.gather .eyebrow { color: var(--tide-light); }
.card {
  background: rgba(247,244,237,.06);
  border: 1px solid rgba(247,244,237,.16);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .gather-grid { grid-template-columns: 1fr; } }

/* ── Next Steps rhythm groups ── */
.rhythm { margin-bottom: 56px; }
.rhythm-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rhythm-label .wave {
  height: 5px;
  width: 54px;
  border-radius: 99px;
  background: var(--tide-light);
}
.rhythm-label h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
}
.rhythm-label span { font-size: .85rem; color: var(--drift); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14,34,53,.09);
}
.step .when {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--drift);
}
.step h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; }
.step p { font-size: .93rem; color: var(--ink-soft); flex: 1; }
.step .go { font-weight: 700; color: var(--tide); }
.step:hover .go { color: var(--dawn); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--foam);
  padding: 64px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--dawn);
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: .93rem; opacity: .85; }
footer a { text-decoration: none; }
footer a:hover { color: var(--dawn); }
.foot-bottom {
  border-top: 1px solid rgba(247,244,237,.14);
  margin-top: 48px;
  padding-top: 22px;
  font-size: .8rem;
  opacity: .6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--dawn);
  color: var(--ink);
  padding: .6em 1.2em;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }
