:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f3efe6;
  --ink: #1b2522;
  --muted: #64726d;
  --line: rgba(31, 77, 67, 0.14);
  --green: #1f4d43;
  --green-deep: #12352e;
  --gold: #c99c4a;
  --gold-soft: #eadcc0;
  --sky: #dbe9ea;
  --shadow: 0 22px 55px rgba(18, 53, 46, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--green-deep);
  accent-color: var(--green);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.nav-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(176px, 20vw, 260px);
  height: auto;
  display: block;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--green);
  background: rgba(31, 77, 67, 0.08);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.language-switch button.active {
  color: #fff;
  background: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(rgba(18, 53, 46, 0.1), rgba(18, 53, 46, 0.1)),
    url("https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=1800&q=82") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 53, 46, 0.88) 0%, rgba(18, 53, 46, 0.6) 46%, rgba(18, 53, 46, 0.22) 100%),
    linear-gradient(0deg, rgba(18, 53, 46, 0.38), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 10vw, 112px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.message-panel,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.2;
}

.button-primary {
  background: var(--gold);
  color: #18130a;
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.button-outline {
  color: var(--green);
  border-color: var(--green);
}

.button-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  margin-right: 8px;
  fill: currentColor;
}

.youtube-button .button-icon {
  fill: #ff0000;
}

.button-icon-cutout {
  fill: #fff;
}

.button.full {
  width: 100%;
}

.welcome-band {
  background: var(--green);
  color: #fff;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(36px, 6vw, 64px) 0;
}

.welcome-grid .section-kicker,
.section-deep .section-kicker {
  color: var(--gold-soft);
}

.welcome-grid h2,
.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.welcome-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tint {
  background: var(--surface-soft);
}

.section-deep {
  color: #fff;
  background:
    linear-gradient(rgba(18, 53, 46, 0.9), rgba(18, 53, 46, 0.9)),
    url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.two-column,
.new-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.new-grid {
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.image-panel img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center;
}

.two-column .image-panel img {
  object-position: center 42%;
}

.image-panel.tall img {
  height: 520px;
}

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

.section-heading p:last-child {
  color: var(--muted);
}

.section-heading.light p:last-child,
.section-heading.light h2 {
  color: #fff;
}

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

.info-card,
.ministry-grid article,
.contact-card {
  border-radius: 8px;
  padding: 26px;
}

.info-card {
  background: #fff;
  border: 1px solid rgba(31, 77, 67, 0.1);
  box-shadow: 0 16px 32px rgba(18, 53, 46, 0.08);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(201, 156, 74, 0.16);
  color: var(--green);
  font-weight: 900;
}

.info-card h3,
.ministry-grid h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.info-card p,
.ministry-grid p {
  margin: 0 0 8px;
  color: var(--muted);
}

.service-time-highlight {
  margin: 2px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: var(--green) !important;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.ministry-grid article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ministry-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.step-list {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.step-list div {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: #fff;
  box-shadow: 0 14px 28px rgba(18, 53, 46, 0.07);
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
}

.step-list p {
  margin: 0;
}

.text-link {
  color: var(--green);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.message-panel {
  justify-content: space-between;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message-panel div {
  max-width: 680px;
}

.message-panel p:last-child {
  color: var(--muted);
}

.giving-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 53, 46, 0.97), rgba(31, 77, 67, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(201, 156, 74, 0.26), transparent 30%);
}

.giving-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.giving-intro .section-kicker {
  color: var(--gold-soft);
}

.giving-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.giving-intro p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.giving-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.giving-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #fffaf0;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.giving-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), #f2d28e);
}

.giving-card p {
  margin: 0 0 18px;
}

.giving-card dl {
  margin-bottom: 0;
}

.giving-card dl div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(31, 77, 67, 0.12);
}

.giving-card dt::after {
  content: ":";
}

.giving-card dt {
  color: var(--green);
  font-weight: 900;
}

.giving-card dd {
  margin-top: 0;
}

.giving-card dd {
  overflow-wrap: anywhere;
  font-weight: 800;
  color: var(--ink);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.86)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 77, 67, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px);
}

.contact-details > p:not(.section-kicker) {
  margin: 14px 0 24px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: inherit;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.map-panel {
  overflow: hidden;
  height: 100%;
  min-height: 460px;
  border-left: 1px solid rgba(31, 77, 67, 0.12);
  background: var(--sky);
}

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

dl {
  margin: 0 0 24px;
}

dl div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--green);
  font-weight: 900;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 26px 0;
}

.footer-inner {
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff;
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(18, 53, 46, 0.24);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gold);
  color: #18130a;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-inner a:last-child {
    display: none;
  }

  .nav-row {
    grid-template-columns: auto auto auto;
    gap: 12px;
    min-height: 74px;
  }

  .brand-logo {
    width: clamp(148px, 37vw, 196px);
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 113px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .primary-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(18, 53, 46, 0.9), rgba(18, 53, 46, 0.42));
  }

  .welcome-grid,
  .giving-panel,
  .two-column,
  .new-grid,
  .card-grid,
  .ministry-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 340px;
    border-left: 0;
    border-top: 1px solid rgba(31, 77, 67, 0.12);
  }

  .new-grid .image-panel {
    order: 2;
  }

  .image-panel img,
  .image-panel.tall img {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: min(148px, 37vw);
  }

  .language-switch button {
    min-width: 38px;
    padding: 7px 8px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-actions,
  .hero-actions .button,
  .message-panel .button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  .section {
    padding: 58px 0;
  }

  .info-card,
  .ministry-grid article,
  .contact-card,
  .message-panel {
    padding: 22px;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
