/* ==========================================================================
   Transformatica: single-page site
   All custom tokens and classes are prefixed `app-`.
   ========================================================================== */

/* ---------- Fonts (self-hosted Inter variable) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --app-blue: #0060B8;          /* logo wordmark */
  --app-blue-dark: #004A8F;
  --app-blue-soft: #E8F1FB;
  --app-orange: #FD6635;        /* logo mark */
  --app-orange-text: #C4471B;   /* orange darkened for readable text on white */
  --app-orange-soft: #FFF0EA;
  --app-navy: #0B1B33;
  --app-navy-2: #12284A;
  --app-ink: #15213A;
  --app-muted: #56627A;
  --app-border: #E1E8F1;
  --app-surface: #FFFFFF;
  --app-surface-alt: #F5F8FC;

  --app-navbar-height: 76px;
  --app-radius: 14px;
  --app-radius-sm: 10px;
  --app-shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 8px 24px rgba(11, 27, 51, .06);
  --app-shadow-lg: 0 2px 4px rgba(11, 27, 51, .05), 0 18px 40px rgba(11, 27, 51, .10);

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--app-ink);
  --bs-body-bg: var(--app-surface);
  --bs-link-color-rgb: 0, 96, 184;
  --bs-link-hover-color-rgb: 0, 74, 143;
}

html { scroll-padding-top: calc(var(--app-navbar-height) + 8px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4 { color: var(--app-ink); letter-spacing: -0.02em; }

.app-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 2000;
  background: var(--app-navy); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

/* Draft placeholders: highlighted so they cannot be missed. Remove the class once filled. */
.app-todo {
  background: #FFF3BF;
  color: #6B4E00;
  border-radius: 4px;
  padding: 0 .3em;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.app-btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--app-blue);
  --bs-btn-border-color: var(--app-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--app-blue-dark);
  --bs-btn-hover-border-color: var(--app-blue-dark);
  --bs-btn-active-bg: var(--app-blue-dark);
  --bs-btn-active-border-color: var(--app-blue-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 0, 96, 184;
  font-weight: 600;
  border-radius: 10px;
  padding-inline: 1.25rem;
}
.app-btn-outline {
  --bs-btn-color: var(--app-blue);
  --bs-btn-border-color: #BFD4EC;
  --bs-btn-bg: #fff;
  --bs-btn-hover-color: var(--app-blue-dark);
  --bs-btn-hover-bg: var(--app-blue-soft);
  --bs-btn-hover-border-color: #9DBDE3;
  --bs-btn-active-bg: var(--app-blue-soft);
  --bs-btn-active-color: var(--app-blue-dark);
  --bs-btn-focus-shadow-rgb: 0, 96, 184;
  font-weight: 600;
  border-radius: 10px;
  padding-inline: 1.25rem;
}
.btn-lg.app-btn-primary, .btn-lg.app-btn-outline { font-size: 1rem; padding: .8rem 1.4rem; }

/* ---------- Navbar ---------- */
.app-navbar {
  --app-navbar-bg: rgba(255, 255, 255, .92);
  min-height: var(--app-navbar-height);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Blur sits on a pseudo-layer: backdrop-filter on the navbar itself would trap the
   fixed-position mobile drawer inside the navbar's box. */
.app-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--app-navbar-bg);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.app-navbar.app-is-scrolled {
  border-bottom-color: var(--app-border);
  box-shadow: 0 4px 18px rgba(11, 27, 51, .06);
}
.app-navbar-logo { height: 46px; width: auto; }
.app-navbar .nav-link {
  color: var(--app-ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .85rem !important;
  border-radius: 8px;
}
.app-navbar .nav-link:hover { color: var(--app-blue); }
.app-navbar .nav-link.active { color: var(--app-blue); }
.app-navbar .navbar-toggler {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: .35rem .6rem;
  font-size: 1.5rem;
  color: var(--app-ink);
}
.app-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(0, 96, 184, .2); }
@media (max-width: 991.98px) {
  .app-navbar-logo { height: 36px; }
  .app-navbar .offcanvas { max-width: 320px; }
  .app-navbar .offcanvas .nav-link { font-size: 1.05rem; padding: .7rem .75rem !important; }
  .app-navbar .offcanvas .nav-link.active { background: var(--app-blue-soft); }
  .app-navbar .offcanvas .btn { width: 100%; }
}

/* ---------- Shared section styles ---------- */
.app-section { padding: 96px 0; }
.app-section-alt { background: var(--app-surface-alt); }
.app-section-head { max-width: 680px; margin-bottom: 48px; }
.app-section-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.app-lead { font-size: 1.125rem; color: var(--app-muted); }
.app-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--app-orange-text);
  margin-bottom: .9rem;
}
.app-eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--app-orange); border-radius: 2px;
}
@media (max-width: 767.98px) {
  .app-section { padding: 72px 0; }
}

