@charset "UTF-8";
/* ==========================================================================
   CTCC — base.css
   Shared across every template: design tokens, reset, layout primitives,
   buttons, site topbar, site header, page banner, site footer.
   Page-specific styles live in their own file with a short page prefix:
     home  -> h-      about -> a-      products -> p-
     news  -> n-      cases -> cs-     contact  -> c-
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — sampled from moban.wpmbg.com/demo/2023new/waimaojixie
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  /* Sampled from the reference shop, then lifted roughly 9 points of
     lightness so the whole site reads one notch brighter. Hue and
     saturation are unchanged — only L moved, so the family stays in tune.
     The second lift (L +4) was to stop the navy reading heavy / flat
     against the orange CTA.                                               */
  --c-primary:      #164393;   /* headings, primary surfaces            */
  --c-primary-rgb:  22,67,147; /* same colour, for rgba() overlays      */
  --c-primary-d:    #0E3476;   /* darker shade for gradients / overlays */
  --c-primary-d-rgb: 14,52,118;
  --c-primary-l:    #2259B9;
  --c-link:         #014C9D;   /* button / link hover                   */
  --c-link-2:       #0D5BBA;   /* dropdown item hover                   */
  --c-accent:       #F26F20;   /* accent fill: CTA, badges, logo mark   */
  --c-accent-h:     #C24E00;   /* accent fill, hover (darker)           */
  --c-accent-l:     #FF6A00;   /* bright accent for dark surfaces       */
  --c-accent-t:     #C24E00;   /* accent as text on light surfaces      */
  --c-topbar:       #01ABF5;   /* announcement bar                      */

  /* Neutrals */
  --c-dark:         #0A2951;   /* footer                                */
  --c-heading:      #164393;
  --c-text:         #7A7A7A;
  --c-grey:         #868988;
  --c-line:         #E4E7ED;
  --c-line-2:       #D7CFCF;
  --c-soft:         #F7F9FD;
  --c-light:        #F9F9F9;
  --c-grey-bg:      #F3F3F3;
  --c-white:        #FFFFFF;

  /* Type */
  --f-head: "Saira", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Roboto", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Metrics */
  --container:      1200px;
  --topbar-h:       45px;
  --header-h:       96px;   /* over the hero, not yet scrolled */
  --header-h-pin:   68px;   /* once scrolled / on inner pages  */
  --section-pad:    72px;
  --gutter:         15px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;                 /* the reference body line-height */
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--c-accent-t); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 16px; }
figure, blockquote { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  font-family: var(--f-head);
  font-weight: 500;                 /* reference never goes above 500 */
  color: var(--c-heading);
  line-height: 1.2;
}
h1 { font-size: clamp(34px, 4.6vw, 65px); line-height: 1.04; }
h2 { font-size: 32px; }
h3 { font-size: 22px; line-height: 1.36; }
h4 { font-size: 19px; line-height: 1.42; }
h5 { font-size: 16px; line-height: 1.5; }
h6 { font-size: 15px; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; }

:focus-visible { outline: 2px solid var(--c-accent-l); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-accent); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--gutter);
}
.section { padding: var(--section-pad) 0; }
.section--soft  { background: var(--c-soft); }
.section--light { background: var(--c-light); }
.section--grey  { background: var(--c-grey-bg); }
.section--tight { padding: 48px 0; }

/* Centred block heading — title / optional subtitle */
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head__title { margin-bottom: 10px; }
.section-head__sub {
  max-width: 720px; margin: 0 auto;
  font-size: 15px; line-height: 1.9; color: var(--c-text);
}

/* Inline text link with an arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-head); font-size: 15px; font-weight: 500;
  color: var(--c-link); text-transform: uppercase; letter-spacing: .04em;
}
.arrow-link .arrow { transition: transform .25s ease; }
.arrow-link:hover { color: var(--c-accent-t); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. Buttons — square, uppercase Saira, hover shifts to the link blue
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  font-family: var(--f-head); font-size: 15px; font-weight: 500;
  line-height: 1; text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--accent  { background: var(--c-accent);  color: #fff; border-color: var(--c-accent-h); }
.btn--accent:hover  { background: var(--c-accent-h); color: #fff; border-color: var(--c-accent-h); }
.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-link); color: #fff; border-color: var(--c-link); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn--ghost   { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--white   { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn--white:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--sm      { padding: 11px 22px; font-size: 14px; }
.btn--lg      { padding: 18px 40px; font-size: 16px; }
.btn--block   { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   5. Site topbar (announcement / advert strip)
   -------------------------------------------------------------------------- */
