/* ═══════════════════════════════════════════════════════
   協鑫造船股份有限公司  ·  官方網站  v4
   乾淨白底 · 品牌藍金 · 專業工業感
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --navy:      #2c3c81;   /* 品牌藍 */
  --navy-dk:   #1e2c68;
  --navy-lt:   #3d50a0;
  --gold:      #c8a000;   /* 品牌金（偏深，白底上清晰）*/
  --gold-bg:   #e0bd24;   /* 深色背景上使用 */
  --gold-dim:  rgba(200,160,0,.12);

  --white:     #ffffff;
  --bg:        #ffffff;
  --bg-alt:    #f4f7fc;   /* 交替區塊 */
  --bg-dk:     #0d1b3e;   /* 頁尾 */
  --bg-hero:   #2c3c81;   /* hero 主色 */

  --text:      #0f1f3d;   /* 主要文字 */
  --text-2:    #4a5c7a;   /* 次要文字 */
  --text-3:    #8a9bb5;   /* 輔助文字 */
  --border:    #dce3ee;
  --border-2:  #c8d4e8;

  --shadow-sm: 0 2px 8px  rgba(44,60,129,.08);
  --shadow:    0 6px 24px rgba(44,60,129,.10);
  --shadow-lg: 0 12px 40px rgba(44,60,129,.14);

  --radius:    10px;
  --radius-sm: 6px;
  --ease:      cubic-bezier(.25,.46,.45,.94);

  /* 舊版相容別名 */
  --bg-card:        var(--bg);
  --bg-secondary:   var(--bg-alt);
  --text-primary:   var(--text);
  --text-secondary: var(--text-2);
  --text-muted:     var(--text-3);
  --accent-gold:    var(--gold);
  --transition:     .25s var(--ease);
  --brand-blue:     var(--navy);
}

/* ═══════════════════════════════════════════════════════
   CERTIFICATIONS STRIP
   ═══════════════════════════════════════════════════════ */
