* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 72px;
  font-family: sans-serif;
  background: #f6f1ea;
  color: #2f2a25;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 20px;
  background: rgba(246, 241, 234, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 998;
}

.logo {
  color: #2f2a25;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  color: #2f2a25;
  text-decoration: none;
  font-size: 14px;
}

.desktop-nav {
  display: none;
}

.hero {
  min-height: 100vh;
  padding: 96px 24px 56px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.44),
      rgba(0, 0, 0, 0.44)
    ),
    url("assets/images/home/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-content {
  width: 100%;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0 0 16px;
}

.eyebrow.dark {
  color: #8a7d70;
}

.eyebrow.light {
  color: #d8c7b4;
}

h1 {
  font-size: 40px;
  line-height: 1.22;
  margin: 0 0 20px;
}

h2 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 20px;
}

h3 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 12px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.hero-text {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-button {
  display: inline-block;
  padding: 14px 22px;
  background: #ffffff;
  color: #2f2a25;
  text-decoration: none;
  border-radius: 999px;
  font-size: 15px;
}

.hero-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
}

section {
  padding: 80px 24px;
}

.about,
.scope,
.company {
  background: #f6f1ea;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.quick-actions a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(47, 42, 37, 0.22);
  color: #2f2a25;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
}

.services,
.process,
.faq {
  background: #ebe3d7;
}

.card,
.scope-card,
.info-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 24px;
  margin-bottom: 16px;
}

.card span {
  display: inline-block;
  margin-bottom: 14px;
  color: #9a8c7d;
  font-size: 13px;
  letter-spacing: 2px;
}

.card p,
.scope-card p {
  font-size: 15px;
  margin: 0;
}

#residential,
#commercial,
#works,
#contact,
#top {
  scroll-margin-top: 80px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tag-list span {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ebe3d7;
  color: #5f554c;
  font-size: 13px;
}

.works {
  background: #f6f1ea;
  padding-left: 0;
  padding-right: 0;
}

.section-title-row {
  padding: 0 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row h2 {
  margin-bottom: 8px;
}

.section-title-row p {
  font-size: 14px;
  color: #756b61;
  margin: 0;
}

.slider-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.slider-buttons button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #2f2a25;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.works-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 0 24px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.works-slider::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 84vw;
  max-width: 84vw;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
}

.work-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.work-text {
  padding: 24px;
}

.work-text h3 {
  margin: 0 0 10px;
}

.work-text p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.work-meta {
  color: #756b61;
}

.details {
  background: #2f2a25;
  color: #ffffff;
}

.details p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-list {
  margin-top: 36px;
}

.detail-item {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-item span {
  display: inline-block;
  margin-bottom: 14px;
  color: #d8c7b4;
  font-size: 13px;
  letter-spacing: 2px;
}

.detail-item h3 {
  color: #ffffff;
}

.detail-item p {
  font-size: 15px;
  margin: 0;
}

.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(47, 42, 37, 0.15);
}

.step span {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #2f2a25;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.step h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.step p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: #5f554c;
}

.prep {
  background: #f6f1ea;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
}

.check-item span {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #2f2a25;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.check-item p {
  font-size: 15px;
  margin: 0;
}

dl {
  margin: 0;
}

dl div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(47, 42, 37, 0.12);
}

dl div:first-child {
  padding-top: 0;
}

dt {
  color: #8a7d70;
  font-size: 13px;
  margin-bottom: 6px;
}

dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.map-button {
  display: block;
  margin-top: 20px;
  padding: 14px 18px;
  text-align: center;
  color: #ffffff;
  background: #2f2a25;
  text-decoration: none;
  border-radius: 999px;
  font-size: 15px;
}

