/* Zhongguan Curtain Wall — site stylesheet
   Brand palette extracted from Zhongguan New Material VI manual:
   primary #00519A, deep #0B3F73, green #67B134, gold #9F8249 */

:root {
  --blue: #00519A;
  --blue-deep: #0B3F73;
  --blue-mid: #125A9E;
  --blue-soft: #E9F1F8;
  --blue-line: #C8DCEC;
  --green: #67B134;
  --gold: #9F8249;
  --ink: #16283B;
  --muted: #61728A;
  --line: #DCE3EB;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FB;
  --radius: 10px;
  --maxw: 1200px;
  --shadow: 0 10px 30px rgba(11, 63, 115, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.15rem; }

.container { width: min(100% - 48px, var(--maxw)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section.blue { background: var(--blue-deep); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section.blue .eyebrow, .hero .eyebrow { color: #9FC7E8; }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); margin-bottom: 0; }
.section.blue .section-head p, .section.blue p { color: #C9DCEC; }
.lead { font-size: 18px; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-text strong { display: block; font-size: 17px; letter-spacing: .04em; line-height: 1.1; }
.brand-text span { display: block; font-size: 9px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 7px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-cta:hover { background: var(--blue-deep); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blue-deep); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,40,75,.96) 0%, rgba(5,40,75,.85) 48%, rgba(5,40,75,.45) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 118px 0 112px; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.1; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #8FC86A; }
.hero p { font-size: 19px; color: #D3E3F0; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 7px; font-size: 15px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--green); color: #10240A; }
.btn-primary:hover { background: #79C247; }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-soft); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 26px 28px; }
.stat b { display: block; font-size: 34px; color: var(--blue); letter-spacing: -.04em; }
.stat span { font-size: 13px; color: var(--muted); }

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; }
.img-frame { overflow: hidden; background: var(--blue-soft); aspect-ratio: 4/3; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.img-frame:hover img { transform: scale(1.04); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 28px; font-size: 15px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Projects */
.project-card { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--blue-deep); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.project-card:hover img { transform: scale(1.05); opacity: .8; }
.project-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 20px; background: linear-gradient(0deg, rgba(4,30,56,.9), transparent); color: #fff; }
.project-cap strong { display: block; font-size: 18px; }
.project-cap span { font-size: 13px; color: #CBDEED; }
.project-card.fallback { display: flex; align-items: flex-end; padding: 24px; background: var(--blue-soft); }
.project-card.fallback::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(0,81,154,.04) 18px, rgba(0,81,154,.04) 36px); }
.project-card.fallback .project-cap { position: relative; background: none; padding: 0; color: var(--blue-deep); }
.project-card.fallback .project-cap span { color: var(--muted); }

/* Inner page hero */
.page-hero { background: var(--blue-deep); color: #fff; padding: 70px 0 66px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: #CFE0EE; max-width: 700px; margin: 0; }
.breadcrumb { font-size: 13px; color: #9FC7E8; margin-bottom: 18px; }
.breadcrumb a:hover { text-decoration: underline; }

/* Capability blocks */
.cap-row { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.cap-row:last-child { border-bottom: 0; }
.cap-row h3 { font-size: 24px; color: var(--blue); }
.cap-row .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue-deep); background: var(--blue-soft); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.cap-row ul { color: var(--muted); font-size: 15px; }

/* Timeline */
.timeline { border-left: 2px solid var(--blue-line); margin-left: 8px; padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before { content: ''; position: absolute; left: -35px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
.timeline-item b { color: var(--blue); font-size: 17px; }
.timeline-item p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }

/* CTA banner */
.cta-banner { background: var(--blue); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.cta-inner p { color: #D3E3F0; margin-bottom: 0; }

/* Contact & form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.contact-info h3 { font-size: 20px; margin: 0 0 12px; }
.contact-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 0; }
.contact-block p { margin-bottom: 6px; font-size: 15px; }
.contact-block a { color: var(--blue); font-weight: 600; }
.contact-block a:hover { text-decoration: underline; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 7px; margin-bottom: 18px; font-size: 14px; }
.form-status.ok { display: block; background: #EAF5E2; color: #2F6413; border: 1px solid #BEDDA6; }
.form-status.err { display: block; background: #FDECEA; color: #8C231B; border: 1px solid #F3C2BD; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #0A2C4D; color: #C7D9E8; padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-mark { background: #fff; border-radius: 9px; padding: 3px; box-sizing: border-box; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Article body */
.article-body h2 { font-size: 26px; margin: 34px 0 12px; }
.article-body h3 { font-size: 21px; margin: 26px 0 10px; }
.article-body h4 { font-size: 18px; margin: 22px 0 8px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body img { border-radius: 10px; margin: 20px 0; max-width: 100%; height: auto; }
.article-body blockquote { border-left: 3px solid var(--green); padding: 6px 0 6px 18px; margin: 20px 0; color: var(--muted); font-style: italic; }
.article-body figure { margin: 20px 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; padding: 16px 24px 24px; flex-direction: column; align-items: flex-start; gap: 4px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .menu-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 36px; }
  .cap-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 60px 0; }
  .hero-inner { padding: 82px 0 76px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .stats, .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 22px; }
  .nav-cta { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text span { display: none; }
}