.cert-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px clamp(20px,4vw,64px);
}
.cert-strip-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 3rem; flex-wrap: wrap;
}
.cert-strip-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; flex-shrink: 0;
}
.cert-list {
  display: flex; align-items: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.cert-item {
  display: flex; align-items: center; gap: 1.2rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  transition: box-shadow .2s;
}
.cert-item:hover { box-shadow: var(--shadow-sm); }
/* CR logo 用黑底卡片，保留 logo 原有配色 */
.cert-item.cert-dark {
  background: #0a0a0a; border-color: #222;
}
.cert-item.cert-dark .cert-text strong { color: #fff; }
.cert-item.cert-dark .cert-text span   { color: #888; }
.cert-logo {
  height: 64px; width: auto; display: block; flex-shrink: 0;
}
.cert-text strong {
  display: block; font-size: 14px; font-weight: 700; color: var(--text);
}
.cert-text span {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  display: block; margin-top: 2px;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--navy); color: #fff; }

/* ─── Scroll Reveal ──────────────────────────────────── */
.r   { opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.r-l { opacity:0; transform:translateX(-28px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.r-r { opacity:0; transform:translateX(28px);  transition:opacity .7s var(--ease),transform .7s var(--ease); }
.r.in,.r-l.in,.r-r.in { opacity:1; transform:none; }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.40s} .d6{transition-delay:.48s}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.nav, .navbar {
  position: fixed; inset: 0 0 auto; z-index: 900;
  height: 80px; display: flex; align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255,255,255,.0);
  transition: background .35s, box-shadow .35s;
  overflow: visible;
}
.nav.filled, .navbar.filled, .navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

/* Logo 圖檔 */
.nav-logo { display:flex; align-items:center; margin-right:auto; flex-shrink:0; }
.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
  /* Hero 深藍背景上：顯示白色 LOGO */
  filter: brightness(0) invert(1);
  transition: filter .35s, opacity .25s;
}
/* 捲動後導覽列變白底：切回原色 LOGO */
.nav.filled .nav-logo-img {
  filter: none;
}
.nav-logo-img:hover { opacity: .8; }

/* Nav links */
.nav-links { display:flex; align-items:center; gap:2.2rem; flex-shrink:0; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: .3px;
  color: var(--text-2); position: relative; padding-bottom: 4px;
  transition: color .2s; white-space: nowrap;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:2px;
  background: var(--navy); transform:scaleX(0);
  transition: transform .25s var(--ease); transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); }

/* CTA button in nav */
.nav-cta-btn {
  margin-left: .8rem !important;
  padding: 9px 22px !important;
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important; font-size: 13px !important;
  letter-spacing: .4px !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta-btn::after { display:none !important; }
.nav-cta-btn:hover { background: var(--navy-dk) !important; transform: translateY(-1px); }

/* Language Switcher */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 1.2rem;
  flex-shrink: 0;
}
/* Language Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.lang-dropdown-btn:hover {
  background: var(--navy);
  color: #fff;
}
.lang-chevron {
  transition: transform .2s;
  flex-shrink: 0;
}
.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #d0d8e8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 100px;
  z-index: 9999;
  overflow: hidden;
}
.lang-dropdown-menu.open {
  display: block;
}
.lang-dropdown-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.lang-dropdown-item:hover {
  background: var(--light);
}
.lang-dropdown-item.active {
  color: var(--navy);
  font-weight: 600;
}
/* On transparent hero nav, use white tones */
.nav:not(.filled) .nav-links a { color: rgba(255,255,255,.85); }
.nav:not(.filled) .nav-links a:hover,
.nav:not(.filled) .nav-links a.active { color: #fff; }
.nav:not(.filled) .nav-links a::after { background: #fff; }
.nav:not(.filled) .nav-cta-btn { background: rgba(255,255,255,.15) !important; border: 1px solid rgba(255,255,255,.5); }
.nav:not(.filled) .nav-cta-btn:hover { background: rgba(255,255,255,.3) !important; }
.nav:not(.filled) .lang-dropdown-btn { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.6); }
.nav:not(.filled) .lang-dropdown-btn:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.8); }

/* Hamburger */
.hamburger {
  display:none; background:none; border:none; cursor:pointer;
  padding:6px; flex-direction:column; gap:5px;
}
.hamburger span {
  display:block; width:22px; height:2px;
  background: var(--text); border-radius:2px; transition:all .3s;
}
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top:80px; inset-inline:0; z-index:800;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1rem 0; display:none; flex-direction:column;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display:flex; }
.mobile-nav a {
  padding: .85rem clamp(20px,4vw,64px);
  font-size:15px; font-weight:500; color:var(--text);
  border-bottom:1px solid var(--bg-alt);
  transition: background .15s;
}
.mobile-nav a:hover { background: var(--bg-alt); color:var(--navy); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 背景紋理 */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent 0px, transparent 48px,
      rgba(255,255,255,.025) 48px, rgba(255,255,255,.025) 49px
    );
  pointer-events: none;
}

/* 右下角光暈 */
#hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,189,36,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 4rem;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 130px clamp(20px,4vw,64px) 60px;
  position: relative;
  z-index: 1;
}

/* Hero tag */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  color: rgba(255,255,255,.65); text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bg); flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

/* Hero headline */
.hero-h1 {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

/* Brand tagline */
.hero-tagline {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  letter-spacing: 4px;
  margin-bottom: .75rem;
}

/* English sub */
.hero-en {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 400;
  letter-spacing: 4px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Hero desc */
.hero-desc {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,.72);
  line-height: 1.85;
  margin-bottom: 2.4rem;
  max-width: 480px;
}

/* Hero buttons */
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }

