/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2a3a;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ============ COLOR TOKENS (original brand blues) ============ */
:root {
  --navy: #164a7c;
  --navy-2: #205f9c;
  --blue: #2a70bd;
  --accent: #45a9e0;
  --gold: #c9a83c;
  --ink: #1f2a3a;
  --muted: #64748b;
  --line: #e4eaf1;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(11, 47, 91, 0.10);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(11, 47, 91, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand-logo { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: .94rem; font-weight: 600; color: #3c4a5c;
  background: none; border: 0; cursor: pointer;
  position: relative; padding: 28px 0; transition: color .2s ease; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 12px; height: 2px; width: 0;
  background: var(--accent); transition: width .22s ease; border-radius: 2px;
}
.nav-link:hover, .has-dropdown:hover > .nav-link,
.has-dropdown:focus-within > .nav-link, .has-dropdown.open > .nav-link,
.nav-link.is-current { color: var(--blue); }
.nav-link:hover::after, .has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after, .has-dropdown.open > .nav-link::after,
.nav-link.is-current::after { width: 100%; }
.caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret, .has-dropdown.open .caret {
  transform: translateY(1px) rotate(225deg);
}
.btn-contact {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; padding: 11px 24px; border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s ease, transform .18s ease;
}
.btn-contact:hover { background: var(--navy); transform: translateY(-1px); }
.btn-contact.is-current { background: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 25px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s ease; }

/* ============ MEGA DROPDOWN (layout from reference) ============ */
.nav-item { position: relative; display: flex; align-items: center; }
.mega-menu {
  position: absolute; top: 100%; left: 50%; margin-left: -50vw; width: 100vw;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 20px 42px rgba(11, 47, 91, .14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 90;
}
.mega-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-dropdown:hover > .mega-menu,
.has-dropdown:focus-within > .mega-menu,
.has-dropdown.open > .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px;
  padding: 32px 0 28px;
}
.mega-col h3 {
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: .72rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
}
.mega-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: .95rem; font-weight: 600; color: #233449;
  transition: color .18s ease;
}
.mega-link:hover { color: var(--blue); }
.mega-link .arrow { opacity: 0; transform: translateX(-6px); transition: .18s ease; color: var(--blue); }
.mega-link:hover .arrow { opacity: 1; transform: translateX(0); }
.mega-feature {
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; align-self: start;
}
.mega-feature h4 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); }
.mega-feature p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(20,89,168,.22); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-arrow { margin-left: 6px; }

