/* ============================================================
   Cadenza Technology — style.css v2
   Brand Colors:
     Logo:   Blue #003398 / Green #46CE0C
     Brand:  Navy #1B2A4A / Teal #0D7377 / Orange #D94F00
   ============================================================ */

:root {
  /* Logo colors (primary UI) */
  --brand-blue:  #003398;
  --brand-green: #46CE0C;

  /* Extended brand palette */
  --brand-navy:   #1B2A4A;
  --brand-teal:   #0D7377;
  --brand-orange: #D94F00;

  /* Neutrals */
  --ink:    #0b1220;
  --slate:  #0f2036;
  --muted:  #55657a;
  --bg:     #f4f7fc;
  --line:   #e3ebf6;
  --card:   #ffffff;
  --shadow: 0 24px 80px rgba(9,18,32,.14);
  --radius: 18px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--brand-blue); }
a:hover { color: #002a7a; }

/* ---- Navbar ---- */
.navbar {
  background: rgba(244,247,252,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227,235,246,.95);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}

.brand-lockup img {
  height: 72px;
  width: auto;
}

@media (min-width: 992px) {
  .brand-lockup img { height: 84px; }
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -.01em;
  font-size: 1.0rem;
  line-height: 1.1;
}

.navbar .nav-link {
  font-weight: 700;
  color: rgba(16,31,51,.86);
}

.navbar .nav-link:hover { color: var(--brand-blue); }
.navbar .nav-link.active { color: var(--brand-blue); font-weight: 900; }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  font-weight: 800;
  border-radius: 999px;
  padding: .78rem 1.15rem;
}
.btn-primary:hover { background: #002a7a; border-color: #002a7a; }

.btn-outline-primary {
  border-color: rgba(0,51,152,.32);
  color: var(--brand-blue);
  font-weight: 800;
  border-radius: 999px;
  padding: .78rem 1.15rem;
  background: #fff;
}
.btn-outline-primary:hover {
  background: rgba(0,51,152,.06);
  border-color: rgba(0,51,152,.45);
}

.btn-accent {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #061204;
  font-weight: 800;
  border-radius: 999px;
  padding: .78rem 1.15rem;
}
.btn-accent:hover { filter: brightness(.95); color: #061204; }

/* ---- Hero ---- */
.hero {
  padding: 126px 0 86px;
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(70,206,12,.12), transparent 58%),
    radial-gradient(900px 520px at 92% 12%, rgba(0,51,152,.13), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(0,51,152,.14);
  background: rgba(0,51,152,.06);
  color: rgba(16,31,51,.90);
  border-radius: 999px;
  padding: .52rem .9rem;
  font-weight: 800;
  font-size: .95rem;
}

.hero h1 {
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--slate);
  font-size: clamp(2.2rem, 3.7vw, 3.6rem);
  margin-top: 14px;
}

.hero .lead {
  max-width: 76ch;
  color: rgba(16,31,51,.82);
  font-size: 1.16rem;
}

/* ---- Sections ---- */
.section { padding: 92px 0; }

.band {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(0,51,152,.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 78%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- Cards ---- */
.cardx {
  background: var(--card);
  border: 1px solid rgba(227,235,246,.95);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 16px 64px rgba(9,18,32,.07);
}
.cardx .card-body { padding: 1.5rem; }

.hero-panel {
  background:
    radial-gradient(900px 520px at 70% 0%, rgba(0,51,152,.10), transparent 60%),
    radial-gradient(900px 520px at 25% 15%, rgba(70,206,12,.10), transparent 60%),
    rgba(255,255,255,.92);
  border: 1px solid rgba(227,235,246,.95);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

/* ---- Metrics ---- */
.metric {
  border-radius: 16px;
  border: 1px solid rgba(227,235,246,.95);
  background: #fff;
  padding: 14px;
}
.metric .n {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 1.55rem;
  color: var(--slate);
}
.metric .t {
  margin-top: 2px;
  color: rgba(85,101,122,.92);
  font-weight: 700;
  font-size: .92rem;
}

/* ---- Trust chips ---- */
.trustbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.trustchip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(227,235,246,.95);
  background: rgba(255,255,255,.88);
  color: rgba(16,31,51,.88);
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(9,18,32,.06);
}

/* ---- Typography helpers ---- */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

h2 {
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--slate);
}

.subtext {
  color: rgba(85,101,122,.94);
  max-width: 92ch;
  font-size: 1.05rem;
}

/* ---- Checklists ---- */
.list-check { list-style: none; padding-left: 0; margin: 0; }
.list-check li {
  margin-bottom: .78rem;
  color: rgba(16,31,51,.88);
  font-weight: 600;
}
.list-check li::before {
  content: "\2713";
  display: inline-block;
  width: 1.35rem;
  color: var(--brand-green);
  font-weight: 900;
}

/* ---- Case study ---- */
.case { border-left: 4px solid rgba(70,206,12,.55); padding-left: 14px; }
.case .k { font-weight: 800; color: var(--slate); }
.case .p { color: rgba(85,101,122,.92); }

/* ---- Page hero (sub-pages) ---- */
.page-hero {
  padding: 124px 0 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 74%);
}

/* ---- Forms ---- */
.form-control, .form-select {
  border-radius: 14px;
  border-color: rgba(227,235,246,.95);
}
.form-control:focus, .form-select:focus {
  border-color: rgba(0,51,152,.38);
  box-shadow: 0 0 0 .2rem rgba(0,51,152,.10);
}

/* ---- Footer ---- */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

/* ---- Smooth scroll offset for fixed navbar ---- */
:target {
  scroll-margin-top: 100px;
}
