/* ============================================================
   佳言語言治療所 — style.css
   ============================================================ */

/* ── 1. CSS Variables ── */
:root {
  --color-green:        #8BAF96;
  --color-green-dark:   #6A9478;
  --color-green-light:  #F0F5F2;
  --color-green-pale:   #EAF2ED;
  --color-yellow:       #E8D46A;
  --color-yellow-light: #FBF7DC;
  --color-yellow-dark:  #C8B040;
  --color-bg:           #FAFAF8;
  --color-text:         #444444;
  --color-text-light:   #777777;
  --color-white:        #FFFFFF;
  --color-border:       #E0E8E3;

  --font-body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.8;

  --section-padding-y: 5rem;
  --container-max: 1140px;
  --container-pad: 1.5rem;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  --shadow-card:       0 4px 18px rgba(139,175,150,0.15);
  --shadow-card-hover: 0 8px 28px rgba(139,175,150,0.28);
  --shadow-header:     0 2px 16px rgba(0,0,0,0.08);

  --transition: 0.25s ease;
  --header-h: 100px;
}

/* ── 2. Reset + Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

@media (max-width: 768px) {
  body { padding-bottom: 56px; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ── 3. Typography ── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

/* ── 4. Layout Utilities ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-padding-y) 0;
}

.section--alt {
  background-color: var(--color-green-light);
}

.section--yellow {
  background-color: var(--color-yellow-light);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── 5. Section Title ── */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  margin-bottom: 3rem;
}

.section-title--left {
  align-items: flex-start;
  text-align: left;
}

.section-title__icon {
  width: 40px;
  height: auto;
}

.section-title h2,
.section-title h1 {
  color: var(--color-text);
}

.section-title__deco {
  width: 80px;
  height: auto;
  margin-top: 0.25rem;
}

/* ── 6. Wave Divider ── */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 7. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-green-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-green);
  color: var(--color-green-dark);
}
.btn--outline:hover {
  background: var(--color-green-light);
}

.btn--line {
  background: #06C755;
  color: var(--color-white);
  font-size: 0.76rem;
  padding: 0.56rem 1.4rem;
  gap: 0.4rem;
}
.btn--line img {
  width: 14px !important;
  height: 14px !important;
}
.btn--line:hover { background: #05a847; }

.btn--yellow {
  background: var(--color-yellow);
  color: var(--color-text);
}
.btn--yellow:hover { background: var(--color-yellow-dark); color: #fff; }

.btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ── 8. Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* ── 9. Top Strip ── */
.top-strip {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  max-height: 60px;
}
.top-strip img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}

/* ── 10. Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
  height: var(--header-h);
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  flex-shrink: 0;
}
.site-header__logo img {
  height: 110px;
  width: auto;
}

/* ── 11. Navigation ── */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

/* Dropdown parent arrow */
.has-dropdown > a::after {
  content: ' ›';
  font-size: 0.8em;
  transition: transform var(--transition);
  display: inline-block;
}
.has-dropdown:hover > a::after,
.has-dropdown.open > a::after {
  transform: rotate(90deg);
}

/* Dropdown menu */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 140px;
  padding: 0.5rem 0;
  padding-top: calc(0.5rem + 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 100;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  pointer-events: auto;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

/* ── 12. Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 13. Mobile Nav ── */
@media (max-width: 768px) {
  .site-header__logo img {
    height: 96px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding-bottom: 80px;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav-list > li > a {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
    border-radius: 0;
  }

  .has-dropdown > a::after {
    float: right;
  }

  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    margin: 0.5rem 0 0.5rem 1rem;
    display: none;
    background: var(--color-green-pale);
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .has-dropdown:hover .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* ── 14. Hero Carousel ── */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #ddd;
}

@media (max-width: 768px) {
  .hero-carousel { height: 280px; }
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel__slide.active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition);
  z-index: 10;
}
.carousel__btn:hover { background: rgba(255,255,255,1); }
.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }

.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* ── 15. Page Hero Banner (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-white); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── 16. Index: Intro Section ── */
.intro-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .intro-section__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.intro-section__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.intro-section__image img {
  width: 100%;
  height: auto;
}

.intro-section__text .btn {
  margin-top: 1rem;
}

/* ── 17. Index: Feedback Preview ── */
.feedback-preview__banner {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feedback-preview__banner img {
  width: 100%;
  height: auto;
}

.feedback-preview__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .feedback-preview__cards {
    grid-template-columns: 1fr;
  }
}

.feedback-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.feedback-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}

.feedback-card__body {
  padding: 1.25rem;
}

.feedback-card__body h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-green-dark);
}

.feedback-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ── 17a. Index: Google Reviews ── */
.google-reviews-carousel {
  margin-bottom: 1.5rem;
}

.google-reviews-track {
  display: flex;
  gap: 16px;
  padding: 4px 4px 16px;
}

