/* =========================================================
   博愛之星牙醫診所 — STAR DENTAL CLINIC
   Brand palette: Star Brown + Rose Gold Taupe + Ivory
   Style ref: yj.dental's elegant whitespace + animations
   ========================================================= */

:root{
  /* === BRAND TOKENS === */
  --c-brown:        #594840;   /* Star Brown - 主色 */
  --c-brown-deep:   #3F3834;   /* Deep Warm Gray - 內文標題 */
  --c-rose:         #C8A898;   /* Rose Gold Taupe - 輔色 */
  --c-rose-soft:    #D9BFB3;   /* Misty Rose Beige - 高光 */
  --c-cream:        #E8DDD4;   /* Beige Cream - 區塊底 */
  --c-cream-soft:   #F0E8DF;   /* Cream softer variant */
  --c-ivory:        #F8F5F1;   /* Ivory White - 主背景 */
  --c-gray:         #B8B1AC;   /* Warm Gray - 副標 */
  --c-text:         #3F3834;   /* Body text */
  --c-mute:         #807972;
  --c-white:        #FFFFFF;

  /* === TYPOGRAPHY === */
  --ff-serif-en:    'Cormorant Garamond', 'Noto Serif TC', serif;
  --ff-serif-tc:    'Noto Serif TC', serif;
  --ff-sans-en:     'Inter', 'Noto Sans TC', sans-serif;
  --ff-sans-tc:     'Noto Sans TC', 'Inter', sans-serif;

  /* === SPACING === */
  --container:      1280px;
  --gutter:         clamp(20px, 4vw, 56px);
  --section-py:     clamp(80px, 11vw, 160px);
  --radius:         18px;
  --radius-sm:      8px;
  --radius-lg:      32px;

  --ease:           cubic-bezier(.22,.61,.36,1);
  --ease-out:       cubic-bezier(.16,1,.3,1);

  --shadow-card:    0 16px 40px -22px rgba(89,72,64,.18);
  --shadow-hover:   0 24px 60px -24px rgba(89,72,64,.28);
}

/* ---------- RESET ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--ff-sans-tc);
  font-weight:400;
  color: var(--c-text);
  background: var(--c-ivory);
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"palt";
  overflow-x: hidden;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; border:none; background:none; }
em{ font-style: italic; color: var(--c-rose); font-family: var(--ff-serif-en); }

/* ---------- LAYOUT ---------- */
.container{
  max-width: var(--container);
  margin:0 auto;
  padding: 0 var(--gutter);
}
.section{
  padding: var(--section-py) 0;
  position: relative;
}
.section--cream{ background: var(--c-cream); }
.section--cream-soft{ background: var(--c-cream-soft); }
.section--brown{
  background: var(--c-brown);
  color: var(--c-cream);
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 14px;
  font-family: var(--ff-sans-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--c-rose);
  margin-bottom: 22px;
}
.eyebrow::before,
.eyebrow::after{
  content:'';
  width: 28px;
  height: 1px;
  background: var(--c-rose);
}
.eyebrow--left::before{ display:none; }
.eyebrow--light{ color: var(--c-rose-soft); }
.eyebrow--light::before, .eyebrow--light::after{ background: var(--c-rose-soft); }

.h-display{
  font-family: var(--ff-serif-en);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--c-brown);
  margin: 0 0 22px;
}
.h-display em{
  font-style: italic;
  font-weight: 500;
  color: var(--c-rose);
}
.h-display--light{ color: var(--c-ivory); }
.h-display--light em{ color: var(--c-rose-soft); }

.h-section{
  font-family: var(--ff-serif-tc);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-brown);
  letter-spacing: .04em;
  margin: 0 0 20px;
}

.bilingual{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin: 0 0 24px;
}
.bilingual__en{
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1;
  color: var(--c-brown);
  letter-spacing: -.01em;
}
.bilingual__tc{
  font-family: var(--ff-serif-tc);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  color: var(--c-brown);
  letter-spacing: .35em;
  text-indent: .35em;
}
.bilingual--center{ align-items:center; text-align:center; }
.bilingual--light .bilingual__en,
.bilingual--light .bilingual__tc{ color: var(--c-ivory); }

.section__head{ margin-bottom: clamp(48px, 6vw, 84px); }
.section__head--center{ text-align: center; align-items:center; }

.section__lead{
  font-family: var(--ff-serif-tc);
  font-size: 17px;
  color: var(--c-mute);
  letter-spacing: .12em;
  margin: 0;
  max-width: 640px;
  line-height: 2;
}
.section__lead--center{ margin: 0 auto; text-align:center; }
.section__lead--light{ color: rgba(248,245,241,.75); }

