/* =========================================================
   PPGL GLOBAL STYLE.CSS
   Shared foundation for every page. Homepage-only styles
   live in front-page.css. Do not add page-specific rules here.
   Font-weights normalized to 400 / 600 / 700 / 900 only.
========================================================= */

:root {
  color-scheme: dark;

  /* ---- Color (LOCKED — dark palette is the base) ---- */
  --navy-950: #050b12;
  --navy-900: #07111d;
  --navy-850: #081827;
  --navy-800: #0b243c;
  --navy-700: #0b3c6d;

  --blue-500: #1e73be;
  --gold-500: #ffd200;
  --gold-300: #ffe66d;

  /* Gold as TEXT / UI-stroke only. --gold-500 is a fill colour and
     drops to 1.45:1 on white, so never use it for text on a surface
     that follows the theme. Use --gold-ink instead: it stays #ffd200
     on dark and darkens to an AA-compliant gold in light mode.
     Surfaces that are dark in BOTH themes (footer, hero standing
     card) should keep --gold-500. */
  --gold-ink: #ffd200;

  --white: #ffffff;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;

  --text: #e5edf7;
  --muted: rgba(229, 237, 247, 0.72);

  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);

  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 48px rgba(2, 8, 23, 0.18);

  --ring: 0 0 0 4px rgba(255, 210, 0, 0.14);

  /* ---- Radius (LOCKED) ---- */
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  /* ---- Spacing scale (4px based) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --max: 1240px;
}

html[data-theme="light"] {
  color-scheme: light;

  /* AA-compliant gold for text on light surfaces:
     5.07:1 on #fff, 4.63:1 on slate-100, 4.53:1 on --panel. */
  --gold-ink: #8a6a00;

  --navy-950: #f5f7fb;
  --navy-900: #ffffff;
  --navy-850: #eef3f9;
  --navy-800: #dbe6f2;
  --navy-700: #1e73be;

  --text: #07111d;
  --muted: #334155;

  --panel: rgba(15, 23, 42, 0.055);
  --panel-strong: rgba(15, 23, 42, 0.09);
  --border: rgba(15, 23, 42, 0.16);

  --shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.11);
}

/* =========================================================
   RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--navy-950);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}

::selection {
  background: var(--gold-500);
  color: var(--slate-900);
}

body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-500), var(--blue-500));
  border-radius: 999px;
}
body::-webkit-scrollbar-track {
  background: var(--navy-950);
}

/* =========================================================
   UTILITIES
========================================================= */

