/* =========================================================
   First Light Roofing — 工业钢构风格样式
   色板：Monument 炭黑 / Surfmist 米白 / 火焰橙 CTA / 铁蓝
   布局：全部使用 Flexbox
   ========================================================= */

:root {
  /* 颜色变量（驼峰命名） */
  --paper: #f4f2ec;
  --paperAlt: #ebe9e0;
  --charcoal: #23262a;
  --charcoalDeep: #191c1f;
  --steel: #4c6472;
  --flame: #e4572e;
  --flameDark: #c7431f;
  --ink: #2b2e32;
  --muted: #6b6e66;
  --line: #d9d6cb;
  --ribColor: rgba(255, 255, 255, 0.06);

  /* 字体 */
  --displayFont: "Anton", "Arial Narrow", sans-serif;
  --bodyFont: "Barlow", "Helvetica Neue", sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bodyFont);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

/* ---------- 通用标题与按钮 ---------- */
.sectionKicker {
  font-family: var(--bodyFont);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 10px;
}

.sectionKicker--light { color: #f0a58c; }

.sectionTitle {
  font-family: var(--displayFont);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  text-transform: uppercase;
}

.sectionSub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 560px;
}

.sectionHead { margin-bottom: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--bodyFont);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary { background: var(--flame); color: #fff; }
.btn--primary:hover { background: var(--flameDark); transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn--light { background: var(--paper); color: var(--charcoal); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

.btn--full { width: 100%; }

/* ---------- 波纹瓦竖棱纹理（品牌记忆点） ---------- */
.ribBand {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--ribColor) 0 3px,
    transparent 3px 14px
  );
}

/* ---------- 顶部信息条 ---------- */
.topBar {
  background: var(--charcoalDeep);
  color: #c9cbc9;
  font-size: 13.5px;
  letter-spacing: 0.05em;
}

.topBarInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}

.topBarItem--desktop { display: inline; }

.topBarPhone {
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.topBarPhone:hover { color: var(--flame); }

/* ---------- 导航栏 ---------- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

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

.brandMark {
  width: 34px;
  height: 20px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--flame) 0 5px,
      transparent 5px 10px
    );
  clip-path: polygon(0 100%, 18% 0, 100% 0, 100% 45%, 82% 100%);
}

.brandText {
  font-family: var(--displayFont);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.brandText em {
  font-style: normal;
  color: var(--flame);
}

.mainNav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navLink {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.navLink:hover { color: var(--flame); }

.navLink--cta {
  background: var(--charcoal);
  color: #fff;
  padding: 10px 20px;
  border-bottom: none;
}

.navLink--cta:hover { background: var(--flame); color: #fff; }

.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}

.navToggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navToggle.isOpen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navToggle.isOpen span:nth-child(2) { opacity: 0; }
.navToggle.isOpen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.heroMedia {
  position: absolute;
  inset: 0;
}

.heroMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 22, 25, 0.88) 0%, rgba(20, 22, 25, 0.55) 46%, rgba(20, 22, 25, 0.18) 100%);
}

.heroInner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 96px;
  max-width: 1180px;
}

.heroKicker {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #f0a58c;
  margin-bottom: 18px;
}

.heroTitle {
  font-family: var(--displayFont);
  font-weight: 400;
  font-size: clamp(52px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* 第二行描边字，制造工地标牌感 */
.heroTitle .outline { color: transparent; -webkit-text-stroke: 2px #fff; }

.heroSub {
  max-width: 540px;
  font-size: 19px;
  color: #e4e2da;
  margin-bottom: 30px;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.heroTrust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 22px;
}

.heroTrust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: #f2f0ea;
}

/* 信任项前的小竖棱图标 */
.heroTrust li::before {
  content: "";
  width: 6px;
  height: 18px;
  background: var(--flame);
}

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }

