/* =========================================================================
   AEVUM CONSTRUCTION — Design System
   Brand: deep navy + gold, premium yet trustworthy construction aesthetic.
   ========================================================================= */

:root {
  /* Brand palette (extracted from the logo) */
  --navy-900: #0e1830;
  --navy-800: #16243f;
  --navy-700: #1f3357;
  --navy-600: #2c456f;
  --gold-600: #b08d36;
  --gold-500: #c2a24c;
  --gold-400: #d4b86a;
  --cream:    #f7f4ef;
  --cream-200:#efe9df;
  --ink:      #14181f;
  --ink-soft: #3c4655;
  --muted:    #6b7587;
  --line:     #e3ddd2;
  --white:    #ffffff;

  /* Typography */
  --font-display: "Sora", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  /* Spacing & layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(14, 24, 48, .08), 0 6px 18px rgba(14, 24, 48, .06);
  --shadow-md: 0 10px 30px rgba(14, 24, 48, .12);
  --shadow-lg: 0 24px 60px rgba(14, 24, 48, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);

  scroll-behavior: smooth;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* lang-aware line-height: Chinese reads better with a touch more leading */
html[lang="zh"] body { line-height: 1.8; letter-spacing: .01em; }

/* --------------------------- Typography --------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--navy-800); letter-spacing: -.01em; }
.h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

/* --------------------------- Layout ------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy-800); color: #dfe6f1; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.center { text-align: center; }
.maxw-700 { max-width: 700px; }
.mx-auto { margin-inline: auto; }

/* Eyebrow label with gold rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.center .eyebrow { justify-content: center; }
.bg-navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* --------------------------- Buttons ------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 10px 26px rgba(194,162,76,.35); transform: translateY(-2px); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }
.btn svg { width: 18px; height: 18px; }

/* --------------------------- Header ------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,239,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(247,244,239,.96); border-color: var(--line); box-shadow: 0 4px 24px rgba(14,24,48,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-800); letter-spacing: .02em; line-height: 1; }
.brand .brand-sub { font-size: .62rem; letter-spacing: .32em; color: var(--gold-600); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .96rem;
  color: var(--ink-soft); padding: 9px 14px; border-radius: 8px; position: relative;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy-800); background: rgba(22,36,63,.05); }
.nav-links a[aria-current="page"] { color: var(--navy-800); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language toggle */
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 13px; font-family: var(--font-display);
  font-weight: 600; font-size: .82rem; color: var(--muted); transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--navy-800); color: #fff; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------- Hero --------------------------------------- */
