:root {
  --ivory: #fffaf0;
  --paper: #fff8ee;
  --paper-deep: #f8ddb0;
  --pine: #17493c;
  --pine-light: #2b7563;
  --ink: #23443c;
  --ink-soft: #5c7069;
  --gold: #e9a62d;
  --gold-light: #ffdb7c;
  --terracotta: #b6533f;
  --indigo: #5365a7;
  --teal: #168a83;
  --aqua: #dff6ef;
  --coral: #ef765c;
  --violet: #725aa8;
  --sun: #ffd45e;
  --white: #fffefa;
  --line: rgba(22, 55, 46, 0.16);
  --shadow: 0 14px 36px rgba(47, 77, 61, 0.09);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 74px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.82;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(88px, 10vw, 152px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--pine);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  padding-inline: clamp(24px, 5vw, 72px);
  color: var(--pine);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.8), rgba(255, 250, 240, 0));
  transition: background-color 220ms ease, box-shadow 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 76px;
  color: var(--pine);
  background: rgba(251, 248, 240, 0.94);
  box-shadow: 0 8px 30px rgba(21, 50, 42, 0.09);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 2px;
  background: rgba(255, 254, 250, 0.78);
  border: 1px solid rgba(233, 166, 45, 0.3);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(23, 73, 60, 0.13);
  transition: width 220ms ease, height 220ms ease, box-shadow 220ms ease;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header.is-scrolled .brand-mark {
  width: 48px;
  height: 48px;
  box-shadow: 0 5px 15px rgba(23, 73, 60, 0.11);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 1px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  opacity: 0.78;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.primary-nav > a:not(.nav-cta) {
  position: relative;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 18px;
  color: var(--pine);
  background: var(--sun);
  border: 1px solid rgba(23, 73, 60, 0.18);
  border-radius: 14px;
}

.site-header.is-scrolled .nav-cta {
  color: var(--white);
  background: var(--pine);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  color: currentColor;
  background: transparent;
  border: 1px solid rgba(23, 73, 60, 0.3);
  border-radius: 50%;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 100svh);
  color: var(--pine);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background: url("../assets/hero-welcome-light.webp") center / cover no-repeat;
  animation: hero-breathe 16s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.98) 0%, rgba(255, 248, 229, 0.9) 30%, rgba(255, 248, 229, 0.42) 48%, rgba(255, 248, 229, 0.03) 69%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.08) 56%, rgba(255, 238, 196, 0.58) 100%);
}

@keyframes hero-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.hero-content {
  align-self: center;
  padding: 92px 0 138px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 7vw, 7.2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.12;
  text-shadow: 0 3px 26px rgba(255, 255, 255, 0.72);
}

