/* MY TILE — Modern Luxury Design System */
:root {
  --c-primary: #2f2f2f;
  --c-secondary: #b6a38a;
  --c-bg: #fafafa;
  --c-white: #ffffff;
  --c-text: #333333;
  --c-muted: #6b6b6b;
  --c-line: rgba(47, 47, 47, 0.12);
  --c-wood-soft: rgba(182, 163, 138, 0.18);
  --font: "Noto Sans TC", sans-serif;
  --container: min(1180px, calc(100% - 3rem));
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px rgba(47, 47, 47, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--c-wood-soft), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(47, 47, 47, 0.04), transparent 50%),
    var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-primary);
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 30px rgba(47, 47, 47, 0.04);
}
.header-inner {
  width: var(--container);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-desktop > a,
.nav-dd > button {
  font-size: 0.92rem;
  color: var(--c-text);
  background: none;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;
  position: relative;
}
.nav-desktop > a::after,
.nav-dd > button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-secondary);
  transition: width 0.3s var(--ease);
}
.nav-desktop > a:hover::after,
.nav-desktop > a.is-active::after,
.nav-dd:hover > button::after {
  width: 100%;
}
.nav-dd {
  position: relative;
}
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  min-width: 520px;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem 1rem;
  transition: 0.25s var(--ease);
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-panel a {
  font-size: 0.88rem;
  padding: 0.35rem 0;
  color: var(--c-muted);
}
.nav-dd-panel a:hover {
  color: var(--c-primary);
}
.header-cta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--c-primary);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--c-line);
  background: #fff;
  padding: 1rem 1.5rem 1.5rem;
}
.nav-mobile.open {
  display: block;
}
.nav-mobile a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.3s var(--ease);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
}
.btn--primary:hover {
  background: #1f1f1f;
}
.btn--wood {
  background: var(--c-secondary);
  color: #fff;
}
.btn--wood:hover {
  filter: brightness(0.95);
}
.btn--outline {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost:hover {
  background: #fff;
  color: var(--c-primary);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section--dark {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.86);
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}
.section-label {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  max-width: 16ch;
}
.section-lead {
  color: var(--c-muted);
  max-width: 42ch;
  font-size: 1.02rem;
}
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--split {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.72) 0%, rgba(20, 20, 20, 0.35) 48%, rgba(20, 20, 20, 0.2) 100%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.25) 0%, rgba(20, 20, 20, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}
.brand-hero {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.brand-hero span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-secondary);
  margin-bottom: 0.45rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  max-width: 12ch;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: 0.45rem;
}
.hero-copy {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6rem;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--c-line);
  background:
    linear-gradient(180deg, rgba(182, 163, 138, 0.12), transparent 70%),
    var(--c-bg);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.breadcrumb a:hover {
  color: var(--c-primary);
}

/* Grids & cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card,
.why-card,
.service-card,
.cat-card,
.product-card,
.project-card,
.review,
.blog-card {
  background: #fff;
  border: 1px solid var(--c-line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card,
.service-card,
.review,
.blog-card,
.stat-card {
  padding: 1.4rem 1.3rem;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.why-card h3 {
  font-size: 1.05rem;
}
.why-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border: 1px solid var(--c-secondary);
  color: var(--c-secondary);
  font-size: 0.85rem;
}

.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--c-line);
}
.timeline-item {
  position: relative;
  padding: 0 0 1.8rem 1.2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-secondary);
}
.timeline-item strong {
  display: block;
  color: var(--c-primary);
  margin-bottom: 0.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split-media {
  overflow: hidden;
  min-height: 360px;
}
.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.split-media:hover img {
  transform: scale(1.04);
}

.cat-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: block;
  color: #fff;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.cat-card:hover img {
  transform: scale(1.06);
}
.cat-card .cat-body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.75));
}
.cat-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
}

.product-card {
  overflow: hidden;
}
.product-card .media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .media img {
  transform: scale(1.05);
}
.product-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 1rem;
}
.chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  list-style: none;
}

.inspire-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 0.85rem;
}
.inspire-item {
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
}
.inspire-item:first-child {
  grid-row: span 2;
}
.inspire-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.inspire-item:hover img {
  transform: scale(1.05);
}
.inspire-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.project-card {
  overflow: hidden;
  cursor: pointer;
}
.project-card .media {
  aspect-ratio: 16/11;
  overflow: hidden;
}
.project-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .media img {
  transform: scale(1.05);
}
.project-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.brand-wall span {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  text-align: center;
  padding: 0.6rem;
}

.review .stars {
  color: var(--c-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}
.review cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
  background:
    linear-gradient(120deg, rgba(47, 47, 47, 0.92), rgba(47, 47, 47, 0.78)),
    url("../img/hero/space-01.jpg") center/cover;
  color: #fff;
}
.cta-band h2 {
  color: #fff;
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}
.cta-band p {
  max-width: 36ch;
  margin: 0.8rem auto 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Filters */
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--c-line);
  background: #fff;
  padding: 0.55rem 0.8rem;
  color: var(--c-text);
}
.filters input:focus,
.filters select:focus {
  outline: 1px solid var(--c-secondary);
}

/* Product detail */
.gallery-main {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.gallery-thumbs button {
  border: 1px solid var(--c-line);
  padding: 0;
  width: 78px;
  height: 58px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--c-line);
  font-weight: 400;
}
.spec-table th {
  color: var(--c-muted);
  width: 36%;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 15, 15, 0.9);
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.lightbox.open {
  display: grid;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Contact */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 1.8rem;
}
.map-frame {
  border: 0;
  width: 100%;
  min-height: 360px;
  filter: grayscale(0.25) contrast(1.05);
}

/* Footer */
.site-footer {
  background: #232323;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid a:hover {
  color: var(--c-secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Floaters */
.float-wa,
.back-top {
  position: fixed;
  right: 1.1rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.float-wa {
  bottom: 1.1rem;
  background: #25d366;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.back-top {
  bottom: 4.6rem;
  background: var(--c-primary);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.muted {
  color: var(--c-muted);
}
.counter {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}

/* Blog */
.prose {
  max-width: 72ch;
}
.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}
.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.1rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.45rem;
}

/* RWD */
@media (max-width: 1024px) {
  .nav-desktop,
  .header-cta .btn--outline {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .section-head--split,
  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .inspire-grid,
  .brand-wall,
  .filters {
    grid-template-columns: 1fr 1fr;
    flex-direction: column;
    align-items: start;
  }
  .inspire-grid {
    grid-template-rows: 220px 220px 220px;
  }
  .inspire-item:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }
  .nav-dd-panel {
    min-width: 420px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 1.5rem, 1180px);
    --header-h: 68px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .filters,
  .brand-wall,
  .footer-grid,
  .inspire-grid {
    grid-template-columns: 1fr;
  }
  .inspire-item:first-child {
    grid-column: span 1;
  }
  .inspire-grid {
    grid-template-rows: none;
  }
  .inspire-item {
    min-height: 220px;
  }
  .hero {
    min-height: 92vh;
  }
  .btn-group {
    width: 100%;
  }
  .btn-group .btn {
    flex: 1 1 auto;
  }
}
