:root {
  --bg: #f2ecdf;
  --bg-soft: #ece5d7;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: rgba(255, 252, 246, 0.9);
  --text: #2f2a22;
  --text-subtle: #64594a;
  --line: rgba(122, 103, 83, 0.24);
  --accent: #7f6a51;
  --accent-deep: #5d4f3f;
  --glow: rgba(226, 199, 162, 0.36);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 20px 40px rgba(61, 50, 37, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif TC", serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #f8f1e4 0%, transparent 42%),
    radial-gradient(circle at 80% 16%, #ddd2bf 0%, transparent 35%),
    linear-gradient(160deg, var(--bg) 0%, #e9decd 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
}

.bg-layer-one {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -16vw;
  border-radius: 40% 60% 65% 35%;
  background: linear-gradient(140deg, rgba(205, 191, 166, 0.45), rgba(178, 155, 124, 0.14));
  animation: floatOne 18s ease-in-out infinite alternate;
}

.bg-layer-two {
  width: 42vw;
  height: 42vw;
  right: -15vw;
  bottom: -16vw;
  border-radius: 53% 47% 30% 70%;
  background: linear-gradient(140deg, rgba(171, 150, 119, 0.3), rgba(246, 237, 219, 0.3));
  animation: floatTwo 22s ease-in-out infinite alternate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 3vw, 52px);
  backdrop-filter: blur(9px);
  background: rgba(244, 236, 223, 0.76);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: linear-gradient(130deg, rgba(255, 252, 246, 0.5), rgba(230, 215, 185, 0.4));
  border-radius: 16px;
  transition: background 0.25s ease;
}

.brand:hover {
  background: linear-gradient(130deg, rgba(255, 252, 246, 0.8), rgba(230, 215, 185, 0.7));
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

.brand-en {
  font-family: "Marcellus", serif;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 600;
}

.brand-zh {
  font-size: 0.7rem;
  color: var(--text-subtle);
  line-height: 1;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
}

.site-nav a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 10vh, 108px) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 56px);
  min-height: clamp(620px, 86vh, 820px);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: "Marcellus", serif;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  margin-top: 12px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-top: 8px;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.lead {
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  color: var(--text-subtle);
  max-width: 56ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-deep));
  color: #faf6ef;
  box-shadow: 0 8px 24px rgba(98, 78, 52, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 252, 247, 0.6);
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 144, 109, 0.35);
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(10deg, rgba(72, 57, 40, 0.24), transparent 46%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 560px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.card-media {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.prose p {
  margin: 0;
  color: var(--text-subtle);
}

.prose p + p {
  margin-top: 14px;
}

.upgrade-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.upgrade-img {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 144, 109, 0.35);
}

.upgrade-img img {
  width: 100%;
  height: auto;
  display: block;
}

.upgrade-content {
  padding-right: 20px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 22px;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--text-subtle);
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text-subtle);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  border-color: var(--accent);
}

.tab-btn.active {
  background: linear-gradient(130deg, var(--accent), var(--accent-deep));
  color: #faf6ef;
  border-color: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  pointer-events: none;
}

.service-card.active {
  opacity: 1;
  max-height: 400px;
  pointer-events: auto;
}

.service-card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(128, 107, 82, 0.24);
  padding: 10px 0;
  color: var(--text-subtle);
  font-size: 0.95rem;
}

.service-card span {
  color: var(--accent-deep);
  font-weight: 600;
  white-space: nowrap;
}

.note {
  margin-top: 16px;
  color: var(--text-subtle);
}

.gallery-divider {
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, transparent 0%, rgba(158, 130, 97, 0.1) 50%, transparent 100%);
  margin: 40px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 144, 109, 0.35);
  background: var(--surface-strong);
  padding: 24px;
  transition: transform 0.3s ease;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(61, 50, 37, 0.15);
  border: 2px solid rgba(255, 252, 246, 0.8);
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.team-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
}

.team-credential {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.team-details {
  margin-top: 8px;
  font-size: 0.85rem;
}

.team-details p {
  margin: 6px 0;
  color: var(--text-subtle);
  line-height: 1.5;
}

.team-details strong {
  color: var(--accent);
  font-weight: 600;
}

.team-intro {
  text-align: center;
  color: var(--text-subtle);
  max-width: 60ch;
  margin: 16px auto 0;
}

.instagram-feed {
  background: linear-gradient(150deg, rgba(255, 251, 244, 0.5), rgba(231, 214, 185, 0.4));
  border-radius: var(--radius-lg);
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 40px);
}

.feed-intro {
  text-align: center;
  color: var(--text-subtle);
  font-size: 1.05rem;
  margin: 16px 0 32px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ig-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
}

.ig-card:hover {
  transform: scale(1.05);
}

.ig-label {
  position: relative;
  z-index: 2;
  color: #faf6ef;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  width: 100%;
  text-align: left;
}

.gallery-cta {
  text-align: center;
  margin-top: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(250, 245, 236, 0.95), rgba(231, 214, 185, 0.8));
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 8px 0 0;
  color: var(--text-subtle);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 22px 16px 32px;
  color: var(--text-subtle);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOne {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(36px, 30px) rotate(8deg);
  }
}

@keyframes floatTwo {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-24px, -34px) rotate(-7deg);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 420px;
  }

  .about-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .upgrade-showcase {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px;
  }

  .team-card-img {
    width: 140px;
    height: 140px;
  }

  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0 4px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-media img {
    min-height: 340px;
  }

  .btn {
    width: 100%;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card {
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 16px;
    align-items: flex-start;
  }

  .team-card-img {
    width: 120px;
    height: 120px;
    margin-top: 2px;
  }

  .contact-card {
    flex-direction: column;
  }

  .service-tabs {
    gap: 8px;
  }

  .upgrade-content {
    padding-right: 0;
  }
}


/*20260416 新瑜加的CSS*/
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  display: none; /* 預設全部不顯示，也不佔空間 */
}

.service-card.active {
  display: block;
}