.container {
  width: min(92%, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  background: var(--gold-500);
  color: var(--slate-900);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus {
  left: 10px;
}

/* Reveal on scroll — gated behind html.js so no-JS still shows content */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shared focus ring */
.nav-panel a:focus-visible,
.theme-toggle:focus-visible,
.nav-dropdown-toggle:focus-visible,
.btn:focus-visible,
.candidate-portal-btn:focus-visible,
.floating-contact:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.nav-panel a,
.theme-toggle,
.nav-dropdown-toggle,
.btn,
.candidate-portal-btn,
.card-link,
.floating-contact {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   SECTIONS
========================================================= */

.section-dark,
.section-light {
  position: relative;
  padding: 72px 0;
}

.section-dark {
  background: linear-gradient(
    135deg,
    var(--navy-950),
    var(--navy-900) 48%,
    var(--navy-850)
  );
}
.section-light {
  background: var(--navy-900);
}

html[data-theme="light"] .section-dark {
  background: linear-gradient(135deg, #f5f7fb, #ffffff 48%, #eef3f9);
}
html[data-theme="light"] .section-light {
  background: #ffffff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading h2,
.dashboard-copy h2,
.portal-card h2,
.cta-box h2,
.contact-copy h2 {
  color: var(--text);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.section-heading p,
.dashboard-copy p,
.portal-card p,
.cta-box p,
.contact-copy p {
  color: var(--muted);
  max-width: 760px;
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 0, 0.28);
  background: rgba(255, 210, 0, 0.08);
  color: var(--gold-ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-ink);
  opacity: 0.85;
}

html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .eyebrow {
  background: rgba(255, 210, 0, 0.12);
  color: var(--gold-500);
  border-color: rgba(255, 210, 0, 0.3);
}
html[data-theme="dark"] .section-kicker::before,
html[data-theme="dark"] .eyebrow::before {
  background: var(--gold-500);
}

/* =========================================================
   HEADER / NAV
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  isolation: isolate;
  background: rgba(5, 11, 18, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.12);
}
.site-header.is-scrolled {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 210, 0, 0.55),
    transparent
  );
  opacity: 0.75;
  pointer-events: none;
}

.nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}
.brand img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
html[data-theme="light"] .brand-text small {
  color: #475569;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav-panel a,
.theme-toggle,
.nav-dropdown-toggle {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.22s ease;
}
html[data-theme="light"] .nav-panel a,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-dropdown-toggle {
  color: #07111d;
}

.nav-panel a:hover,
.theme-toggle:hover,
.nav-dropdown-toggle:hover {
  background: var(--panel);
  border-color: var(--border);
  color: var(--gold-ink);
  transform: translateY(-1px);
}

.nav-panel a.active,
.nav-dropdown-toggle.active {
  background: var(--panel);
  border-color: rgba(255, 210, 0, 0.32);
  color: var(--gold-ink);
}
html[data-theme="light"] .nav-panel a.active,
html[data-theme="light"] .nav-dropdown-toggle.active {
  background: rgba(255, 210, 0, 0.08);
  border-color: rgba(255, 210, 0, 0.42);
  color: var(--gold-ink);
}

/* =========================================================
   THEME SELECTOR — LIGHT / DARK / AUTOMATIC
========================================================= */

.theme-menu {
  position: relative;
  flex: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  cursor: pointer;
}

.theme-toggle-icon {
  color: var(--gold-ink);
  font-size: 0.86rem;
}

.theme-toggle-label {
  line-height: 1;
}

.theme-toggle-chevron {
  color: var(--muted);
  font-size: 0.62rem;
  transition: transform 0.2s ease;
}

.theme-menu.is-open .theme-toggle-chevron {
  transform: rotate(180deg);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 2100;
  width: 310px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(5, 11, 18, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

html[data-theme="light"] .theme-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.14);
}

.theme-menu.is-open .theme-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.theme-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: rgba(5, 11, 18, 0.97);
  transform: rotate(45deg);
}

html[data-theme="light"] .theme-dropdown::before {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.14);
}

.theme-dropdown-heading {
  padding: 6px 8px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.theme-dropdown-heading > span {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.theme-dropdown-heading > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}

.theme-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin: 4px 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.theme-option:hover {
  background: var(--panel);
  border-color: var(--border);
  transform: translateX(2px);
}

.theme-option.is-active {
  background: rgba(255, 210, 0, 0.1);
  border-color: rgba(255, 210, 0, 0.3);
}

html[data-theme="light"] .theme-option.is-active {
  background: rgba(255, 210, 0, 0.12);
  border-color: rgba(138, 106, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 0, 0.18);
}

.theme-option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--blue-500);
  font-size: 0.9rem;
}

.theme-option.is-active .theme-option-icon {
  border-color: rgba(255, 210, 0, 0.28);
  background: rgba(255, 210, 0, 0.12);
  color: var(--gold-ink);
}

.theme-option-copy {
  display: block;
  min-width: 0;
}

.theme-option-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.theme-option-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
}

.theme-option-check {
  color: var(--gold-ink);
  font-size: 0.72rem;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.theme-option.is-active .theme-option-check {
  opacity: 1;
  transform: scale(1);
}

.theme-auto-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
}

.theme-auto-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold-ink);
  vertical-align: middle;
}

.theme-toggle:focus-visible,
.theme-option:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.candidate-portal-btn {
  background: linear-gradient(
    135deg,
    var(--gold-500),
    var(--gold-300)
  ) !important;
  color: var(--slate-900) !important;
  padding: 9px 14px !important;
  box-shadow: 0 14px 30px rgba(255, 210, 0, 0.22);
  font-weight: 900 !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
  transition: 0.22s ease;
}
html[data-theme="light"] .nav-toggle span {
  background: #07111d;
}