.site-topbar {
  position: relative; z-index: 101;
  min-height: var(--topbar-h);
  background: var(--c-topbar);
  color: rgba(255,255,255,.92);
  font-size: 16px; line-height: 1.2;
}
.site-topbar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 30px; flex-wrap: wrap;
  min-height: var(--topbar-h);
}
.site-topbar a { color: rgba(255,255,255,.92); }
.site-topbar a:hover { color: #fff; }
.site-topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-topbar__item svg { flex-shrink: 0; opacity: .8; }

/* --------------------------------------------------------------------------
   6. Site header
   Default (inner pages): sticky, solid navy, pinned height.
   --overlay (home page): fixed, transparent, sits on top of the hero photo so
   the two share one continuous background image; shrinks and pins on scroll.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h-pin);
  background: var(--c-primary);
  transition: height .3s ease, background-color .3s ease, box-shadow .3s ease, top .3s ease;
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 100%;
  /* Owns a stacking context so the header content paints ABOVE the scrim
     drawn by .site-header--overlay::before. Without it the scrim lands on
     top of the logo, the nav and the orange CTA — positioned descendants
     paint after static ones — which visibly desaturated the button
     (#F26F20 read as ~#C76430 next to the identical hero button).
     Same idiom as .h-hero__copy and .page-banner__inner. */
  position: relative; z-index: 1;
}

.site-header--overlay {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  height: var(--header-h);
  background: transparent;
}
.site-header--overlay.is-pinned {
  top: 0;
  height: var(--header-h-pin);
  background: var(--c-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.site-header--overlay:not(.is-pinned)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--c-primary-d-rgb),.38) 0%, rgba(var(--c-primary-d-rgb),0) 100%);
}

/* Logo (CSS-drawn placeholder mark + wordmark) */
.site-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo__mark {
  width: 44px; height: 44px; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff;
  font-family: var(--f-head); font-size: 17px; font-weight: 600; letter-spacing: .02em;
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__text b {
  font-family: var(--f-head); font-size: 20px; font-weight: 600;
  color: #fff; letter-spacing: .01em;
}
.site-logo__text span {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.68);
}