/* ---------- Hero ---------- */
.app-hero {
  position: relative;
  padding: calc(var(--app-navbar-height) + 72px) 0 72px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 96, 184, .10) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(180deg, #F3F8FE 0%, #FFFFFF 100%);
  overflow: hidden;
}
.app-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}
.app-hero .container { position: relative; z-index: 1; }
.app-hero-title {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.app-hero-lead { font-size: 1.2rem; color: var(--app-muted); max-width: 560px; }

.app-hero-visual { position: relative; max-width: 520px; margin-inline: auto; }
.app-hero-svg { width: 100%; height: auto; display: block; }
.app-hero-lines path { stroke: #C3D5EC; stroke-width: 2; fill: none; stroke-dasharray: 5 7; }
.app-hero-node-ring circle { fill: #fff; stroke: var(--app-orange); stroke-width: 3; }
.app-hero-node-dot circle { fill: var(--app-orange); }
.app-hero-halo { fill: rgba(0, 96, 184, .07); }
.app-hero-hub { fill: #fff; stroke: #D7E4F4; stroke-width: 2; filter: drop-shadow(0 10px 24px rgba(0, 96, 184, .18)); }
.app-hero-square { fill: var(--app-blue); }
.app-hero-square-inner rect { fill: none; stroke: #fff; stroke-width: 3; }
.app-hero-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  padding: .5rem .95rem;
  font-size: .9rem; font-weight: 600; color: var(--app-ink);
  box-shadow: var(--app-shadow);
  white-space: nowrap;
}
.app-hero-chip i { color: var(--app-blue); font-size: 1.05rem; }
@media (max-width: 575.98px) {
  .app-hero { padding-top: calc(var(--app-navbar-height) + 40px); }
  .app-hero-chip { font-size: .78rem; padding: .35rem .7rem; }
}

/* ---------- Values strip ---------- */
.app-values { padding: 0 0 24px; position: relative; z-index: 2; }
.app-values .row {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  margin: 0;
  padding: 1.25rem .5rem;
}
.app-value {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 600; font-size: .95rem; color: var(--app-ink);
}
.app-value i {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--app-orange-soft); color: var(--app-orange-text); font-size: 1.2rem;
}

/* ---------- About ---------- */
.app-facts {
  background: var(--app-surface-alt);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: .5rem 1.5rem;
}
.app-fact {
  display: flex; gap: 1rem; padding: 1.1rem 0;
  border-bottom: 1px solid var(--app-border);
}
.app-fact:last-child { border-bottom: 0; }
.app-fact > i { color: var(--app-blue); font-size: 1.3rem; line-height: 1.4; }
.app-fact-label {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--app-muted); margin-bottom: .15rem;
}

/* ---------- Services ---------- */
.app-service-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 2rem;
  box-shadow: var(--app-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.app-service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--app-blue), var(--app-orange));
  opacity: 0; transition: opacity .2s ease;
}
.app-service-card:hover { transform: translateY(-4px); box-shadow: var(--app-shadow-lg); border-color: #CFDDEE; }
.app-service-card:hover::before { opacity: 1; }
.app-service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.app-service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--app-blue-soft); color: var(--app-blue); font-size: 1.6rem;
}
.app-service-num { font-size: 1.5rem; font-weight: 800; color: #D5E1EF; letter-spacing: -0.02em; }
.app-service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.app-service-card p { color: var(--app-muted); }
.app-check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--app-border); padding-top: 1.25rem; }
.app-check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; font-size: .95rem; }
.app-check-list li::before {
  content: "\F272"; /* bi-check2 */
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 0;
  color: var(--app-orange-text); font-weight: 700;
}