.btn {
  display: inline-flex; align-items: center;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .4px;
  cursor: pointer; border: 2px solid transparent;
  transition: all .25s var(--ease);
}
.btn-white {
  background: #fff; color: var(--navy);
}
.btn-white:hover { background: #f0f4ff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dk); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline-navy {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* Hero right – decorative element */
.hero-deco {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.deco-ring {
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.deco-ring::before {
  content: '';
  position: absolute; inset: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.deco-ring::after {
  content: '';
  position: absolute; inset: 54px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.06);
}
.deco-inner {
  display: flex; flex-direction: column; align-items: center; gap:6px;
  text-align: center;
}
.deco-since {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: 5px; color: var(--gold-bg);
  text-transform: uppercase;
}
.deco-year {
  font-family: 'Oswald', sans-serif;
  font-size: 82px; font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: -3px;
}
.deco-sub {
  font-size: 12px; color: rgba(255,255,255,.4);
  letter-spacing: 1px;
}

/* Hero stats bar (bottom of hero) */
.hero-stats-bar {
  display: flex; align-items: stretch;
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative; z-index: 1;
}
.hstat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 22px 16px; gap: 4px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.hstat:last-child { border-right: none; }
.hstat:hover { background: rgba(255,255,255,.05); }
.hstat-n {
  font-family: 'Oswald', sans-serif;
  font-size: 28px; font-weight: 700; color: #fff; line-height: 1;
}
.hstat-n sup { font-size: 13px; color: var(--gold-bg); vertical-align: super; }
.hstat-l { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .5px; }

/* ═══════════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════════ */
section { padding: 100px clamp(20px,4vw,64px); }
.section-inner { max-width: 1240px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900; color: var(--text);
  line-height: 1.15; letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 16px; color: var(--text-2);
  max-width: 560px; line-height: 1.8;
}
.section-header { margin-bottom: 3.5rem; }

/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  padding-top: 2.4rem;
  transition: box-shadow .3s, transform .3s;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background .3s;
}
.svc-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}
.svc-card:hover::before {
  background: var(--gold);
}
.svc-num {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 1.2rem;
}
.svc-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.svc-card h3 {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: .7rem; letter-spacing: -.2px;
}
.svc-card p {
  font-size: 15px; color: var(--text);
  line-height: 1.85; margin-bottom: 1.4rem; flex:1;
}
.svc-list { display:flex; flex-direction:column; gap:.6rem; margin-top:auto; }
.svc-list li {
  font-size: 14px; color: var(--text-3);
  display: flex; align-items: center; gap: 7px;
}
.svc-list li::before {
  content: '';
  width: 14px; height: 2px; border-radius: 1px;
  background: var(--navy); flex-shrink: 0;
}

/* Engine brands strip */
.brands-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px clamp(20px,4vw,64px);
  margin-top: 60px;
}
.brands-strip-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.brands-strip-label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-3);
  white-space: nowrap;
}
.brands-list { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.brand-chip {
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border-2);
  font-family: 'Oswald', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 1px;
  color: var(--text-2); background: #fff;
  transition: all .2s;
}
.brand-chip:hover { border-color: var(--navy); color: var(--navy); }

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
#about { background: var(--bg-alt); }

.about-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 5rem; align-items: start;
}
.about-text .section-title { font-size: clamp(28px,3.5vw,44px); }
.about-lead {
  font-size: 16px; color: var(--text);
  line-height: 1.85; margin-bottom: 1.25rem;
  font-weight: 500;
}
.about-text p {
  font-size: 14.5px; color: var(--text-2);
  line-height: 1.85; margin-bottom: 1.2rem;
}
.about-text p strong {
  display: block;
  font-size: 15px; font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
  letter-spacing: -.1px;
}
.about-tagline {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  border-left: 3px solid var(--gold);
  padding-left: .9rem;
  margin-top: 1.6rem !important;
}