/* ---------- DECORATIVE STAR ---------- */
.star-mark{
  display:inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C8A898'><path d='M12 2l2.39 7.36H22l-6.18 4.49L18.21 22 12 17.27 5.79 22l2.39-8.15L2 9.36h7.61z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.star-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  margin: 14px 0;
}
.star-divider::before, .star-divider::after{
  content:'';
  width: 60px;
  height: 1px;
  background: var(--c-rose);
}
.star-divider .star-mark{ width: 14px; height:14px; }

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 18px 38px;
  font-family: var(--ff-sans-tc);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .25em;
  text-indent: .25em;
  border-radius: 999px;
  transition: all .4s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary{
  background: var(--c-brown);
  color: var(--c-ivory);
}
.btn--primary:hover{
  background: var(--c-brown-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--rose{
  background: var(--c-rose);
  color: var(--c-white);
}
.btn--rose:hover{
  background: var(--c-brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--ghost{
  background: transparent;
  color: var(--c-brown);
  border-color: var(--c-rose);
}
.btn--ghost:hover{
  background: var(--c-rose);
  color: var(--c-white);
  border-color: var(--c-rose);
}
.btn--ghost-light{
  background: transparent;
  color: var(--c-ivory);
  border-color: rgba(248,245,241,.4);
}
.btn--ghost-light:hover{
  background: var(--c-ivory);
  color: var(--c-brown);
}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap: 12px;
  font-family: var(--ff-sans-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-brown);
  border-bottom: 1px solid var(--c-rose);
  padding-bottom: 6px;
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.link-arrow i{ font-style:normal; transition: transform .35s var(--ease); }
.link-arrow:hover{ color: var(--c-rose); gap: 18px; }
.link-arrow:hover i{ transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .35s var(--ease);
  padding: 8px 0;
}
.nav.is-scrolled{
  background: rgba(248,245,241,.92);
  box-shadow: 0 1px 0 rgba(89,72,64,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0;
}
.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 32px;
}
.nav__logo{
  display:flex;
  align-items:center;
  gap: 14px;
  color: var(--c-ivory);
  transition: color .35s var(--ease);
}
.nav.is-scrolled .nav__logo{ color: var(--c-brown); }
.nav__logo img{ height: 44px; width:auto; }
.nav__logo-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.nav__logo-en{
  font-family: var(--ff-serif-en);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .18em;
}
.nav__logo-tc{
  font-family: var(--ff-serif-tc);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .35em;
  opacity:.85;
  margin-top: 2px;
}
.nav__menu{
  display:flex;
  align-items:center;
  gap: 24px;
}
.nav__menu a{
  font-family: var(--ff-sans-tc);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(248,245,241,.9);
  position:relative;
  transition: color .3s var(--ease);
  padding: 8px 0;
  white-space: nowrap;
}
.nav.is-scrolled .nav__menu a{ color: var(--c-brown); }
.nav__menu a::after{
  content:'';
  position:absolute;
  left:50%; bottom:-2px;
  width: 0; height: 1px;
  background: var(--c-rose);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.nav__menu a:hover{ color: var(--c-rose); }
.nav__menu a:hover::after{ width: 100%; left:0; }
.nav__cta{
  padding: 12px 26px;
  background: var(--c-rose);
  color: var(--c-white);
  border-radius: 999px;
  font-family: var(--ff-sans-tc);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .25em;
  text-indent: .25em;
  transition: all .35s var(--ease);
}
.nav__cta:hover{
  background: var(--c-brown);
  transform: translateY(-1px);
}
.nav__burger{
  display:none;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
}
.nav__burger span{
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--c-ivory);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav.is-scrolled .nav__burger span{ background: var(--c-brown); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display:flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-ivory);
}
.hero__bg{
  position:absolute; inset:0;
  background-image: linear-gradient(135deg, rgba(89,72,64,.5), rgba(63,56,52,.78)),
                    url("../images/hero-01.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease-out) forwards;
}
@keyframes heroZoom{
  to{ transform: scale(1); }
}
.hero__overlay{
  position:absolute; inset:0;
  background: radial-gradient(circle at 50% 60%, transparent 30%, rgba(63,56,52,.4) 100%);
}
.hero__content{
  position:relative; z-index: 2;
  max-width: 920px;
  padding: 0 var(--gutter);
  animation: fadeUp 1.4s .35s var(--ease-out) both;
}
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(28px); }
  to  { opacity:1; transform: translateY(0); }
}
.hero__eyebrow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .5em;
  color: var(--c-rose-soft);
  margin-bottom: 38px;
  text-transform: uppercase;
}
.hero__eyebrow .line{
  width: 56px; height: 1px;
  background: var(--c-rose-soft);
  opacity:.7;
}
.hero__title{
  display:flex;
  flex-direction:column;
  gap: 22px;
  margin: 0 0 34px;
  line-height: 1.05;
}
.hero__title-en{
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 6.5vw, 96px);
  letter-spacing: .005em;
  color: var(--c-ivory);
}
.hero__title-tc{
  font-family: var(--ff-serif-tc);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: .35em;
  text-indent: .35em;
  color: var(--c-ivory);
}
.hero__sub{
  font-family: var(--ff-sans-tc);
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: .12em;
  color: rgba(248,245,241,.82);
  margin: 0 auto 50px;
  max-width: 580px;
}
.hero__actions{
  display:flex; gap: 16px;
  justify-content:center;
  flex-wrap:wrap;
}
.hero__actions .btn--primary{
  background: var(--c-rose);
  color: var(--c-white);
}
.hero__actions .btn--primary:hover{
  background: var(--c-ivory);
  color: var(--c-brown);
}
.hero__scroll{
  position:absolute;
  bottom: 32px;
  left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap: 14px;
  font-family: var(--ff-sans-en);
  font-size: 10px;
  letter-spacing: .45em;
  color: rgba(248,245,241,.7);
  z-index: 2;
}
.hero__scroll-line{
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--c-rose-soft), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after{
  content:'';
  position:absolute; left:0; top:-30%;
  width:100%; height:30%;
  background: var(--c-ivory);
  animation: scrollDown 2.4s var(--ease) infinite;
}
@keyframes scrollDown{
  to{ top: 100%; }
}

/* =========================================================
   STORY / ABOUT
   ========================================================= */
.story__grid{
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.story__img{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-cream);
}
.story__img img{
  width:100%; height:100%; object-fit:cover;
  transition: transform 1.6s var(--ease-out);
}
.story__img:hover img{ transform: scale(1.05); }
.story__img-tag{
  position:absolute;
  bottom: -2px; right: -2px;
  background: var(--c-brown);
  color: var(--c-ivory);
  padding: 30px 36px;
  border-top-left-radius: var(--radius-lg);
  display:flex;
  align-items:center;
  gap: 18px;
}
.story__img-tag .num{
  font-family: var(--ff-serif-en);
  font-size: 64px;
  font-style: italic;
  color: var(--c-rose-soft);
  line-height:1;
  font-weight: 500;
}
.story__img-tag .lbl{
  font-family: var(--ff-sans-en);
  font-size: 10px;
  letter-spacing: .4em;
  line-height: 1.6;
  text-transform: uppercase;
}
.story__text p{
  margin: 0 0 22px;
  color: var(--c-text);
  font-size: 15.5px;
}
.story__signature{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 32px;
}
.story__signature-name{
  font-family: var(--ff-serif-tc);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-brown);
}
.story__signature-title{
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--c-rose);
  text-transform: uppercase;
}
.story__features{
  list-style:none; padding:0;
  margin: 40px 0 0;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
  border-top: 1px solid var(--c-rose-soft);
  padding-top: 36px;
}
.story__features li{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  font-family: var(--ff-serif-tc);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-brown);
  line-height: 1.6;
}
.story__features li .num{
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 24px;
  color: var(--c-rose);
  line-height: 1;
  flex-shrink: 0;
}

