/* ============================================================
   SERVICE PAGES — SHARED STYLES
   (AI Automation, Analytics Dashboards, Predictive ML)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────── */
.service-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative; overflow: hidden;
}
.service-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 5% 60%, rgba(1,77,78,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 95% 10%, rgba(185,122,62,0.09) 0%, transparent 50%);
  pointer-events: none;
}
.service-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(1,77,78,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(1,77,78,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 80% at 10% 50%, black 10%, transparent 80%);
}
.service-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 80px; align-items: center;
}
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:0.75rem; color:var(--text-3); margin-bottom:28px; }
.breadcrumb a { color:var(--text-3); transition:color 0.2s; }
.breadcrumb a:hover { color:var(--text-teal); }
.breadcrumb span { color:var(--border); }
.hero-label { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.hero-label::before { content:''; width:32px; height:1px; background:var(--amber); display:block; }
.hero-title { font-family:var(--font-head); font-size:clamp(2.6rem,5vw,4.8rem); font-weight:700; line-height:1.04; letter-spacing:-0.03em; color:var(--text); margin-bottom:24px; }
.hero-title em { font-style:normal; color:var(--text-teal); }
.hero-sub { font-size:1.05rem; color:var(--text-2); line-height:1.75; max-width:500px; margin-bottom:40px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }

/* ── Pain points ──────────────────────────────────── */
.pain-section { background:var(--bg-2); border-top:1px solid var(--border); }
.pain-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.pain-card { background:var(--surface); border:1px solid rgba(128,77,54,0.25); border-radius:var(--radius-lg); padding:28px; position:relative; overflow:hidden; }
.pain-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--copper), var(--amber)); }
.pain-card__quote { font-family:var(--font-head); font-size:1.5rem; font-weight:700; color:rgba(128,77,54,0.3); line-height:1; margin-bottom:16px; }
.pain-card__text { font-family:var(--font-head); font-size:1rem; font-weight:600; color:var(--text); line-height:1.35; margin-bottom:12px; }
.pain-card__sub { font-size:0.85rem; color:var(--text-3); line-height:1.65; }

/* ── Solution ─────────────────────────────────────── */
.solution-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.solution-lead { font-size:1.08rem; color:var(--text-2); line-height:1.8; margin-bottom:36px; }
.solution-lead strong { color:var(--text); }
.solution-items { display:flex; flex-direction:column; gap:0; }
.solution-item { display:grid; grid-template-columns:40px 1fr; gap:16px; padding:22px 0; border-bottom:1px solid var(--border); align-items:start; }
.solution-item:last-child { border-bottom:none; }
.solution-item__num { font-family:var(--font-head); font-size:0.72rem; font-weight:700; color:var(--text-teal); letter-spacing:0.1em; padding-top:3px; }
.solution-item__title { font-family:var(--font-head); font-size:0.98rem; font-weight:600; color:var(--text); margin-bottom:6px; }
.solution-item__desc { font-size:0.85rem; color:var(--text-3); line-height:1.65; }
.solution-visual { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.solution-visual__header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.solution-visual__title { font-size:0.82rem; font-weight:600; color:var(--text); }
.solution-visual__body { padding:20px; }
.solution-visual__bottom_text { padding:20px; }
.flow-step { display:flex; align-items:flex-start; gap:14px; padding:14px 0; border-bottom:1px solid rgba(1,77,78,0.1); }
.flow-step:last-child { border-bottom:none; }
.flow-icon { width:32px; height:32px; border-radius:6px; background:var(--teal-glow); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-teal); flex-shrink:0; }
.flow-text strong { display:block; font-size:0.85rem; font-weight:600; color:var(--text); margin-bottom:2px; }
.flow-text span { font-size:0.78rem; color:var(--text-3); }

