/* GREAT WHITE SIGNAL TEMPLATE V2.2
   Strictly scoped to html[data-gw-template="signal"].
   Current template remains untouched. */

html[data-gw-template="signal"] {
  --gw-orange:#ff5a0a;
  --gw-orange-hover:#e94e00;
  --gw-black:#050505;
  --gw-black-2:#0b0b0b;
  --gw-panel:#111111;
  --gw-panel-2:#171717;
  --gw-white:#ffffff;
  --gw-muted:#a5aaad;
  --gw-line:rgba(255,255,255,.14);
  --gw-line-soft:rgba(255,255,255,.08);

  /* Override legacy template variables only while Signal is selected. */
  --bg:var(--gw-black);
  --bg-deep:var(--gw-black-2);
  --surface:var(--gw-panel);
  --surface-2:var(--gw-panel-2);
  --surface-soft:rgba(255,255,255,.045);
  --text:var(--gw-white);
  --muted:var(--gw-muted);
  --muted-2:#777d81;
  --line:var(--gw-line);
  --primary:var(--gw-orange);
  --primary-2:var(--gw-orange-hover);
  --primary-soft:rgba(255,90,10,.13);
  --shadow:0 24px 70px rgba(0,0,0,.28);
  color-scheme:dark;
}

html[data-gw-template="signal"],
html[data-gw-template="signal"] body {
  background:
    radial-gradient(circle at 80% 8%,rgba(255,90,10,.12),transparent 28rem),
    radial-gradient(circle at 8% 34%,rgba(255,255,255,.025),transparent 22rem),
    var(--gw-black)!important;
  color:var(--gw-white)!important;
}

html[data-gw-template="signal"] body::before {
  background:
    radial-gradient(800px circle at 85% -10%,rgba(255,90,10,.13),transparent 58%),
    radial-gradient(640px circle at -8% 36%,rgba(255,255,255,.035),transparent 60%)!important;
}

html[data-gw-template="signal"] .topbar,
html[data-gw-template="signal"] header,
html[data-gw-template="signal"] .site-header {
  background:rgba(5,5,5,.91)!important;
  border-color:var(--gw-line)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}

html[data-gw-template="signal"] .brand {
  width:210px!important;
  min-width:210px!important;
  height:72px!important;
  display:inline-flex!important;
  align-items:center!important;
  overflow:hidden!important;
}

html[data-gw-template="signal"] .brand .gw-signal-logo {
  display:block!important;
  width:200px!important;
  height:60px!important;
  max-width:200px!important;
  max-height:60px!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
  padding:0!important;
}

html[data-gw-template="signal"] .brand .logo-on-dark,
html[data-gw-template="signal"] .brand .logo-on-light {display:none!important;}