details {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

summary::marker {
  color: #9a8c7d;
}

details p {
  font-size: 15px;
  margin: 14px 0 0;
  color: #5f554c;
}

.contact {
  background: #2f2a25;
  color: #ffffff;
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.line-button,
.ghost-button {
  display: block;
  text-align: center;
  padding: 14px 22px;
  text-decoration: none;
  border-radius: 999px;
  font-size: 15px;
}

.line-button {
  background: #ffffff;
  color: #2f2a25;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.contact-info {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info p {
  font-size: 14px;
  margin: 0 0 8px;
}

footer {
  padding: 28px 24px;
  background: #1f1b18;
  color: rgba(255, 255, 255, 0.58);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
}

footer p {
  font-size: 12px;
  margin: 0;
}

.fixed-line {
  position: fixed;
  right: 18px;
  bottom: 18px;
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f2a25;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}


/* v1.5 電腦版格式：螢幕寬度 900px 以上啟用 */
@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .topbar {
    height: 72px;
    padding-left: max(48px, calc((100vw - 1180px) / 2));
    padding-right: max(48px, calc((100vw - 1180px) / 2));
  }

  .logo {
    font-size: 18px;
  }

  nav {
    align-items: center;
    gap: 26px;
  }

  nav a {
    font-size: 15px;
  }

  .desktop-nav {
    display: inline-flex;
    align-items: center;
  }

  .nav-cta {
    padding: 10px 16px;
    color: #ffffff;
    background: #2f2a25;
    border-radius: 999px;
  }

  .hero {
    min-height: 760px;
    padding: 140px max(64px, calc((100vw - 1120px) / 2)) 100px;
    background-image:
      linear-gradient(
        rgba(0, 0, 0, 0.38),
        rgba(0, 0, 0, 0.38)
      ),
      url("assets/images/home/hero.jpg");
  }

  .hero-content {
    max-width: 760px;
  }

  h1 {
    font-size: 66px;
    line-height: 1.12;
  }

  h2 {
    font-size: 42px;
    line-height: 1.25;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 17px;
  }

  .hero-text {
    max-width: 620px;
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .hero-button {
    padding: 16px 26px;
  }

  section {
    padding: 120px max(64px, calc((100vw - 1120px) / 2));
  }

  .about h2,
  .about p,
  .prep h2,
  .prep > p,
  .faq h2 {
    max-width: 760px;
  }

  .quick-actions {
    margin-top: 18px;
  }

  .services,
  .scope {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .services > .eyebrow,
  .services > h2,
  .scope > .eyebrow,
  .scope > h2 {
    grid-column: 1 / -1;
  }

  .card,
  .scope-card,
  .info-card {
    margin-bottom: 0;
    padding: 30px;
    border-radius: 30px;
  }

  .works {
    padding: 120px 0;
  }

  .section-title-row {
    max-width: 1120px;
    margin: 0 auto 36px;
    padding: 0;
  }

  .slider-buttons {
    display: none;
  }

  .works-slider {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
  }

  .work-card {
    flex: initial;
    max-width: none;
    border-radius: 30px;
    scroll-snap-align: none;
  }

  .work-card img {
    height: 310px;
  }

  .work-text {
    padding: 26px;
  }

  .detail-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
  }

  .detail-item {
    padding: 28px 0 0;
  }

  .process {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
  }

  .process > .eyebrow,
  .process > h2 {
    grid-column: 1 / -1;
  }

  .step {
    min-height: 112px;
  }

  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .check-item {
    padding: 22px;
  }

  .company .info-card {
    max-width: 920px;
  }

  dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
  }

  dl div:nth-last-child(1) {
    grid-column: 1 / -1;
  }

  .map-button {
    display: inline-block;
    min-width: 220px;
  }

  details {
    max-width: 900px;
    padding: 24px 28px;
  }

  .contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    column-gap: 56px;
    align-items: center;
  }

  .contact > .eyebrow,
  .contact > h2,
  .contact > p {
    grid-column: 1;
  }

  .contact-buttons,
  .contact-info {
    grid-column: 2;
  }

  .contact-buttons {
    margin-bottom: 28px;
  }

  .line-button,
  .ghost-button {
    width: 100%;
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px max(64px, calc((100vw - 1120px) / 2));
  }

  .footer-links {
    margin-bottom: 0;
  }

  .fixed-line {
    display: none;
  }
}