.google-review-card {
  position: relative;
  flex: 0 0 calc(33.333% - 11px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.google-review-card__gicon {
  position: absolute;
  top: 16px;
  right: 16px;
}

.google-review-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.google-review-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-green-dark);
  flex-shrink: 0;
}

.google-review-card__name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}

.google-review-card__stars {
  color: #FBBC04;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.google-review-card__text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.google-review-card__date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Loading skeleton */
.google-reviews-loading {
  display: flex;
  gap: 16px;
  width: 100%;
}

.google-reviews-loading span {
  flex: 1;
  height: 180px;
  background: linear-gradient(90deg, var(--color-green-light) 25%, #e8f0eb 50%, var(--color-green-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Google Reviews — Error fallback */
.google-reviews-fallback {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.google-reviews-fallback a {
  color: var(--color-green-dark);
  text-decoration: underline;
}

/* Google Reviews — RWD mobile：一次顯示一張可滑動 */
@media (max-width: 768px) {
  .google-reviews-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
  }

  .google-reviews-track::-webkit-scrollbar {
    display: none;
  }

  .google-review-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .google-reviews-loading span:nth-child(2),
  .google-reviews-loading span:nth-child(3) {
    display: none;
  }
}

/* ── 17b. Index: Service Preview Grid ── */
.service-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .service-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 18. Index: Appointment Steps ── */
.appt-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 2.5rem;
}

.appt-step {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.appt-step__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-green-light);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  opacity: 0.8;
}

.appt-step__icon {
  width: 64px;
  height: 64px;
  background: var(--color-green);
  border: 3px solid var(--color-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.appt-step__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.appt-step h3 {
  font-size: 1rem;
  color: var(--color-green-dark);
  margin-bottom: 0;
}

.appt-step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.appt-step__arrow {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 2rem;
  color: var(--color-green);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .appt-steps {
    flex-direction: column;
    align-items: center;
  }
  .appt-step {
    width: 100%;
  }
  .appt-step__arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
    justify-content: center;
  }
}

/* ── 19. Environment Gallery ── */
.env-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .env-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .env-gallery { grid-template-columns: 1fr; }
}

.env-card__img-wrap {
  height: 280px;
  overflow: hidden;
}

.env-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.env-card:hover .env-card__img-wrap img {
  transform: scale(1.05);
}

.env-card__body {
  padding: 1.5rem;
}

.env-card__body h3 {
  color: var(--color-green-dark);
  margin-bottom: 0.5rem;
}

.env-card__body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ── 20. Team Card ── */
.team-section {
  position: relative;
  overflow: hidden;
}

.team-section__deco {
  position: absolute;
  opacity: 0.3;
  width: 180px;
  pointer-events: none;
}

.team-section__deco--yellow {
  top: -2rem;
  right: -2rem;
}

.team-section__deco--green {
  bottom: -2rem;
  left: -2rem;
}

.team-card {
  display: flex;
  gap: 3rem;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.team-card__photo {
  width: 340px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: auto;
}

.team-card__tag {
  display: inline-block;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.team-card__name {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.team-card__deco {
  width: 80px;
  margin: 0.5rem 0 1.25rem;
}

.team-card__credentials {
  list-style: none;
  margin-bottom: 1.25rem;
}

.team-card__credentials li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-border);
}

.team-card__credentials li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-size: 1.1rem;
}

.team-card__bio {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0;
}

@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .team-card__photo {
    width: 100%;
    max-width: 260px;
  }
}

/* ── 21. Service Pages ── */
.service-hero-section {
  background: var(--color-green-light);
  padding: 2.5rem 0;
}

.service-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .service-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.service-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-green);
  box-shadow: var(--shadow-card);
  font-weight: 500;
  font-size: 0.95rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateX(4px);
}

