/*
Theme Name: Intalliux
Theme URI: https://intalliux.com
Author: Intalliux
Author URI: https://intalliux.com
Description: Custom WordPress theme for Intalliux, an automation solutions agency that designs and implements CRM setup, lead-routing, and follow-up automation for sales teams (using third-party platforms, not a proprietary product). Converted from static HTML/CSS/JS into a fully dynamic, template-driven WordPress theme.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intalliux
*/

/* =========================================================
   INTALLIUX — Design Tokens & Base Styles
   (ported unchanged from the original static site)
   ========================================================= */
:root{
  /* Color */
  --navy: #0A1E42;
  --navy-2: #0F2A5C;
  --blue: #1B4FD8;
  --blue-light: #4A78F0;
  --cyan: #1FD1C4;
  --cyan-dark: #14A99F;
  --bg: #FFFFFF;
  --bg-alt: #F2F7FD;
  --bg-navy: #081633;
  --text: #101827;
  --text-muted: #57617A;
  --text-soft: #7C8598;
  --border: #E3E9F4;
  --border-soft: #EEF2FA;
  --white: #FFFFFF;
  --success: #1FA971;

  --grad-btn: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #123A7A 100%);
  --grad-text: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);

  /* Type */
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(10, 30, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 30, 66, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 30, 66, 0.14);
  --shadow-navy: 0 24px 60px rgba(6, 16, 40, 0.35);

  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
svg{ max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1{ font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
h2{ font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em 0; color: var(--text-muted); }

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

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: rgba(31,209,196,.1);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:'';
  width:6px; height:6px; border-radius:50%;
  background: var(--cyan);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--grad-btn);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(27,79,216,.28);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27,79,216,.36); }
.btn-secondary{
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover{ border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost-light{
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost-light:hover{ background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-block{ width:100%; }
.btn-sm{ padding: 10px 18px; font-size: .88rem; }

/* ---------- Nav ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 500;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.nav-logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-logo img{ height: 30px; width:auto; }
.nav-links{
  display:flex;
  align-items:center;
  gap: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a{
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-links a:hover{ color: var(--blue); }
.nav-links a.active{ color: var(--blue); }
.nav-links a.active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-4px;
  height:2px;
  background: var(--grad-btn);
  border-radius: 2px;
}
.nav-actions{ display:flex; align-items:center; gap: 14px; flex-shrink:0; }
.nav-toggle{
  display:none;
  background:none; border:none;
  width: 40px; height: 40px;
  align-items:center; justify-content:center;
  flex-direction: column; gap:5px;
}
.nav-toggle span{
  display:block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-panel{
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 82vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -20px 0 50px rgba(10,30,66,.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 900;
  padding: 26px 26px;
  display:flex; flex-direction:column; gap: 26px;
  overflow-y:auto;
}
.mobile-panel.open{ transform: translateX(0); }
.mobile-panel a{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-panel a.active{ color: var(--blue); }
.mobile-overlay{
  position: fixed; inset:0; background: rgba(8,15,35,.45);
  opacity:0; visibility:hidden; transition: opacity .3s ease, visibility .3s ease;
  z-index: 800;
}
.mobile-overlay.open{ opacity:1; visibility:visible; }
.mobile-close{ align-self:flex-end; background:none; border:none; font-size:1.6rem; color:var(--navy); }

@media (max-width: 960px){
  .nav-links{ display:none; }
  .nav-actions .btn-secondary{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- Sections ---------- */
section{ padding: 90px 0; }
.section-alt{ background: var(--bg-alt); }
.section-navy{ background: var(--grad-navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,.72); }
.section-head{ max-width: 680px; margin: 0 auto 52px; text-align:center; }
.section-head.left{ margin: 0 0 48px; text-align:left; }

/* ---------- Cards ---------- */
.card{
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card-icon{
  width: 52px; height:52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27,79,216,.12), rgba(31,209,196,.14));
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  color: var(--blue);
}

.grid{ display:grid; gap: 15px; min-width:0; }
.grid > *{ min-width:0; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  section{ padding: 60px 0; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 60px;
  align-items:center;
}
.hero-copy, .hero-visual{ min-width:0; }
.hero-copy {margin-top:-40px;}
.hero-copy p.lead{ font-size: 1.12rem; max-width: 480px; }
.hero-actions{ display:flex; gap:14px; margin-top: 30px; flex-wrap:wrap; }
.hero-trust{ margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--border-soft); }
.hero-trust span{ font-family: var(--font-display); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--text-soft); }
@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 64px 0 60px;
}
.page-hero .container{ max-width: 780px; text-align:center; }
.page-hero p{ font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--bg-navy);
  color: rgba(255,255,255,.65);
  padding: 68px 0 26px;
}
.footer-top{
  display:grid;
  grid-template-columns: 1.6fr 1.1fr 1.1fr 1.1fr ;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img{ height:28px ; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p{ color: rgba(255,255,255,.55); font-size: .92rem; max-width: 260px; }
.footer-col h4{ color: var(--white); font-size: .82rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom: 18px; }
.footer-col ul{ display:flex; flex-direction:column; gap: 12px; }
.footer-col a{ color: rgba(255,255,255,.62); font-size: .93rem; transition: color .15s; }
.footer-col a:hover{ color: var(--cyan); }
.footer-newsletter form{ display:flex; gap:8px; margin-top:14px; }
.footer-newsletter input{
  flex:1; padding: 12px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white);
}
.footer-newsletter input::placeholder{ color: rgba(255,255,255,.45); }
.footer-newsletter button{
  padding: 12px 18px; border-radius: var(--radius-pill); border:none;
  background: var(--grad-btn); color:var(--white); font-weight:700; font-family: var(--font-display); font-size:.85rem;
}
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 26px; font-size: .84rem; color: rgba(255,255,255,.45); flex-wrap:wrap; gap:14px;
}
.social-icons{ display:flex; gap:12px; }
.social-icons a{
  width: 36px; height:36px; border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition: background .15s;
}
.social-icons a:hover{ background: var(--cyan); }
@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

