/* ═══════════════════════════════════════════
   AIR CRAFT MAISON — Global Design System
   空氣美學事務所
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200;300;400;500&family=Noto+Sans+TC:wght@200;300;400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --ink:        #161614;
  --ink-deep:   #0d0d0b;
  --ash:        #3e3d38;
  --stone:      #7a7870;
  --mist:       #b8b4ac;
  --fog:        #dedad2;
  --rice:       #f0ece4;
  --paper:      #f8f5ef;
  --white:      #fefcf8;
  --gold:       #b0aca4;
  --gold-lt:    #c8c4bc;
  --gold-dk:    #8a8880;
  --gold-glow:  rgba(176,172,164,0.15);
  --red-mark:   #8b3a2a;

  --font-serif-zh: 'Noto Serif TC', 'Source Han Serif TC', serif;
  --font-sans-zh:  'Noto Sans TC', sans-serif;
  --font-en:       'Cormorant Garamond', 'EB Garamond', Georgia, serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --nav-h: 76px;
  --max-w: 1280px;
  --gutter: clamp(24px, 5vw, 80px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans-zh);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--fog); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: var(--gold-glow); color: var(--ink); }

/* ── LOADER ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  transition: opacity 0.9s var(--ease-out) 0.2s, visibility 0.9s 0.2s;
}
#page-loader.out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--font-serif-zh);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  letter-spacing: 14px;
  color: var(--rice);
  opacity: 0;
  transform: translateY(8px);
  animation: loaderFade 0.7s var(--ease-out) 0.1s forwards;
}
.loader-rule {
  width: 1px; height: 0; background: var(--gold);
  margin: 18px auto;
  animation: loaderLine 0.8s var(--ease-out) 0.5s forwards;
}
.loader-sub {
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); opacity: 0;
  animation: loaderFade 0.6s var(--ease-out) 1s forwards;
}
@keyframes loaderFade { to { opacity: 1; transform: none; } }
@keyframes loaderLine { to { height: 60px; } }

/* ── NAVIGATION ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.5s, border-color 0.5s, height 0.4s;
  border-bottom: 1px solid transparent;
}
#site-nav.solid {
  background: rgba(248,245,239,0.96);
  backdrop-filter: blur(16px);
  border-color: var(--fog);
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-mark { height: 32px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-en {
  font-family: var(--font-en);
  font-size: 18px; font-weight: 400; letter-spacing: 2px;
  color: var(--white); transition: color 0.5s;
}
.nav-logo-zh {
  font-family: var(--font-serif-zh);
  font-size: 9px; font-weight: 300; letter-spacing: 4px;
  color: rgba(255,255,255,0.5); transition: color 0.5s;
}
#site-nav.solid .nav-logo-en { color: var(--ink); }
#site-nav.solid .nav-logo-zh { color: var(--stone); }

.nav-center {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 40px;
}
.nav-link {
  position: relative; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.75); transition: color 0.3s;
  white-space: nowrap;
}
#site-nav.solid .nav-link { color: var(--ash); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-reserve {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(176,172,164,0.4);
  padding-bottom: 3px;
  transition: all 0.3s;
}
.nav-reserve:hover { border-bottom-color: var(--gold); letter-spacing: 3px; }
.nav-lang-btn {
  font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,0.45); transition: color 0.3s; padding: 4px;
}
#site-nav.solid .nav-lang-btn { color: var(--stone); }
.nav-lang-btn:hover { color: var(--gold); }
.nav-lang-btn.active { color: var(--gold); font-weight: 400; }
#site-nav.solid .nav-lang-btn.active { color: var(--gold-dk); }
.nav-lang-sep { color: rgba(255,255,255,0.2); font-size: 10px; }
#site-nav.solid .nav-lang-sep { color: var(--mist); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--fog);
  min-width: 200px; padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 20px 40px rgba(22,22,20,0.08);
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; background: var(--white);
  border-top: 1px solid var(--fog); border-left: 1px solid var(--fog);
  rotate: 45deg;
}
.dropdown-link {
  display: block; padding: 10px 20px;
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--ash); transition: all 0.2s;
  border-left: 2px solid transparent;
}
.dropdown-link:hover { color: var(--gold); border-left-color: var(--gold); background: var(--rice); }
.dropdown-link span {
  display: block; font-size: 9px; letter-spacing: 1px; color: var(--stone); margin-top: 2px;
}

/* Hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger-line { width: 22px; height: 1px; background: var(--white); transition: all 0.3s; }
#site-nav.solid .burger-line { background: var(--ink); }

/* Mobile menu */
#mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: var(--ink-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden;
  transition: all 0.4s var(--ease-out);
}
#mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-nav-link {
  font-family: var(--font-serif-zh);
  font-size: 22px; font-weight: 200; letter-spacing: 4px;
  color: var(--rice); transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--gold); }

/* ── LAYOUT UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.pt-nav { padding-top: var(--nav-h); }

/* Section primitives */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec-sm { padding: clamp(48px, 6vw, 80px) 0; }