/* =========================================================
   QUOTE BAND
   ========================================================= */
.quote-band{
  background: var(--c-cream-soft);
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
}
.quote-band::before, .quote-band::after{
  content:'';
  position: absolute;
  left:50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--c-rose);
}
.quote-band::before{ top: 80px; }
.quote-band::after{ bottom: 80px; }
.quote-band blockquote{
  margin: 0 auto;
  max-width: 880px;
  font-family: var(--ff-serif-tc);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .08em;
  color: var(--c-brown);
}
.quote-band__en{
  display:block;
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--c-rose);
  margin-top: 22px;
  letter-spacing: .02em;
}
.quote-band__sign{
  display:inline-block;
  margin-top: 28px;
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--c-gray);
  text-transform: uppercase;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card{
  position: relative;
  background: var(--c-ivory);
  border: 1px solid rgba(200,168,152,.18);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .5s var(--ease);
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-rose);
}
.service-card__img{
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.service-card__img::after{
  content:'';
  position: absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(89,72,64,.4));
}
.service-card__num{
  position: absolute;
  top: 22px; left: 24px;
  z-index: 2;
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 22px;
  color: var(--c-ivory);
  letter-spacing: .1em;
  background: rgba(89,72,64,.5);
  width: 44px; height: 44px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.service-card__body{
  padding: 32px 32px 36px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}
.service-card__en{
  display:block;
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-card h3{
  font-family: var(--ff-serif-tc);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--c-brown);
  letter-spacing: .04em;
}
.service-card p{
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--c-mute);
  line-height: 1.95;
  flex-grow:1;
}