/* ---------- Misc components ---------- */
.badge-row{ display:flex; flex-wrap:wrap; gap:10px; }
.pill{
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-alt); font-size:.85rem; font-weight:600; color: var(--navy);
  border: 1px solid var(--border);
}
.divider{ height:1px; background: var(--border-soft); border:none; margin: 60px 0; }

.testimonial-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars{ color: var(--cyan); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-person{ display:flex; align-items:center; gap: 12px; margin-top: 20px; }
.avatar{
  width: 44px; height:44px; border-radius:50%;
  background: var(--grad-btn); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size:.9rem;
}

.steps-row{ display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; position:relative; }
.step-card{ position:relative; text-align:left; }
.step-num{
  font-family: var(--font-display); font-weight:800; font-size: .8rem;
  color: var(--cyan-dark); background: rgba(31,209,196,.12);
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
@media (max-width: 800px){ .steps-row{ grid-template-columns: 1fr; } }

.cta-band{
  background: var(--grad-navy);
  border-radius: var(--radius-lg);
  padding: 64px 50px;
  text-align:center;
  color: var(--white);
  position: relative;
  overflow:hidden;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 30px; }
.cta-band .hero-actions{ justify-content:center; }

/* Form styling */
.form-card{
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 44px;
}
.form-grid{ display:grid; grid-template-columns:;  gap: 20px; }
.form-field{ display:flex; flex-direction:column; gap:8px; margin-bottom: 20px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-family: var(--font-display); font-weight:700; font-size:.88rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea{
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-alt); color: var(--text); transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color: var(--blue); background: var(--white); outline:none;
}
.form-field textarea{ resize: vertical; min-height: 110px; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } .form-card{ padding: 28px; } }

.confirm-box{
  display:none;
  text-align:center;
  padding: 50px 30px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.confirm-box.show{ display:block; }
.confirm-icon{
  width:64px; height:64px; border-radius:50%;
  background: var(--grad-btn); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 20px; font-size: 1.6rem;
}

table.compare{ width:100%; border-collapse: collapse; }
table.compare th, table.compare td{ padding: 14px 16px; border-bottom: 1px solid var(--border-soft); text-align:left; font-size:.94rem; }
table.compare th{ font-family: var(--font-display); color: var(--navy); }

.map-placeholder{
  width:100%; height: 320px; border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(10,30,66,.06), rgba(10,30,66,.06)),
    repeating-linear-gradient(90deg, rgba(27,79,216,.08) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(27,79,216,.08) 0 1px, transparent 1px 60px),
    var(--bg-alt);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-soft); font-family: var(--font-display); font-weight:700;
  border: 1px solid var(--border);
}

details.faq{
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 20px 24px; margin-bottom: 14px;
}
details.faq summary{
  font-family: var(--font-display); font-weight:700; color: var(--navy); cursor:pointer;
  list-style: none; display:flex; justify-content:space-between; align-items:center; gap: 16px;
}
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{
  content:'+'; font-size:1.3rem; color: var(--blue); transition: transform .2s ease; flex-shrink:0;
}
details.faq[open] summary::after{ transform: rotate(45deg); }
details.faq p{ margin-top: 14px; }

