/* ============================================================
   Restoration Christian Church — Gateway Assembly
   Bolder pass: literal arch motif, kente-stripe accents,
   stronger type scale, deeper contrast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --sand: #F7F2E9;
  --sand-deep: #EFE7D6;
  --ink: #1C1812;
  --ink-soft: #4A4439;
  --gold: #C89B3C;
  --gold-deep: #9C7626;
  --gold-bright: #E0AE42;
  --green: #2F4F3A;
  --green-deep: #1D3527;
  --clay: #A4432D;
  --white: #FFFDF8;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;

  --max: 1180px;
  --arch-radius: 140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; }

p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

/* ---------- Kente stripe bar — signature heritage motif ---------- */
.kente-bar {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 36px,
    var(--green) 36px, var(--green) 56px,
    var(--clay) 56px, var(--clay) 68px,
    var(--ink) 68px, var(--ink) 72px
  );
}

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 233, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,24,18,0.1);
}

nav.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand .mark {
  width: 34px;
  height: 40px;
  position: relative;
  display: inline-block;
}
.brand .mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--gold-deep);
  border-bottom: none;
  border-radius: 17px 17px 0 0;
}
.brand .mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 3px;
  background: var(--clay);
}

.navlinks { display: flex; gap: 32px; font-size: 0.92rem; font-weight: 600; }
.navlinks a { position: relative; padding-bottom: 6px; }
.navlinks a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 3px;
  background: var(--gold);
  border-radius: 4px 4px 0 0;
  transition: width 0.25s ease, left 0.25s ease;
}
.navlinks a:hover::after, .navlinks a.active::after { width: 100%; left: 0; }
.navlinks a.active { color: var(--clay); }

.nav-cta {
  background: var(--clay);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.2s ease;
}
.nav-cta:hover { background: #8a3724; transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); }

@media (max-width: 760px) {
  .navlinks {
    display: none; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sand); padding: 18px 28px 24px;
    border-bottom: 1px solid rgba(28,24,18,0.1);
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 0; }
  .menu-toggle { display: block; }
  nav.site { position: relative; }
}

/* ---------- Arch motif — literal architectural signature ---------- */
.arch-row {
  display: flex;
  width: 100%;
  line-height: 0;
}
.arch-row svg { width: 100%; height: auto; display: block; }

.threshold {
  border-top-left-radius: var(--arch-radius);
  border-top-right-radius: var(--arch-radius);
  overflow: hidden;
  position: relative;
}
.threshold::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--gold) 0 28px, var(--green) 28px 44px, var(--clay) 44px 52px
  );
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

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

.hero h1 { margin: 18px 0 22px; }
.hero .lede { font-size: 1.12rem; max-width: 480px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold-bright);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(200,155,60,0.4);
}
.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}

/* Literal arch graphic in hero */
.hero-arch-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--arch-radius) var(--arch-radius) 28px 28px;
  background: linear-gradient(165deg, var(--green) 0%, var(--green-deep) 75%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-arch-art::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1.5px solid rgba(224,174,66,0.45);
  border-radius: calc(var(--arch-radius) - 22px) calc(var(--arch-radius) - 22px) 10px 10px;
}
.hero-arch-art .stripe {
  position: absolute;
  top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 24px, var(--clay) 24px 34px, var(--sand) 34px 40px);
}
.hero-arch-art .caption {
  position: relative;
  color: rgba(247,242,233,0.92);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  padding: 30px;
  line-height: 1.5;
}

/* ---------- Service times strip ---------- */
.times-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  border-radius: 22px;
  overflow: hidden;
}
.times-strip > div {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid rgba(247,242,233,0.14);
}
.times-strip > div:last-child { border-right: none; }
.times-strip .day { font-family: var(--display); font-size: 1.25rem; color: var(--white); margin-bottom: 6px; }
.times-strip .time { color: var(--gold-bright); font-weight: 700; font-size: 0.95rem; }

@media (max-width: 700px) {
  .times-strip { grid-template-columns: 1fr; }
  .times-strip > div { border-right: none; border-bottom: 1px solid rgba(247,242,233,0.14); }
}

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

.bg-deep { background: var(--sand-deep); }
.bg-ink { background: var(--ink); color: var(--sand); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(247,242,233,0.74); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 34px 30px;
  border: 1px solid rgba(28,24,18,0.08);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 30px; right: 30px; height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.card .num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 16px;
}