/* =========================================================
   DOCTORS
   ========================================================= */
.doctors{
  background: var(--c-ivory);
}
.doctors__head{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:end;
  margin-bottom: 64px;
}
.doctors__head-side{
  font-family: var(--ff-sans-tc);
  color: var(--c-mute);
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .06em;
}
.doctor-lead{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.doctor-lead__img{
  background-size: cover;
  background-position: center top;
  min-height: 520px;
}
.doctor-lead__info{
  padding: clamp(36px, 5vw, 72px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.doctor-lead__info .role{
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--c-rose);
  margin-bottom: 14px;
}
.doctor-lead__info h3{
  font-family: var(--ff-serif-tc);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--c-brown);
  letter-spacing: .05em;
}
.doctor-lead__info h3 .en{
  display:block;
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 18px;
  color: var(--c-rose);
  margin-top: 6px;
  letter-spacing: .05em;
  font-weight: 400;
}
.doctor-lead__info p{
  font-size: 15.5px;
  line-height: 2;
  color: var(--c-text);
  margin: 20px 0 24px;
}
.doctor-lead__tags{
  display:flex; flex-wrap:wrap; gap: 10px;
  margin-top: 8px;
}
.doctor-lead__tags span{
  font-family: var(--ff-sans-tc);
  font-size: 12px;
  letter-spacing: .15em;
  background: var(--c-rose-soft);
  color: var(--c-brown);
  padding: 6px 14px;
  border-radius: 999px;
}

.doctors__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.doctor-card{
  background: var(--c-cream-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.doctor-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.doctor-card__img{
  background-size: cover;
  background-position: center top;
  aspect-ratio: 1/1.15;
  filter: saturate(.95);
  transition: filter .5s var(--ease);
}
.doctor-card:hover .doctor-card__img{ filter: saturate(1.05); }
.doctor-card__info{
  padding: 24px 24px 28px;
}
.doctor-card__info .role{
  font-family: var(--ff-sans-en);
  font-size: 10px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--c-rose);
  margin-bottom: 8px;
}
.doctor-card__info h4{
  font-family: var(--ff-serif-tc);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--c-brown);
  letter-spacing: .04em;
}
.doctor-card__info p{
  margin: 0;
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: .05em;
  line-height: 1.7;
}
.doctor-card__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* =========================================================
   ENV CAROUSEL（首頁診療空間橫向輪播）
   ========================================================= */
.env-carousel{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.env-c-card{
  position: relative;
  aspect-ratio: 5/4;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease);
}
.env-c-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(89,72,64,.65));
  transition: background .4s var(--ease);
}
.env-c-card:hover{ transform: translateY(-4px); }
.env-c-card:hover::after{ background: linear-gradient(180deg, rgba(89,72,64,.15), rgba(89,72,64,.75)); }
.env-c-card__label{
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  color: var(--c-ivory);
}
.env-c-card__label .en{
  display: block;
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 22px;
  letter-spacing: .03em;
}
.env-c-card__label .tc{
  display: block;
  font-family: var(--ff-serif-tc);
  font-size: 13px;
  letter-spacing: .25em;
  opacity: .92;
  margin-top: 4px;
}
@media (max-width: 1080px){
  .env-carousel{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px){
  /* 手機自動 marquee：env-carousel */
  .env-carousel{
    display: block !important;
    grid-template-columns: none;
    overflow: hidden !important;
    padding: 8px 0 16px;
    margin: 0;
    width: 100%;
  }
  .env-carousel.is-marquee .marquee-track{
    display: flex;
    gap: 16px;
    width: max-content;
    animation: homeMarquee 36s linear infinite;
  }
  .env-c-card{
    flex: 0 0 78vw;
    max-width: 78vw;
    aspect-ratio: 4/3;
  }
}

/* 服務項目 marquee 規則同樣 */
@media (max-width: 760px){
  .services__grid.is-marquee{
    display: block !important;
    grid-template-columns: none;
    overflow: hidden !important;
    padding: 8px 0 16px;
    margin: 0;
    width: 100%;
  }
  .services__grid.is-marquee .marquee-track{
    display: flex;
    gap: 16px;
    width: max-content;
    animation: homeMarquee 42s linear infinite;
  }
  .services__grid.is-marquee .service-card{
    flex: 0 0 78vw;
    max-width: 78vw;
  }
}

@keyframes homeMarquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}
.doctor-card__tags span{
  background: var(--c-rose-soft);
  color: var(--c-brown);
  font-family: var(--ff-sans-tc);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .05em;
  border: 1px solid var(--c-rose-soft);
  line-height: 1.4;
}
.doctor-card__more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1px solid var(--c-rose);
  border-radius: 999px;
  font-family: var(--ff-sans-tc);
  font-size: 12px;
  letter-spacing: .25em;
  text-indent: .25em;
  color: var(--c-brown);
  text-decoration: none;
  transition: all .3s var(--ease);
  align-self: flex-start;
}
.doctor-card__more i{ font-style: normal; transition: transform .3s var(--ease); }
.doctor-card__more:hover{
  background: var(--c-rose);
  color: #fff;
}
.doctor-card__more:hover i{ transform: translateX(4px); }
.doctor-card__more--lead{
  margin-top: 24px;
  padding: 12px 26px;
  font-size: 13px;
}