/* ── Stats row ──────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 40px 32px; text-align: center; }

/* ── Case study ────────────────────────────────────── */
.case-study-section { background:var(--bg-2); border-top:1px solid var(--border); }
.case-study-inner { display:grid; grid-template-columns:1fr 1.2fr; gap:64px; align-items:center; }
.case-tag { display:inline-flex; align-items:center; gap:8px; margin-bottom:24px; }
.case-tag::before { content:''; width:24px; height:1px; background:var(--amber); }
.case-title { font-family:var(--font-head); font-size:clamp(1.6rem,2.8vw,2.4rem); font-weight:700; color:var(--text); line-height:1.15; letter-spacing:-0.02em; margin-bottom:20px; }
.case-body { font-size:0.98rem; color:var(--text-2); line-height:1.8; margin-bottom:28px; }
.case-body strong { color:var(--text); }
.case-results { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:32px; }
.case-result { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 16px; text-align:center; }
.case-result__num { font-family:var(--font-head); font-size:2rem; font-weight:700; color:var(--text-teal); line-height:1; }
.case-result__label { font-size:0.75rem; color:var(--text-3); margin-top:6px; line-height:1.4; }
.case-visual { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; position:relative; overflow:hidden; }
.case-visual::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--teal), var(--text-teal)); }
.case-visual__label { font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-3); margin-bottom:20px; }
.case-timeline { display:flex; flex-direction:column; gap:0; }
.case-event { display:grid; grid-template-columns:80px 1fr; gap:16px; padding:14px 0; border-bottom:1px solid rgba(1,77,78,0.1); }
.case-event:last-child { border-bottom:none; }
.case-event__time { font-size:0.72rem; color:var(--text-3); padding-top:3px; }
.case-event__title { font-size:0.85rem; font-weight:600; color:var(--text); margin-bottom:2px; }
.case-event__desc { font-size:0.78rem; color:var(--text-3); line-height:1.5; }
.case-event--highlight .case-event__title { color:var(--text-teal); }

/* ── What's included ─────────────────────────────── */
.included-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.included-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; transition:border-color 0.25s,transform 0.25s; }
.included-card:hover { border-color:var(--teal-light); transform:translateY(-3px); }
.included-card__icon { width:44px; height:44px; border-radius:var(--radius); background:var(--teal-glow); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-teal); margin-bottom:18px; }
.included-card__title { font-family:var(--font-head); font-size:0.98rem; font-weight:600; color:var(--text); margin-bottom:10px; }
.included-card__desc { font-size:0.84rem; color:var(--text-3); line-height:1.65; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section { background:var(--bg-2); border-top:1px solid var(--border); }
.cta-inner { display:grid; grid-template-columns:1fr auto; gap:48px; align-items:center; }
.cta-eyebrow { font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-teal); margin-bottom:16px; }
.cta-title { font-family:var(--font-head); font-size:clamp(1.8rem,3vw,2.8rem); font-weight:700; color:var(--text); line-height:1.1; letter-spacing:-0.02em; margin-bottom:12px; }
.cta-sub { font-size:1rem; color:var(--text-2); line-height:1.7; }
.cta-btns { display:flex; flex-direction:column; gap:12px; flex-shrink:0; }

/* ── Sibling nav ─────────────────────────────────── */
.svc-siblings { display:flex; justify-content:space-between; align-items:center; padding:24px 0; border-top:1px solid var(--border); }
.svc-sibling-link { display:flex; align-items:center; gap:10px; font-size:0.85rem; color:var(--text-2); transition:color 0.2s; text-decoration:none; }
.svc-sibling-link:hover { color:var(--text-teal); }
.svc-sibling-label { font-size:0.72rem; color:var(--text-3); letter-spacing:0.08em; text-transform:uppercase; }
.svc-sibling-title { font-family:var(--font-head); font-size:0.95rem; font-weight:600; }

