/* ===== Next Phase Services — Site Stylesheet ===== */

:root {
  --navy-darkest: #060b18;
  --navy-dark: #0a1428;
  --navy: #0d1b33;
  --navy-light: #16264a;
  --blue-card: #1e4a8c;
  --orange: #f5901e;
  --orange-light: #ffb054;
  --orange-dark: #e06e00;
  --white: #ffffff;
  --text-muted: #b9c1d1;
  --border-soft: rgba(255, 255, 255, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--navy-darkest);
  color: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--navy-darkest);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 2000;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Segoe UI', 'Arial Black', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.section-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--white);
  text-transform: uppercase;
}

.section-heading .accent { color: var(--orange); }

.underline {
  width: 90px;
  height: 4px;
  background: var(--orange);
  border: none;
  margin: 0 0 32px;
  border-radius: 2px;
}

.underline.center { margin-left: auto; margin-right: auto; }

/* ===== Header / Nav ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 11, 24, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand img { height: 52px; width: auto; }

.brand-sub {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-left: 2px solid var(--border-soft);
  padding-left: 12px;
  max-width: 160px;
  line-height: 1.3;
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--orange);
  border-color: var(--orange);
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  color: var(--navy-darkest);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 144, 30, 0.35);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-cta { display: inline-block; }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 899px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  nav.main-nav li { border-bottom: 1px solid var(--border-soft); }
  nav.main-nav a { display: block; padding: 14px 0; }
  .menu-toggle { display: block; }
}

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,11,24,0.97) 15%, rgba(6,11,24,0.75) 45%, rgba(6,11,24,0.35) 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 60px 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--orange); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ===== Page banner (interior pages) ===== */
.page-banner {
  background-size: cover;
  background-position: center;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,11,24,0.15) 0%, rgba(6,11,24,0.9) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.page-banner-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-banner-content h1 span { color: var(--orange); }

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a { color: var(--orange); }

/* ===== Generic sections ===== */
section { padding: 72px 0; }

.section-alt { background: var(--navy-dark); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.card {
  background: var(--navy);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 28px;
}

/* Mission/Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) {
  .mv-grid { grid-template-columns: 1fr; }
}

.mv-card {
  background: var(--navy);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  padding: 32px;
}

.mv-card h3 {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 1.3rem;
}

/* Services grid (icon cards) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-tile {
  background: linear-gradient(160deg, var(--blue-card), #163a70);
  border-radius: 12px;
  padding: 28px 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:hover,
.service-tile:focus-visible { transform: translateY(-4px); }

.service-tile .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--orange-light);
}

.service-tile h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
  text-transform: none;
  position: relative;
  z-index: 2;
}

/* Photo-backed capability tiles */
a.service-tile {
  display: flex;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-soft);
}

a.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,11,24,0.15) 30%, rgba(6,11,24,0.92) 100%);
  z-index: 1;
}

a.service-tile:hover,
a.service-tile:focus-visible {
  box-shadow: 0 10px 28px rgba(245, 144, 30, 0.25);
}

a.service-tile:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.capabilities-intro {
  max-width: 700px;
  margin-bottom: 8px;
}

/* Solutions columns (3-col) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

.solutions-col {
  background: var(--blue-card);
  border-radius: 14px;
  padding: 30px 26px;
}

.solutions-col h3 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.solutions-col ul {
  margin: 0;
  padding-left: 20px;
  color: #dce4f2;
}

.solutions-col ul li { margin-bottom: 10px; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  border-radius: 16px;
  padding: 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.value-card.light { background: var(--white); color: var(--navy-darkest); }
.value-card.blue { background: var(--blue-card); color: var(--white); }

.value-card .vicon {
  font-size: 2rem;
  color: var(--orange);
  flex-shrink: 0;
}

.value-card h4 {
  margin: 0 0 8px;
  text-transform: none;
  font-size: 1.2rem;
}

.value-card.light p { color: #333; margin: 0; }
.value-card.blue p { color: #dce4f2; margin: 0; }

/* Offerings split */
.offerings-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .offerings-split { grid-template-columns: 1fr; }
}

.offering-item h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 10px;
}

.offering-item h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  margin-right: 10px;
  border-radius: 2px;
}

