:root {
  --green: #078f42;
  --green-dark: #06662f;
  --red: #df241d;
  --ink: #15201a;
  --muted: #5d6b63;
  --violet: #2d1a73;
  --cream: #fbfaf6;
  --white: #ffffff;
  --line: rgba(21, 32, 26, 0.12);
  --shadow: 0 22px 60px rgba(18, 33, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(21, 32, 26, 0.12);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover {
  background: rgba(7, 143, 66, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  place-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(18px, 5vw, 72px) 72px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(3, 63, 31, 0.94), rgba(45, 26, 115, 0.82) 58%, rgba(223, 36, 29, 0.78)),
    url("assets/rccg-logo.png") center right 8vw / min(54vw, 650px) no-repeat,
    var(--green-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  right: clamp(-80px, -4vw, 0px);
  bottom: clamp(18px, 8vw, 82px);
  width: min(38vw, 420px);
  opacity: 0.16;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

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

.hero .eyebrow {
  color: #aef2c9;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 12vw, 9.8rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 5rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 30px rgba(157, 24, 18, 0.28);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.64);
}

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

.hero-details {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  left: clamp(18px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-band {
  background: var(--white);
}

.two-column,
.location-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.service-grid,
.ministry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.ministry-list article {
  min-height: 225px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(21, 32, 26, 0.08);
}

.service-card p,
.ministry-list p,
.contact-section p {
  color: var(--muted);
}

.service-time {
  margin: 0 0 10px;
  color: var(--green-dark) !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
}

.service-icon {
  position: relative;
}

.icon-worship::before {
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.icon-worship::after {
  width: 4px;
  height: 16px;
  border-radius: 99px;
}

.icon-word::before {
  width: 22px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 2px 8px 8px 2px;
  background: transparent;
}

.icon-word::after {
  width: 3px;
  height: 22px;
  border-radius: 99px;
}

.icon-prayer::before {
  width: 22px;
  height: 4px;
  border-radius: 99px;
}

.icon-prayer::after {
  width: 4px;
  height: 22px;
  border-radius: 99px;
}

.location-section {
  color: var(--white);
  background: linear-gradient(110deg, var(--violet), #0b6f3b 58%, var(--green-dark));
}

.location-section .eyebrow {
  color: #bdf4d2;
}

address {
  margin-top: 22px;
  font-style: normal;
  font-size: 1.12rem;
}

.map-panel {
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 16px);
  box-shadow: var(--shadow);
}

.map-panel span {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.map-panel strong {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.ministries {
  padding-top: clamp(58px, 7vw, 96px);
}

.contact-section {
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(21, 32, 26, 0.1);
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(21, 32, 26, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfbf8;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(7, 143, 66, 0.18);
  border-color: var(--green);
}

.contact-form .button {
  width: max-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #111812;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 840px) {
  .site-header {
    min-height: 72px;
    padding-inline: 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    color: var(--ink);
    border-radius: 8px;
  }

  .brand span {
    max-width: 180px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 104px;
    background:
      linear-gradient(118deg, rgba(3, 63, 31, 0.96), rgba(45, 26, 115, 0.82) 62%, rgba(223, 36, 29, 0.78)),
      url("assets/rccg-logo.png") center bottom 8vh / min(86vw, 460px) no-repeat,
      var(--green-dark);
  }

  .hero-media {
    display: none;
  }

  .hero-details {
    position: relative;
    inset: auto;
    margin-top: 42px;
  }

  .two-column,
  .location-layout,
  .contact-layout,
  .service-grid,
  .ministry-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .ministry-list article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.8rem);
  }

  .hero-actions,
  .hero-details,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .contact-form .button {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }
}
