/* ==========================================================================
   Credit Interlink — Shared Stylesheet
   --------------------------------------------------------------------------
   BRAND SWAP GUIDE:
   Everything brand-specific lives in the :root variables below. To apply the
   official style guide, change ONLY these values (and drop the real logo into
   /img/logo.svg or /img/logo.png). No other edits needed.
   ========================================================================== */

:root {
  /* ---- BRAND COLORS — Credit Interlink IQ ONE brand guide (Sep 2026) ----- */
  --color-primary:        #071D3B;   /* Interlink Navy — headers, primary     */
  --color-primary-dark:   #04122a;   /* darker navy — footer                  */
  --color-primary-light:  #147FEA;   /* Signal Blue — gradients, accents      */
  --color-accent:         #147FEA;   /* Signal Blue — CTAs, links             */
  --color-accent-dark:    #0f66bd;   /* Signal Blue hover                     */
  --color-sky:            #3DB7F2;   /* Connection Sky — highlights           */
  --color-violet:         #6126D9;   /* Intelligence Violet — intelligence     */
  --color-violet-dark:    #4d1eae;   /* Intelligence Violet hover              */
  --color-green:          #278A55;   /* Confidence Green — trust/security      */
  --color-green-dark:     #1f7146;   /* Confidence Green hover                 */

  /* ---- NEUTRALS --------------------------------------------------------- */
  --color-ink:            #1a2733;   /* body text                             */
  --color-muted:          #566575;   /* secondary text                        */
  --color-line:           #dfe8f2;   /* borders / dividers                    */
  --color-surface:        #ffffff;   /* cards / panels                        */
  --color-bg:             #ffffff;   /* page background                       */
  --color-bg-alt:         #F3F7FC;   /* Cloud — alternating section bg         */

  /* ---- TYPOGRAPHY — Aptos (M365) → humanist sans on web ----------------- */
  --font-heading: "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* ---- SCALE / LAYOUT --------------------------------------------------- */
  --maxw: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(11, 46, 79, .08), 0 1px 2px rgba(11, 46, 79, .06);
  --shadow-md: 0 8px 24px rgba(11, 46, 79, .10);
  --shadow-lg: 0 18px 48px rgba(11, 46, 79, .16);
  --space: 1rem;
  --header-h: 76px;
  --transition: .2s ease;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: 56px 0; }
.text-center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--color-muted); max-width: 60ch; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: .75rem;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin-inline: auto; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  font-family: var(--font-heading); line-height: 1;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: #eef4fa; color: var(--color-primary); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--color-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 44px; width: auto; }
.brand__text { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-primary); letter-spacing: -.3px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--color-ink); font-weight: 500; padding: .55rem .85rem; border-radius: var(--radius-sm);
  font-size: .98rem;
}
.nav__links a:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.nav__links a.is-active { color: var(--color-accent); }
.nav__cta { margin-left: .5rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px auto; transition: var(--transition); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(61,183,242,.28), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__panel {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px);
}
.hero--sub .container { padding-top: 64px; padding-bottom: 64px; }
.hero--sub p { margin: 0 auto; }
.hero--sub .hero__grid { grid-template-columns: 1fr; text-align: center; }

/* ---- Cards / grids ----------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(20,127,234,.10); color: var(--color-accent); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .98rem; }

/* ---- Feature list (checkmarks) ---------------------------------------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 34px; color: var(--color-ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(20,127,234,.10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23147FEA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---- Stats ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--color-accent); line-height: 1; }
.stat__label { color: var(--color-muted); font-size: .95rem; margin-top: 6px; }

/* ---- Split (image + text) --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--color-bg-alt); aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Show a full graphic (e.g. the brand hero image) without cropping.
   Let the card take the image's natural ratio so it fills edge-to-edge. */
.media-frame--contain { background: var(--color-primary); aspect-ratio: auto; padding: 0; }
.media-frame--contain img { object-fit: contain; height: auto; }
/* Frameless treatment — no card bg, no shadow, no rounding.
   Use when the image (SVG lockup, symbol) already has its own visual identity
   and would otherwise sit inside a visible rectangular card. */
