/* Gateway Church — light refresh of the Google Sites design.
   Palette from the church logo: navy ink, lime accent. */
:root {
  --navy: #1e3a6e;
  --navy-dark: #16294e;
  --lime: #c3d600;
  --ink: #1f2328;
  --muted: #5c6570;
  --paper: #fdfdfb;
  --card: #f4f5f0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--navy);
  border-bottom: 4px solid var(--lime);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
}
.site-nav a:hover, .site-nav a.current { background: rgba(255, 255, 255, 0.14); color: #fff; }
.site-nav a.current { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 6px 6px 0 0; }
.site-nav li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  background: var(--navy-dark);
  border-radius: 0 0 8px 8px;
  border-top: 3px solid var(--lime);
  padding: 0.35rem;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
.site-nav li ul a { font-weight: 400; }

/* ---------- Main ---------- */
main.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
main.page.wide { max-width: 1080px; }

.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero .logo { max-width: min(340px, 70%); height: auto; }
.lede {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 1.25rem auto 0;
  color: var(--ink);
}

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }

.photo { margin: 0 0 1.5rem; }
.photo img { width: 100%; height: auto; border-radius: 10px; }
.photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

.link-cards { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.link-cards a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  text-decoration: none;
}
.link-cards a:hover { background: #eef0e6; }
.link-cards strong { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); display: block; }
.link-cards span { color: var(--muted); font-size: 0.92rem; }

.beliefs { padding-left: 1.4rem; }
.beliefs li { margin-bottom: 1.4rem; }
.beliefs p { margin: 0; }
.beliefs .refs { color: var(--muted); font-size: 0.88rem; }

.coming-soon {
  background: var(--card);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  max-width: 560px;
}

/* ---------- Embeds ---------- */
.embed-frame {
  border: 1px solid #e2e4da;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.embed-frame iframe { display: block; width: 100%; height: 560px; border: 0; }
.embed-frame.tall iframe { height: min(78vh, 900px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 4px solid var(--lime);
  color: #d8ddea;
  font-size: 0.92rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.site-footer a { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); }
  body.nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; padding: 0.5rem; }
  .site-nav li ul {
    display: flex;
    position: static;
    background: none;
    border-top: none;
    box-shadow: none;
    padding-left: 1rem;
  }
  .cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
