/* RH ROOM — design tokens 取自原網站 (Elementor branding) */
:root {
  --color-bg: #FFFFFF;
  --color-text: #404040;
  --color-text-soft: #6C757D;
  --color-primary: #69727D;
  --color-primary-dark: #4F4F4F;
  --color-link: #0D6EFD;
  --color-border: #E5E5E5;
  --color-section-alt: #F7F7F7;

  --font-heading: 'Dosis', 'Noto Sans TC', sans-serif;
  --font-body: 'Source Sans Pro', 'Noto Sans TC', sans-serif;

  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 3px;
  --radius-md: 5px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);

  --transition: .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .7; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 .6em;
  letter-spacing: .02em;
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: .04em;
}
.site-nav a:hover { color: var(--color-primary); opacity: 1; }
.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: .04em;
  border: 0; cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}
.btn--primary:hover { background: var(--color-primary-dark); opacity: 1; }
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--color-section-alt); }
.section__title {
  text-align: center;
  margin-bottom: 64px;
}
.section__title h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0;
}

/* ===== Service grid (首頁 6 服務，3×2 column-major) ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.service-card {
  text-align: left;
  color: var(--color-text);
  display: block;
}
.service-card:hover { opacity: 1; }
.service-card:hover .service-card__title { color: var(--color-primary); }
.service-card__icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--color-text);
}
.service-card__icon svg {
  width: 100%; height: 100%;
  fill: currentColor;
  display: block;
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: .04em;
  color: var(--color-text);
  transition: color var(--transition);
}
.service-card__desc {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.7;
}

/* ===== Portfolio grid ===== */
.portfolio-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin-bottom: 32px;
}
.portfolio-filters button {
  background: none; border: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: .04em;
}
.portfolio-filters button.is-active,
.portfolio-filters button:hover {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: block;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: .04em;
}
.portfolio-item__caption small {
  display: block;
  font-size: 11px;
  opacity: .8;
  margin-bottom: 2px;
}

/* ===== Article cards (首頁最新文章) ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: block;
  color: var(--color-text);
  transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); opacity: 1; }
.article-card img { aspect-ratio: 16/10; object-fit: cover; }
.article-card__body { padding: 18px 20px 22px; }
.article-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.article-card__date {
  font-size: 12px;
  color: var(--color-text-soft);
}

/* ===== Footer ===== */
.site-footer {
  background: #2C2C2C;
  color: #BBB;
  padding: 56px 0 28px;
  font-size: 14px;
}
.site-footer a { color: #DDD; }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 15px;
  margin: 0 0 16px;
  letter-spacing: .08em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-social {
  display: flex; gap: 16px; margin-top: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid #555;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  letter-spacing: 0;
}
.footer-social a:hover { border-color: #fff; background: rgba(255,255,255,.05); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #444;
  font-size: 12px;
  color: #888;
}

/* ===== Arch hero (拱形大圖 + 卡片) ===== */
.arch-hero {
  position: relative;
  min-height: 720px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.arch-hero__plate {
  background: rgba(255,255,255,.92);
  padding: 32px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.arch-hero__welcome {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 26px);
  letter-spacing: .12em;
  color: var(--color-text);
  margin-bottom: 8px;
}
.arch-hero__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-soft);
  letter-spacing: .04em;
}
@media (max-width: 768px) {
  .arch-hero { min-height: 480px; }
  .arch-hero__plate { padding: 24px 32px; margin: 0 24px; }
}

/* ===== Home top banner ===== */
.home-banner {
  background: #fff;
  padding: 96px 0 64px;
  text-align: center;
}
.home-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: .04em;
  margin: 0;
  font-weight: 500;
}

/* ===== Hero (首頁) ===== */
.hero {
  background: #fff;
  padding: 40px 0 120px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}
.hero__title {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 32px;
  letter-spacing: .04em;
  font-weight: 500;
}
.hero__copy p {
  color: var(--color-text);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 .6em;
}
.hero__image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ===== Map embed ===== */
.map-embed {
  height: 420px;
  border: 0;
  width: 100%;
}

/* ===== Accordion (色乳 / 保養品) ===== */
.accordion { max-width: 720px; margin: 0 auto 56px; }
.accordion details {
  background: #fff;
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: .04em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '＋';
  font-size: 18px;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.accordion details[open] summary::after { content: '−'; }
.accordion__body { padding: 0 24px 24px; }
.accordion__body p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); margin-bottom: .8em; }
.brand-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.brand-feature__logo {
  text-align: center;
}
.brand-feature__logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.brand-feature__logo-sub {
  font-family: var(--font-heading);
  letter-spacing: .15em;
  color: var(--color-text-soft);
  font-size: 12px;
}
.brand-feature__product img {
  max-width: 240px;
  margin: 0 auto;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto; height: auto;
  display: block;
}
.lightbox__close {
  position: absolute; top: 16px; right: 24px;
  background: none; border: 0; color: #fff;
  font-size: 32px; cursor: pointer; line-height: 1;
  padding: 8px 12px;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff;
  font-size: 36px; cursor: pointer; padding: 16px; line-height: 1;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; font-family: var(--font-heading); font-size: 13px; letter-spacing: .1em;
}


/* ===== 代言/合作 横向滑動圖庫 ===== */
.marquee {
  position: relative;
  background: #fff;
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.marquee__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 72px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.marquee__track::-webkit-scrollbar { display: none; }
.marquee img {
  height: 280px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.marquee__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  color: var(--color-text);
  transition: var(--transition);
}
.marquee__btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.marquee__btn--prev { left: 16px; }
.marquee__btn--next { right: 16px; }
@media (max-width: 768px) {
  .marquee img { height: 200px; }
  .marquee__track { padding: 0 56px 16px; gap: 16px; }
  .marquee__btn { width: 40px; height: 40px; font-size: 20px; }
  .marquee__btn--prev { left: 8px; }
  .marquee__btn--next { right: 8px; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-banner { padding: 64px 0 32px; }
  .hero { padding: 32px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; padding: 0 24px; gap: 40px; }
  .section { padding: 56px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { transform: translateY(0); }
  .map-embed { height: 320px; }
}

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