/* EBC Insights — Global Stylesheet */

:root {
  --blue-dark:   #0d3d6e;
  --blue:        #1b5fa8;
  --blue-mid:    #2e86de;
  --blue-light:  #e8f1fb;
  --accent:      #f59e0b;
  --text:        #1f2937;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --bg-light:    #f8fafc;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(27,95,168,.12);
  --shadow-lg:   0 8px 30px rgba(27,95,168,.18);
  --nav-h:       68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--muted); }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }
strong { color: var(--text); }

/* ── Layout helpers ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-light); }

.text-center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 680px; margin: 0 auto; }

/* ── Badges / labels ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 12px;
}

/* ── Section heading block ── */
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-top: 8px; }
.section-header p  { margin-top: 12px; font-size: 1.05rem; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 36px; display: block; }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: .9rem; font-weight: 600; color: var(--text);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta {
  display: flex; align-items: center; gap: 16px;
}
.nav-phone {
  font-size: .88rem; font-weight: 600; color: var(--blue-dark);
  white-space: nowrap;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: .3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: var(--blue-light); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-banner.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
}
.stat-item { }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon img { width: 28px; height: 28px; object-fit: contain; filter: invert(31%) sepia(61%) saturate(578%) hue-rotate(185deg) brightness(88%) contrast(95%); }
.card-icon svg { width: 26px; height: 26px; fill: var(--blue); }
.card h3 { margin-bottom: 10px; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

/* ── Two-column split ── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split-img img {
  width: 100%; border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.split-text h2 { margin-bottom: 16px; }
.split-text p { margin-bottom: 20px; }
.split.reverse .split-img { order: 2; }
.split.reverse .split-text { order: 1; }

/* ── Feature list ── */
.feature-list { list-style: none; margin-top: 16px; }
.feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem; color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.feature-list .check svg { width: 12px; height: 12px; fill: var(--blue); }

/* ── Product cards ── */
.product-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow .25s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 28px 24px 20px;
  color: var(--white);
}
.product-card-header h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 6px; }
.product-card-header p { color: rgba(255,255,255,.8); font-size: .9rem; }
.product-card-body { padding: 24px; }
.product-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(255,255,255,.2);
  color: var(--white); margin-bottom: 10px;
}

/* ── Logo strip (clients / integrations) ── */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  align-items: center; justify-content: center;
}
.logo-strip img {
  height: 40px; object-fit: contain;
  filter: grayscale(100%) opacity(.6);
  transition: filter .2s;
}
.logo-strip img:hover { filter: grayscale(0%) opacity(1); }

/* ── Analytics feature blocks ── */
.analytics-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0;
}
.analytics-block + .analytics-block { border-top: 1px solid var(--border); }
.analytics-block.reverse .analytics-img { order: 2; }
.analytics-block.reverse .analytics-text { order: 1; }
.analytics-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.analytics-text h3 { font-size: 1.5rem; margin-bottom: 12px; }
.analytics-text p { margin-bottom: 16px; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left;
  background: var(--white); border: none; cursor: pointer;
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 600; color: var(--text);
  transition: background .15s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .chevron {
  width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s;
  color: var(--blue);
}
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 18px;
}
.faq-answer p { color: var(--muted); font-size: .97rem; }

/* ── Integration grid ── */
.int-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.int-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.int-card img { height: 48px; object-fit: contain; }
.int-card h4 { color: var(--blue-dark); font-size: .95rem; }
.int-card p { font-size: .83rem; }

/* ── UC Explainer callout ── */
.uc-pillar {
  padding: 28px;
  border-radius: 12px;
  border-top: 4px solid var(--blue);
  background: var(--white);
  box-shadow: var(--shadow);
}
.uc-pillar h3 { margin: 12px 0 8px; }

/* ── Highlight bar ── */
.highlight-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.highlight-bar h2 { color: var(--white); margin-bottom: 8px; }
.highlight-bar p  { color: rgba(255,255,255,.8); margin-bottom: 24px; }

/* ── Footer ── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand img { height: 34px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 64px 0 56px;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .82rem; color: rgba(255,255,255,.6);
  margin-bottom: 16px; display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: .5; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split   { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-img,
  .split.reverse .split-text { order: unset; }
  .analytics-block { grid-template-columns: 1fr; gap: 28px; }
  .analytics-block.reverse .analytics-img,
  .analytics-block.reverse .analytics-text { order: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 56px 0; }
}

/* Mobile nav open state */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  gap: 2px;
  z-index: 99;
}
.nav-links.mobile-open a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.nav-links.mobile-open li:last-child a { border-bottom: none; }

/* ── Stats bar ── */
.stats-bar {
  background: var(--blue-dark);
  padding: 32px 0;
}
.stats-bar-inner {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.stats-bar .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--white); }
.stats-bar .stat-label { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 2px; }
.stats-bar .stat-item { text-align: center; }

/* ── Frustrations section ── */
.frustration-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px; border-radius: 12px;
  border-left: 4px solid var(--blue);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.frustration-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.frustration-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-light); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.frustration-icon svg { width: 24px; height: 24px; stroke: var(--blue); }
.frustration-card h3 { margin-bottom: 6px; font-size: 1.05rem; }

/* ── Offer cards ── */
.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.offer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.offer-card .offer-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.offer-card .offer-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-card h3 { font-size: 1rem; margin-bottom: 8px; }

/* ── Who we serve ── */
.serve-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  background: var(--white);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.serve-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--blue);
}
.serve-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.serve-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.serve-card h3 { font-size: 1rem; margin-bottom: 6px; }

/* ── About section ── */
.about-stat {
  text-align: center; padding: 24px 16px;
}
.about-stat-num {
  font-size: 2.8rem; font-weight: 800;
  color: var(--blue); line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: .9rem; color: var(--muted); font-weight: 500;
}
