/* ==========================================================================
   HON AI 紘愛科技有限公司 — 全站共用樣式
   ========================================================================== */

:root {
  --color-blue: #1a6fd4;
  --color-blue-dim: #1255a8;
  --color-text: #0d1a2e;
  --color-text-muted: #4a6080;
  --color-text-dim: #8aa0bc;
  --color-bg-surface: #f4f7fc;
  --color-border: rgba(26, 111, 212, 0.14);

  --font-sans: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans TC', monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1280px;
}

.inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1280px) {
  .inner { padding: 0 40px; }
}

@media (max-width: 640px) {
  .inner { padding: 0 20px; }
}

/* ---------- Nav ---------- */

.nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand span {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-blue);
}

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
  }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
  }
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.78px;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  box-shadow: 0 0 32px 0 rgba(59, 158, 255, 0.35);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-blue-dim);
}

/* ---------- Page Header (sub-pages) ---------- */

.page-header {
  width: 100%;
  padding: 64px 0;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.page-header .eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--color-blue);
  margin: 0 0 16px;
}

.page-header h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.88px;
  margin: 0 0 16px;
  color: var(--color-text);
}

.page-header p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Section heading ---------- */

.section-heading {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.88px;
  color: var(--color-text);
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  opacity: 0.8;
}

.footer-brand span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.65px;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.footer-info div {
  display: flex;
  gap: 10px;
}

.footer-info .label {
  color: var(--color-text-dim);
  white-space: nowrap;
}

.footer-info .value {
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.footer-links a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.66px;
  color: var(--color-text-dim);
}

/* ---------- CTA Banner (shared across sub-pages) ---------- */

.cta-banner {
  width: 100%;
  background: var(--color-blue);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-blue);
  box-shadow: none;
}

.cta-banner .btn-primary:hover {
  background: var(--color-bg-surface);
}

/* ---------- CTA card (light style, used on About / Careers pages) ---------- */

.cta-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.cta-card {
  width: 100%;
  max-width: 1120px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px;
}

.cta-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Responsive helpers ---------- */

@media (max-width: 960px) {
  .row-2col {
    flex-direction: column !important;
  }
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
}