/* Digital Twin section */
.digital-twin {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  overflow: hidden;
}

.digital-twin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,11,24,0.95) 30%, rgba(6,11,24,0.55) 100%);
}

.digital-twin .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .digital-twin .container { grid-template-columns: 1fr; }
}

.digital-twin h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.twin-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.twin-graphic svg { width: 100%; max-width: 340px; height: auto; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-card), var(--navy-darkest));
  text-align: center;
  padding: 60px 24px;
}

.cta-band h2 { text-transform: uppercase; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.contact-list .cicon {
  color: var(--orange);
  font-size: 1.3rem;
  width: 28px;
  flex-shrink: 0;
}

.contact-list strong { color: var(--white); display: block; margin-bottom: 4px; }
.contact-list span { color: var(--text-muted); }

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 320px;
}

.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

form.contact-form {
  display: grid;
  gap: 16px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

form.contact-form input::placeholder,
form.contact-form textarea::placeholder { color: #8a92a6; }

/* Footer */
footer.site-footer {
  background: var(--navy-darkest);
  border-top: 1px solid var(--border-soft);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img { height: 50px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; }

.footer-col h4 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  text-align: center;
  color: #7c8296;
  font-size: 0.85rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================
   v2 Redesign additions — badge pills, stat band, solution
   cards, generalized feature sections, redundancy dashboard
   =========================================================== */

#digital-twin, #scada, #ops-management, #redundancy {
  scroll-margin-top: 90px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(245, 144, 30, 0.12);
  border: 1px solid rgba(245, 144, 30, 0.35);
  color: var(--orange-light);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 800px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 22px 10px;
  border-left: 1px solid var(--border-soft);
}

.stat-item:first-child { border-left: none; }

@media (max-width: 800px) {
  .stat-item { border-left: none; border-top: 1px solid var(--border-soft); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-top: none; }
}

.stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Homepage / services flagship solutions grid (4 cards) */
.solutions-intro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1000px) {
  .solutions-intro { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .solutions-intro { grid-template-columns: 1fr; }
}

.solution-card {
  background: var(--navy);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

.solution-card:hover,
.solution-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.solution-card .sicon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.solution-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
  text-transform: none;
}

.solution-card p {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.solution-card .card-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Generalized full-bleed feature section (Digital Twin / SCADA / Ops Mgmt) */
.feature-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  overflow: hidden;
}

.feature-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,11,24,0.95) 35%, rgba(6,11,24,0.55) 100%);
}

.feature-section.alt::before {
  background: linear-gradient(260deg, rgba(6,11,24,0.95) 35%, rgba(6,11,24,0.55) 100%);
}

.feature-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.feature-section.alt .container {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-section.alt .feature-text { order: 2; }

@media (max-width: 800px) {
  .feature-section .container { grid-template-columns: 1fr; }
  .feature-section.alt .feature-text { order: 0; }
}

.feature-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-visual svg { width: 100%; max-width: 340px; height: auto; }

/* Redundancy dashboard mock */
.redundancy-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .redundancy-layout { grid-template-columns: 1fr; }
}

.server-mock { display: flex; flex-direction: column; }

.server-card {
  background: var(--navy);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 24px;
  position: relative;
}

.server-card.active { border-color: rgba(245, 144, 30, 0.5); }

.server-card + .server-card { margin-top: 34px; }

.server-card + .server-card::before {
  content: "";
  position: absolute;
  left: 40px;
  top: -34px;
  width: 2px;
  height: 34px;
  background: var(--border-soft);
}

.server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.server-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.server-card.active .server-icon { background: linear-gradient(135deg, var(--orange-light), var(--orange-dark)); }
.server-card.standby .server-icon { background: var(--navy-light); }

.server-head h4 { margin: 0; color: var(--white); font-size: 1.05rem; text-transform: none; }
.server-head .status-text { font-size: 0.82rem; color: var(--text-muted); }
.server-card.active .status-text { color: var(--orange-light); }

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-card.active .status-dot { background: #4ade80; }
.server-card.standby .status-dot { background: #f5c451; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stat {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.mini-stat .ms-label {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mini-stat .ms-value {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

/* Check grid */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

@media (max-width: 500px) {
  .check-grid { grid-template-columns: 1fr; }
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.check-item .cdot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
