/* =========================================================
   Church Landing Page — Green & White
   Edit colors in :root if you want a different shade of green
   ========================================================= */

:root {
  --green-900: #0b3d2e;
  --green-800: #0f4d3a;
  --green-700: #166534;
  --green-600: #15803d;
  --green-500: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --white: #ffffff;
  --off-white: #f8faf8;
  --text: #14241c;
  --text-muted: #3f5a4c;
  --border: #c7e6d3;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.12);
  --radius: 16px;
  --max-width: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green-900);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--white);
  color: var(--green-900);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green-600);
  box-shadow: 0 2px 12px rgba(11, 61, 46, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 700;
}

.church-name {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
  color: var(--green-900);
}

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

.hero {
  background:
    linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 55%, var(--green-500) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 8vw, 4.5rem) 0;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.25;
  font-weight: 700;
  max-width: 18ch;
  margin-inline: auto;
}

.hero-subtitle {
  margin: 1rem auto 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  opacity: 0.95;
}

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

.section {
  padding: clamp(2.5rem, 7vw, 4rem) 0;
}

.section-title {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.section-intro {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Services ---------- */

.services {
  background: var(--white);
}

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 61, 46, 0.14);
}

.service-name {
  margin: 0;
  color: var(--green-800);
  font-size: 1.1rem;
}

.service-time {
  margin: 0.45rem 0 0;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: 0.02em;
}

.service-note {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Visit / Address ---------- */

.visit {
  background: var(--off-white);
}

.visit-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.visit-copy {
  text-align: center;
}

.visit-copy .section-title,
.visit-copy .section-intro {
  text-align: center;
}

.address {
  font-style: normal;
  margin: 1.5rem 0;
  color: var(--text);
}

.address-line {
  margin: 0.25rem 0;
  font-size: 1.05rem;
}

.address a {
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(22, 101, 52, 0.25);
}

.btn-primary:hover {
  background: var(--green-900);
  color: var(--white);
  transform: translateY(-1px);
}

.map-embed {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

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

.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-name {
  margin: 0;
  font-weight: 700;
  color: var(--white);
}

.footer-copy {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------- Responsive: tablet+ ---------- */

@media (min-width: 600px) {
  .header-inner {
    gap: 1.25rem;
    padding: 1.25rem 0;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }

  .visit-copy {
    text-align: left;
  }

  .visit-copy .section-title,
  .visit-copy .section-intro {
    text-align: left;
  }

  .map-embed,
  .map-embed iframe {
    min-height: 320px;
    height: 320px;
  }
}

/* Prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .btn {
    transition: none;
  }

  .service-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