/* ── AI page — chat visual ─────────────────────────── */
.hero-visual { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; position:relative; }
.hero-visual::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--teal), var(--text-teal), var(--amber)); }
.hv-topbar { padding:14px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.hv-dot { width:10px; height:10px; border-radius:50%; }
.hv-title { font-size:0.82rem; font-weight:600; color:var(--text); margin-left:6px; }
.hv-online { margin-left:auto; display:flex; align-items:center; gap:6px; font-size:0.72rem; color:var(--text-3); }
.hv-online-dot { width:6px; height:6px; border-radius:50%; background:#22c55e; animation:pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.5;transform:scale(0.8);} }
.hv-body { padding:20px; display:flex; flex-direction:column; gap:12px; min-height:220px; }
.hv-msg { max-width:82%; padding:10px 14px; border-radius:10px; font-size:0.82rem; line-height:1.55; }
.hv-msg--ai { background:rgba(1,77,78,0.2); border:1px solid var(--border); color:var(--text-2); border-radius:2px 10px 10px 10px; }
.hv-msg--user { background:var(--teal); color:var(--text); align-self:flex-end; border-radius:10px 2px 10px 10px; }
.hv-msg strong { color:var(--text-teal); }
.hv-input-row { padding:12px 20px; border-top:1px solid var(--border); display:flex; gap:8px; align-items:center; }
.hv-input { flex:1; background:var(--bg-3); border:1px solid var(--border); border-radius:20px; padding:8px 14px; font-size:0.82rem; color:var(--text-3); outline:none; }
.hv-send { width:32px; height:32px; border-radius:50%; background:var(--teal); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--text); }

/* ── Dashboards page — dash mock ──────────────────── */
.dash-mock { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; position:relative; }
.dash-mock::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--teal), var(--text-teal), var(--amber)); }
.dash-topbar { padding:14px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.dash-dot { width:10px; height:10px; border-radius:50%; }
.dash-title { font-size:0.82rem; font-weight:600; color:var(--text); margin-left:6px; }
.dash-live { margin-left:auto; font-size:0.68rem; padding:3px 8px; background:rgba(34,197,94,0.15); border:1px solid rgba(34,197,94,0.3); border-radius:100px; color:#22c55e; }
.dash-body { padding:20px; }
.dash-kpi-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.dash-kpi { background:rgba(1,77,78,0.12); border:1px solid var(--border); border-radius:8px; padding:12px; }
.dash-kpi__val { font-family:var(--font-head); font-size:1.3rem; font-weight:700; color:var(--text-teal); line-height:1; }
.dash-kpi__chg { font-size:0.68rem; color:#22c55e; margin-top:2px; }
.dash-kpi__lbl { font-size:0.68rem; color:var(--text-3); margin-top:4px; }
.dash-chart { background:rgba(1,77,78,0.06); border:1px solid var(--border); border-radius:8px; padding:14px; margin-bottom:10px; }
.dash-chart-label { font-size:0.68rem; color:var(--text-3); letter-spacing:0.06em; text-transform:uppercase; margin-bottom:10px; }
.dash-bars { display:flex; align-items:flex-end; gap:5px; height:60px; }
.dash-bar { flex:1; border-radius:3px 3px 0 0; }

/* ── ML page — ml mock ────────────────────────────── */
.ml-mock { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; position:relative; }
.ml-mock::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--amber), var(--text-teal), var(--teal)); }
.ml-topbar { padding:14px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.ml-dot { width:10px; height:10px; border-radius:50%; }
.ml-title { font-size:0.82rem; font-weight:600; color:var(--text); margin-left:6px; }
.ml-auc { margin-left:auto; font-size:0.72rem; color:var(--text-teal); font-weight:600; }
.ml-body { padding:20px; }
.ml-label { font-size:0.68rem; color:var(--text-3); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px; }
.ml-preds { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.ml-pred-row { display:flex; align-items:center; gap:10px; }
.ml-pred-name { font-size:0.78rem; color:var(--text-2); width:88px; flex-shrink:0; }
.ml-pred-track { flex:1; height:6px; background:var(--border); border-radius:3px; overflow:hidden; }
.ml-pred-fill { height:100%; border-radius:3px; }
.ml-pred-val { font-size:0.75rem; font-weight:600; width:36px; text-align:right; flex-shrink:0; }
.ml-divider { height:1px; background:var(--border); margin:14px 0; }
.ml-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.ml-metric { text-align:center; background:rgba(1,77,78,0.1); border-radius:6px; padding:10px 8px; }
.ml-metric__val { font-family:var(--font-head); font-size:1.1rem; font-weight:700; color:var(--text-teal); line-height:1; }
.ml-metric__lbl { font-size:0.62rem; color:var(--text-3); margin-top:4px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width:1024px) {
  .service-hero__inner { grid-template-columns:1fr; gap:40px; }
  .pain-grid { grid-template-columns:1fr 1fr; }
  .solution-grid { grid-template-columns:1fr; gap:40px; }
  .case-study-inner { grid-template-columns:1fr; gap:40px; }
  .included-grid { grid-template-columns:1fr 1fr; }
  .cta-inner { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .pain-grid { grid-template-columns:1fr; }
  .included-grid { grid-template-columns:1fr; }
  .case-results { grid-template-columns:repeat(3,1fr); }
}