/* Primary navigation — uppercase, 1px red underline on hover */
.site-nav { display: flex; align-items: stretch; height: 100%; margin: 0 auto; min-width: 0; }
.site-nav__list { display: flex; align-items: stretch; height: 100%; }
.site-nav__list > li { position: relative; display: flex; align-items: stretch; }
.site-nav__list > li > a {
  display: flex; align-items: center; gap: 6px;
  height: 100%; padding: 0 15px;
  white-space: nowrap;
  font-family: var(--f-head); font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.site-nav__list > li > a .caret { width: 10px; height: 10px; opacity: .75; }
.site-nav__list > li:hover > a,
.site-nav__list > li.is-current > a { border-bottom-color: var(--c-accent-l); }

/* Dropdown */
.site-nav__list .sub-menu {
  position: absolute; top: 100%; left: 50%;
  min-width: 232px; padding: 8px 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden;
  transform: translate3d(-50%, 10px, 0);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
  z-index: 30;
}
.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0);
}
.site-nav__list .sub-menu a {
  display: block; padding: 10px 20px;
  font-family: var(--f-body); font-size: 14px; line-height: 1.5;
  color: var(--c-heading); text-align: center;
}
.site-nav__list .sub-menu a:hover { background: var(--c-link-2); color: #fff; }

/* Right-hand actions: language switch + inquiry button */
.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 13px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22); border-radius: 0;
  color: #fff; cursor: pointer;
  font-family: var(--f-head); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  transition: background-color .25s ease, border-color .25s ease;
}
.lang-switch__btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.lang-switch__btn .caret { width: 10px; height: 10px; }
.lang-switch__list {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 170px; padding: 8px 0;
  background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transform: translate3d(0, 8px, 0);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 30;
}
.lang-switch:hover .lang-switch__list,
.lang-switch:focus-within .lang-switch__list {
  opacity: 1; visibility: visible; transform: translate3d(0, 0, 0);
}
.lang-switch__list a {
  display: block; padding: 9px 18px;
  font-size: 14px; color: var(--c-heading);
}
.lang-switch__list a:hover { background: var(--c-link-2); color: #fff; }
.lang-switch__list a.is-active { color: var(--c-accent-t); font-weight: 500; }

/* Burger (mobile) */
.nav-toggle {
  display: none;
  width: 44px; height: 38px; padding: 0;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22); border-radius: 0;
  color: #fff; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   7. Inner-page banner (used by every template except home)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  padding: 76px 0 66px;
  background: var(--c-primary) url("../img/hero-machining.webp") center/cover no-repeat;
  color: #fff;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(var(--c-primary-d-rgb), .72);
}
.page-banner__inner { position: relative; z-index: 1; }
.page-banner__title { color: #fff; margin: 0 0 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { opacity: .55; }

/* --------------------------------------------------------------------------
   8. Site footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.66); font-size: 14.5px; }
.site-footer__main { padding: 62px 0 46px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 44px;
}
.site-footer h4 {
  color: #fff; font-size: 16px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  margin: 0 0 22px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer__brand .site-logo { margin-bottom: 20px; }
.site-footer__brand p { line-height: 1.9; margin-bottom: 18px; }
.site-footer__certs { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__certs span {
  padding: 5px 11px; font-size: 12px; letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.8);
}
.site-footer li { margin-bottom: 12px; }
.site-footer li a { color: rgba(255,255,255,.66); }
.site-footer li a:hover { color: #fff; }
.site-footer__contact-line {
  display: flex; gap: 11px; align-items: flex-start; margin-bottom: 15px; line-height: 1.7;
}
.site-footer__contact-line svg { flex-shrink: 0; margin-top: 4px; color: var(--c-accent-l); }
.site-footer__contact-line strong { color: #fff; font-weight: 500; display: block; }
.site-footer__contact-line a { color: rgba(255,255,255,.72); }
.site-footer__contact-line a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13.5px;
}
.site-footer__bottom-links { display: flex; gap: 18px; }
.site-footer__bottom a { color: rgba(255,255,255,.66); }
.site-footer__bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */

/* Large screens — the content column steps up so a 1200px block does not look
   lost in the middle of a 1920px monitor (which leaves 360px of dead space on
   each side). Breakpoints are picked so the column never fills more than ~83%
   of the viewport: small and mid-size laptops stay at 1200px and never cramp. */
@media (min-width: 1680px) { :root { --container: 1400px; } }
@media (min-width: 2200px) { :root { --container: 1600px; } }

@media (max-width: 1080px) {
  :root { --section-pad: 56px; --header-h: 78px; --header-h-pin: 62px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-nav__list > li > a { padding: 0 10px; font-size: 14px; letter-spacing: .02em; }
}
@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    height: auto; max-height: calc(100vh - 100px); overflow-y: auto;
    background: var(--c-primary);
    padding: 8px 0 16px;
    box-shadow: 0 14px 26px rgba(0,0,0,.22);
  }
  .site-nav.is-open .site-nav__list { flex-direction: column; align-items: stretch; height: auto; }
  .site-nav.is-open .site-nav__list > li { display: block; }
  .site-nav.is-open .site-nav__list > li > a {
    height: auto; padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .site-nav.is-open .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: 0; background: rgba(255,255,255,.06);
    padding: 0;
  }
  .site-nav.is-open .sub-menu a {
    color: rgba(255,255,255,.82); text-align: left; padding: 11px 32px;
  }
  .site-nav.is-open .sub-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header__actions { margin-left: auto; }
  .site-topbar__inner { gap: 18px; font-size: 12.5px; }
  .site-topbar__item--addr { display: none; }
}
@media (max-width: 640px) {
  :root { --section-pad: 44px; }
  body { font-size: 15px; }
  h2 { font-size: 26px; }
  .section-head { margin-bottom: 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-topbar__inner { text-align: center; }
  .lang-switch { display: none; }
}
