/* =========================================================
   Steady CX — One‑pager (mobile‑first)
   - Sticky gradient navigation (white text)
   - Responsive mobile menu (hamburger)
   - Hero uses SCX-banner.png as a visible background image
   ========================================================= */

/* -----------------------------
   Brand tokens
   IMPORTANT: styles note
   Your CSS file is loaded from /css/styles.css.
   So image paths must be relative to /css/.
   Hero banner path below assumes:
     /assets/SCX-banner.png
   If your file sits elsewhere, change --hero-banner.
   ----------------------------- */
:root{
  --navy: #071C38;
  --navy-2:#0B2A4C;
  --blue: #152F4B;
  --slate:#155D72;
  --teal: #1A9E9E;

  --white:#FFFFFF;
  --mist:#F6FAFB;
  --border:#DDE6EE;
  --muted:#5B6B7C;

  --radius: 16px;
  --container: 1140px;

  --gradient: linear-gradient(90deg, #071C38 0%, #155D72 55%, #1A9E9E 100%);

  /* Hero banner image (visible, not “washed out”) */
  --hero-banner: url("../assets/SCX-banner.png");

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Sticky header offset for anchor links */
  --scroll-offset: 96px;
}

/* -----------------------------
   Base / reset
   ----------------------------- */
*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}
body{
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .95; }
::selection{ background: rgba(26,158,158,.22); }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Better anchor positioning even without scroll-padding support */
section, header[id]{
  scroll-margin-top: var(--scroll-offset);
}

:focus-visible{
  outline: 3px solid rgba(26,158,158,.38);
  outline-offset: 3px;
  border-radius: 10px;
}

body.nav-lock{
  overflow: hidden;
}

/* -----------------------------
   Typography
   ----------------------------- */
h1,h2,h3{ margin: 0 0 10px; }
h1{
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h2{
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3{
  font-size: 18px;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 12px; }

.lead{
  font-size: 18px;
  color: var(--blue);
  max-width: 900px;
}
.subhead{
  color: var(--blue);
  max-width: 1000px;
  margin-top: 6px;
}
.micro{
  display: inline-block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 8px;
}
.underlined{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -----------------------------
   Buttons
   ----------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(7,28,56,.18);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(7,28,56,.22);
}

.btn-secondary{
  background: rgba(255,255,255,.92);
  border-color: var(--border);
  color: var(--navy);
}
.btn-secondary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(7,28,56,.10);
}

/* -----------------------------
   Sticky navigation (mobile-first)
   ----------------------------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--gradient);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 44px rgba(7,28,56,.22);
}

.nav-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

/* Brand */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  overflow: hidden;
}
.brand-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.brand-name{ min-width: 0; }
.brand-name strong{
  display: block;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-name span{
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hamburger button (progressively enhanced)
   - Hidden by default (no-JS fallback shows the links)
   - On mobile with JS enabled, hamburger appears and links become a dropdown
*/
.nav-toggle{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: var(--white);
  display: none; /* shown only on mobile when JS is available */
  place-items: center;
  cursor: pointer;
  transition: background .14s ease, transform .14s ease, border-color .14s ease;
}
.nav-toggle:hover{ background: rgba(255,255,255,.12); }
.nav-toggle:active{ transform: translateY(0); }

.nav-toggle-icon{
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.92);
  position: relative;
  border-radius: 999px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  transition: transform .16s ease, top .16s ease, opacity .16s ease;
}
.nav-toggle-icon::before{ top: -6px; }
.nav-toggle-icon::after{ top: 6px; }

/* Transform into X when open */
.nav.nav-open .nav-toggle-icon{ background: transparent; }
.nav.nav-open .nav-toggle-icon::before{ top: 0; transform: rotate(45deg); }
.nav.nav-open .nav-toggle-icon::after{ top: 0; transform: rotate(-45deg); }

/* Menu links (default / no-JS fallback) */
.nav-links{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.nav-links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13.5px;
  color: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.nav-links a:hover{ background: rgba(255,255,255,.12); }

/* Mobile dropdown behaviour (JS only) */
@media (max-width: 979px){
  .js .nav-toggle{ display: grid; }

  .js .nav-links{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(7,28,56,.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 60px rgba(0,0,0,.30);
  }

  .js .nav.nav-open .nav-links{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .js .nav-links a{
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 14px;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.16);
  }
}

/* Backdrop for mobile menu */
.nav-backdrop{
  position: fixed;
  inset: 0;
  z-index: 150; /* below nav (200), above content */
  background: rgba(7,28,56,.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.nav.nav-open + .nav-backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* Desktop navigation */
@media (min-width: 980px){
  :root{ --scroll-offset: 110px; }

  .nav-toggle{ display: none; }

  .nav-inner{
    padding: 18px 0;
  }
  .nav-links{
    display: flex;
    position: static;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
  }
  .nav-links a{
    padding: 10px 12px;
    font-size: 13.5px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
  }
}

/* -----------------------------
   Sections
   ----------------------------- */
section{
  padding: 56px 0;
}
section.alt{
  background: var(--mist);
}
@media (min-width: 760px){
  section{ padding: 72px 0; }
}

/* -----------------------------
   Hero with SCX banner background
   ----------------------------- */
.hero{
  position: relative;
  padding: 44px 0 44px;
  overflow: hidden;
  background: var(--mist);
}

/* Banner image layer */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-banner);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03);
  opacity: 1;
  pointer-events:none;
}

/* Readability overlay (keeps banner visible on the right) */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.94) 0%,
    rgba(255,255,255,.88) 38%,
    rgba(255,255,255,.55) 62%,
    rgba(255,255,255,.18) 100%);
  pointer-events:none;
}