/* ---------- Training (dark band) ---------- */
.app-section-dark {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(135deg, var(--app-navy) 0%, var(--app-navy-2) 100%);
  color: #C9D5E6;
}
.app-section-dark .app-section-title { color: #fff; }
.app-section-dark .app-lead { color: #B8C6DA; }
.app-eyebrow-light { color: #FF9A76; }
.app-formats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.app-formats span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; color: #E3EAF5;
}
.app-topic {
  height: 100%;
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--app-radius-sm);
  padding: 1.1rem 1.2rem;
  color: #fff; font-weight: 500;
}
.app-topic i {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(253, 102, 53, .15); color: #FF9A76; font-size: 1.15rem;
}

/* ---------- How we work ---------- */
.app-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  counter-reset: none;
}
.app-step { position: relative; padding-top: 1rem; }
.app-step::before {
  content: ""; position: absolute; top: 38px; left: 64px; right: -1.5rem;
  border-top: 2px dashed #C3D5EC;
}
.app-step:last-child::before { display: none; }
.app-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--app-blue); color: var(--app-blue);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.app-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.app-step p { color: var(--app-muted); margin: 0; }
@media (max-width: 991.98px) {
  .app-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .app-step::before { display: none; }
}
@media (max-width: 575.98px) {
  .app-steps { grid-template-columns: 1fr; }
}

/* ---------- Industries ---------- */
.app-industry {
  height: 100%;
  display: flex; gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1.5rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.app-industry:hover { border-color: #CFDDEE; box-shadow: var(--app-shadow); }
.app-industry > i {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--app-blue-soft); color: var(--app-blue); font-size: 1.35rem;
}
.app-industry h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.app-industry p { color: var(--app-muted); margin: 0; font-size: .95rem; }

/* ---------- Technologies ---------- */
.app-tech-group {
  height: 100%;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1.5rem;
}
.app-tech-group h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.app-tech-group h3 i { color: var(--app-orange-text); }
.app-tech-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-tech-list span {
  background: var(--app-surface-alt);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .875rem; font-weight: 500; color: var(--app-ink);
}

/* ---------- Contact ---------- */
.app-contact-panel {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 20px;
  box-shadow: var(--app-shadow);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.app-contact-item {
  height: 100%;
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--app-surface-alt);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-sm);
  padding: 1.1rem 1.2rem;
  overflow-wrap: anywhere;
}
.app-contact-item > i {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--app-blue); color: #fff; font-size: 1.1rem;
}
@media (max-width: 575.98px) {
  .app-contact-panel { padding: 1.5rem 1.1rem; border-radius: 16px; }
  .app-contact-item { padding: 1rem; gap: .85rem; }
  .app-values .row { padding: 1rem .25rem; }
}
.app-contact-label {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--app-muted); margin-bottom: .15rem;
}
.app-contact-value { color: var(--app-ink); font-weight: 600; }

/* ---------- Footer ---------- */
.app-footer {
  background: var(--app-navy);
  color: #9FB0C8;
  padding: 72px 0 0;
  font-size: .95rem;
}
.app-footer-logo { height: 44px; width: auto; }
.app-footer h4 {
  color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.app-footer ul { list-style: none; padding: 0; margin: 0; }
.app-footer li { margin-bottom: .55rem; }
.app-footer a { color: #C9D5E6; text-decoration: none; }
.app-footer a:hover { color: #fff; }
.app-footer-contact li { display: flex; gap: .6rem; overflow-wrap: anywhere; color: #C9D5E6; }
.app-footer-contact i { color: #FF9A76; }
.app-footer-bottom {
  margin-top: 56px; padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .875rem;
}
.app-back-top { display: inline-flex; gap: .4rem; align-items: center; }
