:root {
  --brand: #4E7989;
  --brand-deep: #4E7989;
  --ink: #202625;
  --muted: #64706d;
  --paper: #fbfaf7;
  --soft: #eef5f3;
  --line: #d9e1de;
  --warm: #c9a568;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(27, 45, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif TC", "Source Han Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 30px rgba(30, 42, 40, 0.08);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 18vw, 230px);
  height: 42px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  filter: brightness(0) invert(1);
  transition: filter 180ms ease;
}

.site-header.is-scrolled .brand-mark img,
.site-header.is-open .brand-mark img {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(20px, 5vw, 72px) 9vh;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.02)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.02) 55%);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.98;
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  width: min(590px, 100%);
  margin: 24px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.button-secondary {
  color: var(--brand-deep);
  background: var(--white);
  border-color: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.section,
.section-band {
  padding: clamp(74px, 10vw, 128px) 0;
}

.section-band {
  background: var(--soft);
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.18;
}

.section-heading p,
.intro-copy p,
.visit-copy p,
.info-note {
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0;
}

.brand-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.brand-points li {
  padding: 6px 12px;
  color: var(--brand-deep);
  background: rgba(78, 121, 137, 0.1);
  border: 1px solid rgba(78, 121, 137, 0.22);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 14px;
}

.space-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.space-gallery .gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.space-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-map figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.88rem;
}

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

.product-item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(27, 45, 43, 0.08);
}

.product-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-item div {
  padding: 20px;
}

.product-item p {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-item h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.product-item span {
  color: var(--muted);
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

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

.menu-list article {
  min-height: 160px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-list h3 {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: 1.25rem;
}

.menu-list p {
  margin: 0;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--brand-deep);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  justify-content: start;
}

.route-map {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.route-map img {
  width: 100%;
  height: auto;
}

.site-footer {
  padding: 34px 0;
  color: var(--white);
  background: var(--brand-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  display: block;
  font-size: 1.18rem;
}

.footer-inner p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 8px;
  }

  .hero {
    min-height: 86vh;
    padding: 110px 20px 44px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 70%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.06));
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-grid,
  .menu-layout,
  .info-grid,
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .space-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .space-gallery .gallery-large {
    grid-column: span 2;
    grid-row: auto;
  }

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

@media (max-width: 640px) {
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .brand-mark {
    width: 148px;
  }

  .hero {
    min-height: 84vh;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .space-gallery,
  .product-grid,
  .menu-list {
    grid-template-columns: 1fr;
  }

  .space-gallery .gallery-large {
    grid-column: auto;
  }

  .space-gallery {
    grid-auto-rows: 250px;
  }

  .product-item img {
    height: 235px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
