:root {
  --body-font: Arial, Helvetica, sans-serif;
  --heading-font: Georgia, serif;
  --primary-color: #1f4d35;
  --accent-color: #b7892c;
  --page-background: #ffffff;
  --header-background: #ffffff;
  --footer-background: #10291b;
  --text-color: #1f2d25;
  --subtext-color: #4d644f;
  --card-background: #ffffff;
  --hero-overlay: rgba(18, 52, 35, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background: var(--page-background);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  font-family: var(--heading-font);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
}

h2 {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 90%);
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-background);
  border-bottom: 1px solid #d9e1dc;
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary-color);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("https://images.unsplash.com/photo-1438032005730-c779502df39b?auto=format&fit=crop&w=1600&q=80")
    center/cover;
}

.hero-content {
  padding: 100px 0;
}

.hero-content > p {
  max-width: 700px;
  font-size: 1.2rem;
}

.small-heading {
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.13em;
}

.hero .small-heading {
  color: #f2d48d;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 12px 22px;
  color: white;
  background: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #163925;
}

.button-outline {
  border-color: white;
  background: transparent;
}

.button-outline:hover {
  color: var(--primary-color);
  background: white;
}

.service-bar {
  padding: 24px 0;
  background: #f5f0e5;
}

.announcement-section {
  padding: 28px 0;
  text-align: center;
  background: #f5f0e5;
  border-top: 1px solid #d9e1dc;
  border-bottom: 1px solid #d9e1dc;
}

.announcement-section p:last-child {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.emergency-banner {
  padding: 22px 0;
  background: #7b2525;
  color: white;
  text-align: center;
}

.hidden {
  display: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-grid h3,
.service-grid p {
  margin-bottom: 4px;
}

.section {
  padding: 90px 0;
}

.light-background {
  background: #f4f7f4;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card,
.form-card {
  padding: 30px;
  border: 1px solid #d9e1dc;
  border-radius: 16px;
  background: var(--card-background);
  box-shadow: 0 14px 35px rgba(24, 55, 38, 0.08);
}

.sermon-card .text-link,
.connect-card .text-link {
  display: inline-block;
  margin-top: 16px;
}

.sermon-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  margin: 18px 0;
  border-radius: 14px;
  display: block;
}

.text-link {
  color: var(--primary-color);
  font-weight: bold;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.event-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: center;
}

.event-date {
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--primary-color);
  border-radius: 10px;
}

.event-date strong {
  font-size: 1.8rem;
  line-height: 1;
}

.ministry-grid {
  grid-template-columns: repeat(3, 1fr);
}

.prayer-section {
  color: white;
  background: #173925;
}

.form-card {
  color: var(--text-color);
}

label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: bold;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #bdc9c1;
  border-radius: 7px;
  font: inherit;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

.checkbox input {
  width: auto;
}

.form-card button {
  margin-top: 18px;
}

.form-message {
  margin-top: 14px;
  font-weight: bold;
}

.pastor-photo {
  min-height: 400px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #486151;
  background: #dce8df;
  font-weight: bold;
}

.giving-section {
  gap: 48px;
}

.giving-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.giving-support {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text-color);
}

.giving-support li {
  margin-bottom: 10px;
}

.giving-card {
  display: grid;
  gap: 24px;
  text-align: center;
}

.giving-qr {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 16px;
}

.gallery-card {
  padding-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  min-height: 130px;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.connect-card h3 {
  margin-top: 0;
}

.newsletter-section {
  padding-top: 70px;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 24px;
  padding: 50px 0 20px;
  color: white;
}

.footer-contact span,
.footer-contact p,
.footer-social p {
  margin: 0;
}

.footer-social {
  display: grid;
  gap: 10px;
}

.footer-social a {
  display: inline-block;
  color: #f2d48d;
  text-decoration: none;
}

.footer-bottom {
  padding-bottom: 50px;
  color: white;
}

@media (max-width: 1000px) {
  .cards,
  .events-grid,
  .ministry-grid,
  .newsletter-grid,
  .connect-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 5%;
    background: white;
    border-bottom: 1px solid #d9e1dc;
  }

  .nav-links.open {
    display: flex;
  }

  .section {
    padding: 65px 0;
  }
}