.media-frame--bare {
  background: transparent; box-shadow: none; overflow: visible;
  border-radius: 0; aspect-ratio: auto; padding: 0;
}
.media-frame--bare img { object-fit: contain; height: auto; width: 100%; }
/* Square symbol treatment — for the I-1 mark. Drops the frame shadow onto
   the symbol itself so its rounded corners are respected. */
.media-frame--symbol {
  background: transparent; box-shadow: none; overflow: visible;
  border-radius: 0; aspect-ratio: 1 / 1; padding: 0;
  max-width: 420px; margin: 0 auto;
}
.media-frame--symbol img {
  object-fit: contain; height: auto; width: 100%;
  filter: drop-shadow(0 18px 48px rgba(11, 46, 79, .18));
}

/* ---- Team -------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { text-align: center; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); }
.team-card__photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 2rem;
  font-family: var(--font-heading);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-card__role { color: var(--color-accent); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.team-card__bio { color: var(--color-muted); font-size: .93rem; margin: 0; }

/* ---- Quote / CTA band -------------------------------------------------- */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote blockquote { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-primary); line-height: 1.35; margin: 0 0 1rem; }
.quote cite { color: var(--color-muted); font-style: normal; font-weight: 600; }
.cta-band { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); color: #fff; text-align: center; border-radius: var(--radius); padding: 56px 32px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 1.5rem; }

/* ---- Contact ----------------------------------------------------------- */
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item__icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(20,127,234,.10); color: var(--color-accent); display: grid; place-items: center; }
.contact-item h4 { margin: 0 0 2px; color: var(--color-primary); font-family: var(--font-heading); }
.contact-item p { margin: 0; color: var(--color-muted); }

/* ---- Legal / prose pages ---------------------------------------------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; color: var(--color-primary-light); }
.prose p, .prose li { color: var(--color-ink); }
.prose ul { padding-left: 1.3rem; }
.prose .updated { color: var(--color-muted); font-size: .95rem; margin-bottom: 2rem; }

/* ---- News -------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent)); }
.post-card__body { padding: 24px; }
.post-card__meta { font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--color-accent); font-weight: 700; margin-bottom: 8px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card p { color: var(--color-muted); font-size: .95rem; margin: 0; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__brand img { height: 44px; margin-bottom: 14px; }
.footer__brand p { font-size: .95rem; max-width: 30ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer__bottom a { color: rgba(255,255,255,.75); }

/* ---- Utilities --------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hide-mobile { }

/* ---- Co-brand + brand family ------------------------------------------ */
.card__icon--green { background: rgba(39,138,85,.12); color: var(--color-green); }
.card__icon--violet { background: rgba(97,38,217,.10); color: var(--color-violet); }
.btn--green { background: var(--color-green); color: #fff; }
.btn--green:hover { background: var(--color-green-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
/* Branded module icons rendered from PNG assets — sit inside .card__icon */
.card__icon--asset { background: transparent; padding: 0; width: 56px; height: 56px; }
.card__icon--asset img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cobrand-chip {
  display: inline-flex; align-items: center; gap: 10px; background: #fff;
  border-radius: 999px; padding: 8px 16px 8px 14px; box-shadow: var(--shadow-sm);
}
.cobrand-chip img { height: 26px; width: auto; }
.cobrand-chip span { color: var(--color-primary); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.brand-family {
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 32px 40px; box-shadow: var(--shadow-sm);
}
.brand-family img { height: 46px; width: auto; }
.brand-family .divider { width: 1px; height: 46px; background: var(--color-line); }
.brand-family__note { color: var(--color-muted); font-size: .95rem; max-width: 34ch; }

/* ---- Stat / at-a-glance panel ----------------------------------------- */
.stat-panel {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md);
}
.stat-panel h3 { color: #fff; margin-bottom: 8px; }
.stat-panel > p { color: rgba(255,255,255,.75); margin: 0 0 18px; font-size: .95rem; }
.stat-panel ul { list-style: none; margin: 0; padding: 0; }
.stat-panel li {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14);
}
.stat-panel li:first-of-type { border-top: 0; }
.stat-panel li span { color: rgba(255,255,255,.7); font-size: .92rem; flex: none; }
.stat-panel li strong { color: #fff; font-weight: 600; text-align: right; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 780px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--color-line); padding: 12px; gap: 4px;
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .25s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .8rem 1rem; }
  .nav__cta { margin: 6px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .split, .split--rev .split__media { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