.value-tag{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--radius-pill); font-size:.85rem; font-weight:600; color: var(--navy);
}

.crumb{ font-size:.85rem; color: var(--text-soft); margin-bottom: 18px; font-family: var(--font-display); font-weight:600; }
.crumb a{ color: var(--blue); }

.icon-list{ display:flex; flex-direction:column; gap:16px; }
.icon-list li{ display:flex; gap:14px; align-items:flex-start; color: var(--text-muted); }
.icon-list .tick{
  width:22px; height:22px; border-radius:50%; background: rgba(31,209,196,.15); color: var(--cyan-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; font-size:.75rem; font-weight:800;
}

.blog-card img, .case-img{ border-radius: var(--radius-md) var(--radius-md) 0 0; height: 190px; width:100%; object-fit:cover; }
.blog-card{ padding:0; overflow:hidden; }
.blog-card-body{ padding: 24px; }
.tag{ font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color: var(--blue); }

.plan-card{ position:relative; }
.plan-card.featured{
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.plan-badge{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background: var(--grad-btn); color:var(--white); font-family: var(--font-display); font-weight:800;
  font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding: 7px 18px; border-radius: var(--radius-pill);
}
.price-amount{ font-family: var(--font-display); font-size: 2.6rem; font-weight:800; color: var(--navy); }
.price-amount span{ font-size:1rem; font-weight:600; color: var(--text-soft); }
@media (max-width: 900px){ .plan-card.featured{ transform:none; } }

/* =========================================================
   WORKFLOW DEMO + CHARTS (hero automation preview)
   ========================================================= */
.workflow-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.workflow-card-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 20px;
}
.workflow-card-head .dot-row{ display:flex; gap:6px; }
.workflow-card-head .dot-row span{ width:9px; height:9px; border-radius:50%; background: var(--border); }
.workflow-card-head .live-tag{
  display:flex; align-items:center; gap:6px;
  font-family: var(--font-display); font-size:.72rem; font-weight:800;
  letter-spacing:.06em; text-transform:uppercase; color: var(--cyan-dark);
}
.workflow-card-head .live-tag::before{
  content:''; width:7px; height:7px; border-radius:50%; background: var(--cyan);
  animation: flowPulse 1.6s infinite;
}

.flow-step{
  display:flex; align-items:flex-start; gap:14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
}
.flow-step .flow-icon{
  width: 38px; height:38px; border-radius:50%;
  background: var(--grad-btn); color:#fff;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.flow-step .flow-text strong{
  display:block; font-family: var(--font-display); font-size:.92rem; color: var(--navy); margin-bottom:2px;
}
.flow-step .flow-text span{ font-size:.82rem; color: var(--text-muted); }
.flow-connector{
  width: 2px; height: 22px; margin-left: 33px;
  background: linear-gradient(var(--blue), var(--cyan));
  position: relative;
}
.flow-connector::after{
  content:''; position:absolute; bottom:-4px; left:-3px;
  width:8px; height:8px; border-radius:50%; background: var(--cyan);
  animation: flowPulse 1.8s infinite;
}
@keyframes flowPulse{
  0%{ transform:scale(.6); opacity:.4; }
  50%{ transform:scale(1.3); opacity:1; }
  100%{ transform:scale(.6); opacity:.4; }
}

.hero-chart-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  margin-top: 18px;
}
.hero-chart-card h4{
  font-family: var(--font-display); font-size:.82rem; font-weight:800;
  color: var(--navy); text-transform:uppercase; letter-spacing:.05em; margin-bottom:16px;
}
.mini-bar-chart{
  display:flex; align-items:flex-end; gap:10px; height: 84px; margin-bottom:10px;
}
.mini-bar-chart .bar{
  flex:1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue-light), var(--cyan));
  transform-origin: bottom;
  animation: barGrow 1s cubic-bezier(.3,0,.2,1) forwards;
  opacity: .92;
}
.mini-bar-chart .bar:last-child{ background: linear-gradient(180deg, var(--blue), var(--cyan-dark)); opacity:1; }
@keyframes barGrow{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
.mini-bar-chart-labels{
  display:flex; justify-content:space-between; font-size:.7rem; color: var(--text-soft);
  font-family: var(--font-display); font-weight:700;
}
.chart-footer-stat{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.chart-footer-stat .num{ font-family: var(--font-display); font-weight:800; font-size:1.3rem; color: var(--navy); }
.chart-footer-stat .num.up{ color: var(--success); }
.chart-footer-stat .lbl{ font-size:.78rem; color: var(--text-soft); }

/* Stat counters used in "Results" strips across the site */
.stat-num{ font-family: var(--font-display); font-weight:800; font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--navy); }
.stat-block{ text-align:center; }
.stat-block p{ font-size:.85rem; margin-top:6px; }

/* =========================================================
   CASE STUDY DEMO ANIMATIONS
   ========================================================= */
.case-study-card{
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
}
.case-study-demo{
  background: var(--bg-alt);
  padding: 22px;
  min-height: 230px;
  display:flex; flex-direction:column; justify-content:center; gap:10px;
  border-bottom: 1px solid var(--border-soft);
  position:relative;
  overflow:hidden;
}
.case-study-demo .demo-caption{
  position:absolute; top:12px; left:16px;
  font-family: var(--font-display); font-size:.68rem; font-weight:800;
  letter-spacing:.06em; text-transform:uppercase; color: var(--text-soft);
}
.case-study-demo .demo-caption::before{
  content:'●'; color: var(--cyan); margin-right:6px; font-size:.6rem;
}
.case-study-body{ padding: 24px; }
.case-study-body h3{ margin-bottom:8px; }
.case-study-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.case-study-results{
  display:flex; gap: 22px; margin-top:18px; padding-top:16px; border-top:1px solid var(--border-soft);
}
.case-study-results .r-num{ font-family: var(--font-display); font-weight:800; font-size:1.4rem; color: var(--blue); }
.case-study-results .r-lbl{ font-size:.76rem; color: var(--text-soft); }

/* Chat-style automation demo (used in WhatsApp / follow-up case studies) */
.demo-chat{ display:flex; flex-direction:column; gap:10px; }
.demo-bubble{
  max-width: 78%; padding: 9px 14px; border-radius: 14px;
  font-size: .82rem; background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); opacity:0;
  animation: bubbleLoop 7s ease-in-out infinite;
}
.demo-bubble.bot{ align-self:flex-end; background: var(--grad-btn); color:#fff; border:none; }
.demo-bubble:nth-child(1){ animation-delay: 0s; }
.demo-bubble:nth-child(2){ animation-delay: 1.6s; }
.demo-bubble:nth-child(3){ animation-delay: 3.2s; }
.demo-bubble:nth-child(4){ animation-delay: 4.8s; }
@keyframes bubbleLoop{
  0%{ opacity:0; transform: translateY(8px); }
  8%, 85%{ opacity:1; transform: translateY(0); }
  100%{ opacity:0; transform: translateY(0); }
}

/* Pipeline-move demo (used in CRM / pipeline case studies) */
.demo-pipeline{ display:flex; gap:10px; }
.demo-pipeline .p-col{
  flex:1; background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px;
  font-size:.7rem; color: var(--text-soft); font-family: var(--font-display); font-weight:700;
  text-align:center;
}
.demo-pipeline .p-col .p-card{
  margin-top:8px; background: var(--bg-alt); border:1px solid var(--border);
  border-radius:8px; padding:8px 6px; font-weight:600; color: var(--navy); font-size:.72rem;
}
.demo-pipeline .p-col.active .p-card{
  background: rgba(31,209,196,.14); border-color: var(--cyan);
  animation: cardSlide 6s ease-in-out infinite;
}
@keyframes cardSlide{
  0%, 15%{ transform: translateX(0); }
  40%, 60%{ transform: translateX(72px); }
  85%, 100%{ transform: translateX(0); }
}

/* Before / after response-time demo */
.demo-before-after{ display:flex; gap:16px; }
.demo-ba-col{ flex:1; background:#fff; border:1px solid var(--border); border-radius:12px; padding:14px; text-align:center; }
.demo-ba-col .ba-label{ font-size:.72rem; color: var(--text-soft); font-family: var(--font-display); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.demo-ba-col .ba-time{ font-family: var(--font-display); font-weight:800; font-size:1.5rem; margin-top:6px; }
.demo-ba-col.before .ba-time{ color: var(--text-soft); }
.demo-ba-col.after .ba-time{ color: var(--success); }

@media (max-width: 620px){
  .case-study-results{ flex-wrap:wrap; row-gap:10px; }
}

.case-study-split{ display:grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px){
  .case-study-split{ grid-template-columns: 1fr; }
  .case-study-split .case-study-demo{ order:1 !important; }
  .case-study-split .case-study-body{ order:2 !important; }
}