/* Animated hamburger -> X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 235px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(5, 11, 18, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 2000;
}
html[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.13);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--panel);
  color: var(--gold-ink);
}

/* =========================================================
   BUTTONS (LOCKED component)
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  font-size: 0.82rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--slate-900);
  box-shadow: 0 20px 42px rgba(255, 210, 0, 0.22);
}
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="light"] .btn-ghost {
  color: #07111d;
  background: rgba(15, 23, 42, 0.055);
  border-color: rgba(15, 23, 42, 0.14);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.card-link i {
  transition: 0.2s ease;
}
.card-link:hover i {
  transform: translateX(4px);
}

/* =========================================================
   PILLS
========================================================= */

.cred-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cred-row span,
.pill-cloud span,
.portal-steps span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
html[data-theme="light"] .cred-row span,
html[data-theme="light"] .pill-cloud span,
html[data-theme="light"] .portal-steps span {
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.14);
}
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* =========================================================
   SHARED CARDS / PANELS
========================================================= */

.command-card,
.dashboard-card,
.portal-card,
.application-preview,
.cred-card,
.compliance-card,
.timeline article,
.cta-box,
.contact-form,
.table-wrap {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.025));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .command-card,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .portal-card,
html[data-theme="light"] .application-preview,
html[data-theme="light"] .cred-card,
html[data-theme="light"] .compliance-card,
html[data-theme="light"] .timeline article,
html[data-theme="light"] .contact-form,
html[data-theme="light"] .table-wrap {
  background: linear-gradient(145deg, #ffffff, rgba(241, 245, 249, 0.78));
  border-color: rgba(15, 23, 42, 0.14);
}

.portal-card,
.application-preview,
.dashboard-card,
.cred-card,
.compliance-card,
.timeline article {
  padding: 24px;
}

.cred-card,
.compliance-card,
.timeline article {
  transition: 0.24s ease;
}
.cred-card:hover,
.compliance-card:hover,
.timeline article:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 210, 0, 0.34);
}

.cred-card span,
.compliance-card span,
.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--slate-900);
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.cred-card h3,
.compliance-card h3,
.timeline h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cred-card p,
.compliance-card p,
.timeline p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
html[data-theme="light"] .cred-card p,
html[data-theme="light"] .compliance-card p,
html[data-theme="light"] .timeline p {
  color: #334155;
}

/* =========================================================
   SHARED GRIDS
========================================================= */

.component-grid,
.credibility-grid,
.compliance-grid,
.service-grid,
.timeline,
.portal-grid,
.dashboard-layout,
.contact-grid {
  display: grid;
  gap: 16px;
}
.component-grid,
.credibility-grid,
.service-grid,
.timeline {
  grid-template-columns: repeat(3, 1fr);
}
.compliance-grid {
  grid-template-columns: repeat(4, 1fr);
}
.portal-grid,
.dashboard-layout,
.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 32px;
}

/* =========================================================
   SERVICE IMAGE CARDS
========================================================= */

.service-card {
  min-height: 255px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
  transition: 0.26s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 18, 0.15),
    rgba(5, 11, 18, 0.94)
  );
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 210, 0, 0.34);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.32);
}
.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--slate-900);
  font-size: 0.78rem;
  font-weight: 900;
}
.service-card h3 {
  margin-top: 74px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.service-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.oilgas-bg {
  background-image: url("../images/oil_rig_ai.webp");
}
.mining-bg {
  background-image: url("../images/mining_ai.webp");
}
.procurement-bg {
  background-image: url("../images/procurement.webp");
}
.manpower-bg {
  background-image: url("../images/manpower.webp");
}
.epc-bg {
  background-image: url("../images/epc_construction_ai.webp");
}
.execution-bg {
  background-image: url("../images/execution_partner.webp");
}
.logistics-bg {
  background-image: url("../images/logistics_sector.webp");
}

/* =========================================================
   DATA WIDGETS (mini dashboards / pipelines)
========================================================= */

.mini-dashboard,
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mini-dashboard div,
.dash-stat-grid article,
.metrics-dock article {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
html[data-theme="light"] .mini-dashboard div,
html[data-theme="light"] .dash-stat-grid article,
html[data-theme="light"] .metrics-dock article {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.14);
}
.mini-dashboard strong,
.dash-stat-grid strong,
.metrics-dock strong {
  display: block;
  color: var(--gold-ink);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.mini-dashboard span,
.dash-stat-grid span,
.metrics-dock span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.35;
}
html[data-theme="light"] .mini-dashboard span,
html[data-theme="light"] .dash-stat-grid span,
html[data-theme="light"] .metrics-dock span {
  color: #334155;
}

.pipeline-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.pipeline-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
}
html[data-theme="light"] .pipeline-list div {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 23, 42, 0.14);
}
.pipeline-list span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--slate-900);
  font-size: 0.72rem;
  font-weight: 900;
}
.pipeline-list b {
  color: var(--text);
  font-weight: 700;
  line-height: 1.1;
}
.pipeline-list em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}
html[data-theme="light"] .pipeline-list em {
  color: #334155;
}

