/* ============================================================
   JIAXING HELIANG CONSTRUCTION CO., LTD - site styles
   Palette: navy #16294d / red #c8102e / light gray surfaces
   ============================================================ */
:root {
  --navy: #16294d;
  --navy-2: #0f1e3d;
  --red: #c8102e;
  --red-dark: #a50d26;
  --ink: #1f2937;
  --muted: #5b6472;
  --bg-soft: #f5f6f9;
  --bg-warm: #faf6f0;
  --line: #e3e7ee;
  --beige: #f3ece1;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 30, 61, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }

.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-title { font-size: 30px; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 760px; margin-bottom: 36px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15, 30, 61, 0.05);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { color: var(--navy); font-size: 16.5px; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-size: 12.5px; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--red); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; font-size: 20px; padding: 4px 12px; cursor: pointer; color: var(--navy);
}

/* ---------- hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, #fdfbf8 0%, #f2f4f8 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 46px; line-height: 1.15; margin-bottom: 16px; }
.hero .tagline { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.hero .tagline b { color: var(--navy); }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: none; transition: background 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card-img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 19px; }
.card-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px; font-weight: 600; color: var(--navy);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 8px;
}
.card-actions { display: flex; gap: 10px; margin-top: 6px; }

/* feature (icon) cards */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; box-shadow: var(--shadow);
}
.feature-card .ico { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--navy); }
.feature-card h4 { font-size: 16px; }
.feature-card p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy-2) url("images/about-banner.jpg") right center / auto 100% no-repeat;
  position: relative; color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 30, 61, 0.88) 0%, rgba(15, 30, 61, 0.45) 60%, rgba(15, 30, 61, 0.15) 100%);
}
.page-hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 24px;
}
.page-hero h1 { color: #fff; font-size: 40px; margin-bottom: 8px; }
.page-hero p { color: #d7deea; font-size: 17px; }

/* ---------- product detail ---------- */
.product-hero {
  background: var(--bg-warm); border-bottom: 1px solid var(--line);
}
.product-hero-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 0; }
.product-hero .crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.product-hero .crumbs a { color: var(--muted); text-decoration: none; }
.product-hero .crumbs a:hover { color: var(--red); }
.product-hero h1 { font-size: 40px; margin-bottom: 6px; }
.product-hero .subtitle { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.product-hero-img {
  width: 100%; border-radius: var(--radius) var(--radius) 0 0; object-fit: cover;
  max-height: 380px;
}

.detail-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table tr:nth-child(even) { background: var(--bg-soft); }
.spec-table th, .spec-table td { padding: 9px 14px; text-align: left; }
.spec-table th {
  width: 200px; background: var(--beige); color: var(--navy);
  font-weight: 600; border-bottom: 1px solid #fff;
}

.quote-cta {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-top: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.quote-cta h3 { font-size: 20px; }
.quote-cta p { color: var(--muted); font-size: 14px; }

/* ---------- about ---------- */
.about-block { margin-bottom: 40px; }
.about-block h2 { font-size: 24px; margin-bottom: 12px; }
.about-block p { color: var(--ink); margin-bottom: 10px; }
.about-block .lead { color: var(--muted); }

.commitment {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 44px 40px; margin: 20px 0 60px;
}
.commitment h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.commitment p { color: #d7deea; font-size: 16.5px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.contact-card .ico { width: 22px; height: 22px; color: var(--red); flex: none; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.contact-card a:hover { color: var(--red); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--navy); color: #fff; }
.cta-strip-inner {
  max-width: 1180px; margin: 0 auto; padding: 46px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; font-size: 26px; }
.cta-strip p { color: #d7deea; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: #c3cbdb; margin-top: 0; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 44px 24px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; font-size: 14px;
}
.footer-inner h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-inner a { color: #c3cbdb; text-decoration: none; }
.footer-inner a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand strong { color: #fff; display: block; font-size: 15px; line-height: 1.3; }
.footer-brand small { font-size: 12px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center;
  padding: 16px; font-size: 12.5px; color: #8b96ab;
}

/* ---------- floating inquiry ---------- */
.inquiry-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  padding: 14px 22px; border-radius: 40px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.35);
  display: flex; align-items: center; gap: 9px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.inquiry-fab:hover { background: var(--red-dark); transform: translateY(-2px); }
.inquiry-fab .ico { width: 19px; height: 19px; }

.inquiry-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 30, 61, 0.62);
  align-items: center; justify-content: center; padding: 20px;
}
.inquiry-modal.open { display: flex; }
.modal-content {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto; position: relative; padding: 30px 32px;
}
.modal-content h3 { font-size: 22px; margin-bottom: 4px; }
.modal-content .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.close-modal {
  position: absolute; top: 12px; right: 18px; font-size: 28px; line-height: 1;
  color: #98a1b0; cursor: pointer; background: none; border: none;
}
.close-modal:hover { color: var(--navy); }

.form-row { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 41, 77, 0.08);
}
.form-row textarea { min-height: 92px; resize: vertical; }
.form-success {
  display: none; background: #eef7f0; border: 1px solid #bfe3c8; color: #1e6b34;
  border-radius: 8px; padding: 14px 16px; font-size: 14px; margin-top: 14px;
}
.form-error { color: var(--red); font-size: 12.5px; margin-top: 4px; display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero h1 { font-size: 36px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(15, 30, 61, 0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid var(--bg-soft); width: 100%; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .page-hero h1, .product-hero h1 { font-size: 30px; }
  .section { padding: 44px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .brand { min-width: 0; flex: 1; }
  .brand-text strong { font-size: 12.5px; overflow-wrap: anywhere; }
  .brand-text small { font-size: 11px; }
  .nav-toggle { flex: none; padding: 2px 10px; }
  .site-logo { height: 40px; }
  .inquiry-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13.5px; }
}
