/* ============================================================
   Grace Fellowship Ministries — temporary site
   Recreation of the "Waves" look & feel (original CSS)
   Palette: teal #0996B0 | light blue #D6ECF3 | peach #F4BCA4
   Fonts: Rubik (headings) / Source Sans Pro (body)
   ============================================================ */

:root {
  --teal: #0996b0;
  --teal-dark: #087f95;
  --light-blue: #d6ecf3;
  --peach: #f4bca4;
  --ink: #4a4a4a;
  --heading: #3d3d3d;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', Helvetica, Arial, sans-serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Top bar / navigation ---------------- */

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease;
}
.top-bar.solid, .top-bar.scrolled { background: var(--teal); }
.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}
.logo img { height: 52px; width: auto; display: block; }

nav.primary ul { list-style: none; display: flex; gap: 38px; }
nav.primary > ul > li { position: relative; }
nav.primary a {
  color: var(--white);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 24px 0;
  display: inline-block;
}
nav.primary > ul > li > a:hover,
nav.primary > ul > li.active > a {
  box-shadow: inset 0 -3px 0 var(--white);
}
.top-bar.solid nav.primary > ul > li > a:hover,
.top-bar.solid nav.primary > ul > li.active > a {
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.85);
}

/* dropdowns */
nav.primary .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: -24px;
  background: var(--teal);
  min-width: 230px;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
nav.primary li:hover > .sub-menu { display: flex; }
nav.primary .sub-menu a {
  padding: 13px 24px;
  width: 100%;
}
nav.primary .sub-menu a:hover { background: rgba(255,255,255,.12); box-shadow: none; }

/* mobile nav */
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 34px; height: 26px; position: relative;
}
.menu-toggle span {
  position: absolute; left: 0; width: 100%; height: 3px;
  background: var(--white); border-radius: 2px;
  transition: .25s;
}
.menu-toggle span:nth-child(1){ top: 0; }
.menu-toggle span:nth-child(2){ top: 11px; }
.menu-toggle span:nth-child(3){ top: 22px; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  nav.primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--teal);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; gap: 0; padding: 10px 0; }
  nav.primary a { padding: 12px 28px; width: 100%; }
  nav.primary .sub-menu {
    display: flex; position: static; box-shadow: none;
    background: rgba(0,0,0,.12); min-width: 0;
  }
  nav.primary .sub-menu a { padding-left: 48px; }
}

/* ---------------- Hero header ---------------- */

header.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
header.hero.short { min-height: 480px; }
header.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,24,28,.45);
}
header.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-title {
  color: var(--white);
  font-size: clamp(44px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 900px;
}
.hero-sub { font-size: 20px; margin-top: 18px; max-width: 640px; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* wave divider overlapping hero bottom */
.wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.wave svg { width: 100%; height: 110px; display: block; }
.wave .st0 { fill: var(--light-blue); }
.wave.wave-white .st0 { fill: var(--white); }
.wave.wave-peach .st0 { fill: var(--peach); }

/* in-flow wave between sections */
section .wave-top {
  line-height: 0;
  margin-bottom: -1px;
}
section .wave-top svg { width: 100%; height: 110px; display: block; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 3px;
  border: 2px solid var(--teal);
  transition: .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn.ghost { background: transparent; border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--heading); }

/* ---------------- Sections ---------------- */

section.row { padding: 90px 0; }
section.lightbg { background: var(--light-blue); }
section.whitebg { background: var(--white); }
section.tealbg { background: var(--teal); color: var(--white); }
section.tealbg h2, section.tealbg h3, section.tealbg h6 { color: var(--white); }

.section-label {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}
section h2 {
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
  margin-bottom: 24px;
}
section h6 {
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.center { text-align: center; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

/* icon columns (mission / vision) */
.icon-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  text-align: center;
}
.icon-blob {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  background: var(--teal);
  color: var(--white);
  border-radius: 46% 54% 52% 48% / 48% 46% 54% 52%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

/* card grid (ministries, next gen, church life) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  border-radius: 6px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 8px 26px rgba(9,150,176,.10);
}
section.whitebg .card { background: var(--light-blue); box-shadow: none; }
.card h6 { margin-bottom: 10px; }
.card .btn { margin-top: 18px; }

/* two-column feature (who we are / teasers) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* countdown */
.countdown-band {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 34px 20px;
}
.countdown-band .label {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase; opacity: .9;
}
.countdown-band .when { font-size: 22px; font-weight: 700; margin: 6px 0 10px; font-family: 'Rubik', sans-serif; }
#countdown { font-family: 'Rubik', sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 2px; }
#countdown small { font-size: 13px; letter-spacing: 1px; opacity: .85; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(9,150,176,.25); }
.faq-item button {
  width: 100%;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: 'Rubik', sans-serif;
  font-size: 19px; font-weight: 500;
  color: var(--heading);
  padding: 20px 40px 20px 0;
  position: relative;
}
.faq-item button::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal); font-size: 26px; font-weight: 300;
}
.faq-item.open button::after { content: "–"; }
.faq-item .answer { display: none; padding: 0 0 22px; }
.faq-item.open .answer { display: block; }

/* team bios */
.bio { padding: 44px 0; border-bottom: 1px solid rgba(9,150,176,.2); }
.bio:last-child { border-bottom: 0; }
.bio h3 { font-size: 24px; margin-bottom: 14px; }
.bio p { margin-bottom: 14px; }
.elder-list { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 20px; }
.elder-list h6 { margin: 0; }

/* beliefs list */
.beliefs-list p { margin-bottom: 20px; }

/* generic prose */
.prose p { margin-bottom: 20px; }

/* contact form */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.form-grid label { font-weight: 700; font-size: 15px; }
.form-grid input, .form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #b9d9e2;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background: var(--white);
}
.form-grid textarea { min-height: 150px; resize: vertical; }

/* ---------------- Footer ---------------- */

footer.site-footer {
  background: var(--peach);
  padding: 100px 0 50px;
  text-align: center;
  color: var(--heading);
}
.contact-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 980px;
  margin: 0 auto 50px;
}
.contact-wrap .icon { font-size: 26px; color: var(--heading); margin-bottom: 12px; display: block; }
.contact-wrap h6 { font-size: 18px; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.contact-wrap p { font-size: 14px; }
.contact-wrap a { color: var(--heading); }
.contact-wrap a:hover { color: var(--teal-dark); }

.social { margin-bottom: 34px; }
.social a { color: var(--heading); font-size: 20px; margin: 0 12px; }
.copyright { font-size: 15px; opacity: .85; }
.rep-platform { font-size: 12px; opacity: .5; margin-top: 10px; }

/* footer wave lead-in */
.footer-wave { line-height: 0; background: var(--light-blue); }
.footer-wave svg { width: 100%; height: 110px; display: block; }
.footer-wave .st0 { fill: var(--peach); }
.footer-wave.from-white { background: var(--white); }

@media (max-width: 640px) {
  section.row { padding: 60px 0; }
  header.hero { min-height: 520px; }
}
