/* ===== River of Life Apostolic Church — site styles ===== */

:root {
  --navy: #1B3A5C;
  --navy-dark: #122A44;
  --teal: #2C93B8;
  --teal-light: #4FB3D9;
  --bg-light: #F5F8FA;
  --white: #FFFFFF;
  --text: #26313D;
  --text-muted: #5A6B7A;
  --border: #E1E8EE;
  --shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
  --radius: 10px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--alt { background: var(--bg-light); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-header h2 { font-size: 2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }

.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--teal); color: var(--white); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: 46px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name-top {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.brand-text .name-bottom {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,92,0.90) 0%, rgba(18,42,68,0.90) 100%);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .btn-row { justify-content: center; }
}

.hero .eyebrow {
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.hero p {
  color: #C9D9E6;
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-times {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 26px;
}

.hero-times h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: #DCE7F0;
}
.time-row:last-child { border-bottom: none; }
.time-row strong { color: var(--white); }

/* Page header (non-home pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 10px; }
.page-hero p { color: #C9D9E6; max-width: 600px; margin: 0 auto; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(44,147,184,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 1.4rem;
}

/* Two-col content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
.split img, .split .media-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-block {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
}

/* CTA band */
.cta-band {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 26px; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
}

textarea { resize: vertical; min-height: 130px; }

/* List with checks */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Social row */
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.social-row a:hover { background: var(--teal); border-color: var(--teal); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #B9C8D6;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand span { color: var(--white); font-weight: 700; font-family: 'Poppins', sans-serif; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #B9C8D6; }
.site-footer a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #8CA0B3;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notice {
  background: #FFF7E6;
  border: 1px solid #F3D98B;
  color: #7A5A00;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* ===== Nav dropdown (Ministries) ===== */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown summary {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  user-select: none;
}
.nav-links .dropdown summary::-webkit-details-marker,
.nav-links .dropdown summary::marker {
  display: none;
  content: "";
}

.nav-links .dropdown summary:hover,
.nav-links .dropdown[open] summary,
.nav-links .dropdown summary.active {
  color: var(--teal);
}

.dropdown-caret {
  font-size: 0.65em;
  transition: transform 0.2s ease;
  color: var(--teal);
}
.nav-links .dropdown[open] .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 861px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 20;
  }
  .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
  }
  .dropdown-menu li a:hover {
    color: var(--teal);
    background: var(--bg-light);
  }
}

@media (max-width: 860px) {
  .nav-links .dropdown {
    width: 100%;
  }
  .dropdown-menu {
    padding-left: 14px;
    margin-top: 14px;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .dropdown-menu li a {
    color: var(--text-muted);
    font-size: 0.92rem;
  }
}

.dropdown-menu li a.active {
  color: var(--teal);
  font-weight: 600;
}

/* ===== Leadership team cards ===== */
.leader-card {
  text-align: center;
}

.leader-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-photo.placeholder {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.6rem;
}

.leader-role {
  display: block;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.leader-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.leader-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
  margin-bottom: 0;
}
