:root {
  --ink: #263124;
  --muted: #6f766c;
  --paper: #fffaf0;
  --soft: #f4ead9;
  --green: #5b8f4d;
  --green-dark: #315f36;
  --orange: #ef8b32;
  --orange-deep: #c9681f;
  --yellow: #ffd36e;
  --red: #c94040;
  --blue: #2878d8;
  --white: #ffffff;
  --line: rgba(38, 49, 36, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

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

.hero {
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(42px, 7vw, 86px) 0;
}

.hero-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(89, 65, 30, 0.18);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 211, 110, 0.14), rgba(91, 143, 77, 0.04));
}

.hero-media img {
  width: 100%;
  height: min(620px, 70vh);
  object-fit: cover;
}

.hero-copy {
  display: grid;
  justify-items: start;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.04;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.25;
}

.subtitle {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.55;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(56, 72, 49, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(56, 72, 49, 0.2);
}

.btn-primary {
  background: var(--blue);
}

.btn-green {
  background: var(--green);
}

.btn-red {
  background: var(--red);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-subtitle {
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 800;
}

.intro {
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.intro p,
.history-note p,
.giving p {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.8;
}

.intro-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(89, 65, 30, 0.12);
}

.intro-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.intro-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.intro-card strong {
  font-size: 24px;
}

.intro-card span {
  color: var(--green-dark);
  font-weight: 800;
}

.history {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff4df, #f6ead4);
}

.history-layout {
  display: grid;
  grid-template-columns: 1fr 0.38fr;
  gap: 24px;
  align-items: start;
}

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

.timeline article,
.history-note,
.ministry-card,
.event-row article,
.directions article,
.bank-card,
.qr {
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(89, 65, 30, 0.11);
}

.timeline article {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(239, 139, 50, 0.18);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 8px 13px;
  background: #ffe6bf;
  color: var(--orange-deep);
  font-weight: 900;
}

.timeline p,
.ministry-card p,
.event-row p,
.directions p {
  color: var(--muted);
  line-height: 1.75;
}

.history-note {
  position: sticky;
  top: 96px;
  padding: 34px;
  background: var(--green-dark);
}

.history-note p {
  margin-bottom: 0;
  color: #fff7df;
  font-size: 24px;
  font-weight: 800;
}

.ministries {
  padding-bottom: clamp(48px, 7vw, 82px);
}

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

.ministry-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(91, 143, 77, 0.14);
}

.ministry-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  border-radius: 999px;
  padding: 8px 13px;
  background: #e8f3df;
  color: var(--green-dark);
  font-weight: 900;
}

.ministry-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.ministry-card li {
  border-radius: 18px;
  padding: 11px 12px;
  background: #fff6e5;
  color: #5f4b2e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.events {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: #eaf3e4;
}

.event-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-row article {
  overflow: hidden;
}

.event-row img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.event-row div {
  padding: 24px;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.map-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(89, 65, 30, 0.15);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(160deg, #ffefcf 0%, #dceecf 54%, #f7c983 100%);
  box-shadow: 0 24px 70px rgba(89, 65, 30, 0.15);
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 2px dashed rgba(49, 95, 54, 0.25);
  border-radius: 28px;
}

.map-skyline,
.map-station,
.map-pin,
.map-road {
  position: absolute;
}

.map-skyline {
  top: 42px;
  left: 42px;
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 900;
}

.map-road {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #5e653f;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(89, 65, 30, 0.11);
}

.main-road {
  left: 62px;
  right: 62px;
  bottom: 118px;
  padding: 18px 24px;
  transform: rotate(-5deg);
}

.side-road {
  top: 170px;
  bottom: 92px;
  left: 44%;
  width: 66px;
  display: grid;
  place-items: center;
  padding: 18px 12px;
  writing-mode: vertical-rl;
}

.map-pin {
  top: 204px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.map-pin span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50% 50% 50% 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-45deg);
}

.map-pin span::first-letter {
  transform: rotate(45deg);
}

.map-pin strong {
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 12px 30px rgba(89, 65, 30, 0.16);
}

.map-station {
  right: 42px;
  bottom: 42px;
  border-radius: 22px;
  padding: 14px 18px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
}

.directions {
  display: grid;
  gap: 14px;
}

.directions article {
  padding: 24px;
}

.directions span {
  color: var(--orange-deep);
  font-weight: 900;
}

.directions a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.giving,
.contact {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.bank-card {
  padding: clamp(30px, 5vw, 54px);
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: var(--white);
}

.bank-card span,
.bank-card small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.bank-card strong {
  display: block;
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.contact {
  border-top: 1px solid var(--line);
}

.email-link {
  color: var(--green-dark);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-detail {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 800;
}

.contact-detail a {
  color: var(--green-dark);
}

.qr {
  justify-self: center;
  padding: 20px;
  text-align: center;
}

.qr img {
  width: min(260px, 62vw);
  border-radius: 18px;
}

.qr figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.footer {
  padding: 30px 16px 44px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero,
  .intro-grid,
  .history-layout,
  .visit-grid,
  .giving,
  .contact {
    grid-template-columns: 1fr;
  }

  .history-note {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media {
    border-radius: 24px;
  }

  .hero-media img {
    height: auto;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .timeline,
  .ministry-grid,
  .event-row {
    grid-template-columns: 1fr;
  }

  .ministry-card {
    min-height: auto;
  }

  .map-card,
  .map-frame {
    min-height: 440px;
  }

  .map-skyline {
    font-size: 24px;
  }

  .main-road {
    left: 34px;
    right: 34px;
  }

  .side-road {
    left: 40%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

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

  .intro-card div {
    align-items: flex-start;
    flex-direction: column;
  }
}