/* ============ HERO (HOME — original blue) ============ */
.hero {
  position: relative; overflow: hidden; min-height: calc(100vh - 78px);
  display: flex; align-items: center; color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(69,169,224,.40), transparent 60%),
    linear-gradient(135deg, #123e68 0%, #1a5d98 52%, #2d7fbd 100%);
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; padding: 90px 0 100px; }
.hero-eyebrow {
  display: inline-block; letter-spacing: .16em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700; color: #bfe4ff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 22px;
}
.hero-title {
  margin: 0; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.03;
  font-weight: 800; letter-spacing: -.02em;
}
.hero-title span { font-weight: 300; color: #9fd4f5; }
.hero-lead {
  max-width: 640px; margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e3f0fb; font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-kicker {
  display: inline-block; color: var(--accent); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; margin-bottom: 12px;
}
.section-title {
  margin: 0 0 18px; font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.18; color: var(--navy); font-weight: 800; letter-spacing: -.01em;
}
.section-title .abbr { color: var(--muted); font-weight: 500; font-size: .72em; }
.lead { font-size: 1.1rem; color: #36465b; }
.section-head.center { text-align: center; max-width: 780px; margin: 0 auto 30px; }
.section-intro { color: var(--muted); margin: 0 auto; max-width: 740px; }
.inline-link { color: var(--blue); font-weight: 700; border-bottom: 1px solid #b9d2ea; }
.inline-link:hover { color: var(--accent); }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.about-copy p { color: var(--muted); margin: 0 0 16px; }
.about-copy .lead { color: #36465b; }
.about-facts { display: flex; gap: 40px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; }
.fact-num { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.fact-label { font-size: .85rem; color: var(--muted); }
.visual-card {
  background: linear-gradient(160deg, #ffffff, #eef5fb);
  border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow);
}
.visual-tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.structure { margin-top: 24px; text-align: center; }
.structure-top, .structure-node {
  background: var(--navy); color: #fff; border-radius: 12px; padding: 16px 18px;
  font-weight: 700; box-shadow: 0 8px 20px rgba(11,47,91,.18);
}
.structure-top small, .structure-node small { display: block; font-weight: 400; font-size: .78rem; opacity: .75; margin-top: 3px; }
.structure-line { width: 2px; height: 30px; background: #c8d7e8; margin: 0 auto; }
.structure-children { display: flex; gap: 14px; justify-content: center; }
.structure-node { flex: 1; background: var(--blue); font-size: .92rem; }
.structure-node.accent { background: var(--gold); color: #2a2105; }
.structure-node.accent small { opacity: .7; }

/* ============ CBS / SERVICES CARDS ============ */
.ssc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ssc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px; box-shadow: 0 8px 24px rgba(11,47,91,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ssc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ssc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.ssc-icon {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  background: #eaf3fb; color: var(--blue); display: grid; place-items: center;
}
.ssc-icon svg { width: 22px; height: 22px; }
.ssc-card:nth-child(2) .ssc-icon { background: #f7f1dc; color: #a2862a; }
.ssc-card:nth-child(3) .ssc-icon { background: #e8f4f6; color: #1d7d8c; }
.ssc-head h3 { margin: 0; font-size: 1.18rem; color: var(--navy); }
.ssc-list { list-style: none; margin: 0; padding: 0; }
.ssc-list li { position: relative; padding: 0 0 16px 20px; }
.ssc-list li:last-child { padding-bottom: 0; }
.ssc-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent);
}
.ssc-list strong { display: block; font-size: .9rem; color: #233449; margin-bottom: 2px; }
.ssc-list span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.service-card-text { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.page-cbs-logo { width: min(100%, 260px); height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }

/* ============ INNER PAGE HERO + BREADCRUMB ============ */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a { color: var(--blue); font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: #9fb2c7; }
.breadcrumb strong { color: #233449; font-weight: 600; }
.page-hero {
  padding: 34px 0 78px;
  background: linear-gradient(160deg, #f7fbff, #eaf3fb);
  border-bottom: 1px solid var(--line);
}
.page-title {
  margin: 0 0 20px; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.1;
  color: var(--navy); font-weight: 800; letter-spacing: -.02em;
}
.page-title span { color: var(--muted); font-weight: 500; font-size: .7em; }
.page-lead { color: #36465b; font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 760px; margin: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cbs-hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; }
.cbs-hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cbs-hero-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent); }

/* ============ CONTENT BLOCKS ============ */
.prose { max-width: 780px; }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose .lead { color: #36465b; }
.cbs-values { margin-top: 24px; display: grid; gap: 16px; }
.cbs-value { position: relative; padding-left: 18px; }
.cbs-value::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.cbs-value strong { display: block; color: var(--navy); }
.cbs-value span { font-size: .88rem; color: var(--muted); }
.cbs-back { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cbs-back .section-title { margin-bottom: 8px; }

/* ============ CONTACT CARDS ============ */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 30px; box-shadow: 0 8px 24px rgba(11,47,91,.05);
  transition: transform .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: #b9d2ea; }
.contact-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: #eaf3fb; color: var(--blue); margin-bottom: 20px;
}
.contact-icon svg { width: 25px; height: 25px; }
.contact-card h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--navy); }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.contact-card a { color: var(--blue); font-weight: 700; }
.contact-card a:hover { color: var(--accent); }
.contact-note {
  margin-top: 30px; padding: 16px 20px; border: 1px solid #f2e2b4; border-left: 4px solid var(--gold);
  border-radius: 8px; background: #fff9e9; color: #7a6420; font-size: .88rem;
}

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: #dbe8f4; padding: 40px 0; }
.footer-inner { display: flex; justify-content: flex-start; gap: 70px; flex-wrap: nowrap; align-items: center; }
.footer-logo { width: 130px; filter: brightness(0) invert(1); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { margin: 0; font-size: .74rem; max-width: none; white-space: nowrap; }
.footer-meta { margin-left: auto; text-align: left; font-size: .70rem; }
.footer-meta a { color: #8fd0f7; font-weight: 700; }
.footer-meta p { margin: 0; color: #b9cde0; white-space: nowrap; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .footer-inner { gap: 26px; }
}
@media (max-width: 980px) {
  .about-grid, .cbs-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ssc-grid, .contact-cards { grid-template-columns: 1fr; }
  .ssc-card, .contact-card { max-width: 620px; margin-inline: auto; width: 100%; }
  .mega-inner { grid-template-columns: 1fr; gap: 26px; }
  .mega-feature { display: none; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 78px; }
  .brand-logo { width: 155px; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px 5% 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.open { max-height: 900px; overflow-y: auto; }
  .nav-item { display: block; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-link::after { bottom: 6px; }
  .mega-menu {
    position: static; width: auto; margin-left: 0; display: none;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 12px;
  }
  .has-dropdown.open > .mega-menu { display: block; opacity: 1; visibility: visible; }
  .has-dropdown:hover > .mega-menu, .has-dropdown:focus-within > .mega-menu { opacity: 0; visibility: hidden; }
  .has-dropdown.open:hover > .mega-menu, .has-dropdown.open:focus-within > .mega-menu { opacity: 1; visibility: visible; }
  .mega-inner { display: block; padding: 6px 0; }
  .btn-contact { margin-top: 16px; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 70px 0; }
  .hero { min-height: calc(100vh - 78px); }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-brand p, .footer-meta p { white-space: normal; }
  .footer-meta { margin-left: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