html[data-gw-template="signal"] .nav-links>a,
html[data-gw-template="signal"] header nav a,
html[data-gw-template="signal"] .site-header nav a {color:#c8cbcd!important;}
html[data-gw-template="signal"] .nav-links>a:hover,
html[data-gw-template="signal"] header nav a:hover,
html[data-gw-template="signal"] .site-header nav a:hover {color:#fff!important;}

html[data-gw-template="signal"] .hero {
  background:
    linear-gradient(90deg,rgba(5,5,5,.98) 0%,rgba(5,5,5,.90) 44%,rgba(5,5,5,.22) 79%,rgba(5,5,5,.80) 100%),
    linear-gradient(180deg,rgba(5,5,5,.14),rgba(5,5,5,.92)),
    var(--gw-signal-background) center right/cover no-repeat,
    var(--gw-black)!important;
}
html[data-gw-template="signal"] .hero::after {background:linear-gradient(transparent,var(--gw-black))!important;}

html[data-gw-template="signal"] h1,
html[data-gw-template="signal"] h2,
html[data-gw-template="signal"] h3,
html[data-gw-template="signal"] h4,
html[data-gw-template="signal"] strong {color:var(--gw-white)!important;}
html[data-gw-template="signal"] h1 span {color:var(--gw-orange)!important;}
html[data-gw-template="signal"] p,
html[data-gw-template="signal"] .lead,
html[data-gw-template="signal"] .muted {color:var(--gw-muted)!important;}

html[data-gw-template="signal"] .eyebrow,
html[data-gw-template="signal"] .section-kicker,
html[data-gw-template="signal"] .service-index,
html[data-gw-template="signal"] .service-arrow,
html[data-gw-template="signal"] .edge-item b,
html[data-gw-template="signal"] .pillar-number,
html[data-gw-template="signal"] .project-card small,
html[data-gw-template="signal"] .stars,
html[data-gw-template="signal"] .back-to-top,
html[data-gw-template="signal"] .quote-panel cite {color:var(--gw-orange)!important;}

html[data-gw-template="signal"] .eyebrow::before,
html[data-gw-template="signal"] .quote-panel cite::before {background:var(--gw-orange)!important;}

html[data-gw-template="signal"] section,
html[data-gw-template="signal"] main,
html[data-gw-template="signal"] footer {border-color:var(--gw-line)!important;}

html[data-gw-template="signal"] .metric-strip,
html[data-gw-template="signal"] .metric,
html[data-gw-template="signal"] .service-card,
html[data-gw-template="signal"] .detail-card,
html[data-gw-template="signal"] .pillar,
html[data-gw-template="signal"] .quote-panel,
html[data-gw-template="signal"] .expertise-card,
html[data-gw-template="signal"] .client-card,
html[data-gw-template="signal"] .project-card,
html[data-gw-template="signal"] .testimonial,
html[data-gw-template="signal"] .contact-form {
  background:linear-gradient(145deg,rgba(255,255,255,.038),rgba(255,255,255,.008)),var(--gw-panel)!important;
  border-color:var(--gw-line)!important;
  color:var(--gw-white)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.22)!important;
}

html[data-gw-template="signal"] .service-card::before,
html[data-gw-template="signal"] .project-card:not(.has-image)::before {
  background:radial-gradient(circle,rgba(255,90,10,.17),transparent 68%)!important;
}
html[data-gw-template="signal"] .project-card:not(.has-image)::after {color:rgba(255,90,10,.20)!important;}

html[data-gw-template="signal"] .button,
html[data-gw-template="signal"] .btn,
html[data-gw-template="signal"] .site-cta,
html[data-gw-template="signal"] button[type="submit"],
html[data-gw-template="signal"] input[type="submit"] {
  background:var(--gw-orange)!important;
  border-color:var(--gw-orange)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(255,90,10,.20)!important;
}
html[data-gw-template="signal"] .button:hover,
html[data-gw-template="signal"] .btn:hover,
html[data-gw-template="signal"] .site-cta:hover {background:var(--gw-orange-hover)!important;border-color:var(--gw-orange-hover)!important;}
html[data-gw-template="signal"] .button.ghost,
html[data-gw-template="signal"] .btn.secondary,
html[data-gw-template="signal"] .btn.ghost {
  background:transparent!important;
  border-color:var(--gw-line)!important;
  color:var(--gw-white)!important;
  box-shadow:none!important;
}

html[data-gw-template="signal"] .icon-button,
html[data-gw-template="signal"] .gw-theme-toggle,
html[data-gw-template="signal"] .back-to-top {
  background:var(--gw-panel)!important;
  border-color:var(--gw-line)!important;
  color:var(--gw-orange)!important;
}
html[data-gw-template="signal"] .icon-button:hover,
html[data-gw-template="signal"] .gw-theme-toggle:hover,
html[data-gw-template="signal"] .back-to-top:hover {border-color:var(--gw-orange)!important;background:rgba(255,90,10,.10)!important;}

html[data-gw-template="signal"] input,
html[data-gw-template="signal"] select,
html[data-gw-template="signal"] textarea {
  background:var(--gw-panel)!important;
  color:var(--gw-white)!important;
  border-color:var(--gw-line)!important;
}
html[data-gw-template="signal"] input:focus,
html[data-gw-template="signal"] select:focus,
html[data-gw-template="signal"] textarea:focus {
  border-color:var(--gw-orange)!important;
  box-shadow:0 0 0 4px rgba(255,90,10,.12)!important;
}

html[data-gw-template="signal"] .chat-launcher,
html[data-gw-template="signal"] .chat-button,
html[data-gw-template="signal"] button[aria-label*="chat" i],
html[data-gw-template="signal"] button[title*="chat" i] {
  background:var(--gw-orange)!important;
  border-color:var(--gw-orange)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(255,90,10,.28)!important;
}

/* Light appearance remains Signal, not the current template. */
html[data-gw-template="signal"][data-theme="light"] {
  --gw-black:#f6f5f1;
  --gw-black-2:#ffffff;
  --gw-panel:#ffffff;
  --gw-panel-2:#f0eee8;
  --gw-white:#090909;
  --gw-muted:#64696d;
  --gw-line:rgba(0,0,0,.13);
  --gw-line-soft:rgba(0,0,0,.075);
  --bg:var(--gw-black);
  --bg-deep:var(--gw-black-2);
  --surface:var(--gw-panel);
  --surface-2:var(--gw-panel-2);
  --surface-soft:rgba(0,0,0,.035);
  --text:var(--gw-white);
  --muted:var(--gw-muted);
  --line:var(--gw-line);
  color-scheme:light;
}
html[data-gw-template="signal"][data-theme="light"],
html[data-gw-template="signal"][data-theme="light"] body {
  background:radial-gradient(circle at 78% 9%,rgba(255,90,10,.08),transparent 28rem),#f6f5f1!important;
  color:#090909!important;
}
html[data-gw-template="signal"][data-theme="light"] .topbar,
html[data-gw-template="signal"][data-theme="light"] header,
html[data-gw-template="signal"][data-theme="light"] .site-header {background:rgba(255,255,255,.94)!important;}
html[data-gw-template="signal"][data-theme="light"] .nav-links>a,
html[data-gw-template="signal"][data-theme="light"] header nav a {color:#34383b!important;}
html[data-gw-template="signal"][data-theme="light"] .hero {
  background:
    linear-gradient(90deg,rgba(246,245,241,.99) 0%,rgba(246,245,241,.93) 45%,rgba(246,245,241,.36) 79%,rgba(246,245,241,.84) 100%),
    linear-gradient(180deg,rgba(246,245,241,.18),rgba(246,245,241,.92)),
    var(--gw-signal-background) center right/cover no-repeat,
    #f6f5f1!important;
}
html[data-gw-template="signal"][data-theme="light"] .hero::after {background:linear-gradient(transparent,#f6f5f1)!important;}
html[data-gw-template="signal"][data-theme="light"] .button.ghost,
html[data-gw-template="signal"][data-theme="light"] .btn.secondary,
html[data-gw-template="signal"][data-theme="light"] .btn.ghost {color:#090909!important;}
html[data-gw-template="signal"][data-theme="light"] .metric-strip,
html[data-gw-template="signal"][data-theme="light"] .metric,
html[data-gw-template="signal"][data-theme="light"] .service-card,
html[data-gw-template="signal"][data-theme="light"] .detail-card,
html[data-gw-template="signal"][data-theme="light"] .pillar,
html[data-gw-template="signal"][data-theme="light"] .quote-panel,
html[data-gw-template="signal"][data-theme="light"] .expertise-card,
html[data-gw-template="signal"][data-theme="light"] .client-card,
html[data-gw-template="signal"][data-theme="light"] .project-card,
html[data-gw-template="signal"][data-theme="light"] .testimonial,
html[data-gw-template="signal"][data-theme="light"] .contact-form {
  background:#fff!important;
  box-shadow:0 20px 50px rgba(30,30,30,.08)!important;
}

@media (max-width:780px){
  html[data-gw-template="signal"] .brand {width:164px!important;min-width:164px!important;height:64px!important;}
  html[data-gw-template="signal"] .brand .gw-signal-logo {width:158px!important;height:52px!important;}
}

/* GREAT WHITE SIGNAL V2.3 — CHATBOT ORANGE ALIGNMENT */
html[data-gw-template="signal"] .gw-chat-launcher,
html[data-gw-template="signal"] .gw-chat-send {
  background:#ff5a0a!important;
  border-color:#ff5a0a!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(255,90,10,.30)!important;
}
html[data-gw-template="signal"] .gw-chat-launcher:hover,
html[data-gw-template="signal"] .gw-chat-send:hover {
  background:#e64e00!important;
}
html[data-gw-template="signal"] .gw-chat-message.user {
  background:#ff5a0a!important;
  color:#fff!important;
}
html[data-gw-template="signal"] .gw-chat-input:focus,
html[data-gw-template="signal"] .gw-handoff input:focus,
html[data-gw-template="signal"] .gw-handoff textarea:focus {
  border-color:#ff5a0a!important;
  box-shadow:0 0 0 4px rgba(255,90,10,.12)!important;
}
html[data-gw-template="signal"] .gw-chat-head {
  border-top:3px solid #ff5a0a!important;
}
html[data-gw-template="signal"] .gw-chat-panel {
  border-color:rgba(255,90,10,.30)!important;
}

/* GREAT WHITE SIGNAL CHATBOT ORANGE V2.3.1 */
html[data-gw-template="signal"] .gw-chat-launcher,
html[data-gw-template="signal"] .gw-chat-send,
html[data-gw-template="signal"] .gw-chat-message.user,
html[data-gw-template="signal"] .gw-handoff button {
  background:#ff5a0a!important;
  border-color:#ff5a0a!important;
  color:#fff!important;
}
html[data-gw-template="signal"] .gw-chat-input:focus,
html[data-gw-template="signal"] .gw-handoff input:focus,
html[data-gw-template="signal"] .gw-handoff textarea:focus {
  border-color:#ff5a0a!important;
  box-shadow:0 0 0 4px rgba(255,90,10,.12)!important;
}
html[data-gw-template="signal"] .gw-chat-head,
html[data-gw-template="signal"] .gw-chat-form,
html[data-gw-template="signal"] .gw-chat-panel {
  border-color:rgba(255,90,10,.18)!important;
}

/* GW_MAIN_TEMPLATE_BACKGROUND_V1 */
html[data-gw-template="signal"] body::before{background:linear-gradient(180deg,rgba(5,5,5,.68),rgba(5,5,5,.92)),linear-gradient(90deg,rgba(5,5,5,.96),rgba(5,5,5,.55)),var(--gw-signal-background) center/cover fixed no-repeat!important;}
html[data-gw-template="signal"] .hero,html[data-gw-template="signal"] .project-hero{background:linear-gradient(90deg,rgba(5,5,5,.98) 0%,rgba(5,5,5,.88) 43%,rgba(5,5,5,.30) 78%,rgba(5,5,5,.78) 100%),linear-gradient(180deg,rgba(5,5,5,.10),rgba(5,5,5,.88)),var(--gw-signal-background) center right/cover no-repeat,var(--gw-black)!important;}
html[data-gw-template="signal"] .brand .gw-signal-logo,html[data-gw-template="signal"] .gw-signal-logo{background:#050505!important;border-radius:2px!important;}
@media(max-width:780px){html[data-gw-template="signal"] .hero,html[data-gw-template="signal"] .project-hero{background-position:68% center!important;}}
