/*
 * Sunrise Glory Engineering — Premium visual refinement trial, v5.3.0
 * Direction: composed industrial editorial design with restrained cobalt accents.
 */
:root {
  --navy: #071c30;
  --navy-2: #0c2d49;
  --navy-3: #123c5d;
  --steel: #5d7385;
  --pale: #f4f8fb;
  --paper: #ffffff;
  --orange: #0084cc;
  --orange-dark: #006aab;
  --sky: #83d0f4;
  --line: #d7e1e7;
  --ink-soft: #1a3b51;
  --ease-out: cubic-bezier(.23,1,.32,1);
}

body { background: var(--pale); }
body::selection { background: #a8e2fb; color: var(--navy); }
.tech-label { letter-spacing: .19em; }

/* Header: quieter, more confident framing */
.topline { background: #06182a; }
.topline-inner { max-width: 1520px; height: 36px; padding-right: 56px; padding-left: 56px; }
.topline-meta { gap: 26px; }
.site-header { border-bottom-color: rgba(7,28,48,.12); background: rgba(255,255,255,.985); box-shadow: 0 5px 20px rgba(7,28,48,.03); }
.site-header-inner { max-width: 1520px; height: 88px; padding-right: 56px; padding-left: 56px; }
.brand-mark { width: 42px; height: 42px; border-width: 1.5px; box-shadow: inset 0 0 0 4px #eef7fc; }
.brand-name { font-size: 22px; letter-spacing: .09em; }
.brand-sub { margin-top: 6px; color: #698092; font-size: 9px; letter-spacing: .22em; }
.sg-product-trigger { gap: 9px; min-height: 42px; border-left: 1px solid var(--line); padding-right: 20px; padding-left: 20px; }
.main-nav .wp-primary-menu > li > a { padding-right: 17px; padding-left: 17px; font-size: 12px; letter-spacing: .015em; }
.main-nav .wp-primary-menu > li > a:after { right: 17px; left: 17px; height: 2px; }
.sg-header-actions { gap: 12px; }
.sg-language-fallback { min-height: 42px; border-color: #dfe7ec; padding: 9px 13px; }
.nav-cta { min-height: 42px; margin-left: 2px; padding: 0 18px; box-shadow: 0 9px 18px rgba(0,132,204,.16); transition: background .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out); }
.nav-cta:hover { background: var(--navy); box-shadow: 0 12px 22px rgba(7,28,48,.18); transform: translateY(-1px); }

/* Hero: preserve the supplied composition, add a precise technical overlay */
.hero-home { min-height: 720px; background: #06182a; }
.hero-home-media {
  background-image:
    linear-gradient(90deg, rgba(6,24,42,.985) 0%, rgba(6,24,42,.945) 34%, rgba(6,24,42,.71) 52%, rgba(6,24,42,.18) 76%, rgba(6,24,42,.06) 100%),
    linear-gradient(180deg, rgba(7,28,48,.05) 42%, rgba(7,28,48,.78) 100%),
    url('../images/technical-hero.jpg');
  background-position: center;
  transform: scale(1.002);
}
.hero-home-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .23;
  pointer-events: none;
  background-image: linear-gradient(rgba(130,210,247,.115) 1px, transparent 1px), linear-gradient(90deg, rgba(130,210,247,.09) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.52) 53%, transparent 87%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.52) 53%, transparent 87%);
}
.hero-home:after { z-index: 1; height: 230px; background: linear-gradient(0deg, rgba(6,24,42,.94), transparent); }
.hero-home-inner { z-index: 2; min-height: 720px; max-width: 1520px; padding: 80px 56px 160px; }
.hero-kicker-row { display: flex; max-width: 725px; align-items: center; justify-content: space-between; gap: 24px; }
.hero-kicker-row .tech-label { margin: 0; }
.hero-kicker-id { border: 1px solid rgba(131,208,244,.35); padding: 5px 7px; color: #9bdcfa; font-family: 'Barlow Condensed','Noto Sans TC',sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1; }
.hero-title { max-width: 760px; margin-top: 27px; font-size: clamp(68px,7.1vw,118px); line-height: .86; text-shadow: 0 2px 0 rgba(255,255,255,.02); }
.hero-title .accent { background: linear-gradient(120deg,#0095df 0%,#0072bc 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 615px; margin-top: 30px; color: #d3e0e8; font-size: 15px; letter-spacing: .005em; line-height: 2.05; }
.hero-actions { margin-top: 31px; gap: 12px; }
.hero-actions .button-primary, .hero-actions .button-outline { min-height: 56px; padding: 0 20px; }
.button-primary { box-shadow: 0 9px 20px rgba(0,132,204,.2); transition: transform .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.button-primary:hover { background: #fff; box-shadow: 0 13px 24px rgba(7,28,48,.24); transform: translateY(-2px); }
.button-outline { border-color: rgba(255,255,255,.56); background: rgba(7,28,48,.13); backdrop-filter: blur(6px); transition: transform .2s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out); }
.button-outline:hover { transform: translateY(-2px); }
.hero-credential { display: flex; align-items: center; gap: 10px; margin-top: 33px; color: #a5c7d8; font-family: 'Barlow Condensed','Noto Sans TC',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.hero-credential-dot { position: relative; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #74cef4; box-shadow: 0 0 0 4px rgba(116,206,244,.13), 0 0 13px rgba(116,206,244,.7); }
.hero-credential-dot:after { position: absolute; inset: -6px; border: 1px solid rgba(116,206,244,.48); border-radius: 50%; content: ''; animation: premium-ping 2.4s ease-out infinite; }
.hero-rail { z-index: 3; display: grid; max-width: 1408px; grid-template-columns: 220px minmax(0,1fr) auto; align-items: center; gap: 24px; margin: 0 auto; right: 56px; bottom: 34px; left: 56px; padding-top: 19px; }
.hero-rail-meta { display: flex; align-items: center; gap: 10px; color: #d8e7ee; font-family: 'Barlow Condensed','Noto Sans TC',sans-serif; font-size: 11px; letter-spacing: .12em; }
.hero-rail-meta span { color: var(--sky); font-size: 15px; font-weight: 700; }
.hero-rail-list { justify-content: center; gap: 0; }
.hero-rail-list span { padding: 0 13px; border-right: 1px solid rgba(255,255,255,.25); font-size: 11px; }
.hero-rail-list span:last-child { border-right: 0; }
.hero-rail-list span:before { display: none; }
.hero-rail-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: 'Barlow Condensed','Noto Sans TC',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; transition: color .2s var(--ease-out), gap .2s var(--ease-out); }
.hero-rail-link:hover { gap: 14px; color: var(--sky); }
.sg-hero-readout { right: 56px; top: 105px; }
.sg-orbit-one { right: 7%; border-color: rgba(122,206,244,.24); }
.sg-orbit-two { right: 16%; }

/* A grounded assurance band creates a deliberate break after the hero. */
.sg-assurance-strip { position: relative; z-index: 4; background: #fff; box-shadow: 0 12px 35px rgba(7,28,48,.05); }
.sg-assurance-strip > .container-wide { display: grid; max-width: 1520px; grid-template-columns: 1.02fr 1.98fr; padding: 0 56px; }
.sg-assurance-label { display: flex; min-height: 122px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding-right: 40px; }
.sg-assurance-label span { color: var(--orange); font-family: 'Barlow Condensed','Noto Sans TC',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.sg-assurance-label strong { margin-top: 12px; color: var(--navy); font-size: 17px; font-weight: 900; letter-spacing: -.025em; }
.sg-assurance-items { display: grid; grid-template-columns: repeat(3,1fr); }
.sg-assurance-items > div { display: flex; min-height: 122px; align-items: center; gap: 13px; border-right: 1px solid var(--line); padding: 20px 25px; }
.sg-assurance-items > div:last-child { border-right: 0; }
.sg-assurance-items b { color: var(--orange); font-family: 'Barlow Condensed','Noto Sans TC',sans-serif; font-size: 20px; letter-spacing: -.02em; }
.sg-assurance-items p { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 800; line-height: 1.6; }

/* Editorial spacing and refined card rhythm used throughout the site. */
.section { padding: 112px 0; }
.container-wide { max-width: 1520px; padding-right: 56px; padding-left: 56px; }
.section-head, .capabilities-heading { gap: 92px; }
.section-title { font-size: clamp(46px,4.3vw,70px); }
.section-copy { font-size: 15px; }
.section-soft { background: #eff6fb; }
.capabilities-section:before { border-color: rgba(0,132,204,.12); }
.capabilities-feature { margin-top: 70px; box-shadow: 0 22px 45px rgba(7,28,48,.09); }
.capability-media { min-height: 520px; }
.capability-intro-panel { min-height: 520px; padding: 60px 53px; background: linear-gradient(150deg,#071c30 0%,#0d3857 100%); }
.capability-status { border-color: rgba(255,255,255,.2); }
.capability-cards { box-shadow: 0 18px 38px rgba(7,28,48,.06); }
.capability-card { min-height: 300px; background: #fff; }
.capability-card:hover { background: #09273f; }
.sg-home-service-grid { gap: 14px; margin-top: 64px; background: transparent; }
.sg-home-service-card { min-height: 400px; box-shadow: 0 12px 24px rgba(7,28,48,.08); }
.sg-home-service-no { top: 24px; left: 24px; }
.sg-home-service-icon { top: 20px; right: 20px; width: 42px; height: 42px; }
.sg-home-service-text { right: 25px; bottom: 26px; left: 25px; }
.sg-home-service-text strong { font-size: 22px; }
.solution-wrap { gap: 100px; }
.section-dark { background: linear-gradient(125deg,#06192b 0%,#0a2d48 100%); }
.solution-link { padding: 28px 0; }
.solution-link:hover { padding-left: 18px; }
.final-cta { position: relative; overflow: hidden; background: linear-gradient(110deg,#008fd8 0%,#006fac 100%); }
.final-cta:after { position: absolute; top: -160px; right: -80px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.07), 0 0 0 108px rgba(255,255,255,.045); content: ''; }
.final-cta-inner { position: relative; z-index: 1; max-width: 1520px; padding-right: 56px; padding-left: 56px; }

/* Service and product detail pages use the same premium rhythm. */
.crumb-inner, .page-hero-inner { max-width: 1520px; padding-right: 56px; padding-left: 56px; }
.page-hero { background: linear-gradient(115deg,#06192b 0%,#0d3553 100%); }
.page-hero:after { border-color: rgba(0,132,204,.36); box-shadow: 0 0 0 52px rgba(0,132,204,.07),0 0 0 104px rgba(0,132,204,.035); }
.sg-work-category-list { gap: 44px; }
.sg-work-category-card { border: 0; box-shadow: 0 16px 36px rgba(7,28,48,.08); }
.sg-work-category-content { padding: 58px 58px 52px; }
.sg-work-category-content .button-primary { min-height: 48px; }
.sg-agent-grid { gap: 14px; background: transparent; }
.sg-agent-grid article { box-shadow: 0 11px 24px rgba(7,28,48,.07); }
.sg-catalogue-hero, .sg-product-detail-hero { background: linear-gradient(115deg,#06192b 0%,#0d3553 100%); }
.sg-catalogue-body > .container-wide { max-width: 1520px; padding-right: 56px; padding-left: 56px; }

/* Contact view: elevate the enquiry form without relying on generated decoration. */
.enquiry-form { border-top-width: 5px; box-shadow: 0 18px 45px rgba(7,28,48,.1); }
.field-control { transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.field-control:focus { box-shadow: 0 5px 0 -4px var(--orange); }
.contact-item { transition: padding-left .2s var(--ease-out); }
.contact-item:hover { padding-left: 8px; }

/* Footer and micro details */
.sg-footer-main { background: linear-gradient(118deg,#041221 0%,#08243a 58%,#0b3654 100%); }
.sg-footer-grid { max-width: 1520px; }
.sg-footer-bottom > .container-wide { max-width: 1520px; }

@keyframes premium-ping { 0% { transform: scale(.55); opacity: .75; } 70%,100% { transform: scale(1.45); opacity: 0; } }
@media (max-width:1250px) {
  .site-header-inner, .topline-inner, .hero-home-inner, .container-wide, .page-hero-inner, .crumb-inner, .final-cta-inner { padding-right: 32px; padding-left: 32px; }
  .hero-rail { right: 32px; left: 32px; }
  .sg-assurance-strip > .container-wide { padding-right: 32px; padding-left: 32px; }
  .hero-rail { grid-template-columns: 190px 1fr auto; gap: 16px; }
  .hero-rail-list span { padding: 0 9px; }
}
@media (max-width:900px) {
  .sg-assurance-strip > .container-wide { grid-template-columns: 1fr; }
  .sg-assurance-label { min-height: 94px; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .sg-assurance-items > div { min-height: 105px; }
  .hero-rail { grid-template-columns: 1fr auto; }
  .hero-rail-meta { display: none; }
  .hero-rail-list { justify-content: flex-start; }
}
@media (max-width:720px) {
  .topline-inner, .site-header-inner, .hero-home-inner, .container-wide, .page-hero-inner, .crumb-inner, .final-cta-inner { padding-right: 20px; padding-left: 20px; }
  .site-header-inner { height: 74px; }
  .hero-home { min-height: 690px; }
  .hero-home-inner { min-height: 690px; padding-top: 54px; padding-bottom: 160px; }
  .hero-home-media { background-position: 62% center; }
  .hero-home-grid { background-size: 54px 54px; opacity: .14; }
  .hero-kicker-row { max-width: 100%; }
  .hero-kicker-id { font-size: 9px; }
  .hero-title { margin-top: 24px; font-size: clamp(61px,17vw,82px); }
  .hero-copy { max-width: 100%; margin-top: 26px; font-size: 14px; line-height: 1.95; }
  .hero-actions { gap: 10px; margin-top: 28px; }
  .hero-actions .button-primary, .hero-actions .button-outline { min-height: 52px; flex: 1 1 100%; }
  .hero-credential { margin-top: 25px; font-size: 10px; line-height: 1.55; }
  .hero-rail { right: 20px; bottom: 23px; left: 20px; grid-template-columns: 1fr auto; padding-top: 14px; }
  .hero-rail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 0; }
  .hero-rail-list span { padding: 0 8px 0 0; border: 0; font-size: 10px; }
  .hero-rail-link { font-size: 10px; }
  .sg-hero-readout { top: 64px; right: 20px; }
  .sg-assurance-strip > .container-wide { padding-right: 20px; padding-left: 20px; }
  .sg-assurance-label { min-height: 92px; }
  .sg-assurance-items { grid-template-columns: 1fr; }
  .sg-assurance-items > div { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .sg-assurance-items > div:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .capabilities-feature { margin-top: 44px; }
  .capability-media { min-height: 360px; }
  .capability-intro-panel { padding: 40px 25px 45px; }
  .capability-cards { box-shadow: 0 12px 27px rgba(7,28,48,.07); }
  .sg-home-service-grid { gap: 11px; margin-top: 42px; }
  .sg-home-service-card { min-height: 300px; }
  .sg-work-category-list { gap: 25px; }
  .sg-work-category-content { padding: 34px 24px; }
  .sg-agent-grid { gap: 11px; }
  .final-cta-inner { padding-top: 62px; padding-bottom: 62px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-credential-dot:after { animation: none; }
  .button-primary, .button-outline, .nav-cta, .hero-rail-link, .contact-item { transition: none !important; }
}
