/* Xelleron - New Site Stylesheet */
/* Lean rebuild: same brand palette as the current site, fewer components */

:root {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --primary-tint: #FEF3C7;
  --secondary: #0EA5E9;
  --secondary-dark: #0284C7;

  --text: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;

  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-dark: #0F172A;
  --border: #E2E8F0;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1160px;
  --gutter: 1.25rem;
  --radius: 0.75rem;
  --shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--secondary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p + p { margin-top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.lead { font-size: 1.2rem; color: var(--text-body); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-menu a:not(.btn) { color: var(--text-body); font-weight: 500; }
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: var(--primary-dark); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 0.5rem; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--surface-dark); color: #CBD5E1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Hero ===== */
.hero { padding: 4.5rem 0 4rem; background: linear-gradient(180deg, #FFFBEB 0%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-image { border-radius: var(--radius); box-shadow: var(--shadow); }
.page-hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, #FFFBEB 0%, var(--surface) 100%); }
.page-hero .lead { max-width: 760px; margin-top: 1rem; }

/* ===== Credentials strip ===== */
.credentials { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.credentials ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.credentials li { display: flex; align-items: center; gap: 0.5rem; }
.credentials li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ===== Two-column text ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ===== Cards & grids ===== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { font-size: 0.97rem; }
.card-accent { border-top: 4px solid var(--primary); }

.pain-list { list-style: none; display: grid; gap: 0.75rem; }
.pain-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-weight: 600;
}
.pain-list li span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.95rem; }

.check-list { list-style: none; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 0.55rem;
  border-left: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}

/* ===== Industry accordions (home) ===== */
.industries { display: grid; gap: 1rem; }
.industry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.industry[open] { box-shadow: var(--shadow); border-color: var(--primary); }
.industry summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
}
.industry summary::-webkit-details-marker { display: none; }
.industry-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary-dark);
}
.industry summary h3 { margin: 0; }
.industry summary p { color: var(--text-muted); margin: 0.15rem 0 0; }
.industry-chevron { transition: transform 0.25s; color: var(--text-muted); }
.industry[open] .industry-chevron { transform: rotate(180deg); }
.industry-body { padding: 0 1.5rem 1.5rem calc(1.5rem + 52px + 1.25rem); }
.industry-body .check-list { margin: 0.5rem 0 1.25rem; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.5rem; }
.industry-body a.more { font-weight: 600; }

/* ===== Steps ===== */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #E2E8F0;
  font-weight: 500;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ===== Client carousel (home) ===== */
/* Static wrapped list until site.js clones each row and adds .is-animated */
.clients-marquee {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2.25rem;
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.clients-marquee::before { top: 0; }
.clients-marquee::after { bottom: 0; }
.clients-marquee-track { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 0; }
.clients-marquee-track li {
  flex: 0 0 auto;
  margin-right: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.875rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.clients-marquee.is-animated .clients-marquee-track {
  flex-wrap: nowrap;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}
.clients-marquee.is-animated .clients-marquee-track-reverse { animation-direction: reverse; animation-duration: 46s; }
.clients-marquee.is-animated:hover .clients-marquee-track { animation-play-state: paused; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Badges / panel ===== */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.badges img { height: 90px; width: auto; }
.panel-card { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.panel-card img { width: 220px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--text); }

/* ===== Case studies ===== */
.case {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.case + .case { margin-top: 1.5rem; }
.case img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; border-radius: 0.5rem; }
.case h3 { font-size: 1.5rem; }
.case h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-dark); margin: 1.25rem 0 0.6rem; }
.case .check-list { font-size: 0.97rem; }
.case-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; }
.case.compact { grid-template-columns: 1fr; }