.hero-copy {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(35, 68, 60, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  letter-spacing: 0.04em;
  line-height: 2;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: #173d35;
  background: #f8dfa0;
  border-color: #ead294;
  box-shadow: 0 6px 18px rgba(136, 112, 53, 0.09);
}

.button-primary:hover {
  background: #ffe394;
}

.button-ghost {
  color: var(--pine);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(23, 73, 60, 0.22);
  backdrop-filter: blur(8px);
}

.hero-notes {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(23, 73, 60, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

.hero-notes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(23, 73, 60, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-notes a:hover {
  color: var(--terracotta);
  background: rgba(255, 255, 255, 0.86);
}

.hero-notes a span {
  color: var(--coral);
}

.welcome {
  position: relative;
}

.welcome::before {
  position: absolute;
  top: 46px;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: 1px;
  height: 72px;
  background: var(--gold);
  content: "";
}

.section-kicker {
  color: var(--coral);
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.welcome h2,
.section-heading h2,
.about h2,
.courses h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.32;
}

.welcome-copy {
  padding-top: 8px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.welcome-copy p {
  margin: 0 0 20px;
}

.rituals {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 10%, rgba(255, 212, 94, 0.36), transparent 24%),
    radial-gradient(circle at 92% 88%, rgba(114, 90, 168, 0.18), transparent 27%),
    linear-gradient(180deg, #fff8e5 0%, #fffdf7 100%);
}

.ritual-heading {
  position: relative;
  z-index: 1;
}

.ritual-orbit {
  display: none;
  position: absolute;
  border: 1px solid rgba(22, 138, 131, 0.2);
  border-radius: 50%;
}

.ritual-orbit::before,
.ritual-orbit::after {
  position: absolute;
  border: 1px solid rgba(217, 99, 72, 0.17);
  border-radius: 50%;
  content: "";
}

.ritual-orbit::before { inset: 13%; }
.ritual-orbit::after { inset: 29%; }
.ritual-orbit-one { top: -130px; right: -80px; width: 360px; aspect-ratio: 1; }
.ritual-orbit-two { bottom: -150px; left: -110px; width: 310px; aspect-ratio: 1; }

.ritual-paths {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ritual-scene {
  position: relative;
  z-index: 1;
  min-height: clamp(360px, 48vw, 590px);
  margin-bottom: 24px;
  background:
    linear-gradient(90deg, rgba(23, 73, 60, 0.08), transparent 42%),
    url("../assets/hero-ritual-v2.webp") center / cover no-repeat;
  border: 1px solid rgba(23, 73, 60, 0.12);
  border-radius: 26px;
  box-shadow: 0 14px 38px rgba(47, 77, 61, 0.08);
}

.ritual-path {
  min-height: 520px;
  padding: clamp(32px, 4.2vw, 58px);
  border: 1px solid rgba(23, 73, 60, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(47, 77, 61, 0.05);
}

.ritual-path-celtic {
  background: linear-gradient(145deg, #e5f6e2 0%, #fff3b7 100%);
}

.ritual-path-hermetic {
  background: linear-gradient(145deg, #e4f6f2 0%, #eee4ff 100%);
}

.ritual-path-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.ritual-path-topline span:last-child {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(217, 99, 72, 0.24);
  border-radius: 50%;
  font-size: 1.55rem;
}

.ritual-label {
  margin: 65px 0 12px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.ritual-path h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.35;
}

.ritual-path > p:not(.ritual-label) {
  max-width: 550px;
  color: var(--ink-soft);
}

.season-wheel {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.season-wheel span {
  padding: 7px 12px;
  color: #31584b;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 73, 60, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
}

.ritual-points {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ritual-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #4d5572;
}

.ritual-points li::before {
  color: var(--coral);
  content: "◇";
}

.services {
  background-color: #ffffff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.12)),
    url("../assets/support-white-daylight-clouds-v1.webp");
  background-position: center, center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: end;
  margin-bottom: 58px;
}

.section-heading p:last-child {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.95;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: clamp(28px, 3.2vw, 42px);
  overflow: hidden;
  background: linear-gradient(155deg, #fff7dc 0%, #ffe8d8 100%);
  border: 1px solid rgba(22, 55, 46, 0.1);
  border-radius: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  z-index: 2;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card-featured {
  color: var(--ink);
  background: linear-gradient(155deg, #d8f3e9 0%, #fff0ad 100%);
}

.service-card:nth-child(2) {
  background: linear-gradient(155deg, #fff5dc 0%, #ffe1d8 100%);
}

.service-card:nth-child(3) {
  background: linear-gradient(155deg, #e3f4f2 0%, #eee3ff 100%);
}

.service-number {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.service-card-featured .service-number {
  color: #9a6800;
}

.service-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 52px 0 26px;
  place-items: center;
  color: var(--terracotta);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.5rem;
}

.service-card-featured .service-icon {
  color: var(--teal);
}

.service-card h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  color: var(--pine);
  font-size: 1.72rem;
  line-height: 1.45;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.service-card-featured p,
.service-card-featured li {
  color: #405f56;
}

.service-card ul {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 7px 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.service-card li::before {
  color: var(--gold);
  content: "✦";
  font-size: 0.78rem;
  transform: translateY(4px);
}

.service-card > a {
  position: static;
  margin-top: auto;
  padding-top: 30px;
  color: var(--terracotta);
  font-weight: 700;
}

.service-card-featured > a {
  color: #a74836;
}

.service-card > a span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 180ms ease;
}

.service-card > a:hover span {
  transform: translateX(5px);
}

.healing-angel-inset {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  margin: 0 0 clamp(72px, 9vw, 112px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 73, 60, 0.12);
  border-radius: 26px;
  box-shadow: 0 12px 36px rgba(47, 77, 61, 0.07);
}

.healing-angel-inset img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 40%;
}

.healing-angel-inset figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 70px);
}

.healing-angel-inset .section-kicker {
  margin-bottom: 15px;
}

.healing-angel-inset h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.35;
}

.healing-angel-inset figcaption > p:not(.section-kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.healing-angel-inset figcaption > p:not(.section-kicker) + p {
  margin-top: 16px;
}

.healing-menu {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 212, 94, 0.42), transparent 22%),
    radial-gradient(circle at 94% 34%, rgba(69, 187, 176, 0.23), transparent 24%),
    radial-gradient(circle at 12% 86%, rgba(239, 118, 92, 0.2), transparent 22%),
    linear-gradient(180deg, #fff3d4 0%, #fffdf6 30%, #edf9f5 70%, #fff7e6 100%);
}

.healing-menu-inner {
  position: relative;
  z-index: 1;
}

.healing-orbit {
  display: none;
  position: absolute;
  border: 1px solid rgba(22, 138, 131, 0.2);
  border-radius: 50%;
}

.healing-orbit::before,
.healing-orbit::after {
  position: absolute;
  border: 1px solid rgba(217, 99, 72, 0.15);
  border-radius: 50%;
  content: "";
}

.healing-orbit::before { inset: 16%; }
.healing-orbit::after { inset: 34%; }
.healing-orbit-one { top: 180px; right: -170px; width: 420px; aspect-ratio: 1; }
.healing-orbit-two { bottom: 320px; left: -150px; width: 330px; aspect-ratio: 1; }

.healing-menu-heading {
  align-items: center;
}

.healing-menu-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.25;
}

.healing-menu-lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.9;
}

.healing-menu-lead span {
  display: inline-flex;
  margin-top: 20px;
  padding: 7px 13px;
  color: #794317;
  background: #ffe49a;
  border: 1px solid rgba(121, 67, 23, 0.17);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.healing-category {
  margin-top: clamp(70px, 8vw, 110px);
}

.healing-category-heading {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(23, 73, 60, 0.2);
}

.healing-category-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  background: #3d7563;
  border-radius: 50%;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 0.93rem;
  letter-spacing: 0.12em;
}

.healing-category-heading p {
  margin: 0 0 3px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.healing-category-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.35;
}

.healing-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.healing-service-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  background: rgba(255, 254, 250, 0.9);
  border: 1px solid rgba(23, 73, 60, 0.13);
  border-top: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(47, 77, 61, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.healing-service-card::after {
  display: none;
}

.healing-service-card:hover {
  z-index: 2;
  box-shadow: 0 16px 36px rgba(47, 77, 61, 0.09);
  transform: translateY(-3px);
}

.card-coral { border-top-color: #e87961; }
.card-aqua { border-top-color: #46afa7; }
.card-violet { border-top-color: #8f70bb; }
.card-leaf { border-top-color: #72a85e; }
.card-gold { border-top-color: #d99b25; }
.card-blue { border-top-color: #5c83bd; }
.card-raphael { border-top-color: #62a86d; }
.card-isis { border-top-color: #b073ad; }
.card-amun { border-top-color: #cc7655; }
.card-channel { border-top-color: #4b9ca2; }
.card-blueprint { border-top-color: #6b78ae; }
.card-ritual { border-top-color: #d39342; }

.healing-card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.healing-card-topline span:first-child {
  padding: 5px 9px;
  color: #185c51;
  background: #dff6ef;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.healing-service-card h4 {
  position: relative;
  z-index: 1;
  margin: 34px 0 16px;
  color: var(--pine);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  line-height: 1.42;
}

.healing-service-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.healing-service-card .healing-fit {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 73, 60, 0.11);
  font-size: 1rem;
}

.healing-fit strong {
  margin-right: 6px;
  color: var(--terracotta);
}

.healing-note {
  margin-top: 18px;
  padding: 9px 12px;
  color: #695027;
  background: #fff2c8;
  border-left: 3px solid var(--gold);
  font-size: 0.86rem;
  line-height: 1.65;
}

.healing-card-bottom {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 26px;
}

.healing-card-bottom span {
  max-width: 55%;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.healing-card-bottom strong {
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.45rem;
  white-space: nowrap;
}

.healing-booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 130px);
  padding: clamp(34px, 5vw, 64px);
  color: var(--pine);
  background: #eef7f1;
  border: 1px solid #dce8de;
  border-radius: 24px;
  box-shadow: none;
}

.healing-booking-panel .section-kicker {
  margin-bottom: 10px;
  color: #8b6a2d;
}

.healing-booking-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.4;
}

.healing-booking-panel p:not(.section-kicker) {
  margin: 14px 0 0;
  color: #526d60;
  line-height: 1.8;
}

.healing-booking-panel ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  color: #416153;
  list-style: none;
}

.healing-booking-panel li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.7;
}

.healing-booking-panel li::before {
  flex: 0 0 auto;
  color: #a7894c;
  content: "✦";
}

.healing-booking-panel .button-dark {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: -8px;
  color: #fffefa;
  background: #22594b;
  white-space: normal;
}

.healing-disclaimer {
  max-width: 920px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.75;
  text-align: center;
}

.about {
  position: relative;
  color: var(--pine);
  background: linear-gradient(120deg, #f1faf5 0%, #fffefa 64%, #f7f3fc 100%);
  border-block: 1px solid rgba(23, 73, 60, 0.07);
  overflow: hidden;
}

.about::before {
  display: none;
}

.about-glow {
  position: absolute;
  top: 50%;
  left: 16%;
  width: 440px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 173, 82, 0.2), transparent 68%);
  transform: translate(-50%, -50%);
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(400px, 1.15fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.about-portrait {
  position: relative;
  z-index: 0;
  width: min(430px, 82vw);
  aspect-ratio: 3 / 4;
  margin: 0;
}

.about-portrait::before {
  position: absolute;
  z-index: -1;
  inset: -16px 16px 16px -16px;
  border: 1px solid rgba(240, 213, 138, 0.34);
  border-radius: 230px 230px 40px 40px;
  content: "";
}

.about-portrait::after {
  position: absolute;
  z-index: -2;
  right: -18%;
  bottom: -10%;
  width: 230px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 222, 126, 0.36), transparent 68%);
  border-radius: 50%;
  content: "";
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 220px 220px 32px 32px;
  box-shadow: 0 34px 80px rgba(10, 67, 72, 0.3);
  filter: saturate(0.92) contrast(1.02) brightness(0.98);
}

.about h2 {
  max-width: 740px;
  font-size: clamp(2.25rem, 3vw, 3.55rem);
}

.about h2 span {
  display: block;
}

.about-copy > p:not(.section-kicker) {
  max-width: 670px;
  margin: 18px 0 0;
  color: #526d60;
  line-height: 1.92;
}

.about-copy > h2 + p {
  margin-top: 30px;
}

.about-copy strong {
  color: #2c6c56;
  font-weight: 700;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 5px;
  color: #396c56;
  border-bottom: 1px solid #a7bdae;
  font-weight: 700;
}

.courses {
  background:
    radial-gradient(circle at 5% 12%, rgba(255, 224, 155, 0.14), transparent 22%),
    linear-gradient(180deg, #fffaf0 0%, #fffdf8 100%);
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(500px, 1.1fr);
  gap: clamp(48px, 5vw, 76px);
  align-items: start;
}

.course-intro h2 {
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1.5;
}

.course-intro {
  position: sticky;
  top: 120px;
}

.course-intro > p:not(.section-kicker) {
  margin: 28px 0;
  color: var(--ink-soft);
}

.button-dark {
  color: var(--white);
  background: #22594b;
}

.button-dark:hover {
  background: #2d6a59;
}

.course-intro small {
  display: block;
  max-width: 380px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.7;
}

.course-invite {
  max-width: 430px;
  margin: 0 0 28px;
  padding: 20px 22px;
  background: #f2f7ee;
  border: 1px solid rgba(34, 88, 78, 0.12);
  border-radius: 18px;
}

.course-invite strong {
  display: block;
  margin-bottom: 7px;
  color: var(--terracotta);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.course-invite p {
  margin: 0;
  color: var(--pine);
  font-size: 0.94rem;
  line-height: 1.75;
}

.course-content {
  display: grid;
  gap: 44px;
}

.featured-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.featured-course {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(23, 73, 60, 0.1);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(47, 77, 61, 0.05);
}

.featured-course::after {
  display: none;
}

.featured-course-initiation {
  background: linear-gradient(155deg, #eaf7e8 0%, #fff1c9 100%);
}

.featured-course-ritual {
  background: linear-gradient(155deg, #e7f6f3 0%, #f1eafa 100%);
}

.featured-label {
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.featured-course h3 {
  margin: 36px 0 15px;
  font-family: var(--serif);
  font-size: 1.68rem;
  line-height: 1.45;
  text-wrap: balance;
}

.featured-course p {
  margin: 0;
  color: var(--ink-soft);
}

.featured-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.featured-meta span {
  padding: 5px 10px;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.course-list article {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 190px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.course-tag {
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.course-list h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.course-list p {
  margin: 0;
  color: var(--ink-soft);
}

.course-list article > span:last-child {
  color: rgba(22, 55, 46, 0.25);
  font-family: var(--serif);
  font-size: 2.5rem;
}

.voices-heading {
  align-items: center;
}

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

.feedback-shot {
  margin: 0;
  padding: 12px 12px 20px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(26, 54, 46, 0.05);
  overflow: hidden;
}

.feedback-shot a {
  display: block;
  background: #f3efe6;
  border-radius: 14px;
  overflow: hidden;
}

.feedback-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 220ms ease;
}

.feedback-shot a:hover img,
.feedback-shot a:focus-visible img {
  transform: scale(1.018);
}

.feedback-shot figcaption {
  padding: 17px 8px 0;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feedback-shot figcaption span {
  display: block;
  margin-bottom: 2px;
  color: var(--terracotta);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.feedback-note {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.booking-flow {
  background-color: #fafffc;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.2)),
    url("../assets/booking-daylight-garden-v1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.booking-flow-heading {
  align-items: center;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  overflow: hidden;
  border-top: 1px solid rgba(34, 88, 78, 0.2);
  border-bottom: 1px solid rgba(34, 88, 78, 0.2);
}

.booking-steps li {
  min-height: 285px;
  padding: 36px 30px 32px;
  border-right: 1px solid rgba(34, 88, 78, 0.18);
}

.booking-steps li:last-child {
  border-right: 0;
}

.booking-steps span {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.booking-steps h3 {
  margin: 54px 0 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.booking-steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.contact {
  position: relative;
  overflow: hidden;
  color: var(--pine);
  background-color: #fffefa;
  background-image: linear-gradient(110deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)), url("../assets/support-white-daylight-clouds-v1.webp");
  background-position: center;
  background-size: cover;
  border-top: 1px solid rgba(23, 73, 60, 0.06);
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}

.contact-copy {
  min-width: 0;
}

.contact .section-kicker {
  margin-bottom: 24px;
  color: #947131;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.contact h2 {
  max-width: 640px;
  font-size: clamp(2.4rem, 3.9vw, 3.75rem);
  line-height: 1.42;
  letter-spacing: 0.015em;
}

.contact h2 span {
  display: block;
}

.section-heading h2,
.course-intro h2 {
  text-wrap: balance;
}

.contact-copy .contact-lead {
  max-width: 480px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.95;
}

.contact-reassurance {
  margin: 22px 0 0;
  color: #416157;
  line-height: 1.95;
}

.contact-signature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 36px;
}

.contact-signature img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.contact-signature strong,
.contact-signature span {
  display: block;
}

.contact-signature strong {
  font-size: 1rem;
  font-weight: 600;
}

.contact-signature span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.contact-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e1e9e2;
  border-radius: 28px;
  box-shadow: 0 18px 52px rgba(39, 73, 57, 0.06);
}

.contact-panel-label {
  margin: 0 0 20px;
  color: var(--pine);
  font-size: 1.0625rem;
  font-weight: 600;
}

.contact-channels {
  display: grid;
  gap: 14px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 22px 20px;
  color: #234e42;
  background: #fbfdfb;
  border: 1px solid #d9e4dd;
  border-radius: 18px;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-channel:hover {
  background: #f0f6f1;
  border-color: #93b1a0;
  transform: translateY(-2px);
}

.contact-channel-primary {
  color: #fffefa;
  background: #22594b;
  border-color: #22594b;
}

.contact-channel-primary:hover {
  color: #fffefa;
  background: #2d6a59;
  border-color: #2d6a59;
}

.contact-channel:focus-visible {
  outline-color: #b2832e;
  outline-width: 3px;
}

.contact-channel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: currentColor;
}

.contact-channel-icon svg {
  width: 28px;
  height: 28px;
}

.contact-facebook-icon {
  font-family: Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.contact-channel-copy {
  min-width: 0;
}

.contact-channel-copy strong,
.contact-channel-copy > span {
  display: block;
}

.contact-channel-copy strong {
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 600;
}

.contact-channel-copy > span {
  margin-top: 5px;
  color: #5e756a;
  font-size: 0.875rem;
  line-height: 1.7;
}

.contact-channel-primary .contact-channel-copy > span {
  color: #e0ede6;
}

.contact-channel-arrow {
  color: currentColor;
  font-size: 1.4rem;
}

.contact-panel-note {
  margin: 22px 0 0;
  color: #677c71;
  font-size: 0.875rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.site-footer {
  padding: 52px 0 26px;
  color: #5d7368;
  background: #f1f6f2;
  border-top: 1px solid #e0e9e2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer-brand {
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-grid p {
  margin: 10px 0 0;
  font-size: 0.875rem;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: #345d4d;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #946f30;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-note {
  font-size: 0.875rem;
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #dce7df;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
}

@media (max-width: 980px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-copy,
  .contact-panel {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .contact .section-kicker {
    letter-spacing: 0.06em;
  }

  .contact h2 {
    font-size: clamp(2.05rem, 8.5vw, 2.75rem);
  }

  .contact-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .contact-channel {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 11px;
    padding: 19px 14px;
  }

  .contact-channel-icon {
    width: 30px;
    height: 34px;
  }

  .contact-channel-copy strong {
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 78px;
    padding-inline: 22px;
  }

  .site-header:has(.primary-nav.is-open) {
    height: 100svh;
    color: var(--white);
    background: rgba(17, 58, 49, 0.99);
    backdrop-filter: none;
  }

  .site-header:has(.primary-nav.is-open) .brand {
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .site-header.is-scrolled .nav-toggle {
    border-color: var(--line);
  }

  .primary-nav {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    color: var(--white);
    background: rgba(17, 47, 39, 0.985);
    font-family: var(--serif);
    font-size: 1.35rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle[aria-expanded="true"] {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
  }

  .welcome-grid,
  .section-heading,
  .ritual-paths,
  .healing-angel-inset,
  .about-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .healing-angel-inset img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .service-grid,
  .healing-service-grid,
  .feedback-gallery,
  .booking-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .booking-steps li:nth-child(2) {
    border-right: 0;
  }

  .booking-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(34, 88, 78, 0.18);
  }

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

  .healing-booking-panel .button {
    justify-self: start;
  }

  .service-card {
    min-height: 0;
  }

  .about-portrait {
    width: min(380px, 84vw);
    margin-inline: auto;
  }

  .about-copy {
    max-width: 720px;
  }

  .course-intro {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding-block: 78px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    background-position: 60% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 250, 238, 0.94) 0%, rgba(255, 248, 229, 0.78) 66%, rgba(255, 248, 229, 0.28) 100%),
      linear-gradient(180deg, rgba(255, 250, 240, 0.1) 0%, transparent 35%, rgba(255, 235, 190, 0.78) 100%);
  }

  .hero-content {
    align-self: end;
    padding: 150px 0 150px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .hero-copy br {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .hero-notes {
    bottom: 24px;
    gap: 8px 14px;
    flex-wrap: wrap;
    font-size: 0.75rem;
  }

  .hero-notes a {
    padding: 6px 10px;
  }

  .welcome::before {
    display: none;
  }

  .welcome-grid,
  .section-heading,
  .ritual-paths,
  .healing-angel-inset,
  .about-grid,
  .course-grid {
    gap: 36px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .service-card {
    min-height: 0;
    border-radius: 24px;
  }

  .service-icon {
    margin-top: 36px;
  }

  .ritual-path {
    min-height: 0;
    padding: 30px 24px 34px;
  }

  .ritual-scene {
    min-height: 310px;
    background-position: 62% center;
    border-radius: 24px;
  }

  .ritual-label {
    margin-top: 42px;
  }

  .featured-courses {
    grid-template-columns: 1fr;
  }

  .healing-angel-inset {
    gap: 0;
    margin-bottom: 64px;
    border-radius: 24px;
  }

  .healing-angel-inset img {
    aspect-ratio: 4 / 3;
  }

  .healing-angel-inset figcaption {
    padding: 28px 24px 32px;
  }

  .healing-category-heading {
    align-items: flex-start;
  }

  .healing-category-heading > span {
    width: 52px;
    height: 52px;
  }

  .healing-category-heading p {
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .healing-service-grid {
    grid-template-columns: 1fr;
  }

  .healing-service-card {
    min-height: 0;
    padding: 26px 23px;
  }

  .healing-card-bottom {
    margin-top: 28px;
  }

  .healing-booking-panel {
    padding: 31px 24px;
    border-radius: 24px;
  }

  .healing-booking-panel .button {
    width: 100%;
  }

  .featured-course {
    min-height: 330px;
  }

  .course-list article {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 0;
    padding-block: 34px;
  }

  .course-tag {
    grid-column: 1 / -1;
  }

  .course-list article > span:last-child {
    font-size: 1.9rem;
  }

  .feedback-gallery,
  .booking-steps {
    grid-template-columns: 1fr;
  }

  .feedback-shot {
    max-width: 420px;
    margin-inline: auto;
  }

  .booking-steps li,
  .booking-steps li:nth-child(2) {
    min-height: 0;
    padding: 28px 23px 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(34, 88, 78, 0.18);
  }

  .booking-steps li:last-child {
    border-bottom: 0;
  }

  .booking-steps h3 {
    margin-top: 22px;
  }




  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-note {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
}

/* Course details: static, accessible dialogs with native keyboard handling. */
body.course-dialog-open {
  overflow: hidden;
}

.course-detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 15px;
  color: #285e4d;
  background: #fffefa;
  border: 1px solid #b8cfc0;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.course-detail-trigger:hover {
  background: #edf6ef;
  border-color: #54846b;
}

.course-detail-trigger > span {
  font-size: 1.15rem;
}

.featured-course .course-detail-trigger {
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.course-dialog {
  width: min(900px, calc(100vw - 48px));
  max-width: none;
  max-height: min(90svh, 940px);
  padding: 0;
  margin: auto;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #dce7df;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(18, 45, 32, 0.22);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.course-dialog[open] {
  display: flex;
  flex-direction: column;
}

.course-dialog::backdrop {
  background: rgba(20, 42, 33, 0.44);
  backdrop-filter: blur(4px);
}

.course-dialog-header {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 34px;
  background: #f3f8f3;
  border-bottom: 1px solid #dfe9df;
}

.course-dialog-header > div {
  min-width: 0;
}

.course-dialog-header p {
  margin: 0 0 5px;
  color: #627d6d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.course-dialog-header h2 {
  margin: 0;
  color: var(--pine);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.45;
  text-wrap: balance;
}

.course-dialog-header h2:focus {
  outline: none;
}

.course-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 11px;
  place-items: center;
  color: #305b47;
  background: #fff;
  border: 1px solid #c9dbce;
  border-radius: 50%;
  cursor: pointer;
}

.course-dialog-close:hover {
  background: #e7f1e9;
}

.course-dialog-close svg {
  width: 22px;
  height: 22px;
}

.course-dialog-body {
  min-height: 0;
  padding: 28px 34px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.course-detail-tag {
  margin: 0 0 16px;
  color: #86672e;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.course-detail-overview {
  margin: 0 0 24px;
  color: #536f60;
  line-height: 1.9;
}

.course-stage-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 26px;
}

.course-stage-button {
  min-height: 46px;
  padding: 10px 12px;
  color: #3b6550;
  background: #fff;
  border: 1px solid #c4d8c9;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.course-stage-button:hover {
  background: #edf5ef;
}

.course-stage-button[aria-pressed="true"] {
  color: #fff;
  background: #285e4d;
  border-color: #285e4d;
}

.course-stage-title {
  margin: 0 0 18px;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.55;
}

.course-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.course-detail-meta-item {
  min-width: 0;
  padding: 18px 22px;
  background: #f3f8f2;
  border: 1px solid #e1ebdf;
  border-radius: 16px;
}

.course-detail-meta dt {
  margin: 0 0 6px;
  color: #607766;
  font-size: 0.875rem;
}

.course-detail-meta dd {
  margin: 0;
  color: #234f3d;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.55;
}

.course-detail-discount {
  margin: 14px 0 0;
  padding: 12px 16px;
  color: #775c28;
  background: #fff4d8;
  border-radius: 12px;
  font-size: 0.9375rem;
}

.course-detail-section {
  margin-top: 28px;
}

.course-detail-section h3 {
  margin: 0 0 12px;
  color: #28543f;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
}

.course-detail-section p {
  margin: 0;
  color: #526b5e;
  line-height: 1.9;
}

.course-detail-list {
  display: grid;
  gap: 9px;
  padding-left: 1.35em;
  margin: 0;
  color: #526b5e;
  line-height: 1.9;
}

.course-detail-list li::marker {
  color: #70987e;
}

.course-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.course-module {
  padding: 20px;
  background: #f8faf6;
  border: 1px solid #e6ece2;
  border-radius: 14px;
}

.course-module h4 {
  margin: 0 0 8px;
  color: #325a43;
  font-size: 1.0625rem;
}

.course-module p {
  font-size: 1rem;
}

.course-fee-options {
  margin: 0;
  padding: 0 20px;
  background: #f8faf6;
  border: 1px solid #e3ebdf;
  border-radius: 14px;
}

.course-fee-options > div {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
}

.course-fee-options > div + div {
  border-top: 1px solid #e1e9dd;
}

.course-fee-options dt {
  color: #526b5e;
}

.course-fee-options dd {
  margin: 0;
  color: #28543f;
  font-weight: 600;
  white-space: nowrap;
}

.course-detail-source {
  margin-top: 30px;
  padding-top: 20px;
  color: #65796a;
  border-top: 1px solid #e4eadd;
  font-size: 0.875rem;
  line-height: 1.85;
}

.course-detail-source p {
  margin: 0;
}

.course-detail-source a {
  display: inline-block;
  margin-top: 9px;
  color: #42694e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-dialog-footer {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 34px;
  background: #fffefa;
  border-top: 1px solid #e0e9dd;
}

.course-dialog-footer .button {
  min-height: 48px;
}

.course-dialog-enquiry {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  color: #41644e;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 680px) {
  .course-list article {
    grid-template-columns: 1fr;
  }

  .course-list .course-detail-trigger {
    justify-self: start;
    margin-top: 6px;
  }

  .course-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 20px;
  }

  .course-dialog-header {
    gap: 14px;
    padding: 18px 20px;
  }

  .course-dialog-header p {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .course-dialog-body {
    padding: 22px 20px 26px;
  }

  .course-stage-switcher,
  .course-module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .course-dialog-footer {
    display: grid;
    justify-content: stretch;
    gap: 6px;
    padding: 14px 20px;
  }

  .course-dialog-footer .button,
  .course-dialog-enquiry {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .course-detail-meta,
  .course-module-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-meta-item {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
    padding: 15px 16px;
  }

  .course-detail-meta dt {
    flex: 0 0 auto;
    margin: 0;
  }

  .course-detail-meta dd {
    text-align: right;
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