.sec-label {
  display: inline-block;
  font-size: 9px; font-weight: 300; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.sec-title-zh {
  font-family: var(--font-serif-zh);
  font-size: clamp(26px, 4vw, 46px); font-weight: 300; letter-spacing: 3px;
  line-height: 1.45; color: var(--ink);
}
.sec-title-en {
  font-family: var(--font-en);
  font-size: clamp(13px, 1.5vw, 17px); font-style: italic; font-weight: 300;
  letter-spacing: 1px; color: var(--stone); margin-top: 6px;
  display: block;
}
.sec-rule { width: 36px; height: 1px; background: var(--gold); margin: 28px 0; }

/* Dark section overrides */
.sec-dark { background: var(--ink); }
.sec-dark .sec-title-zh { color: var(--rice); }
.sec-dark .sec-title-en { color: var(--stone); }
.sec-mid { background: var(--rice); }
.sec-fog { background: var(--fog); }

/* ── REVEAL ANIMATIONS ── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }
[data-reveal][data-delay="6"] { transition-delay: 0.6s; }

/* ── FOOTER ── */
#site-footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding: 72px var(--gutter) 56px;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-brand-en {
  font-family: var(--font-en);
  font-size: 20px; font-style: italic; letter-spacing: 2px; color: var(--rice);
}
.footer-brand-zh {
  font-family: var(--font-serif-zh);
  font-size: 10px; letter-spacing: 4px; color: var(--stone); margin-top: 4px;
  display: block;
}
.footer-tagline {
  font-size: 12px; color: var(--stone); line-height: 2; margin-top: 20px; letter-spacing: 0.5px;
}
.footer-col-title {
  font-size: 9px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-mhi-logo-link { display: inline-block; margin-bottom: 20px; }
.footer-mhi-logo { display: block; width: 160px; height: auto; max-width: 100%; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 12px; color: var(--stone); letter-spacing: 0.5px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 22px var(--gutter);
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 10px; color: rgba(255,255,255,0.2); letter-spacing: 1px; }
.footer-sub-links { display: flex; gap: 24px; }
.footer-sub-links a { font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 1px; transition: color 0.3s; }
.footer-sub-links a:hover { color: var(--gold); }

/* ── BUTTONS — text-link style ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  padding: 0; background: none; border: none;
  transition: gap 0.35s;
}
/* Shared underline */
.btn::after {
  content: none;
}
/* Dark-background variant (gold text) */
.btn-gold {
  color: var(--gold);
  border-bottom: 1px solid rgba(176,172,164,0.35);
  padding-bottom: 5px;
}
.btn-gold:hover { gap: 18px; border-bottom-color: var(--gold); }

/* Light-background variant (ink text) */
.btn-outline {
  color: var(--ash);
  border-bottom: 1px solid rgba(62,61,56,0.3);
  padding-bottom: 5px;
}
.btn-outline:hover { gap: 18px; color: var(--ink); border-bottom-color: var(--ash); }

/* On dark bg, light text */
.btn-outline-light {
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}
.btn-outline-light:hover { gap: 18px; color: var(--white); border-bottom-color: rgba(255,255,255,0.5); }

.btn-arrow { font-size: 13px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--stone); padding: 16px 0;
}
.breadcrumb a { color: var(--stone); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--mist); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  height: 46vh; min-height: 320px;
  background: var(--ink);
  display: flex; align-items: flex-end;
  padding-bottom: 60px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1e1e1a 0%, var(--ink-deep) 100%);
}
.page-hero-kanji {
  position: absolute; right: var(--gutter); bottom: -10px;
  font-family: var(--font-serif-zh);
  font-size: clamp(80px, 14vw, 180px); font-weight: 200;
  color: rgba(255,255,255,0.03); line-height: 1; letter-spacing: 6px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-label {
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; display: block;
}
.page-hero-title-zh {
  font-family: var(--font-serif-zh);
  font-size: clamp(30px, 5vw, 54px); font-weight: 200; letter-spacing: 4px;
  color: var(--rice); line-height: 1.3;
}
.page-hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.8vw, 19px); font-style: italic;
  color: rgba(255,255,255,0.4); margin-top: 8px; letter-spacing: 1px;
}

/* ── GOLD LINE DECORATIVE ── */
.gold-line-v {
  width: 1px; background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.3;
}
.gold-line-h {
  height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.35;
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .nav-burger { display: flex; }
  .nav-reserve { display: none; }
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ── ICON REMOVAL — replace with thin line ── */
.store-row-icon,
.store-big-icon {
  display: block;
  width: 16px; height: 1px;
  background: var(--gold); opacity: 0.5;
  flex-shrink: 0; margin-top: 11px;
}
.srv-icon-wrap { display: none; }
.role-icon { display: none; }

/* ── FONT SIZE SCALE UP (+2 levels) ── */
/* Base body */
body { font-size: 18px; }

/* Section labels */
.sec-label { font-size: 11px; }
.page-hero-label { font-size: 12px; }

/* Section titles */
.sec-title-zh { font-size: clamp(30px, 4.5vw, 52px); }
.sec-title-en { font-size: clamp(15px, 1.8vw, 20px); }
.page-hero-title-zh { font-size: clamp(34px, 6vw, 62px); }
.page-hero-title-en { font-size: clamp(16px, 2vw, 22px); }

/* Nav */
.nav-link { font-size: 14px; }
.nav-logo-mark { height: 26px; }
.nav-logo-en { font-size: 21px; }
.nav-logo-zh { font-size: 12px; }
.dropdown-link { font-size: 14px; }
.dropdown-link span { font-size: 12px; }
.mobile-nav-link { font-size: 28px; }

/* Buttons */
.btn { font-size: 13px; }
.nav-reserve { font-size: 13px; }

/* Footer */
.footer-brand-en { font-size: 23px; }
.footer-brand-zh { font-size: 13px; }
.footer-tagline { font-size: 15px; }
.footer-col-title { font-size: 12px; }
.footer-col a { font-size: 15px; }
.footer-copy { font-size: 13px; }
.footer-sub-links a { font-size: 13px; }