:root {
  --forest: #25451f;
  --moss: #667d47;
  --leaf: #aab890;
  --mist: #e7ebdc;
  --paper: #fbf7ee;
  --clay: #9a7354;
  --ink: #273025;
  --line: rgba(37, 69, 31, 0.18);
  --shadow: 0 18px 46px rgba(39, 48, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(251, 247, 238, 0.88);
  border-bottom: 1px solid rgba(37, 69, 31, 0.1);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-link span {
  white-space: nowrap;
}

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

.site-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-color: var(--moss);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 132px clamp(24px, 7vw, 108px) 88px;
  color: var(--forest);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 247, 238, 0.96) 0%, rgba(251, 247, 238, 0.82) 42%, rgba(251, 247, 238, 0.28) 100%),
    url("assets/brand/brand-banner.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(251, 247, 238, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 15px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--forest);
  font-size: clamp(58px, 10vw, 124px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--forest);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 23px;
  line-height: 1.35;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 34px;
  color: #3f5735;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 600;
}

.hero-actions,
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  color: var(--paper);
  background: var(--forest);
}

.button.secondary {
  color: var(--forest);
  background: rgba(251, 247, 238, 0.7);
}

.button.secondary.dark {
  background: transparent;
}

.section,
.section-band {
  padding: 88px clamp(22px, 6vw, 86px);
}

.section-band {
  background: #f2f1e7;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.two-column,
.corporate-layout,
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.intro p {
  max-width: 720px;
  font-size: 19px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading.narrow {
  max-width: 700px;
}

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

.course-card {
  min-height: 280px;
  padding: 26px;
  background: rgba(255, 252, 244, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37, 69, 31, 0.08);
}

.course-number {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 700;
}

.course-card p,
.corporate p,
.community p,
.contact p {
  color: #4e5a49;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.highlight-list div {
  min-height: 128px;
  display: flex;
  align-items: center;
  padding: 26px;
  background: rgba(251, 247, 238, 0.84);
  color: var(--forest);
  font-size: 18px;
  font-weight: 700;
}

.featured-event {
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.98), rgba(242, 241, 231, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(170, 184, 144, 0.34), transparent 34%);
}

.featured-event .section-heading p {
  max-width: 760px;
  color: #4e5a49;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.event-showcase {
  display: grid;
  gap: 18px;
}

.event-dm {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(37, 69, 31, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 69, 31, 0.16);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.8);
  box-shadow: 0 10px 28px rgba(37, 69, 31, 0.08);
}

.work-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.work-gallery figcaption {
  padding: 10px 12px 12px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.event-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.82);
  box-shadow: var(--shadow);
}

.event-label {
  margin-bottom: 10px;
  color: var(--clay);
  font-weight: 700;
}

.event-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 22px;
  color: #4e5a49;
}

.corporate {
  background:
    linear-gradient(135deg, rgba(251, 247, 238, 0.96), rgba(231, 235, 220, 0.86)),
    radial-gradient(circle at 10% 0%, rgba(170, 184, 144, 0.42), transparent 32%);
}

.corporate-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.74);
  box-shadow: var(--shadow);
}

.corporate-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.process {
  background: var(--paper);
}

.process .section-heading p,
.faq-layout > div > p {
  max-width: 760px;
  color: #4e5a49;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-grid article {
  min-height: 300px;
  padding: 28px;
  background: rgba(255, 252, 244, 0.86);
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-weight: 700;
}

.process-grid p {
  color: #4e5a49;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.78);
  box-shadow: 0 8px 22px rgba(37, 69, 31, 0.06);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 700;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: #4e5a49;
}

.image-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(37, 69, 31, 0.16);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact {
  text-align: center;
  background: var(--forest);
  color: var(--paper);
}

.contact h2,
.contact .section-kicker,
.contact p {
  color: var(--paper);
}

.contact-inner {
  flex-direction: column;
  align-items: center;
  max-width: 780px;
}

.contact .button.primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--forest);
}

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

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span,
.site-footer a {
  color: rgba(251, 247, 238, 0.82);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 820px;
    background:
      linear-gradient(180deg, rgba(251, 247, 238, 0.97) 0%, rgba(251, 247, 238, 0.72) 60%, rgba(251, 247, 238, 0.35) 100%),
      url("assets/brand/brand-banner.png") center bottom / cover no-repeat;
  }

  .two-column,
  .corporate-layout,
  .community-layout,
  .event-layout,
  .faq-layout,
  .course-grid,
  .highlight-list,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .process-grid article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .brand-link span {
    font-size: 15px;
  }

  .hero {
    min-height: 760px;
    padding: 118px 22px 72px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 30px;
  }

  .section,
  .section-band {
    padding: 66px 20px;
  }

  .button {
    width: 100%;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