.service-item__icon {
  width: 36px;
  height: 36px;
  background: var(--color-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── 22. Appointment Full Page ── */
.appt-full-section {
  padding: var(--section-padding-y) 0;
}

.appt-full__steps {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .appt-full__steps {
    flex-direction: column;
    gap: 0;
  }
}

.appt-full__step {
  flex: 1;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.appt-full__step-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-green);
  background: var(--color-green-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.appt-icon-circle {
  width: 80px;
  height: 80px;
  background: var(--color-green);
  border: 3px solid var(--color-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appt-icon-circle img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.appt-full__step h3 {
  font-size: 1.1rem;
  color: var(--color-green-dark);
}

.appt-full__step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.appt-full__arrow {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  font-size: 2.5rem;
  color: var(--color-green);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .appt-full__arrow {
    transform: rotate(90deg);
    justify-content: center;
    padding: 0.5rem 0;
  }
}

.appt-contact-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.appt-note {
  background: var(--color-yellow-light);
  border-left: 4px solid var(--color-yellow-dark);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
}

.appt-note h4 {
  color: var(--color-green-dark);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.appt-note ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.appt-note ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── 23. Feedback Columns Page ── */
.feedback-banner {
  margin-bottom: 3rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feedback-banner img {
  width: 100%;
  height: auto;
}

.feedback-handwritten-title {
  font-size: 1.3rem;
  color: var(--color-green-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.feedback-handwritten-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-green);
  border-radius: 2px;
}

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

@media (max-width: 768px) {
  .feedback-grid { grid-template-columns: 1fr; }
}

.feedback-detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.feedback-detail-card__img {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.feedback-detail-card__img img {
  width: auto;
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.feedback-detail-card:hover .feedback-detail-card__img img {
  transform: scale(1.02);
}

.feedback-detail-card__body {
  padding: 1.5rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.feedback-detail-card__body h3 {
  font-size: 1.05rem;
  color: var(--color-green-dark);
  margin-bottom: 0.5rem;
}

.feedback-detail-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
}

.date {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.feedback-detail-card__content h4 {
  font-size: 0.9rem;
  color: var(--color-green-dark);
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

.feedback-detail-card__content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
  line-height: 1.7;
}

/* ── 24. Health Article ── */
.health-article {
  max-width: 780px;
  margin: 0 auto;
}

.health-article__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}

.health-article__tag {
  display: inline-block;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.health-article__header h1 {
  margin-bottom: 0.5rem;
}

.health-article__header img {
  margin: 0.5rem auto;
}

.health-article__meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.health-article__body h2 {
  font-size: 1.25rem;
  color: var(--color-green-dark);
  border-left: 4px solid var(--color-yellow);
  padding-left: 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.health-article__body ul,
.health-article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.health-article__body ul { list-style: disc; }
.health-article__body ol { list-style: decimal; }

.health-article__body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.health-article__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── 25. Health Article Index ── */
.health-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.health-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.health-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.health-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.health-card__tag {
  display: inline-block;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.health-card__title {
  font-size: 1.56rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.health-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.health-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.5rem;
}

.health-card__link {
  align-self: flex-start;
}

/* ── 26. Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-map img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.contact-info__block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-info__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info__block h3 {
  font-size: 1.3rem;
  color: var(--color-green-dark);
  margin-bottom: 0.5rem;
}

.contact-info__block p {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.contact-info__block a.phone-link {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-green-dark);
}

.contact-info__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

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

.social-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.social-btn--fb { background: #1877F2; }
.social-btn--ig { background: #E4405F; }
.social-btn--line { background: #06C755; }

.hours-table {
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.hours-table td {
  padding: 0.35rem 1.5rem 0.35rem 0;
  color: var(--color-text);
}

.hours-table tr:first-child td { padding-top: 0; }

.transport-list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.transport-list > li {
  margin-bottom: 0.75rem;
  color: var(--color-green-dark);
}

.transport-list ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  color: var(--color-text);
}

.transport-list ol li {
  font-weight: 400;
  color: var(--color-text);
}

/* ── 26. Footer ── */
.site-footer {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem 0 1rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  width: 100%;
}

.site-footer__logo img {
  height: 66px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-footer__info p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.site-footer__info a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.site-footer__info a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .site-footer__main {
    gap: 1.5rem;
  }

  .site-footer__logo {
    flex-shrink: 0;
  }

  .site-footer__logo img {
    height: 56px;
  }

  .site-footer__info p {
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
  }
}

/* ── 27. Floating Buttons — Mobile Bottom Bar ── */
.float-mobile {
  display: none;
}

@media (max-width: 768px) {
  .float-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 56px;
  }

  .float-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--color-white);
    font-size: 0.95rem;
    text-decoration: none;
  }

  .float-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
  }

  .float-btn--line { background: #06C755; }
  .float-btn--tel  { background: var(--color-green-dark); }
}

/* ── 28. Floating Buttons — Desktop Right Column ── */
.float-desktop {
  display: none;
}

@media (min-width: 769px) {
  .float-desktop {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    bottom: 30%;
    z-index: 900;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .float-desktop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .float-desktop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: width var(--transition);
    overflow: hidden;
  }

  .float-desktop a:first-child { border-radius: var(--radius-sm) 0 0 0; }
  .float-desktop a:last-child  { border-radius: 0 0 0 var(--radius-sm); }

  .float-desktop a:nth-child(1) { background: #06C755; }
  .float-desktop a:nth-child(2) { background: #1877F2; }
  .float-desktop a:nth-child(3) { background: #E4405F; }
  .float-desktop a:nth-child(4) { background: var(--color-green-dark); }

  .float-desktop a img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }

  .float-desktop a:hover { width: 56px; }
}

/* ── 29. Scroll Fade-In Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ── 30. Utility Classes ── */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── 31. SEO 關鍵字連結 ── */
.seo-links {
  background: #f8f8f8;
  border-top: 1px solid #eee;
  padding: 8px 0;
}

.seo-links p {
  font-size: 0.7rem;
  color: #aaa;
  line-height: 2;
  margin: 0;
}

.seo-links a {
  color: #bbb;
  text-decoration: none;
}

.seo-links a:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}
