:root {
  --color-mist: #EAF4F1;
  --color-pine: #183B37;
  --color-teal: #2E6F6A;
  --color-sand: #D9C7A2;
  --color-ink: #101616;
  --color-ivory: #F7F4EE;
  --color-graphite: #1A2221;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", sans-serif;
  --shadow-soft: 0 18px 40px rgba(16, 22, 22, 0.08);
  --radius: 6px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-ink);
  background: var(--color-mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--color-pine); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-pine);
  margin: 0 0 0.75em;
}

p { margin: 0 0 1.1em; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.main {
  padding-top: var(--header-h);
  min-height: 60vh;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(760px, calc(100% - 2.5rem));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  background: rgba(234, 244, 241, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 59, 55, 0.12);
}

.site-header__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-pine);
}

.site-header__mark {
  width: 0.85rem;
  height: 1.35rem;
  background: var(--color-pine);
  clip-path: polygon(50% 0, 100% 55%, 72% 55%, 100% 100%, 0 100%, 28% 55%, 0 55%);
}

.site-header__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.site-header__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(24, 59, 55, 0.25);
  border-radius: var(--radius);
  width: 2.75rem;
  height: 2.4rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.site-header__toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--color-pine);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

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

.site-nav__cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-pine);
  border-radius: var(--radius);
  background: var(--color-pine);
  color: var(--color-mist) !important;
}

.site-nav__cta:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-pine);
  color: var(--color-mist);
  border-color: var(--color-pine);
}

.btn--primary:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
}

.btn--secondary {
  background: rgba(217, 199, 162, 0.28);
  color: var(--color-pine);
  border-color: rgba(24, 59, 55, 0.35);
}

.btn--secondary:hover {
  background: rgba(217, 199, 162, 0.5);
  color: var(--color-pine);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Cards */
.card {
  background: var(--color-ivory);
  border: 1px solid rgba(24, 59, 55, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  padding: 1.35rem 1.4rem 1.55rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  text-transform: none;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: rgba(16, 22, 22, 0.82);
  flex: 1;
}

.card__link {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-pine);
  text-decoration: none;
  border-bottom: 1px solid var(--color-sand);
  align-self: flex-start;
}

/* Hero variations */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero--asymmetric {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--color-teal);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  margin-bottom: 1rem;
  max-width: 12em;
}

.hero__lead {
  font-size: 1.12rem;
  max-width: 34em;
  color: rgba(16, 22, 22, 0.88);
}

.hero__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(24, 59, 55, 0.15);
  min-height: 360px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero__media[data-parallax] img {
  transition: transform 0.1s linear;
}

.hero__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(24, 59, 55, 0.82);
  color: var(--color-mist);
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
}

.hero--page {
  padding: 4.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(24, 59, 55, 0.1);
}

.hero--page .hero__title { max-width: 16em; }

.hero--split-text {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.hero--split-text .hero__aside {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-teal);
  border-left: 2px solid var(--color-sand);
  padding-left: 1.25rem;
  margin-top: 2.5rem;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section--offset {
  background: linear-gradient(180deg, transparent, rgba(217, 199, 162, 0.18) 40%, transparent);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: end;
}

.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--color-teal);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  margin: 0;
}

.section__intro {
  margin: 0;
  color: rgba(16, 22, 22, 0.85);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-row__media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(24, 59, 55, 0.15);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offset-block {
  margin-left: clamp(0rem, 8vw, 5rem);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.list-check li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-teal);
}

.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  background: var(--color-ivory);
  border: 1px solid rgba(24, 59, 55, 0.16);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.quote--wide { padding: 2rem; }

.quote__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-pine);
  margin-bottom: 1rem;
}

.quote__meta {
  font-size: 0.9rem;
  color: rgba(16, 22, 22, 0.7);
}

.stat-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(24, 59, 55, 0.15);
}

.stat-note__label {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-teal);
  min-width: 4.5rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-ivory);
  border: 1px solid rgba(24, 59, 55, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(24, 59, 55, 0.1);
  vertical-align: top;
}

.price-table th {
  background: rgba(46, 111, 106, 0.08);
  font-weight: 600;
  color: var(--color-pine);
}

.price-table tr:last-child td { border-bottom: 0; }

.prose {
  max-width: 42rem;
}

.prose h2 { margin-top: 2.25rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(24, 59, 55, 0.18);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th { background: rgba(24, 59, 55, 0.06); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--color-ivory);
  border: 1px solid rgba(24, 59, 55, 0.16);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-card dt {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  margin-top: 1rem;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd {
  margin: 0.25rem 0 0;
}

.form {
  display: grid;
  gap: 1rem;
}

.form__group {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-size: 0.92rem;
  color: var(--color-pine);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(24, 59, 55, 0.28);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--color-ink);
}

.form textarea { min-height: 140px; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(46, 111, 106, 0.35);
  border-color: var(--color-teal);
}

.field-error {
  color: #8a2f2f;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status--ok {
  background: rgba(46, 111, 106, 0.12);
  color: var(--color-pine);
  border: 1px solid rgba(46, 111, 106, 0.3);
}

.form-status--err {
  background: rgba(138, 47, 47, 0.08);
  color: #6e2222;
  border: 1px solid rgba(138, 47, 47, 0.25);
}

.schedule-list {
  display: grid;
  gap: 1rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: var(--color-ivory);
  border: 1px solid rgba(24, 59, 55, 0.16);
  border-radius: 10px;
}

.schedule-item__date {
  font-family: var(--font-serif);
  color: var(--color-teal);
  font-size: 1.05rem;
}

.schedule-item__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.schedule-item__meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(16, 22, 22, 0.7);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-404 {
  text-align: center;
  padding: 6rem 1.25rem 5rem;
}

.page-404 h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

/* Footer */
.site-footer {
  background: var(--color-graphite);
  color: rgba(234, 244, 241, 0.88);
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}

.site-footer a {
  color: rgba(234, 244, 241, 0.78);
  text-decoration: none;
}

.site-footer a:hover { color: var(--color-sand); }

.site-footer__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr 1.2fr;
  gap: 1.75rem;
}

.site-footer__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-mist);
  margin-bottom: 0.5rem;
}

.site-footer__tag,
.site-footer__note,
.site-footer__address {
  color: rgba(234, 244, 241, 0.68);
  font-size: 0.92rem;
}

.site-footer__heading {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--color-sand);
  margin-bottom: 0.85rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.newsletter-form input {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 199, 162, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-mist);
  font: inherit;
}

.newsletter-form input::placeholder { color: rgba(234, 244, 241, 0.45); }

.site-footer__bottom {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(234, 244, 241, 0.12);
  font-size: 0.85rem;
  color: rgba(234, 244, 241, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.cookie-banner__inner {
  width: min(920px, 100%);
  margin-inline: auto;
  background: var(--color-ivory);
  border: 1px solid rgba(24, 59, 55, 0.22);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__title {
  font-family: var(--font-serif);
  color: var(--color-pine);
  margin: 0 0 0.35rem;
}

.cookie-banner__text p:last-child { margin: 0; font-size: 0.92rem; }

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner__error {
  width: 100%;
  color: #8a2f2f;
  font-size: 0.85rem;
  margin: 0;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero--asymmetric,
  .hero--split-text,
  .section__head,
  .feature-row,
  .feature-row--reverse,
  .contact-grid,
  .grid-3,
  .team-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .offset-block { margin-left: 0; }

  .site-header__toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(234, 244, 241, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(24, 59, 55, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid rgba(24, 59, 55, 0.08);
  }

  .site-nav__cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero__media, .hero__media img { min-height: 260px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
