:root {
  --ink: #1c2a24;
  --ink-soft: #3d4f46;
  --muted: #5f7268;
  --paper: #f3f6f2;
  --paper-deep: #e6ebe4;
  --sage: #6f8f7a;
  --sage-deep: #3f5f4d;
  --moss: #2f4a3c;
  --leaf: #8aa892;
  --stone: #c5cec4;
  --line: #06c755;
  --line-dark: #05a847;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(31, 52, 42, 0.12);
  --radius: 18px;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #e8efe8;
  background-image:
    linear-gradient(180deg, rgba(243, 246, 242, 0.35), rgba(238, 243, 236, 0.4)),
    url("/brand/bg-wellness-soft.png?v=17");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(63, 95, 77, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(63, 95, 77, 0.05) 0 1.5px, transparent 3px);
  background-size: 48px 48px, 36px 36px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 242, 0.82);
  border-bottom: 1px solid rgba(99, 122, 109, 0.12);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.topbar-logo {
  height: 56px;
  width: auto;
  display: block;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: fade 1.2s ease both;
}

.hero-logo-motion {
  width: min(520px, 94%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(31, 52, 42, 0.18));
  animation: logoFloat 5.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.03); }
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.topbar-nav a:hover {
  color: var(--sage-deep);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 4.5rem 6vw 3.5rem;
  position: relative;
  isolation: isolate;
  background-image: url("/brand/sections/hero.png?v=17");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(243, 246, 242, 0.28);
  pointer-events: none;
}

.hero-copy {
  max-width: 36rem;
  animation: rise 0.9s ease both;
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.hero-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-line,
.btn-ghost,
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-book {
  background: var(--moss);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 74, 60, 0.22);
}

.btn-book:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
}

.btn-book-lg {
  min-width: min(100%, 280px);
  font-size: 1.05rem;
}

.btn-line {
  background: var(--line);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.28);
}

.btn-line:hover {
  background: var(--line-dark);
  transform: translateY(-2px);
}

.btn-line-lg {
  min-width: min(100%, 280px);
  font-size: 1.05rem;
}

.btn-ghost {
  border: 1.5px solid rgba(63, 95, 77, 0.35);
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 6vw 1rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(99, 122, 109, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.strip-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.strip strong {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.section {
  padding: 4.5rem 6vw;
  position: relative;
  isolation: isolate;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 248, 245, 0.28);
  pointer-events: none;
}

.section-alt {
  background-color: transparent;
}

.section-alt::before {
  background: rgba(232, 239, 232, 0.28);
}

#about { background-image: url("/brand/sections/about.png?v=17"); }
#josef { background-image: url("/brand/sections/josef.png?v=17"); }
#founder { background-image: url("/brand/sections/founder.png?v=17"); }
#services { background-image: url("/brand/sections/services.png?v=17"); }
#price { background-image: url("/brand/sections/price.png?v=17"); }
#team { background-image: url("/brand/sections/team.png?v=17"); }
#contact { background-image: url("/brand/sections/contact.png?v=17"); }

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--moss);
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 48rem;
  white-space: pre-line;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.media-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(99, 122, 109, 0.14);
  box-shadow: var(--shadow);
  min-width: 0;
}

.media-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.media-photo img[hidden] {
  display: none !important;
}

.media-photo-wide img {
  aspect-ratio: auto;
}

.line-photo {
  margin: 0 auto 1.25rem;
  max-width: 280px;
}

.line-photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(99, 122, 109, 0.14);
}

.media-row .prose {
  max-width: none;
}

@media (max-width: 700px) {
  .media-row {
    grid-template-columns: 1fr;
  }

  .media-row .media-photo {
    order: -1;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-content: start;
  max-width: 980px;
}

.service-item,
.team-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 122, 109, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover,
.team-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-item img,
.team-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #d7e2d8, #b8c9bb);
}

.team-media {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(320px, 1.7fr);
  gap: 0.55rem;
  align-items: stretch;
  padding: 0.35rem;
  background: #e8efe8;
}

.team-media .team-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 320px;
  object-fit: contain;
  object-position: top center;
  background: transparent;
  align-self: stretch;
}

.team-media .team-cert {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 320px;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 4px;
  border: 0;
  align-self: stretch;
  transform: scale(1.06);
  transform-origin: center center;
}

.team-item {
  max-width: 1040px;
}

.team-item img {
  aspect-ratio: auto;
  max-height: none;
  width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: top center;
  background: transparent;
}

@media (max-width: 700px) {
  .team-media {
    grid-template-columns: 1fr;
  }
}

.service-item .body,
.team-item .body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.service-item h3,
.team-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--moss);
}

.service-item p,
.team-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.team-item .role {
  margin-bottom: 0.35rem;
  color: var(--sage-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.price-panel {
  max-width: 820px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 122, 109, 0.14);
}

.price-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.price-fallback {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.empty-hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-hint[hidden] {
  display: none;
}

.contact {
  text-align: center;
}

.contact .section-head {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-meta {
  margin: 0;
  color: var(--muted);
}

.footer {
  padding: 2rem 6vw 2.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(99, 122, 109, 0.12);
  background: rgba(255, 255, 255, 0.35);
}

.footer p {
  margin: 0.2rem 0;
}

.footer-copy {
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; }
  50% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-visual {
    min-height: 280px;
    order: -1;
  }

  .strip {
    grid-template-columns: 1fr;
  }

  .topbar-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