.hero { position: relative; min-height: clamp(560px, 86vh, 860px); display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--navy-900); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,18,40,.93) 0%, rgba(14,24,48,.78) 42%, rgba(14,24,48,.35) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; padding-block: 80px; }
.hero h1 { color: #fff; margin: 18px 0 22px; white-space: pre-line; }
@media (max-width: 600px) { .hero h1 { white-space: normal; } }
.hero .lead { color: #d4ddec; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--gold-400); line-height: 1; }
.trust-item .ti-label { font-size: .86rem; color: #c2cbdb; max-width: 130px; }
.trust-item svg { width: 26px; height: 26px; color: var(--gold-400); }

/* --------------------------- Cards / services --------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-200); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body .h3 { margin-bottom: 10px; }
.card-body p { font-size: .96rem; }
.card-tag { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px; }
.card-link { margin-top: auto; padding-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy-700); display: inline-flex; align-items: center; gap: 8px; }
.card-link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Service list (icon rows) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 30px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400); margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; }

/* Split section (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split-media .badge-float {
  position: absolute; bottom: -22px; left: -22px; background: var(--navy-800); color: #fff;
  padding: 18px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-width: 220px;
}
.split-media .badge-float strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-400); display: block; }
.split-media .badge-float span { font-size: .82rem; color: #c2cbdb; }

/* Check list */
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--gold-600); margin-top: 3px; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 30px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem,5vw,3.2rem); color: var(--gold-400); line-height: 1; }
.stat .label { margin-top: 10px; font-size: .95rem; color: #c2cbdb; }

/* Gallery */
.gallery { columns: 3; column-gap: 18px; }
.gallery .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery .g-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-cap { position: absolute; inset: auto 0 0 0; padding: 30px 18px 16px; background: linear-gradient(transparent, rgba(10,18,40,.85)); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gallery .g-item:hover .g-cap { opacity: 1; transform: none; }
.gallery .g-cap .t { font-family: var(--font-display); font-weight: 600; }
.gallery .g-cap .s { font-size: .82rem; color: var(--gold-400); letter-spacing: .08em; text-transform: uppercase; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 28px; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--cream-200);
  display: block; line-height: 1; margin-bottom: 10px;
}
.bg-navy .step::before { color: rgba(255,255,255,.14); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }
.step .step-rule { width: 34px; height: 3px; background: var(--gold-500); border-radius: 3px; margin-bottom: 16px; }

/* Testimonials */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold-500); letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { font-size: 1.06rem; color: var(--ink); line-height: 1.7; }
.quote .who { margin-top: 20px; font-family: var(--font-display); font-weight: 600; color: var(--navy-800); }
.quote .who span { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(40px, 6vw, 70px); background: linear-gradient(115deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(194,162,76,.28), transparent 70%); }
.cta-band .h2 { color: #fff; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; align-items: center; }

/* --------------------------- Forms ------------------------------------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(194,162,76,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: #e9f5ec; border: 1px solid #b7e0c2; color: #1e6b38; font-weight: 500; }
.form-success.show { display: block; }
.form-error { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: #fbeaea; border: 1px solid #e6b3b3; color: #a1342f; font-weight: 500; }
.form-error.show { display: block; }

/* Contact info cards */
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.info-card .ico { flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--cream-200); color: var(--navy-700); }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card .h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { font-size: .96rem; color: var(--ink-soft); }
.info-card a:hover { color: var(--gold-600); }

/* Page hero (interior pages) */
.page-hero { background: var(--navy-800); color: #fff; padding-block: clamp(64px, 9vw, 110px); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(194,162,76,.16), transparent 55%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 16px 0 14px; }
.page-hero p { color: #c8d2e2; max-width: 620px; }
.crumbs { font-size: .85rem; color: #9fb0ca; }
.crumbs a:hover { color: var(--gold-400); }

/* --------------------------- Footer ------------------------------------- */
.site-footer { background: var(--navy-900); color: #aeb9cc; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.site-footer .f-brand img { height: 40px; margin-bottom: 18px; opacity: .96; }
.site-footer p { color: #93a0b6; font-size: .94rem; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer ul a { color: #aeb9cc; font-size: .94rem; transition: color .2s, padding .2s; }
.site-footer ul a:hover { color: var(--gold-400); padding-left: 4px; }
.f-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; }
.f-contact svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; margin-top: 3px; }
.f-reg { font-size: .82rem; color: #7e8aa0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .85rem; color: #7e8aa0; }
.footer-bottom .badge-reg { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border:1px solid rgba(255,255,255,.14); border-radius:999px; }
.footer-bottom .badge-reg b { color: var(--gold-400); }

/* --------------------------- Reveal animation --------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } :root { scroll-behavior: auto; } }

/* i18n visibility helpers */
[data-lang-show] { display: none; }
html[lang="en"] [data-lang-show="en"],
html[lang="zh"] [data-lang-show="zh"] { display: inline; }

/* --------------------------- Responsive --------------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media .badge-float { left: 16px; bottom: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand img { height: 40px; }
  .gallery { columns: 2; }
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 24px 22px;
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav-links.open { display: flex; transform: none; }
  .nav-links a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-cta .btn, .cta-row .btn { width: 100%; }
}