/* v1.5 大桌機微調 */
@media (min-width: 1280px) {
  h1 {
    font-size: 72px;
  }

  .hero {
    min-height: 820px;
  }

  .work-card img {
    height: 340px;
  }
}


/* v1.6 案例詳情頁與作品卡連結 */
.work-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.work-more {
  display: inline-block;
  margin-top: 8px;
  color: #2f2a25;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(47, 42, 37, 0.32);
}

.case-main {
  padding-bottom: 0;
}

.case-hero {
  min-height: 72vh;
  padding: 112px 24px 56px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.case-hero.neihu {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/neihu-guotai-w/cover.jpg");
}

.case-hero.vasi {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/taichung-vasi/cover.jpg");
}

.case-hero.nangang {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/nangang-tokyo-q/cover.jpg");
}

.case-hero-content {
  width: 100%;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.case-meta {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.case-intro,
.case-facts,
.case-gallery,
.case-story,
.case-nav {
  background: #f6f1ea;
}

.case-intro p {
  margin-bottom: 0;
}

.fact-grid {
  display: grid;
  gap: 12px;
}

.fact-item {
  padding: 18px;
  background: #ffffff;
  border-radius: 20px;
}

.fact-item span {
  display: block;
  margin-bottom: 6px;
  color: #8a7d70;
  font-size: 13px;
}

.fact-item strong {
  font-size: 16px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.story-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
}

.story-card p {
  font-size: 15px;
  margin-bottom: 0;
}

.case-nav-card {
  display: block;
  padding: 22px;
  margin-bottom: 12px;
  color: #2f2a25;
  background: #ffffff;
  text-decoration: none;
  border-radius: 22px;
}

.case-nav-card span {
  display: block;
  color: #8a7d70;
  font-size: 13px;
  margin-bottom: 8px;
}

.case-nav-card strong {
  font-size: 18px;
}

@media (min-width: 900px) {
  .case-hero {
    min-height: 680px;
    padding: 150px max(64px, calc((100vw - 1120px) / 2)) 90px;
  }

  .case-hero.neihu {
    background-image: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.50)), url("assets/images/works/neihu-guotai-w/cover.jpg");
  }

  .case-hero.vasi {
    background-image: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.50)), url("assets/images/works/taichung-vasi/cover.jpg");
  }

  .case-hero.nangang {
    background-image: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.50)), url("assets/images/works/nangang-tokyo-q/cover.jpg");
  }

  .case-hero-content {
    max-width: 860px;
  }

  .case-intro p {
    max-width: 820px;
  }

  .fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid img {
    height: 360px;
  }

  .case-story {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .case-story > .eyebrow,
  .case-story > h2 {
    grid-column: 1 / -1;
  }

  .story-card {
    margin-bottom: 0;
  }

  .case-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}


/* v1.7 作品案例狀態 */
.work-type {
  display: inline-block;
  margin: 0 0 8px;
  color: #9a8c7d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.work-link-disabled {
  cursor: default;
}

.is-coming-soon img {
  filter: grayscale(0.25) brightness(0.9);
}

.coming-label {
  color: #8a7d70;
  border-bottom-color: rgba(138, 125, 112, 0.36);
}

/* v1.7 案例頁主視覺背景 */
.case-hero.neihu-guotai-shimei-w {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/neihu-guotai-w/cover.jpg");
}

.case-hero.nangang-tokyo-twins-q {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/nangang-tokyo-q/cover.jpg");
}

.case-hero.daan-heping-east-s {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/daan-heping-s/cover.jpg");
}

.case-hero.zhongshan-fairytree {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/zhongshan-fairytree/cover.jpg");
}

.case-hero.taichung-vasi {
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.52)), url("assets/images/works/taichung-vasi/cover.jpg");
}
