/* Reflection Church — shared site stylesheet
   Brand: real logo (Hornbill Heavy, shipped as a flattened image) + Poppins for
   everything else. Palette is the church's actual brand colors — confirmed
   against a real photo of their sandwich-board sign (navy background, an
   orange -> yellow -> teal rainbow arc, star accents, maroon/black text). */

:root {
  --ink: #381420;      /* brand maroon — primary text */
  --paper: #ffffff;
  --paper-alt: #eef4f7; /* light navy tint for alternating sections */
  --navy: #0d3f5b;
  --orange: #f47915;
  --teal: #0f8686;
  --yellow: #ffec55;
  --black: #000000;
  --gray-300: #dfd6d9;
  --ink-soft: #6d4d58;
  --brand-gradient: linear-gradient(90deg, var(--orange), var(--yellow) 50%, var(--teal));
  --accent: var(--orange);
  --max-w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Top nav ---- */
.topbar {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--brand-gradient);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark { display: inline-flex; text-decoration: none; }
.wordmark img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.current { color: var(--orange); font-weight: 600; }
.call-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}
.call-chip:hover { background: var(--ink); border-color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phones: one-line bar (logo | CTA | hamburger); links drop down below it */
@media (max-width: 760px) {
  .topbar { padding: 10px 0; }
  .topbar .wrap { flex-wrap: nowrap; gap: 8px; padding: 0 16px; }
  .wordmark { margin-right: auto; }
  .wordmark img { height: 26px; }
  .call-chip { font-size: 13px; padding: 7px 12px; }
  .nav-toggle { display: inline-flex; margin-right: -8px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 16px 12px;
    font-size: 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--gray-300); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ---- Page hero (interior pages) ---- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--gray-300); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { margin-bottom: 0; }

/* ---- Home hero ---- */
.hero { padding: 64px 0 56px; }
.hero-photo {
  aspect-ratio: 16/8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
h1 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 20ch;
}
h1 .warm { color: var(--orange); }
.lede {
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1px solid var(--navy);
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper-alt); }

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-300);
  font-size: 14px;
  color: var(--ink-soft);
}
.fact-strip strong {
  color: var(--ink);
  font-weight: 700;
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

/* ---- Full-screen home hero ---- */
.hero-full {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}
.hero-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-full-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,63,91,.4) 0%, rgba(13,63,91,.62) 45%, rgba(15,12,14,.93) 100%);
}
.hero-full-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 24px 64px;
}
.hero-full-content .eyebrow { color: var(--yellow); }
.hero-full-content .eyebrow:before { background-color: var(--yellow); }
.hero-full-content h1 { color: var(--paper); }
.hero-full-content .lede { color: #eaf1f5; }
.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #dce9ef;
  margin: 4px 0 0;
}
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

.hero-sticker {
  position: absolute;
  z-index: 3;
  top: 108px;
  right: 32px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 600;
  transform: rotate(-8deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.hero-sticker strong { font-size: 19px; font-weight: 800; }
@media (max-width: 640px) {
  .hero-sticker { top: 92px; right: 18px; width: 82px; height: 82px; font-size: 11px; }
  .hero-sticker strong { font-size: 15px; }
  .hero-full-content { padding: 100px 20px 48px; }
}

.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) rotate(45deg);
  animation: heroScrollCue 1.8s ease-in-out infinite;
}
@keyframes heroScrollCue {
  0%, 100% { margin-top: 0; opacity: 0.55; }
  50% { margin-top: 10px; opacity: 1; }
}

/* Entrance animation for hero content (plays once, on load) */
.hero-full-content > * { animation: heroRise 0.8s ease both; }
.hero-full-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-full-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-full-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-full-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-full-content > *:nth-child(5) { animation-delay: 0.45s; }
.hero-full-content > *:nth-child(6) { animation-delay: 0.5s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll-reveal (progressive enhancement, see /assets/site.js) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-full-content > *, .hero-scroll-cue { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Section shell ---- */
section { padding: 64px 0; }
section.alt { background: var(--paper-alt); }
section.dark { background: var(--navy); color: var(--paper); }
section.dark .eyebrow, section.dark .eyebrow:before { color: var(--yellow); }
section.dark h2 { color: var(--paper); }
section.dark .section-lede { color: #cfe1ea; }
section.tight { padding: 48px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.eyebrow:before {
  content: '';
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L13.8 9.2L21 11L13.8 12.8L12 20L10.2 12.8L3 11L10.2 9.2L12 2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L13.8 9.2L21 11L13.8 12.8L12 20L10.2 12.8L3 11L10.2 9.2L12 2Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
h2 {
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.18;
  margin: 0 0 20px;
  max-width: 24ch;
}
h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.section-lede {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 40px;
}
.body-copy { max-width: 68ch; }
.body-copy p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---- Who we are / two-col photo ---- */
.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.who-photo {
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
}
.who-photo img { width: 100%; height: 100%; object-fit: cover; }
.who-grid p { margin: 0 0 16px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* ---- Photo mosaic (photo-heavy home/about sections) ---- */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 130px);
  gap: 12px;
}
.photo-mosaic a, .photo-mosaic div { border-radius: 8px; overflow: hidden; }
.photo-mosaic img, .gallery-strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-mosaic > *:hover img, .gallery-strip .photo:hover img { transform: scale(1.06); }
.photo-mosaic .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 720px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 130px); }
  .photo-mosaic .big { grid-column: span 2; grid-row: span 1; }
}

/* ---- Horizontal gallery strip ---- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-strip .photo { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Card grids (what to expect / next steps / values) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.card {
  border-top: 3px solid transparent;
  border-image: var(--brand-gradient) 1;
  padding-top: 18px;
}
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.card .btn { margin-top: 16px; padding: 10px 20px; font-size: 14px; }

/* ---- Numbered list (values / beliefs) ---- */
.numbered-list { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.numbered-list li {
  counter-increment: item;
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-300);
}
.numbered-list li:before {
  content: counter(item);
  font-weight: 700;
  font-size: 16px;
  color: var(--orange);
  flex-shrink: 0;
  width: 28px;
}
.numbered-list li p { margin: 0; color: var(--ink-soft); }
.numbered-list li strong { display: block; margin-bottom: 4px; color: var(--ink); }

.todo-note {
  font-size: 13px;
  color: var(--ink);
  background: #fff3d6;
  border: 1px dashed var(--orange);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 24px;
}

/* ---- Staff grid ---- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.staff-photo {
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-photo .initials {
  font-weight: 700;
  font-size: 30px;
  color: var(--teal);
}
.staff-name { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.staff-title { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---- Form ---- */
.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
@media (max-width: 760px) {
  .form-shell { grid-template-columns: 1fr; }
}
.form-card {
  background: var(--paper);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
.submit-btn { width: 100%; border: none; }
.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}
#success-msg {
  display: none;
  text-align: center;
  padding: 40px 16px;
}
#success-msg h3 { margin: 0 0 10px; }
#success-msg p { color: var(--ink-soft); margin: 0; }

/* ---- Location / footer ---- */
.location-block { display: flex; flex-direction: column; gap: 24px; }
.location-block .col { min-width: 220px; }
.location-block h3 {
  font-size: 14px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.location-block p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .location-grid { grid-template-columns: 1fr; }
}
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  min-height: 280px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--gray-300);
  font-size: 13px;
  color: var(--ink-soft);
}
footer .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer .footer-links a { text-decoration: none; }
footer .footer-links a:hover { color: var(--orange); }