/* ── Certification logos ─────────────────────────── */
.cert-logos {
  display: flex; align-items: center; gap: 2rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 2rem;
  margin-top: 2rem;
}
.cert-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; text-align: center;
}
.cert-img {
  width: 100px; height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,63,108,.15));
}
.cert-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.6;
}
.cert-divider {
  width: 1px; height: 80px; background: var(--border); flex-shrink: 0;
}
.cr-badge-lg {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid #C41E3A;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 26px; font-weight: 700; color: #C41E3A;
  letter-spacing: 2px;
}

/* Cert badges */
.about-badges { display:flex; flex-direction:column; gap:.75rem; margin-top:1.25rem; }
.badge {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
}
.badge > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.badge strong { font-size: 14px; font-weight: 700; color: var(--text); }
.badge span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.badge-logo { height: 40px; max-width: 120px; flex-shrink: 0; object-fit: contain; }

/* Stats grid (right side) */
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.astat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem 1.6rem;
  display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .3s, transform .2s;
  text-align: center; align-items: center;
}
.astat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.astat-n {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 4vw, 48px); font-weight: 700; color: var(--navy); line-height: 1;
}
.astat-n sup { font-size: 20px; color: var(--gold); }
.astat-unit { font-size: 15px; color: var(--gold); font-weight: 600; }
.astat-label { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════ */
#gallery { background: var(--bg); }

/* Filter tabs */
.gallery-filters { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:2.5rem; }
.gf-tab {
  padding: 8px 20px; border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: #fff; cursor: pointer; transition: all .2s;
}
.gf-tab:hover { border-color: var(--navy); color: var(--navy); }
.gf-tab.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gal-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.gal-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gal-item:hover img { transform: scale(1.06); }

/* 暫無圖片時的佔位 */
.gal-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8eef8 100%);
}
.gal-placeholder .ph-icon { font-size: 36px; opacity: .4; }
.gal-placeholder .ph-text {
  font-size: 12px; color: var(--text-3); letter-spacing: 1px;
}

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,18,40,.92);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display:flex; }
#lb-img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
#contact { background: var(--bg-alt); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}

/* Contact info */
.contact-info { display:flex; flex-direction:column; gap:1.5rem; }
.cinfo-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.cinfo-ico {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cinfo-line-ico { background: #06C755; }
.cinfo-body strong {
  display:block; font-size:13px; font-weight:700;
  color: var(--text); margin-bottom:3px;
}
.cinfo-body span, .cinfo-body a {
  font-size: 14.5px; color: var(--text-2); line-height:1.6;
}
.cinfo-body a:hover { color: var(--navy); }

/* Contact form */
.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  color: var(--text); background: #fff;
  transition: border-color .2s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44,60,129,.1); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { align-self: flex-end; width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  background: var(--bg-dk);
  color: rgba(255,255,255,.6);
  padding: 60px clamp(20px,4vw,64px) 32px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 3rem; flex-wrap: wrap;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
.footer-brand { display:flex; flex-direction:column; gap:1rem; max-width:280px; }
.footer-logo-img {
  height: 38px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity .25s;
}
.footer-logo-img:hover { opacity: 1; }
.footer-tagline { font-size:13px; line-height:1.7; color:rgba(255,255,255,.45); }

.footer-links-group { display:flex; gap:4rem; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col ul { display:flex; flex-direction:column; gap:.7rem; }
.footer-col a {
  font-size: 14px; color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 12.5px; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-deco { display:none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  section { padding: 72px clamp(20px,5vw,40px); }
  .nav { padding:0 20px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  #lang-switcher { margin-left: .5rem; }
  .lang-dropdown-btn { font-size: 12px; padding: 3px 8px; }
  .hero-inner { padding-top: 110px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  #lang-switcher { gap: 2px; }
  .lang-dropdown-btn { font-size: 11px; padding: 3px 7px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats-bar { flex-wrap: wrap; }
  .hstat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-top { flex-direction:column; }
  .footer-links-group { flex-direction:column; gap:2rem; }
  .deco-ring { width:240px; height:240px; }
  .deco-year { font-size:60px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
