/* ============================================================
   盛隆五金股份有限公司 — 網站樣式
   色彩系統:
     --ink        #1B2A38  深墨藍(標題、Navbar底色)
     --steel      #35566E  鋼藍(次要文字、連結)
     --brass      #A9752C  黃銅金(強調色 — 呼應銅製螺絲/電表產品)
     --brass-lt   #C99A55  黃銅金-亮
     --paper      #F3F1EC  暖灰紙色(頁面背景)
     --ink-text   #262523  正文字色
   字體系統:
     標題: 'Noto Serif TC'   — 襯線,帶出老字號份量感
     內文: 'Noto Sans TC'    — 無襯線,易讀
     規格/數字: 'JetBrains Mono' — 等寬,銘牌刻字感
   ============================================================ */

:root {
  --ink: #1B2A38;
  --steel: #35566E;
  --brass: #A9752C;
  --brass-lt: #C99A55;
  --paper: #F3F1EC;
  --ink-text: #262523;
  --rule: rgba(27, 42, 56, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink-text);
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.8;
}

h1, h2, h3, h4, .brand-serif {
  font-family: 'Noto Serif TC', serif;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.mono-spec {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--brass); }

/* ---------- Navbar ---------- */
.navbar-sl {
  background-color: var(--ink);
  border-bottom: 3px solid var(--brass);
}
.navbar-sl .navbar-brand {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.3;
}
.navbar-sl .navbar-brand small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--brass-lt);
  letter-spacing: 0.12em;
  font-weight: 400;
}
.navbar-sl .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 500;
  margin: 0 0.35rem;
  position: relative;
}
.navbar-sl .nav-link:hover,
.navbar-sl .nav-link.active {
  color: #fff !important;
}
.navbar-sl .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: -2px;
  height: 2px;
  background: var(--brass);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(169,117,44,0.18), transparent 45%),
    var(--ink);
  color: #fff;
  padding: 3rem 0 3.5rem;
  position: relative;
}
.hero .since-badge {
  width: 108px; height: 108px;
  border: 2px solid var(--brass-lt);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  color: var(--brass-lt);
  margin-bottom: 1.5rem;
}
.hero .since-badge span:first-child { font-size: 0.62rem; letter-spacing: 0.15em; opacity: 0.85; }
.hero .since-badge span:last-child { font-size: 1.3rem; font-weight: 700; }
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.6rem; }
.hero .lead-en { color: rgba(255,255,255,0.7); font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; }
.hero p.tagline { color: rgba(255,255,255,0.85); max-width: 640px; font-size: 1.05rem; }

/* ---------- Section ---------- */
.section { padding: 4rem 0; }
.section-title-row {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 2rem;
}
.section-title-row .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brass);
  font-size: 1rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  width: 2.1rem; height: 2.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-title-row h2 { margin: 0; font-size: 1.6rem; }
.section-title-row .en { font-family: 'JetBrains Mono', monospace; color: var(--steel); font-size: 0.8rem; }

.card-sl {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
  height: 100%;
}
.card-sl h3, .card-sl h4 { font-size: 1.05rem; }

.rivet {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
  margin-right: 0.5rem;
}

/* ---------- Timeline (company history) ---------- */
.timeline { border-left: 2px solid var(--rule); padding-left: 1.75rem; margin-left: 0.5rem; }
.timeline-item { position: relative; padding-bottom: 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.31rem; top: 0.25rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--brass);
}
.timeline-item .year {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brass);
  font-weight: 700;
}

/* ---------- Spec plate (product amp ratings) ---------- */
.spec-plate {
  background: var(--ink);
  color: var(--brass-lt);
  font-family: 'JetBrains Mono', monospace;
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  font-size: 0.82rem;
  display: inline-block;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 2.75rem 0 1.75rem;
  margin-top: 3rem;
}
footer.site-footer h5 { color: #fff; font-family: 'Noto Serif TC', serif; font-size: 1rem; }
footer.site-footer a { color: rgba(255,255,255,0.75); }
footer.site-footer a:hover { color: var(--brass-lt); }
footer.site-footer hr { border-color: rgba(255,255,255,0.15); }
footer.site-footer .small-note { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ---------- Misc ---------- */
.divider-brass {
  width: 46px; height: 3px;
  background: var(--brass);
  margin-bottom: 1.25rem;
}
.img-frame {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.img-frame img { width: 100%; height: auto; display: block; }

.map-frame {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero { padding: 3.5rem 0 3rem; text-align: center; }
  .hero .since-badge { margin-left: auto; margin-right: auto; }
}

/* 首頁產品摘要卡片圖片高度統一 */
.card-sl .img-frame {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.card-sl .img-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 關於我們頁 - 歷史照片縮小 */
.col-lg-5 .img-frame {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.col-lg-5 .img-frame img {
  width: 100%;
  height: auto;
}

/* 國旗專用 - 縮小空間 */
.flag-box {
  border: 1px solid rgba(27, 42, 56, 0.08);
  border-radius: 4px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  height: 52px;
}

.flag-box img {
  max-height: 36px;
  width: auto;
  display: block;
}