/* ===== 顯正通有限公司 網站樣式 ===== */

:root {
  --red: #9c1c1c;
  --red-dark: #7a1515;
  --grey: #555555;
  --grey-light: #888888;
  --bg-light: #f7f5f3;
  --card-bg: #ffffff;
  --border: #e6e2dd;
  --text: #2a2a2a;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.75;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.logo img {
  height: 34px;
  width: auto;
}

.logo .text {
  display: flex;
  flex-direction: column;
}

.logo .zh {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}

.logo .en {
  font-size: 11px;
  color: var(--grey-light);
  letter-spacing: 1px;
}

nav.main-nav ul {
  display: flex;
  gap: 36px;
}

nav.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #ffffff;
  padding: 96px 24px;
  text-align: center;
}

.hero.small {
  padding: 64px 24px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero p.subtitle {
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #f4e3e3;
}

.hero p.lead {
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  color: #f4e3e3;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: #ffffff;
  color: var(--red);
}

.btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ---------- Sections ---------- */
section {
  padding: 72px 24px;
}

section.alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title .eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: 30px;
  margin: 10px 0 14px;
}

.section-title p {
  color: var(--grey);
  max-width: 620px;
  margin: 0 auto;
}

.intro-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--grey);
  font-size: 16px;
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.card p {
  color: var(--grey);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}

.stats .stat h3 {
  font-size: 30px;
  color: var(--red);
  margin: 0 0 8px;
}

.stats .stat p {
  color: var(--grey);
  font-size: 14px;
  margin: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--text);
  color: #ffffff;
  text-align: center;
  padding: 56px 24px;
}

.cta-banner h2 {
  font-size: 26px;
  margin: 0 0 24px;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col img,
.img-placeholder {
  border-radius: 8px;
}

.img-placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  color: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.two-col h2 {
  font-size: 27px;
  margin: 0 0 18px;
}

.two-col p {
  color: var(--grey);
  margin: 0 0 16px;
}

/* ---------- List with icon dot ---------- */
.dot-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--grey);
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Advantage grid (about page) ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.adv-card {
  text-align: center;
  padding: 28px 18px;
}

.adv-card .idx {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.adv-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.adv-card p {
  font-size: 13.5px;
  color: var(--grey);
  margin: 0;
}

/* ---------- Service blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

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

.service-block .badge {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--red);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-block h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.service-block p {
  color: var(--grey);
  margin: 0;
  font-size: 15px;
}

/* ---------- Tag cloud ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
  color: var(--text);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.info-card {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 36px 30px;
}

.info-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.info-row .label {
  min-width: 84px;
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
}

.info-row .value {
  color: var(--grey);
  font-size: 14.5px;
}

.map-placeholder {
  margin-top: 20px;
  height: 160px;
  border-radius: 8px;
}

form.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
}

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

.contact-form button {
  border: none;
  cursor: pointer;
  justify-self: start;
}

.form-note {
  font-size: 12.5px;
  color: var(--grey-light);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--text);
  color: #cfcfcf;
  padding: 52px 24px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid li {
  font-size: 13.5px;
  color: #b6b6b6;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #3d3d3d;
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #8a8a8a;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .adv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  nav.main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 16px 24px;
  }
  nav.main-nav.open {
    display: flex;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 18px;
  }
  .menu-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 28px;
  }
  .grid,
  .adv-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .service-block {
    grid-template-columns: 56px 1fr;
  }
}