/* =========================================================
   FORMS
========================================================= */

.application-preview,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.preview-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.8;
}
.application-preview label,
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.application-preview input,
.application-preview select,
.application-preview textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: 0.2s ease;
}
html[data-theme="light"] .application-preview input,
html[data-theme="light"] .application-preview select,
html[data-theme="light"] .application-preview textarea,
html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form select,
html[data-theme="light"] .contact-form textarea {
  background: #fff;
  color: #07111d;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-ink);
  box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.12);
}
textarea {
  min-height: 135px;
  resize: vertical;
}

.form-message {
  color: var(--gold-ink);
  font-size: 0.86rem;
  font-weight: 700;
}
.form-message.success {
  color: #22c55e;
}
.form-message.error {
  color: #ef4444;
}

/* =========================================================
   CTA
========================================================= */

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 210, 0, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
}
html[data-theme="light"] .cta-box {
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 210, 0, 0.22),
      transparent 30%
    ),
    linear-gradient(135deg, #ffffff, #eef3f9);
}

/* =========================================================
   TABLES
========================================================= */

.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
th {
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
td {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  vertical-align: top;
}
td:first-child {
  color: var(--text);
  font-weight: 900;
}

/* =========================================================
   FLOATING CONTACT
========================================================= */

.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 0, 0.36);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--slate-900);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(255, 210, 0, 0.25);
  transition: 0.22s ease;
}
.floating-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(255, 210, 0, 0.32);
}

/* =========================================================
   THEME SELECTOR — RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
  .theme-menu {
    width: 100%;
  }

  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    border-color: var(--border);
    background: var(--panel);
    text-align: left;
  }

  .theme-toggle-chevron {
    margin-left: auto;
  }

  .theme-dropdown {
    position: static;
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .theme-menu.is-open .theme-dropdown {
    display: block;
    transform: none;
  }

  .theme-dropdown::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .theme-option {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    min-height: 58px;
    padding: 8px;
  }

  .theme-option-icon {
    width: 38px;
    height: 38px;
  }

  .theme-dropdown-heading {
    padding-inline: 6px;
  }
}

/* =========================================================
   GLOBAL FOOTER COMPONENT — V2 (CANONICAL)
   Single site-wide footer. Every page uses the same footer
   markup (see index.html). Dark in both themes — brand rule.
   Do not fork per page; edit here to update the whole site.
========================================================= */

.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;
}

.site-footer,
html[data-theme="light"] .site-footer,
html[data-theme="dark"] .site-footer {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 18%,
      rgba(30, 115, 190, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(255, 210, 0, 0.08),
      transparent 26%
    ),
    linear-gradient(135deg, #03070c, #07111d 48%, #081827) !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer-accent {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue-500) 28%,
    var(--gold-500) 50%,
    var(--blue-500) 72%,
    transparent
  );
  opacity: 0.9;
}

.footer-main {
  padding-top: 64px;
  padding-bottom: 24px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) 0.7fr 0.82fr minmax(300px, 1.2fr);
  gap: 48px;
  align-items: start;
}

.site-footer .footer-company {
  max-width: 430px;
}

.site-footer .footer-brand {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
}

.site-footer .footer-brand img {
  width: min(100%, 270px);
  height: auto;
  object-fit: contain;
}

.site-footer .footer-company-summary {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.86rem;
  line-height: 1.72;
}

.site-footer .footer-company-position {
  max-width: 390px;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-500);
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
}

.footer-social {
  margin-top: 24px;
}

