/* SureCode Technologies - site styles. Brand: SureCode red + navy (from logo). */
:root {
  --navy-900: #0b0d4a;
  --navy-800: #13137a;
  --navy-700: #1f2a8c;
  --navy-600: #2e3ba3;
  --navy-100: #e8eaf6;
  --navy-50:  #f4f5fb;
  --red-600:  #d7141a;
  --red-700:  #b10f14;
  --gold:     #e7c74a;
  --ink:      #1d2133;
  --ink-soft: #4a5068;
  --line:     #dde0ea;
  --white:    #ffffff;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11, 13, 74, .06), 0 6px 20px rgba(11, 13, 74, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Eyebrow */
.eyebrow { display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-600); margin-bottom: .9rem; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }

/* Utility bar */
.utility { background: var(--navy-900); color: #c9cce6; font-size: .85rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--gold); }
.utility .contact-inline { display: flex; gap: 22px; flex-wrap: wrap; }

/* Header / nav */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; position: relative; }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.logo .mark { font-family: "Arial Black", Arial, Helvetica, sans-serif; font-weight: 900; font-size: 30px; letter-spacing: -.02em; }
.logo .mark .sure { color: var(--red-600); }
.logo .mark .code { color: var(--navy-800); }
.logo .sub { font-family: Arial, Helvetica, sans-serif; font-size: 10.5px; letter-spacing: .42em; color: var(--navy-800); margin-top: 3px; padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy-700); }
.nav a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--red-600); }
.nav .btn { margin-left: 10px; border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .01em; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary, .btn-primary:hover { color: #fff; }
.btn-primary { background: var(--red-600); }
.btn-primary:hover { background: var(--red-700); }
.btn-navy, .btn-navy:hover { color: #fff; }
.btn-navy { background: var(--navy-800); }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; padding: 10px 20px; }

/* Hero (grid + ellipse motif echoes the capabilities brochure cover) */
.hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 85% 40%, rgba(46,59,163,.55), transparent 70%), linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 55%, #2a2f8f 100%); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px; }
.hero .ellipses { position: absolute; right: -200px; top: -40px; width: 960px; height: 640px; pointer-events: none; opacity: .55; }
.hero .wrap { position: relative; padding-top: 104px; padding-bottom: 112px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { font-size: 1.2rem; color: #d9dcf2; max-width: 56ch; margin-bottom: 2rem; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.page-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 70%, #2a2f8f 100%); }
.page-hero .wrap { position: relative; padding-top: 68px; padding-bottom: 68px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #d9dcf2; font-size: 1.15rem; max-width: 62ch; margin: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--navy-50); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy-800); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; font-size: .95rem; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.pillar { padding-top: 22px; border-top: 2px solid var(--red-600); }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--ink-soft); margin: 0; }

/* Stats band */
.stats { background: var(--navy-900); color: #fff; padding: 64px 0; }
.stats .grid { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: #fff; line-height: 1; }
.stat .num small { font-size: .55em; color: var(--gold); }
.stat .label { color: #c9cce6; font-size: .95rem; margin-top: 10px; }

/* Client strip */
.clients { border-bottom: 1px solid var(--line); }
.clients .wrap { padding-top: 34px; padding-bottom: 34px; }
.clients p.title { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 18px; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.client-list li { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: 1.05rem; opacity: .85; }

/* Mission quote */
.mission { font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.45; color: var(--navy-900); border-left: 4px solid var(--red-600); padding: 6px 0 6px 28px; margin: 0; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--red-600); border-bottom: 2px solid var(--red-600); transform: rotate(-45deg); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--navy-50); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .88rem; }
.section-alt .tag-list li { background: #fff; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 76px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 32px; padding-bottom: 28px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year { font-family: var(--font-head); font-weight: 600; color: var(--red-600); font-size: 1.15rem; }
.timeline li::after { content: ""; position: absolute; left: 71px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-800); }
.timeline h4 { margin: 0 0 .25em; color: var(--navy-900); }
.timeline p { margin: 0; color: var(--ink-soft); }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
.service .icon { width: 64px; height: 64px; margin: 0; }
.service .icon svg { width: 30px; height: 30px; }
.service h2 { font-size: 1.6rem; margin-bottom: .4em; }
.service .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 10px; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button:hover { border-color: var(--navy-700); }
.filters button[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.project { display: flex; flex-direction: column; }
.project .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-600); margin-bottom: 10px; }
.project .meta .when { color: var(--ink-soft); letter-spacing: .02em; font-weight: 600; white-space: nowrap; text-transform: none; font-size: .85rem; }
.project h3 { font-size: 1.22rem; }
.project .client { font-weight: 600; color: var(--navy-800); margin-bottom: .6em; }
.project .result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink); }
.project .result strong { color: var(--navy-800); }
.project[hidden] { display: none; }

/* Ratings table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.ratings { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.ratings th, table.ratings td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.ratings thead th { background: var(--navy-800); color: #fff; font-weight: 600; }
table.ratings tbody th { font-weight: 600; color: var(--navy-900); }
table.ratings tbody tr:nth-child(even) { background: var(--navy-50); }
table.ratings tbody tr:last-child th, table.ratings tbody tr:last-child td { border-bottom: 0; }
.r-out { color: var(--navy-800); font-weight: 700; }
.r-exc { color: var(--ink-soft); }
.note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }

/* Leadership */
.leader { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.leader:first-child { padding-top: 0; }
.leader:last-child { border-bottom: 0; padding-bottom: 0; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 3.4rem; font-weight: 600; position: relative; overflow: hidden; }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red-600); }
.leader .title { color: var(--red-600); font-weight: 700; letter-spacing: .04em; margin-bottom: 1.1em; }
.leader h2 { margin-bottom: .15em; }
.creds { margin-top: 1.4em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.contact-item .icon { margin: 0; }
.contact-item h4 { margin: 4px 0 .25em; }
.contact-item p { margin: 0; color: var(--ink-soft); }
.contact-item a { font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 26px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.steps h4 { margin: 6px 0 .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* CTA band */
.cta { background: linear-gradient(115deg, var(--navy-800), var(--navy-900)); color: #fff; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 .25em; }
.cta p { color: #d9dcf2; margin: 0; font-size: 1.08rem; max-width: 60ch; }

/* Footer */
.site-footer { background: #080a36; color: #b4b8d8; font-size: .93rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: #dfe1f3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .logo .mark .code { color: #fff; }
.site-footer .logo .sub { color: #dfe1f3; }
.site-footer .about { margin-top: 18px; max-width: 34ch; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red-600); }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .leader { grid-template-columns: 1fr; gap: 24px; }
  .leader .portrait { max-width: 180px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .utility .hide-sm { display: none; }
  .site-header .wrap { min-height: 70px; }
  .logo .mark { font-size: 25px; }
  .logo .sub { font-size: 9px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service .cols { grid-template-columns: 1fr; }
  .timeline::before { left: 56px; }
  .timeline li { grid-template-columns: 56px 1fr; gap: 26px; }
  .timeline li::after { left: 51px; }
}

/* Hero two-column layout with "at a glance" panel */
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.glance { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 30px 32px; backdrop-filter: blur(2px); }
.glance h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1em; padding-bottom: .8em; border-bottom: 1px solid rgba(255,255,255,.18); }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { display: flex; gap: 14px; padding: 9px 0; color: #e6e8f7; font-size: .98rem; line-height: 1.45; }
.glance li strong { color: var(--gold); font-family: var(--font-head); font-weight: 600; min-width: 64px; }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .glance { max-width: 520px; } }

/* Client logo wall */
.client-group + .client-group { margin-top: 48px; }
.client-group h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo-slot { display: grid; place-items: center; color: var(--navy-800); }
.logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-slot.seal { width: 92px; height: 92px; border-radius: 50%; border: 3px double var(--navy-800); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; background: var(--navy-50); }
.logo-slot.seal:has(img) { border: 0; background: none; }
.logo-slot.mark { width: 100%; height: 92px; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.logo-tile .name { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.logo-tile .sub { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; margin-top: 2px; }
@media (max-width: 640px) { .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; } .logo-slot.seal { width: 76px; height: 76px; font-size: 1rem; } .logo-slot.mark { height: 76px; font-size: 1.15rem; } }
