/* === RESET & VARIABLES === */
:root {
  --white: #ffffff;
  --off-white: #f8f7f5;
  --light-gray: #f0eeeb;
  --mid-gray: #e2e0dc;
  --text-secondary: #6b6862;
  --text-primary: #1a1a18;
  --charcoal: #1a1a18;
  --dark-bg: #141414;
  --accent: #b09058;
  --accent-hover: #967740;
  --deep-grey: #999;
  --line-light: rgba(0,0,0,0.08);
  --line-dark: rgba(255,255,255,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", "Manrope", sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

h1 {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h2 {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h3 {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
}

.text-main {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 400;
}

.text-main.white { color: rgba(255,255,255,0.75); }
.text-main.deep-grey { color: var(--deep-grey); }

.brown-heading {
  color: var(--accent);
  font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
}

.white-heading {
  color: var(--white);
  font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
}

.eyebrow {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark-bg);
  padding: 0 3%;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo .logo-desktop {
  height: 42px;
  width: auto;
}

.brand-logo .logo-mobile {
  height: 32px;
  width: auto;
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-trigger {
  width: 28px;
  height: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.menu-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
  transform-origin: center;
}

.menu-trigger.is-open .menu-line.top {
  transform: translateY(8.25px) rotate(45deg);
}

.menu-trigger.is-open .menu-line.bottom {
  transform: translateY(-8.25px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 999;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay-content {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 120px 5% 60px;
}

.nav-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.nav-link-wrap { overflow: hidden; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: rgba(255,255,255,0.7);
  font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
  padding-left: 12px;
}

.nav-link-arrow {
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover .nav-link-arrow {
  opacity: 1;
}

.nav-menu-info {
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 60px;
}

.nav-info-heading {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.nav-info-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 6px;
}

.page-hero {
  background: var(--dark-bg);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.page-hero h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .hero-fallback { display: none; }

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,20,20,0.88) 0%, rgba(20,20,20,0.6) 50%, rgba(20,20,20,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 140px 0 80px;
}

.hero-content .eyebrow { color: var(--accent); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 640px;
}

.hero-content .lead {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.9;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--white);
}

.btn-dark {
  background: var(--dark-bg);
  color: var(--white);
}

.btn-dark:hover {
  background: #222;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 600px;
}

.stat-grid article {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-grid strong {
  font-family: "Hanken Grotesk", "Manrope", sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
}

.stat-grid span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.section {
  padding: 90px 0;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--white);
}

.section-alt {
  background: var(--off-white);
}

.split-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-layout.reverse {
  flex-direction: row-reverse;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
}

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark-bg);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.revealed::after {
  transform: scaleX(0);
}

.split-image .small-overlap {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 45%;
  z-index: 2;
}

.split-text {
  flex: 1;
}

.split-text h2 {
  margin-bottom: 20px;
}

.split-text .text-main {
  margin-bottom: 16px;
}

.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card-item {
  text-align: center;
  padding: 48px 28px;
  border-radius: 2px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-item .card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 28px;
}

.card-item h3 {
  margin-bottom: 12px;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading-center h2 {
  margin-bottom: 12px;
}

.excellence-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.excellence-left {
  flex: 1;
}

.excellence-left h2 {
  color: var(--white);
  margin-bottom: 32px;
}

.excellence-left h3 {
  color: var(--white);
  margin: 24px 0 16px;
}

.excellence-left ul {
  padding: 0;
}

.excellence-left ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

.excellence-left ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.excellence-right {
  flex: 1;
}

.excellence-right .text-main {
  margin-top: 24px;
}

.services-layout {
  display: flex;
  gap: 60px;
}

.services-sidebar {
  flex: 0 0 36%;
  position: relative;
}

.services-sidebar img {
  width: 100%;
  height: auto;
  position: sticky;
  top: 120px;
}

.services-content {
  flex: 1;
}

.service-block {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.service-block .eyebrow-small {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.service-block h2 {
  margin-bottom: 16px;
}

.service-block h3 {
  margin: 32px 0 12px;
}

.service-block .text-main {
  margin-bottom: 16px;
}

.detail-list {
  margin: 12px 0;
}

.detail-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--line-light);
}

.detail-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.detail-list li:last-child {
  border-bottom: none;
}

.contact-hero {
  background: var(--dark-bg);
  padding: 160px 0 0;
  text-align: center;
}

.contact-hero h1 {
  color: var(--white);
  margin-bottom: 48px;
}

.contact-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  opacity: 0.85;
}

.contact-body {
  display: flex;
  gap: 60px;
  padding: 80px 0;
}

.contact-info {
  flex: 0 0 40%;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
}

.contact-info a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-info .address-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.contact-form-wrap {
  flex: 1;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--mid-gray);
  background: transparent;
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.3s ease;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  border-color: var(--accent);
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: var(--mid-gray);
}

.contact-form-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-wrap .btn {
  margin-top: 24px;
}

.map-section {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(1.1) sepia(20%);
  transition: filter 0.4s ease;
}

.map-section:hover iframe {
  filter: grayscale(50%) contrast(1.05) sepia(10%);
}

.site-footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 0;
}

.footer-top {
  display: flex;
  gap: 0;
  padding: 72px 0 52px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-top-left {
  flex: 0 0 42%;
  padding-right: 60px;
}

.footer-top-left .brown-heading {
  margin-bottom: 12px;
}

.footer-top-left .white-heading {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.footer-top-right {
  flex: 1;
  display: flex;
  gap: 40px;
}

.footer-col {
  flex: 1;
}

.footer-col-heading {
  font-family: "Microsoft JhengHei", "微軟正黑體", "Hanken Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.footer-contact-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-mid {
  display: flex;
  gap: 0;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-mid-left {
  flex: 0 0 42%;
  padding-right: 60px;
}

.footer-newsletter {
  display: flex;
  gap: 0;
}

.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
}

.footer-newsletter input[type="email"]::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-newsletter button {
  padding: 11px 22px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-newsletter button:hover {
  background: var(--accent-hover);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.footer-brand-logo img {
  height: 38px;
  width: auto;
  opacity: 1;
}

.footer-copyright {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .split-layout { gap: 40px; }
  .excellence-layout { gap: 40px; }
  .services-layout { gap: 40px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-top-left { flex: 1; padding-right: 0; }
  .footer-mid { flex-direction: column; gap: 24px; }
  .footer-mid-left { flex: 1; padding-right: 0; }
  .nav-menu-info { display: none; }
}

@media (max-width: 768px) {
  .brand-logo .logo-desktop { display: none; }
  .brand-logo .logo-mobile { display: block; }

  .page-hero { padding: 140px 0 60px; }

  .split-layout,
  .split-layout.reverse {
    flex-direction: column;
    gap: 32px;
  }

  .split-image .small-overlap {
    position: relative;
    bottom: auto;
    right: auto;
    width: 60%;
    margin-top: -30px;
    margin-left: auto;
  }

  .three-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .excellence-layout {
    flex-direction: column;
    gap: 32px;
  }

  .services-layout {
    flex-direction: column;
  }

  .services-sidebar {
    flex: 1;
  }

  .services-sidebar img {
    position: static;
    max-height: 300px;
    object-fit: cover;
  }

  .contact-body {
    flex-direction: column;
    gap: 40px;
    padding: 48px 0;
  }

  .contact-info { flex: 1; }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-content {
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .footer-top-right {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .hero-content { padding: 100px 0 48px; }
  .nav-container { height: 60px; }
  .page-hero { padding: 120px 0 48px; }
  .brand-logo .logo-mobile { height: 26px; }
}