.footer-social a {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: fit-content !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 0, 0.42);
  background: rgba(255, 210, 0, 0.1);
  color: var(--gold-500) !important;
}

.footer-social i,
.footer-social span {
  margin: 0 !important;
  color: inherit !important;
}

.site-footer .footer-column h3 {
  position: relative;
  margin-bottom: 24px;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer .footer-column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-500);
}

.site-footer .footer-column > a {
  position: relative;
  display: block;
  width: fit-content;
  margin: 12px 0;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.site-footer .footer-column > a:hover {
  transform: translateX(4px);
  color: var(--gold-500) !important;
}

.footer-contact-intro {
  max-width: 330px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-footer .footer-contact-stack {
  display: grid;
  gap: 8px;
}

.site-footer .footer-contact-item {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100% !important;
  min-height: 58px;
  margin: 0 !important;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.72) !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.site-footer a.footer-contact-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 210, 0, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.site-footer .footer-contact-item > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 210, 0, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 210, 0, 0.08);
  color: var(--gold-500) !important;
  font-size: 0.88rem;
}

.site-footer .footer-contact-item > span {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0 !important;
}

.site-footer .footer-contact-item strong {
  display: block;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer .footer-contact-item small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.56) !important;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.footer-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credentials span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.footer-credentials i {
  color: var(--gold-500) !important;
}

.site-footer .footer-bottom {
  width: 100%;
  margin: 0;
  padding: 22px 0 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left !important;
}

.site-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.74rem;
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-links a {
  width: fit-content !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.54) !important;
  font-size: 0.74rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--gold-500) !important;
}

@media (max-width: 1120px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    gap: 40px;
  }

  .site-footer .footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer .footer-contact-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .footer-main {
    padding-top: 52px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }

  .site-footer .footer-company,
  .site-footer .footer-contact {
    grid-column: 1 / -1;
    max-width: none;
  }

  .site-footer .footer-company-summary,
  .site-footer .footer-company-position,
  .footer-contact-intro {
    max-width: 680px;
  }

  .footer-credentials {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-credentials span {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-footer .footer-grid,
  .site-footer .footer-contact-stack {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-company,
  .site-footer .footer-contact {
    grid-column: auto;
  }

  .site-footer .footer-brand img {
    width: 230px;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .footer-main {
    padding-top: 44px;
  }

  .site-footer .footer-grid {
    gap: 32px;
  }

  .site-footer .footer-contact-item {
    padding-inline: 0;
  }
}

/* =========================================================
   MOTION PREFERENCES
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE (global)
========================================================= */

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }
  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-panel {
    position: fixed;
    left: 4%;
    right: 4%;
    top: 82px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(5, 11, 18, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
  }
  html[data-theme="light"] .nav-panel {
    background: rgba(255, 255, 255, 0.96);
  }
  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-panel a,
  .theme-toggle,
  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    border-color: var(--border);
    background: var(--panel);
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-toggle {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.is-open:hover .nav-dropdown-menu {
    display: grid;
  }

  .dashboard-layout,
  .portal-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .component-grid,
  .service-grid,
  .compliance-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 74px;
  }
  .brand-text {
    display: none;
  }
  .nav-shell {
    min-height: 66px;
  }
  .brand img {
    height: 44px;
  }

  .section-dark,
  .section-light {
    padding: 56px 0;
  }
  .section-heading {
    margin-bottom: 26px;
  }
  .section-heading h2,
  .dashboard-copy h2,
  .portal-card h2,
  .cta-box h2,
  .contact-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    letter-spacing: -0.055em;
  }

  .component-grid,
  .service-grid,
  .compliance-grid,
  .timeline,
  .mini-dashboard,
  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .floating-contact {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(94%, var(--max));
  }
  .command-card,
  .dashboard-card,
  .portal-card,
  .application-preview,
  .contact-form,
  .cta-box,
  .cred-card,
  .compliance-card,
  .timeline article {
    padding: 18px;
    border-radius: 20px;
  }

  .btn,
  .candidate-portal-btn {
    width: 100%;
  }

  .theme-menu,
  .theme-toggle {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-kicker,
  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    padding: 8px 12px;
    gap: 8px;
  }
  .section-kicker::before,
  .eyebrow::before {
    width: 18px;
  }
}
