/* RCCG EM - Modern static church website */

:root {
  --bg: #f4f8ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-soft: #edf4ff;
  --text: #10203d;
  --muted: #5e708f;
  --primary: #0c55d6;
  --primary-strong: #083e9e;
  --accent: #1fa5f2;
  --red: #dc1f2d;
  --green: #17975f;
  --gold: #f2c14e;
  --border: rgba(12, 85, 214, 0.13);
  --shadow: 0 20px 55px rgba(12, 85, 214, 0.12);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(31, 165, 242, 0.18), transparent 32%),
    radial-gradient(circle at right, rgba(12, 85, 214, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

a { color: inherit; }

.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 12px;
  z-index: 30;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(9, 40, 100, 0.08);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  min-width: 0;
}

.brand-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #e9f2ff);
  border: 1px solid rgba(12, 85, 214, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 20px rgba(12, 85, 214, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--primary-strong);
  background: rgba(12, 85, 214, 0.08);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.hero,
.page-hero,
.section,
.impact,
.split-section { margin-top: 28px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: 600px;
}

.hero-content,
.page-hero,
.section,
.split-section,
.impact,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-content { padding: clamp(30px, 5vw, 64px); }

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
h3 { font-size: 1.22rem; }

p {
  margin-top: 0;
  color: var(--muted);
}

.hero-text {
  font-size: 1.12rem;
  max-width: 58ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 19px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus { transform: translateY(-1px); }

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 85, 214, 0.24);
}

.button.primary:hover,
.button.primary:focus {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
}

.button.secondary {
  background: rgba(255,255,255,0.74);
  color: var(--primary-strong);
  border: 1px solid rgba(12, 85, 214, 0.1);
}

.button.secondary:hover,
.button.secondary:focus { background: rgba(12, 85, 214, 0.06); }

.image-placeholder {
  border: 1.5px dashed rgba(12, 85, 214, 0.28);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.85), rgba(223,242,255,0.92)),
    var(--surface-soft);
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--primary-strong);
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31,165,242,0.24), transparent 65%);
  pointer-events: none;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 6px solid var(--red);
  border-left-color: var(--green);
  opacity: 0.18;
}

.image-placeholder small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
}

.image-placeholder img {
  width: 100%;
  max-width: 320px;
  height: 380px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.image-placeholder h2 {
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.image-placeholder p {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

.image-placeholder.map {
  padding: 0;
  overflow: hidden;
  min-height: 220px;
}

.image-placeholder.map img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

.image-placeholder.large { min-height: 460px; }
.image-placeholder.small { min-height: 160px; margin-bottom: 18px; }
.image-placeholder.portrait { min-height: 230px; }
.image-placeholder.map { min-height: 260px; margin-bottom: 24px; }

.page-hero { padding: clamp(30px, 5vw, 58px); }

.page-hero p {
  max-width: 70ch;
  font-size: 1.06rem;
}

.section { padding: clamp(24px, 4vw, 42px); }

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.cards,
.team-grid,
.report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.team-card,
.stat-card {
  border: 1px solid rgba(12, 85, 214, 0.08);
  background: rgba(255,255,255,0.88);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(12, 85, 214, 0.06);
}

.card p,
.team-card p { margin-bottom: 0; }

.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px;
}

.impact div {
  text-align: center;
  padding: 20px 18px;
  background: rgba(255,255,255,0.64);
  border-radius: 20px;
  border: 1px solid rgba(12,85,214,0.08);
}

.impact strong {
  display: block;
  font-size: 1.85rem;
  color: var(--primary-strong);
}

.impact span {
  color: var(--muted);
  font-weight: 700;
}

.split-section {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.split-section p {
  max-width: 68ch;
  margin-bottom: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.team-card { text-align: center; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.contact-form,
.contact-card { padding: clamp(24px, 4vw, 36px); }

.contact-form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 800;
  color: var(--primary-strong);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(12,85,214,0.12);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255,255,255,0.9);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31,165,242,0.18);
  border-color: var(--primary);
}

.form-note {
  font-size: 0.92rem;
  margin: 0;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  color: var(--primary-strong);
  font-size: 2rem;
  margin-top: 8px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  overflow: hidden;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid rgba(12,85,214,0.08);
  text-align: left;
}

th {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

tr:last-child td { border-bottom: 0; }

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 30px;
  background: linear-gradient(135deg, #082b72, #0c55d6);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 36px rgba(8,43,114,0.22);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav { justify-content: flex-start; }

  .hero,
  .split-grid,
  .contact-layout { grid-template-columns: 1fr; }

  .hero { min-height: auto; }

  .cards,
  .team-grid,
  .report-summary,
  .impact { grid-template-columns: 1fr 1fr; }

  .split-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  main,
  .site-header,
  .site-footer { width: min(100% - 20px, 1160px); }

  .cards,
  .team-grid,
  .report-summary,
  .impact { grid-template-columns: 1fr; }

  .nav a { padding: 8px 10px; }

  .brand { align-items: flex-start; }

  .brand-text small { font-size: 0.72rem; }

  .image-placeholder.large { min-height: 320px; }
}


.portrait-image {
  width: 100%;
  max-width: 380px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  justify-self: center;
  box-shadow: var(--shadow);
}


.organogram-section {
  align-items: center;
}

.organogram-section > div:first-child {
  flex: 0 0 40%;
}

.organogram-placeholder {
  flex: 0 0 52%;
  padding: 14px;
  max-height: 420px;
  min-height: auto;
  overflow: auto;
  background: #fff;
}

.organogram-placeholder img {
  width: 100%;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.report-downloads {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.report-download-card {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(12, 85, 214, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(12, 85, 214, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.report-download-card:hover,
.report-download-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(12, 85, 214, 0.12);
}

.report-download-card span {
  display: inline-flex;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.report-download-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.report-download-card small {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 900px) {
  .report-downloads {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .report-downloads {
    grid-template-columns: 1fr;
  }
}