.section--alt {
  background: var(--paperAlt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- 公司介绍区 ---------- */
.aboutInner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.aboutCopy { flex: 1 1 58%; }

.aboutText {
  margin-top: 18px;
  color: var(--muted);
  max-width: 560px;
}

.aboutStats {
  flex: 1 1 36%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aboutStats li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-left: 3px solid var(--flame);
  padding-left: 18px;
}

.statNum {
  font-family: var(--displayFont);
  font-size: 42px;
  line-height: 1;
  color: var(--charcoal);
  min-width: 104px;
}

.statLabel {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 服务区 ---------- */
.serviceGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.serviceCard {
  flex: 1 1 300px;
  max-width: calc(33.333% - 15px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--charcoal);
  padding: 30px 26px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.serviceCard:hover {
  transform: translateY(-6px);
  border-top-color: var(--flame);
  box-shadow: 0 18px 34px rgba(25, 28, 31, 0.12);
}

.serviceIcon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paperAlt);
  color: var(--steel);
  margin-bottom: 18px;
}

.serviceIcon svg { width: 30px; height: 30px; }

.serviceCard:hover .serviceIcon { background: var(--flame); color: #fff; }

.serviceTitle {
  font-family: var(--displayFont);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.serviceText { font-size: 15.5px; color: var(--muted); }

/* ---------- 色卡区 ---------- */
.colours {
  background: var(--charcoal);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

/* 背景斜纹，模拟钢板肌理 */
.colours::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.025) 0 2px,
    transparent 2px 26px
  );
}

.coloursInner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 56px;
}

.coloursCopy { flex: 1 1 44%; }

.coloursText {
  color: #b9bcb8;
  margin: 16px 0 28px;
  max-width: 480px;
}

.colourSwatches {
  flex: 1 1 56%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  flex: 1 1 calc(25% - 10px);
  min-height: 150px;
  background: var(--swatchBg);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  transition: transform 0.25s ease;
}

.swatch:hover { transform: translateY(-6px); }

.swatch span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 浅色色块文字改用深色 */
.swatch:first-child span,
.swatch:nth-child(2) span { color: rgba(30, 32, 35, 0.85); text-shadow: none; }

/* ---------- 案例区 ---------- */
.projectGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.projectCard {
  flex: 1 1 320px;
  max-width: calc(33.333% - 16px);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projectCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(25, 28, 31, 0.12);
}

.projectMedia {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.projectMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projectCard:hover .projectMedia img { transform: scale(1.05); }

.projectTag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--charcoal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.projectBody {
  padding: 18px 20px 20px;
  border-top: 3px solid var(--flame);
}

.projectTitle {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.projectMeta {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 流程区 ---------- */
.processList {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  counter-reset: step;
}

.processStep {
  flex: 1 1 220px;
  max-width: calc(25% - 18px);
  border-top: 3px solid var(--charcoal);
  padding-top: 18px;
}

.processNum {
  font-family: var(--displayFont);
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--flame);
  display: block;
  margin-bottom: 12px;
}

.processTitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.processText { font-size: 15px; color: var(--muted); }

/* ---------- 联系区 ---------- */
.contact {
  background: var(--charcoalDeep);
  color: #fff;
  padding: 96px 0;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--ribColor) 0 3px,
    transparent 3px 14px
  );
}

.contactInner {
  position: relative;
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.contactCopy { flex: 1 1 40%; }

.contactText { color: #b9bcb8; margin: 14px 0 30px; max-width: 420px; }

.contactList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contactList li {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--flame);
  padding-left: 14px;
}

.contactList strong {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d908c;
}

.contactList a,
.contactList span { font-size: 17px; font-weight: 600; color: #f2f0ea; }

.contactList a:hover { color: var(--flame); }

/* 报价表单 */
.quoteForm {
  flex: 1 1 60%;
  background: var(--paper);
  color: var(--ink);
  padding: 36px 32px;
  border-top: 4px solid var(--flame);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formRow {
  display: flex;
  gap: 16px;
}

.formField {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formLabel {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quoteForm input,
.quoteForm select,
.quoteForm textarea {
  width: 100%;
  font-family: var(--bodyFont);
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.quoteForm input:focus,
.quoteForm select:focus,
.quoteForm textarea:focus {
  outline: none;
  border-color: var(--flame);
}

.quoteForm textarea { resize: vertical; }

.formNote { font-size: 13px; color: var(--muted); }

.formNote.formNote--ok { color: #2e7d4f; font-weight: 600; }

/* ---------- 页脚 ---------- */
.siteFooter {
  background: #101214;
  color: #9a9d99;
  padding: 40px 0;
}

.footerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.brand--footer .brandText { color: #e8e6df; font-size: 17px; }

.footerNav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footerNav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footerNav a:hover { color: var(--flame); }

.footerLegal { font-size: 13px; letter-spacing: 0.03em; }

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .serviceCard,
  .projectCard { max-width: calc(50% - 12px); }

  .processStep { max-width: calc(50% - 12px); }

  .coloursInner { flex-direction: column; align-items: stretch; }

  .aboutInner { flex-direction: column; align-items: stretch; gap: 44px; }

  .aboutStats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 36px;
  }

  .contactInner { flex-direction: column; }
}

@media (max-width: 720px) {
  .topBarItem--desktop { display: none; }

  .navToggle { display: flex; }

  .mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }

  .mainNav.isOpen { display: flex; }

  .navLink { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .navLink--cta { margin-top: 12px; text-align: center; }

  .hero { min-height: 78vh; }

  .heroInner { padding-bottom: 72px; }

  .heroTrust { gap: 10px 20px; }

  .section { padding: 72px 0; }

  .serviceCard,
  .projectCard,
  .processStep { max-width: 100%; }

  .formRow { flex-direction: column; }

  .footerInner { flex-direction: column; text-align: center; }
}