/* =========================================================
   PHILOSOPHY (Marquee strip)
   ========================================================= */
.marquee{
  background: var(--c-brown);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.marquee__track{
  display:flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.marquee__item{
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  color: var(--c-cream);
  letter-spacing: .02em;
  display:inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee__item::after{
  content:'★';
  color: var(--c-rose);
  font-size: 18px;
  font-style: normal;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* =========================================================
   EQUIPMENT
   ========================================================= */
.equip__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.equip-card{
  background: var(--c-ivory);
  border: 1px solid rgba(200,168,152,.2);
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  text-align: center;
  transition: all .4s var(--ease);
}
.equip-card:hover{
  border-color: var(--c-rose);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.equip-card__img{
  height: 160px;
  display:flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.equip-card__img img{
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.equip-card__num{
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 22px;
  color: var(--c-rose);
}
.equip-card h4{
  font-family: var(--ff-serif-tc);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-brown);
  margin: 8px 0 6px;
  letter-spacing: .04em;
}
.equip-card__brand{
  display:block;
  font-family: var(--ff-sans-en);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.equip-card p{
  font-size: 13.5px;
  color: var(--c-mute);
  line-height: 1.85;
  margin: 0;
}

/* =========================================================
   ENVIRONMENT (asymmetric grid)
   ========================================================= */
.env__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 18px;
}
.env-item{
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .6s var(--ease);
}
.env-item::after{
  content:'';
  position: absolute; inset:0;
  background: linear-gradient(180deg, transparent 50%, rgba(89,72,64,.55));
  transition: background .45s var(--ease);
}
.env-item:hover::after{
  background: linear-gradient(180deg, rgba(89,72,64,.2), rgba(89,72,64,.65));
}
.env-item span{
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 2;
  color: var(--c-ivory);
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 22px;
  letter-spacing: .03em;
}
.env-item span .tc{
  display:block;
  font-family: var(--ff-serif-tc);
  font-style: normal;
  font-size: 13px;
  letter-spacing: .25em;
  margin-top: 4px;
  opacity:.9;
}
.env-item--wide{ grid-column: span 2; }
.env-item--tall{ grid-row: span 2; }

/* =========================================================
   CASES / TESTIMONIALS
   ========================================================= */
.cases__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card{
  position: relative;
  background: var(--c-ivory);
  border-radius: var(--radius);
  padding: 52px 36px 36px;
  border: 1px solid rgba(200,168,152,.25);
  transition: all .45s var(--ease);
}
.case-card:hover{
  transform: translateY(-5px);
  border-color: var(--c-rose);
  box-shadow: var(--shadow-hover);
}
.case-card--accent{
  background: var(--c-brown);
  border-color: var(--c-brown);
  color: var(--c-cream);
}
.case-card__mark{
  font-family: var(--ff-serif-en);
  font-size: 96px;
  font-style: italic;
  line-height: .55;
  color: var(--c-rose);
  margin-bottom: 18px;
}
.case-card blockquote{
  margin: 0 0 28px;
  font-family: var(--ff-serif-tc);
  font-size: 17px;
  line-height: 2;
  color: var(--c-brown);
  letter-spacing: .04em;
}
.case-card--accent blockquote{ color: var(--c-cream); }
.case-card figcaption{
  display:flex;
  flex-direction:column;
  border-top: 1px solid rgba(200,168,152,.4);
  padding-top: 20px;
}
.case-card--accent figcaption{ border-top-color: rgba(232,221,212,.2); }
.case-card .name{
  font-family: var(--ff-serif-tc);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-brown);
}
.case-card--accent .name{ color: var(--c-ivory); }
.case-card .meta{
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-top: 6px;
}

/* =========================================================
   NEWS
   ========================================================= */
.news__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card{
  background: var(--c-ivory);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .45s var(--ease);
}
.news-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.news-card__img{
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-card__category{
  position: absolute;
  top: 16px; left: 16px;
  background: var(--c-ivory);
  color: var(--c-brown);
  font-family: var(--ff-sans-tc);
  font-size: 11px;
  letter-spacing: .25em;
  padding: 6px 14px;
  border-radius: 999px;
}
.news-card__body{
  padding: 28px 28px 32px;
}
.news-card__date{
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-bottom: 12px;
  display:block;
}
.news-card h4{
  font-family: var(--ff-serif-tc);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-brown);
  margin: 0 0 14px;
  letter-spacing: .04em;
  line-height: 1.6;
}
.news-card p{
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--c-mute);
  line-height: 1.95;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}
.contact__lead{
  font-size: 16px;
  line-height: 2.1;
  color: rgba(232,221,212,.78);
  margin: 0 0 44px;
  letter-spacing: .08em;
}
.contact__info{
  margin: 0 0 44px;
  border-top: 1px solid rgba(200,168,152,.3);
}
.contact__row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(200,168,152,.3);
  align-items:center;
}
.contact__row .lbl{
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--c-rose-soft);
  text-transform: uppercase;
}
.contact__row p{
  margin: 0;
  font-size: 15px;
  color: var(--c-ivory);
  line-height: 1.95;
}
.contact__row a{ color: var(--c-ivory); transition: color .25s var(--ease); }
.contact__row a:hover{ color: var(--c-rose-soft); }
.contact__actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact__right{
  min-height: 580px;
  background: var(--c-brown-deep);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.contact__right iframe{
  filter: grayscale(.35) sepia(.15);
  width:100%; height:100%; min-height: 580px;
  border: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background: var(--c-brown-deep);
  color: rgba(232,221,212,.6);
  padding: 60px 0 36px;
}
.footer__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(200,168,152,.15);
}
.footer__logo{
  display:flex; align-items:center; gap: 14px;
  color: var(--c-ivory);
}
.footer__logo img{ height: 40px; width:auto; }
.footer__menu{
  display:flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__menu a{
  font-size: 13px;
  letter-spacing: .15em;
  color: rgba(232,221,212,.7);
  transition: color .25s var(--ease);
}
.footer__menu a:hover{ color: var(--c-rose-soft); }
.footer__bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  font-family: var(--ff-sans-en);
  font-size: 12px;
  letter-spacing: .12em;
}
.footer__bottom p{ margin: 0; }

/* =========================================================
   ENV LIGHTBOX（首頁診療空間放大檢視）
   ========================================================= */
.env-lightbox{
  position: fixed; inset: 0; z-index: 200;
  background: rgba(63, 56, 52, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.env-lightbox.is-open{ opacity: 1; pointer-events: auto; }
.env-lightbox__img{
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  object-fit: contain;
  transform: scale(.94);
  transition: transform .4s var(--ease);
}
.env-lightbox.is-open .env-lightbox__img{ transform: scale(1); }
.env-lightbox__label{
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  color: var(--c-ivory);
  text-align: center;
  pointer-events: none;
}
.env-lightbox__label .en{
  display: block;
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 26px;
  letter-spacing: .03em;
}
.env-lightbox__label .tc{
  display: block;
  font-family: var(--ff-serif-tc);
  font-size: 14px;
  letter-spacing: .3em;
  opacity: .9;
  margin-top: 6px;
}
.env-lightbox__close{
  position: absolute;
  top: 22px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.env-lightbox__close:hover{ background: rgba(255,255,255,.25); transform: rotate(90deg); }
@media(max-width:560px){
  .env-lightbox{ padding: 16px; }
  .env-lightbox__close{ top: 14px; right: 14px; width: 40px; height: 40px; font-size: 24px; }
  .env-lightbox__label .en{ font-size: 20px; }
  .env-lightbox__label .tc{ font-size: 12px; }
}

/* =========================================================
   FLOATING LINE BUTTON (全站)
   ========================================================= */
.line-fab{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  background: #06C755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(6,199,85,.4), 0 2px 6px rgba(0,0,0,.1);
  z-index: 90;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.line-fab:hover{
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 30px rgba(6,199,85,.5), 0 4px 10px rgba(0,0,0,.15);
}
.line-fab svg{
  width: 34px;
  height: 34px;
  fill: #fff;
  position: relative;
  z-index: 2;
}
.line-fab__pulse{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #06C755;
  z-index: 1;
  animation: linePulse 2.4s ease-out infinite;
}
@keyframes linePulse{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.7); opacity: 0; }
}
.line-fab__label{
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  color: #06C755;
  font-family: var(--ff-sans-tc);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(89,72,64,.18);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.line-fab:hover .line-fab__label{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media(max-width: 760px){
  .line-fab{
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .line-fab svg{ width: 28px; height: 28px; }
  .line-fab__label{ display: none; }
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > *{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-stagger.is-in > *{
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-in > *:nth-child(1){ transition-delay: 0s; }
.reveal-stagger.is-in > *:nth-child(2){ transition-delay: .1s; }
.reveal-stagger.is-in > *:nth-child(3){ transition-delay: .2s; }
.reveal-stagger.is-in > *:nth-child(4){ transition-delay: .3s; }
.reveal-stagger.is-in > *:nth-child(5){ transition-delay: .4s; }
.reveal-stagger.is-in > *:nth-child(6){ transition-delay: .5s; }
.reveal-stagger.is-in > *:nth-child(7){ transition-delay: .6s; }
.reveal-stagger.is-in > *:nth-child(8){ transition-delay: .7s; }

/* =========================================================
   TREATMENT DETAIL PAGE
   ========================================================= */
.page-hero{
  position: relative;
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--c-cream-soft);
  text-align: center;
}
.page-hero__breadcrumb{
  font-family: var(--ff-sans-en);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.page-hero__breadcrumb a{ color: var(--c-rose); }

.treatment-block{
  padding: clamp(60px, 8vw, 100px) 0;
}
.treatment-block:nth-child(even){ background: var(--c-cream-soft); }

.tech-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tech-card{
  background: var(--c-ivory);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(200,168,152,.2);
  text-align: center;
  transition: all .4s var(--ease);
}
.tech-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--c-rose);
}
.tech-card__icon{
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 24px;
  color: var(--c-rose);
}
.tech-card h4{
  font-family: var(--ff-serif-tc);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-brown);
  margin: 0 0 12px;
}
.tech-card p{
  font-size: 14px;
  color: var(--c-mute);
  line-height: 1.95;
  margin: 0;
}

.compare-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--c-ivory);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare-table th, .compare-table td{
  padding: 22px 26px;
  text-align: left;
  border-bottom: 1px solid rgba(200,168,152,.25);
}
.compare-table th{
  background: var(--c-brown);
  color: var(--c-ivory);
  font-family: var(--ff-serif-tc);
  font-weight: 600;
  letter-spacing: .1em;
}
.compare-table th:first-child{
  background: var(--c-brown-deep);
}
.compare-table tr:last-child td{ border-bottom: none; }
.compare-table .head-cell{
  font-family: var(--ff-serif-tc);
  font-weight: 600;
  color: var(--c-brown);
  background: var(--c-cream-soft);
}
.compare-table .highlight{
  background: rgba(200,168,152,.12);
  color: var(--c-brown);
  font-weight: 500;
}

.step-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step-card{
  text-align: center;
  position: relative;
  padding: 0 14px;
}
.step-card__num{
  font-family: var(--ff-serif-en);
  font-style: italic;
  font-size: 56px;
  color: var(--c-rose);
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h5{
  font-family: var(--ff-serif-tc);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-brown);
  margin: 0 0 12px;
  letter-spacing: .05em;
}
.step-card p{
  font-size: 13.5px;
  color: var(--c-mute);
  line-height: 1.9;
  margin: 0;
}

.faq{
  max-width: 880px;
  margin: 0 auto;
}
.faq-item{
  background: var(--c-ivory);
  border: 1px solid rgba(200,168,152,.25);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.is-open{ border-color: var(--c-rose); }
.faq-item__q{
  padding: 22px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  font-family: var(--ff-serif-tc);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-brown);
  cursor: pointer;
  letter-spacing: .04em;
}
.faq-item__q::after{
  content:'+';
  font-family: var(--ff-serif-en);
  font-size: 28px;
  color: var(--c-rose);
  line-height: 1;
  transition: transform .35s var(--ease);
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__q::after{
  content:'−';
}
.faq-item__a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), padding .35s var(--ease);
  padding: 0 28px;
  color: var(--c-mute);
  font-size: 14.5px;
  line-height: 1.95;
}
.faq-item.is-open .faq-item__a{
  max-height: 400px;
  padding: 0 28px 26px;
}

/* =========================================================
   BOOKING FORM
   ========================================================= */
.booking{
  padding: 140px 0 100px;
  background: var(--c-ivory);
}
.booking__grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form{
  background: var(--c-cream-soft);
  padding: clamp(36px, 4vw, 60px);
  border-radius: var(--radius-lg);
}
.form__row{
  margin-bottom: 22px;
}
.form__row--split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__label{
  display:block;
  font-family: var(--ff-sans-tc);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-brown);
  letter-spacing: .15em;
  margin-bottom: 10px;
}
.form__label .req{
  color: var(--c-rose);
  margin-left: 4px;
}
.form__input,
.form__select,
.form__textarea{
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(200,168,152,.4);
  background: var(--c-ivory);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans-tc);
  font-size: 14px;
  color: var(--c-brown);
  letter-spacing: .05em;
  transition: border-color .25s var(--ease);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus{
  outline: none;
  border-color: var(--c-rose);
  background: var(--c-white);
}
.form__textarea{
  resize: vertical;
  min-height: 90px;
}
.form__radio-group{
  display:flex;
  gap: 16px;
}
.form__radio{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--c-brown);
}
.form__check{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 24px;
  font-size: 13px;
  color: var(--c-mute);
  line-height: 1.7;
}
.form__check a{ color: var(--c-rose); text-decoration: underline; }
.form__submit{
  width: 100%;
}

.booking__sidebar{
  background: var(--c-brown);
  color: var(--c-cream);
  padding: clamp(36px, 4vw, 60px);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 120px;
}
.booking__sidebar h3{
  font-family: var(--ff-serif-tc);
  color: var(--c-ivory);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}
.booking__sidebar .en{
  font-family: var(--ff-serif-en);
  font-style: italic;
  color: var(--c-rose-soft);
  font-size: 14px;
  letter-spacing: .1em;
  margin-bottom: 28px;
  display: block;
}
.booking__info-row{
  padding: 16px 0;
  border-bottom: 1px solid rgba(200,168,152,.2);
}
.booking__info-row:last-of-type{ border-bottom: none; }
.booking__info-row .lbl{
  font-family: var(--ff-sans-en);
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--c-rose-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.booking__info-row p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-ivory);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .services__grid{ grid-template-columns: repeat(2, 1fr); }
  .equip__grid{ grid-template-columns: repeat(2, 1fr); }
  .doctors__grid{ grid-template-columns: repeat(3, 1fr); }
  .cases__grid{ grid-template-columns: 1fr; }
  .news__grid{ grid-template-columns: repeat(2, 1fr); }
  .doctors__head{ grid-template-columns: 1fr; }
  .doctor-lead{ grid-template-columns: 1fr; }
  .doctor-lead__img{ min-height: 380px; }
  .env__grid{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }
  .env-item--wide{ grid-column: span 2; }
  .env-item--tall{ grid-row: auto; }
  .contact__grid{ grid-template-columns: 1fr; }
  .contact__right{ min-height: 380px; }
  .contact__right iframe{ min-height: 380px; }
  .step-grid{ grid-template-columns: repeat(2, 1fr); }
  .tech-grid{ grid-template-columns: 1fr; }
  .booking__grid{ grid-template-columns: 1fr; }
  .booking__sidebar{ position: static; }
}
@media (max-width: 760px){
  .nav__cta{ display:none; }
  .nav__burger{ display:flex; }

  /* Mobile dropdown menu */
  .nav__menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-ivory);
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease), box-shadow .35s var(--ease);
    box-shadow: none;
  }
  .nav__menu.is-open{
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 18px 32px -12px rgba(89,72,64,.2);
    border-top: 1px solid var(--c-rose-soft);
  }
  .nav__menu a{
    padding: 18px 32px !important;
    border-bottom: 1px solid var(--c-cream);
    color: var(--c-brown) !important;
    text-align: left;
    letter-spacing: .28em;
    font-size: 14px;
  }
  .nav__menu a:last-child{ border-bottom: none; }
  .nav__menu a::after{ display: none; }
  .nav__menu a:hover{ background: var(--c-cream-soft); color: var(--c-rose) !important; }

  /* Burger 動畫變 X */
  .nav__burger.is-open span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2){ opacity: 0; }
  .nav__burger.is-open span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }
  .nav.is-scrolled .nav__burger.is-open span,
  .nav__burger.is-open span{ background: var(--c-brown); }

  .hero{ min-height: 640px; }
  .story__grid{ grid-template-columns: 1fr; }
  .story__img{ aspect-ratio: 4/3.4; }
  .story__features{ grid-template-columns: 1fr; }
  /* 首頁服務項目：等待 JS 套用 .is-marquee 後切換為自動橫移 */
  .services__grid:not(.is-marquee){
    display: flex;
    grid-template-columns: none;
    overflow-x: hidden;
    gap: 16px;
  }
  .services__grid:not(.is-marquee) .service-card{
    flex: 0 0 78vw;
    max-width: 78vw;
  }
  .equip__grid{ grid-template-columns: 1fr; }
  .doctors__grid{ grid-template-columns: repeat(2, 1fr); }
  .env__grid{
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .env-item--wide{ grid-column: auto; }
  .news__grid{ grid-template-columns: 1fr; }
  .footer__top{ flex-direction:column; align-items:flex-start; }
  .footer__bottom{ flex-direction:column; }
  .form__row--split{ grid-template-columns: 1fr; }
}