.pill {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(247,242,233,0.7);
  padding: 72px 0 30px;
  border-top-left-radius: var(--arch-radius);
  border-top-right-radius: var(--arch-radius);
  position: relative;
}
footer.site::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 28px, var(--green) 28px 44px, var(--clay) 44px 52px);
  border-top-left-radius: var(--arch-radius);
  border-top-right-radius: var(--arch-radius);
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
footer.site h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
footer.site .brand { color: var(--white); }
footer.site .brand .mark::before { border-color: var(--gold); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 11px; font-size: 0.92rem; }
footer.site li a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 26px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 72px 0 60px; position: relative; }
.page-head .eyebrow { display: block; margin-bottom: 16px; }
.page-head h1 { max-width: 760px; }
.page-head p { max-width: 560px; margin-top: 18px; font-size: 1.05rem; }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid rgba(28,24,18,0.18); background: var(--white);
  font-family: var(--body); font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-field textarea { min-height: 120px; resize: vertical; }

.giving-card {
  background: var(--white); border-radius: 20px; padding: 38px;
  border: 1px solid rgba(28,24,18,0.08); border-left: 5px solid var(--gold);
}
.giving-card .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--clay); font-weight: 800; margin-bottom: 8px; }
.giving-card .value { font-family: var(--display); font-size: 1.45rem; margin-bottom: 20px; }

/* ---------- Leadership ---------- */
.leader-card { text-align: center; }
.leader-photo {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(155deg, var(--sand-deep), #ddcd9e);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border: 3px solid var(--gold);
  max-width: 170px; margin-left: auto; margin-right: auto;
  font-family: var(--display); font-size: 2.6rem; color: var(--gold-deep);
}
.leader-role { color: var(--clay); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }
.leader-qual { margin-top: 10px; font-size: 0.88rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  aspect-ratio: 1; border-radius: 16px;
  background: linear-gradient(155deg, var(--sand-deep), #d6c596);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep); font-family: var(--display); font-size: 0.85rem;
  text-align: center; padding: 14px; border: 1px solid rgba(28,24,18,0.08);
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Membership form states ---------- */
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 700; display: none; }
.form-status.success { color: var(--green); display: block; }
.form-status.error { color: var(--clay); display: block; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Tenets list ---------- */
.tenet-item { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid rgba(28,24,18,0.12); }
.tenet-item:last-child { border-bottom: none; }
.tenet-num { font-family: var(--display); color: var(--clay); font-weight: 700; font-size: 1.3rem; flex-shrink: 0; width: 40px; }
.tenet-item h3 { font-size: 1.08rem; margin-bottom: 7px; }
.tenet-item p { font-size: 0.96rem; }

/* ---------- Photo hero (real photography, full-bleed) ---------- */
.hero-photo {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
  margin-bottom: 0;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,24,18,0.15) 0%, rgba(28,24,18,0.55) 65%, rgba(28,24,18,0.85) 100%);
}
.hero-photo-content { position: relative; max-width: 720px; }
.hero-photo-content h1 { margin: 18px 0 22px; }
.hero-photo-content .lede { font-size: 1.1rem; max-width: 500px; margin-bottom: 32px; }

.btn-outline-light {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(247,242,233,0.85);
  color: var(--white);
  transition: transform 0.18s ease, background 0.2s ease;
}
.btn-outline-light:hover { background: rgba(247,242,233,0.12); transform: translateY(-2px); }

/* ---------- Photo cards (ministry-style, real photography) ---------- */
.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,24,18,0) 40%, rgba(28,24,18,0.85) 100%);
}
.photo-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px;
}
.photo-card-content h3 { color: var(--white); margin-bottom: 16px; }

/* ---------- Gallery (real photos) ---------- */
.gallery-photo {
  aspect-ratio: 1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(28,24,18,0.08);
}

/* ---------- Floating sticky CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(28,24,18,0.28);
  transition: transform 0.2s ease;
}
.float-cta:hover { transform: scale(1.06); }

@media (max-width: 600px) {
  .float-cta { width: 72px; height: 72px; font-size: 0.7rem; bottom: 18px; right: 18px; }
}

/* ---------- Real logo image ---------- */
.logo-img {
  height: 42px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
footer.site .logo-img { height: 46px; }

/* ---------- Ministries grid (About page) ---------- */
.ministry-item {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(28,24,18,0.08);
  border-left: 4px solid var(--green);
  font-weight: 600;
  font-size: 0.98rem;
}

.leader-photo-img {
  background-size: cover;
  background-position: center top;
  font-size: 0;
}

/* ---------- Ministry items as clickable links ---------- */
.ministry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(28,24,18,0.08);
  border-left: 4px solid var(--green);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  transition: transform 0.15s ease, border-left-color 0.15s ease, box-shadow 0.15s ease;
}
.ministry-item:hover {
  transform: translateX(4px);
  border-left-color: var(--clay);
  box-shadow: 0 8px 20px rgba(28,24,18,0.08);
}
.ministry-arrow {
  color: var(--gold-deep);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 10px;
}