blockquote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary-tint);
  border-radius: 0.5rem;
  color: var(--text);
  font-style: italic;
}
blockquote cite { display: block; margin-top: 0.75rem; font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--text-body); }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta .lead { color: #CBD5E1; max-width: 640px; margin: 0 auto; }
.cta .btn-row { justify-content: center; }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cta .btn-outline:hover { border-color: #fff; }

/* ===== Case study detail pages ===== */
.cs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.cs-main > img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.cs-main h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.cs-main h3 { margin-top: 1.75rem; }
.cs-main > ul { margin: 1rem 0 1rem 1.25rem; display: grid; gap: 0.4rem; }
.cs-sidebar { position: sticky; top: 92px; display: grid; gap: 1.25rem; }
.cs-details dl { display: grid; gap: 0.9rem; margin-top: 1rem; }
.cs-details dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.cs-details dd { color: var(--text); font-weight: 500; }
.cs-cta { background: var(--surface-dark); border-color: var(--surface-dark); }
.cs-cta h3 { color: #fff; }
.cs-cta p { color: #CBD5E1; margin-bottom: 1.25rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.feature-grid .card { padding: 1.25rem; }
.feature-grid h4 { color: var(--text); margin-bottom: 0.35rem; }
.feature-grid p { font-size: 0.93rem; }

.accreditation { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2.5rem; background: var(--surface-alt); }
.accreditation img { max-width: 160px; }
.accreditation > div { flex: 1 1 280px; }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text-body); transition: box-shadow 0.2s, transform 0.2s; }
.related a:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.related img { width: 100%; height: 150px; object-fit: cover; }
.related h3 { font-size: 1.05rem; margin: 1rem 1.1rem 0.25rem; }
.related p { font-size: 0.9rem; margin: 0 1.1rem 1.1rem; }

/* ===== Scheduling page ===== */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.chips li { padding: 0.5rem 0.85rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); font-weight: 600; font-size: 0.92rem; color: var(--text); }

.numbered { list-style: none; counter-reset: num; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.numbered li { counter-increment: num; }
.numbered li::before {
  content: counter(num);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.video-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.video-link, .video-embed { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-link img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.2s; }
.video-link:hover img { opacity: 1; }
.video-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 36px no-repeat;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* ===== Accreditation hover cards ===== */
.accred { position: relative; display: inline-block; }
.accred-trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline dotted var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.accred-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.accred-trigger-image { display: block; text-decoration: none; }
.accred-pop {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.35);
  text-align: left;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: var(--text-body);
  white-space: normal;
  letter-spacing: normal;
  text-transform: none;
}
/* invisible bridge so the pointer can move from trigger to card */
.accred-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.accred-above .accred-pop { top: auto; bottom: calc(100% + 12px); }
.accred-above .accred-pop::before { top: auto; bottom: -14px; }
.accred.open .accred-pop,
.accred:focus-within .accred-pop { display: block; }
@media (hover: hover) {
  .accred:hover .accred-pop { display: block; }
}
.accred-pop img { height: 56px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 0.75rem; }
.accred-title { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 0.35rem; }
.accred-subtitle { display: block; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.accred-text { display: block; margin-top: 0.5rem; }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.contact-details { display: grid; gap: 1rem; }
.contact-details p { margin-top: 0; }
.contact-phone { font-size: 1.25rem; font-weight: 700; }

/* ===== Long-form text (privacy) ===== */
.prose > * { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.prose ul { margin: 1rem 0 1rem 1.5rem; display: grid; gap: 0.35rem; }
.prose address { font-style: normal; margin: 1rem 0; color: var(--text); }

/* ===== Footer ===== */
.footer { background: var(--surface-dark); color: #94A3B8; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 2.5rem 0; font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer a { color: #E2E8F0; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { display: inline-flex; color: #94A3B8; transition: color 0.2s; }
.footer-social a:hover { color: var(--primary); }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .cs-layout, .video-feature { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; }
  .related { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case img { max-height: 240px; }
}

@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: 0.75rem 0; }
  .nav-menu .btn { margin-top: 0.5rem; justify-content: center; width: 100%; }
  .grid-2, .grid-3, .grid-4, .steps, .numbered, .related { grid-template-columns: 1fr; }
  .industry summary { grid-template-columns: 1fr auto; padding: 1.25rem; }
  .industry-icon { display: none; }
  .industry-body { padding: 0 1.25rem 1.25rem; }
  .industry-body .check-list { grid-template-columns: 1fr; }
  .panel-card { grid-template-columns: 1fr; }
  .badges img { height: 70px; }
  .clients-marquee { padding: 1.5rem; }
}
