/* ============================================================
   Affectli.com — design tokens (extracted from the live site)
   Fonts: Roboto (body) + Rubik (headings) · WordPress/Elementor parity
   ============================================================ */
:root {
  --navy-900:   #0d184a;  /* headings */
  --navy-header:#121940;  /* header + footer background */
  --navy-deep:  #0a1238;  /* hero gradient bottom */
  --blue-link:  #1248bd;  /* links, LEARN MORE, button text */
  --blue-bright:#1f6fe5;  /* CTA gradient */
  --orange:     #f15a29;  /* hero accent word */
  --ink:        #4a4a4a;  /* body text */
  --ink-soft:   #6b7280;
  --bg:         #ffffff;
  --bg-soft:    #f4f7fb;  /* light section bands */
  --line:       #e6eaf0;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13,24,74,.06), 0 4px 14px rgba(13,24,74,.06);
  --shadow:    0 14px 40px rgba(13,24,74,.12);

  --container: 1180px;
  --serif: 'Rubik', ui-sans-serif, system-ui, sans-serif;
  --sans:  'Roboto', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ---- Reset-ish ---- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4,h5 { font-family: var(--serif); color: var(--navy-900); }

/* ---- Skip link ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 12px; top: 12px; }

/* ---- Cookie bar ---- */
.cookie-bar {
  background: #2b2b2b; color: #e6e6e6; font-size: 13px;
  padding: 10px 0;
}
.cookie-bar .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.cookie-bar p { margin: 0; max-width: 70ch; }
.cookie-bar a { color: #9ec1ff; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  border: 0; padding: 8px 16px; cursor: pointer; text-transform: uppercase;
}
.cookie-accept { background: #4caf50; color: #fff; }
.cookie-decline { background: transparent; color: #e6e6e6; border: 1px solid #6b6b6b !important; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-header);
}
/* Header spans full width: logo flush far-left, nav flush far-right
   (matches affectli.com — not constrained to the 1180px content container). */
.site-header .nav-row { max-width: none; padding: 0 32px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
  color: #fff; font-size: 15px; font-weight: 400; padding: 8px 0; display: inline-block;
}
.primary-nav a:hover { color: #cdd8ff; text-decoration: none; }
.has-sub > a::after { content: " \25BE"; font-size: 10px; opacity: .8; }

/* dropdowns */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 6px 0 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { color: var(--navy-900); padding: 9px 12px; border-radius: 8px; width: 100%; font-size: 14px; }
.submenu a:hover { background: var(--bg-soft); color: var(--blue-link); }

.nav-cta {
  background: var(--blue-link); color: #fff !important; padding: 11px 20px !important;
  border-radius: 0; font-weight: 500;
}
.nav-cta:hover { background: #0e3a9c; color: #fff !important; text-decoration: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; background: transparent;
  border: 1px solid rgba(255,255,255,.3); border-radius: 8px; cursor: pointer; padding: 0;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1;
  padding: 14px 28px; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-link); color: #fff; }
.btn-primary:hover { background: #0e3a9c; color: #fff; }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-pill { border-radius: 100px; background: #fff; color: var(--blue-link); padding: 16px 40px; font-weight: 600; }
.btn-pill:hover { background: #eef3ff; color: var(--blue-link); }

.learn-more {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue-link); font-weight: 600; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase;
}
.learn-more::after { content: "\2192"; font-size: 18px; transition: transform .15s; }
.learn-more:hover { text-decoration: none; }
.learn-more:hover::after { transform: translateX(4px); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 18px; color: var(--ink); max-width: 760px; margin: 0 auto 8px; }

h2.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.25; margin: 0 0 18px; }
.kicker { color: var(--blue-link); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--navy-header) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 56px 0 0; text-align: center;
  border-bottom-left-radius: 64px; overflow: hidden;
}
.hero h1 {
  font-family: var(--sans); font-weight: 300; color: #fff;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin: 0 auto 8px; max-width: none;
}
.hero h1 strong { font-weight: 700; }
.hero h1 .accent { color: var(--orange); font-weight: 700; }
.hero-img { margin: 40px auto 0; max-width: 860px; }
.hero-img img { border-radius: 10px; width: 100%; }
.hero-video {
  margin: 40px auto 0; max-width: 860px;
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* capability cards row */
.capabilities { padding: 56px 0; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cap { text-align: center; }
.cap img { width: 64px; height: 64px; margin: 0 auto 16px; object-fit: contain; }
.cap h3 { font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.cap p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Content blocks
   ============================================================ */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { margin: 0 0 16px; }
.media-center { margin: 36px auto; max-width: 720px; }
.media-center img { width: 100%; border-radius: 10px; }

blockquote.pull {
  font-family: var(--serif); font-weight: 500; color: var(--navy-900);
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; text-align: center;
  max-width: 760px; margin: 8px auto 4px; border: 0; padding: 0;
}
blockquote.pull + cite { display: block; text-align: center; color: var(--ink-soft); font-style: normal; font-size: 15px; }

/* two-column feature row (alternating) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-sm); }
.split h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; margin: 0 0 14px; }
.split ul { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.split ul li { padding-left: 26px; position: relative; }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: rgba(18,72,189,.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%231248bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>");
  background-repeat: no-repeat; background-position: center;
}

/* ============================================================
   Card grids (3-up, features, industries)
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 32px; display: flex; flex-direction: column;
}
.card h3 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; flex: 1; }
.card .learn-more { margin-top: auto; }

/* feature blocks (features page) */
.feature-block { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature-block:last-child { border-bottom: 0; }
.feature-block img { width: 72px; height: 72px; object-fit: contain; }
.feature-block h3 { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.feature-block .tagline { color: var(--ink); margin: 0 0 12px; }
.subfeatures { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.subfeatures li { font-size: 13px; font-weight: 500; color: var(--blue-link); background: rgba(18,72,189,.08); padding: 6px 14px; border-radius: 100px; }

/* industry cards with image */
.ind-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.ind-card img { width: 100%; height: 180px; object-fit: cover; }
.ind-card .ind-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ind-card h3 { font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.ind-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; flex: 1; }

/* partner logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; }
.logo-grid .logo-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 90px; font-weight: 600; color: var(--navy-900); }

/* awards row */
.awards { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.awards img { height: 90px; width: auto; object-fit: contain; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(100deg, var(--blue-bright), var(--blue-link));
  color: #fff; text-align: center; padding: 56px 0;
}
.cta-band h2 { color: #fff; font-weight: 500; font-size: clamp(20px, 2.6vw, 28px); margin: 0 0 24px; }

/* ============================================================
   Forms (static placeholders)
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 36px; max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 500; color: var(--navy-900); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.office { margin-bottom: 28px; }
.office h3 { font-size: 17px; font-weight: 500; margin: 0 0 6px; }
.office p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-header); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo img { height: 30px; margin-bottom: 18px; }
.footer-blurb { font-size: 13px; line-height: 1.6; max-width: 260px; }
.footer-address { font-size: 13px; margin-top: 16px; }
.footer-address strong { color: #fff; font-weight: 500; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; margin: 0 0 16px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { display: inline-flex; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); text-align: center; }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ============================================================
   Floating live-chat widget
   ============================================================ */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 56px; height: 56px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--blue-link); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(13,24,74,.28);
  transition: background .2s, transform .15s;
}
.chat-launcher:hover { background: #0e3a9c; transform: translateY(-1px); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-icon-close { display: none; }
.chat-launcher.open .chat-icon-open { display: none; }
.chat-launcher.open .chat-icon-close { display: block; }

.chat-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 200;
  width: 380px; max-width: calc(100vw - 44px);
  height: 560px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(13,24,74,.35);
  border: 1px solid var(--line);
}
.chat-panel iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero { background: linear-gradient(180deg, var(--navy-header), var(--navy-deep)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { color: #fff; font-family: var(--sans); font-weight: 300; font-size: clamp(28px, 4vw, 40px); margin: 0 auto; max-width: 24ch; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 720px; margin: 14px auto 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--navy-header);
    flex-direction: column; align-items: stretch; padding: 8px 24px 20px; display: none;
    box-shadow: var(--shadow); border-top: 1px solid rgba(255,255,255,.1);
  }
  .primary-nav.open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); margin: 0 0 8px; display: none; }
  .has-sub.open > .submenu { display: block; }
  .submenu a { color: #cdd8ff; }
  .submenu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav-cta { margin-top: 10px; text-align: center; }
}
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .cap-grid, .grid-3, .grid-2, .logo-grid { grid-template-columns: 1fr; }
  .feature-block { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { border-bottom-left-radius: 32px; }
  .cookie-bar .container { flex-direction: column; align-items: flex-start; }
}

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