.hero .container{
  position: relative;
  z-index: 1;
}

/* On small screens we need a bit more overlay for text readability */
@media (max-width: 720px){
  .hero::after{
    background: linear-gradient(180deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.80) 55%,
      rgba(255,255,255,.58) 100%);
  }
}

/* Layout inside hero: stacked (rows) */
.hero-grid{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Pill */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
  color: var(--blue);
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(7,28,56,.07);
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(26,158,158,.16);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

/* Trustbar */
.trustbar{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 980px){
  .trustbar{
    grid-template-columns: 1fr 1fr;
  }
}

/* -----------------------------
   Panels / cards / diagrams
   ----------------------------- */
.panel, .card, .diagram, details{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,.96);
}
.panel, .card, .diagram{
  padding: 18px;
  box-shadow: 0 16px 46px rgba(7,28,56,.09);
}

.diagram{
  background: linear-gradient(180deg, rgba(26,158,158,.05), rgba(255,255,255,0) 70%), rgba(255,255,255,.96);
  overflow-x: auto;
}
.diagram svg{ width: 100%; height: auto; min-width: 720px; }

/* KPI rows */
.kpi{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(246,250,251,.82);
}
.row strong{ color: var(--navy); }
.row span{ color: var(--muted); }

.pricing-note{
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  background: rgba(26,158,158,.08);
  color: var(--blue);
  font-size: 13.5px;
}

/* Content grids */
.grid-2, .grid-3, .form-grid{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.form-grid{ grid-template-columns: 1fr; }

@media (min-width: 760px){
  .form-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

/* Lists */
ul{ margin: 10px 0 0; padding-left: 18px; }
li{ margin: 6px 0; color: var(--blue); }
li strong{ color: var(--navy); }

/* -----------------------------
   FAQ (details)
   ----------------------------- */
details{
  padding: 12px 14px;
  margin: 12px 0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(7,28,56,.06);
}
summary{
  cursor: pointer;
  font-weight: 750;
  color: var(--navy);
}
details p{
  color: var(--blue);
  margin: 10px 0 0;
}

/* -----------------------------
   Forms
   ----------------------------- */
form{ margin-top: 10px; }
label{
  display:block;
  font-weight: 650;
  color: var(--navy);
  margin-top: 12px;
}
input, select, textarea{
  width:100%;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font: inherit;
  color: var(--navy);
  background: rgba(255,255,255,.98);
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: rgba(26,158,158,.55);
  box-shadow: 0 0 0 5px rgba(26,158,158,.14);
}
textarea{ min-height: 120px; resize: vertical; }

.privacy{
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 10px;
}

/* -----------------------------
   Footer
   ----------------------------- */
footer{
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: linear-gradient(180deg, #fff, var(--mist));
}
.footer-grid{
  display:flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
}
.footer-grid strong{ color: var(--navy); }

@media (min-width: 860px){
  .footer-grid{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
  }
}

/* -----------------------------
   Reduced motion
   ----------------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, input, select, textarea, .nav-backdrop{ transition: none !important; }
}