/* =========================================================
   InfoSkull Software & Services — Design System
   Palette derived from logo: slate steel-blue + ink + brass
   ========================================================= */

:root{
  /* --- Color tokens — refreshed teal + citrus palette, teal drawn from logo --- */
  --ink:            #0B1420;   /* deep cool navy-black */
  --ink-soft:       #142334;
  --slate:          #0E9488;   /* brand primary — fresh teal (recolored from logo) */
  --slate-dark:     #0A7A70;
  --slate-deep:     #095F58;
  --slate-light:    #A9E0D8;
  --slate-mist:     #E7F7F4;
  --paper:          #F6FBFA;   /* cool off-white, faint mint tint */
  --white:          #FFFFFF;
  --accent:         #F5B400;   /* citrus-yellow accent for CTAs — energetic counterpoint to teal */
  --accent-dark:    #C88F00;
  --accent-mist:    #FEF3D6;
  --line:           #DCEAE7;
  --text-body:      #354048;
  --text-muted:     #64767A;

  /* --- Type --- */
  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* --- Scale --- */
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(16,20,26,0.06);
  --shadow-md: 0 8px 24px rgba(16,20,26,0.08);
  --shadow-lg: 0 20px 48px rgba(16,20,26,0.14);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- Reset --- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-body);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-head); color:var(--ink); margin:0; line-height:1.15; font-weight:800; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }

:focus-visible{
  outline:2.5px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

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

/* --- Type scale --- */
h1{ font-size:clamp(2.4rem, 4.6vw, 4rem); }
h2{ font-size:clamp(1.9rem, 3.2vw, 2.7rem); }
h3{ font-size:1.3rem; }
.lede{ font-size:1.15rem; color:var(--text-muted); line-height:1.7; }
.eyebrow{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent-dark);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:18px; height:1.5px;
  background:var(--accent);
  display:inline-block;
}

/* --- Buttons --- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:0.98rem;
  border:1.5px solid transparent;
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:var(--white); }
.btn-primary:hover{ background:var(--slate-dark); transform:translateY(-2px); }
.btn-accent{ background:var(--accent); color:var(--ink); }
.btn-accent:hover{ background:var(--accent-dark); color:var(--ink); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--slate-light); }
.btn-ghost:hover{ border-color:var(--ink); background:var(--slate-mist); }
.btn-arrow{ transition:transform .25s var(--ease); }
.btn:hover .btn-arrow{ transform:translateX(3px); }
.btn-sm{ padding:10px 18px; font-size:0.9rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
  max-width:var(--container); margin:0 auto;
  gap:24px;
  position:relative; /* mega menu centers against this, not the narrow trigger link */
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img{ height:42px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:2px; }
.main-nav > ul{ display:flex; align-items:center; gap:4px; }
.main-nav > ul > li{ position:relative; }
.main-nav > ul > li.services{ position:static; } /* let .mega's absolute positioning skip this narrow li and resolve against .header-inner instead, so the wide panel centers on the page, not on the "Services" link */
.nav-link{
  display:flex; align-items:center; gap:6px;
  padding:10px 14px;
  font-weight:600; font-size:0.95rem; color:var(--ink);
  border-radius:8px;
  white-space:nowrap;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"]{ background:var(--slate-mist); color:var(--slate-dark); }
.nav-link .chev{ width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-3px; transition:transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .chev{ transform:rotate(-135deg); margin-top:3px; }

.header-cta{ display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* Mega menu — outer wrapper spans the gap too (padding, not margin) so the
   li stays :hover'd while the cursor travels from the nav link down into
   the panel. Visuals (bg/border/shadow) live on .mega-inner instead. */
.mega{
  position:absolute; top:100%; left:50%;
  width:min(880px, 92vw);
  padding-top:14px;              /* bridges the visual gap without breaking hover */
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateX(-50%) translateY(4px);
  transition:opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index:250;
}
.main-nav li.services:hover .mega,
.main-nav li.services:focus-within .mega,
.main-nav li.services .mega.open{
  opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0);
}
.mega-inner{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px 14px 0 0;
  box-shadow:var(--shadow-lg);
  padding:24px 24px 8px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:6px;
}
.mega-inner--full{ width:min(880px, 92vw); grid-template-columns:repeat(4,1fr); }
.mega-block{
  display:block; padding:14px 12px; border-radius:8px;
  transition:background .18s var(--ease);
}
.mega-block:hover{ background:var(--slate-mist); }
.mega-block h4{
  font-size:0.86rem; font-family:var(--font-head); font-weight:800;
  color:var(--ink); text-transform:none; letter-spacing:normal; margin-bottom:6px;
}
.mega-desc{ font-size:0.78rem; color:var(--text-muted); line-height:1.5; margin:0; }
.mega-footer{
  background:var(--white); border:1px solid var(--line); border-top:none;
  border-radius:0 0 14px 14px; box-shadow:var(--shadow-lg);
  padding:12px 24px 16px; text-align:right;
}
.mega-footer a{ font-size:0.86rem; font-weight:700; color:var(--slate-dark); }
.mega-footer a:hover{ color:var(--slate); }

.mobile-toggle{ display:none; background:none; border:none; padding:8px; }
.mobile-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; transition:transform .2s, opacity .2s; }

@media (max-width: 980px){
  .main-nav{ position:fixed; inset:64px 0 0 0; background:var(--white); flex-direction:column; align-items:stretch; padding:16px 20px; overflow-y:auto; transform:translateX(100%); transition:transform .3s var(--ease); }
  .main-nav.open{ transform:translateX(0); }
  .main-nav > ul{ flex-direction:column; align-items:stretch; gap:0; }
  .mega{ position:static; width:auto; transform:none; opacity:1; visibility:visible; pointer-events:auto; display:none; padding:0; }
  .mega.open{ display:block; }
  .mega-inner{ box-shadow:none; border:none; border-radius:0; grid-template-columns:1fr; padding:4px 0 4px 14px; gap:0; }
  .mega-footer{ display:none; }
  .header-cta .btn-ghost{ display:none; }
  .mobile-toggle{ display:block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding:72px 0 60px;
  background:linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  overflow:hidden;
}
.hero-inner{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
.hero h1{ margin-top:18px; }
.hero .lede{ margin-top:20px; max-width:560px; }
.hero-sub{ margin-top:12px; max-width:560px; color:var(--text-muted); font-size:1rem; }
.hero-ctas{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-stack{
  margin-top:36px; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted); letter-spacing:0.04em;
}
.hero-stack .dot{ width:4px; height:4px; border-radius:50%; background:var(--slate-light); }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
}

/* Signature hero visual: orbit diagram around the InfoSkull pin */
.orbit-wrap{ position:relative; width:100%; aspect-ratio:1/1; max-width:480px; margin:0 auto; }
.orbit-svg{ width:100%; height:100%; }
.orbit-ring{ fill:none; stroke:var(--slate-light); stroke-width:1; }
.orbit-node-bg{ fill:var(--white); stroke:var(--line); stroke-width:1; }
.orbit-node text{ font-family:var(--font-mono); font-size:10.5px; fill:var(--slate-dark); font-weight:600; }
.orbit-link{ stroke:var(--slate-light); stroke-width:1; stroke-dasharray:3 4; }
.orbit-core-ring{ fill:none; stroke:var(--accent); stroke-width:1.6; opacity:.55; }
.orbit-spin{ transform-origin:250px 250px; animation:spin 60s linear infinite; }
.orbit-spin-rev{ transform-origin:250px 250px; animation:spinrev 80s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes spinrev{ to{ transform:rotate(-360deg); } }
@media (prefers-reduced-motion: reduce){
  .orbit-spin, .orbit-spin-rev{ animation:none; }
}

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
section{ padding:88px 0; }
.section-tight{ padding:64px 0; }
.section-alt{ background:var(--paper); }
.section-dark{ background:var(--ink); color:#B9CBC8; }
.section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark .eyebrow{ color:var(--accent); }
.section-head{ max-width:700px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ margin-top:14px; }
.section-head .lede{ margin-top:16px; }

/* --- Problem cards --- */
.problem-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.problem-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 24px; transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.problem-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--slate-light); }
.problem-card .icon{ width:40px; height:40px; margin-bottom:18px; color:var(--slate); }
.problem-card h3{ font-size:1.08rem; }
.problem-card p{ margin-top:10px; color:var(--text-muted); font-size:0.94rem; }
.problem-card .card-link{ margin-top:16px; display:inline-flex; align-items:center; gap:6px; font-size:0.88rem; font-weight:700; color:var(--accent-dark); }

@media (max-width: 980px){ .problem-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .problem-grid{ grid-template-columns:1fr; } }

/* --- Capability cards --- */
.cap-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.cap-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; transition:box-shadow .25s var(--ease), transform .25s var(--ease);
}
.cap-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.cap-card .cap-index{ font-family:var(--font-mono); font-size:0.74rem; color:var(--slate); letter-spacing:.08em; }
.cap-card h3{ margin-top:10px; font-size:1.18rem; }
.cap-card .cap-tags{ margin-top:12px; color:var(--text-muted); font-size:0.88rem; line-height:1.6; }
.cap-card a.card-link{ margin-top:18px; display:inline-flex; gap:6px; font-size:0.88rem; font-weight:700; color:var(--accent-dark); }

@media (max-width: 900px){ .cap-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 600px){ .cap-grid{ grid-template-columns:1fr; } }

/* --- Automation workflow section --- */
.automation-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.automation-copy p{ margin-top:16px; color:#A9BFBC; }
.automation-copy ul{ margin-top:18px; display:grid; gap:8px; }
.automation-copy li{ font-size:0.95rem; color:#A9BFBC; padding-left:18px; position:relative; }
.automation-copy li::before{ content:"—"; position:absolute; left:0; color:var(--accent); }
.automation-note{
  margin-top:20px; padding:12px 16px; border-left:2px solid var(--accent);
  font-size:0.88rem; font-style:italic; color:#C7D6D3 !important;
}
.automation-ctas{ margin-top:30px; display:flex; gap:14px; flex-wrap:wrap; }

.workflow{
  background:var(--ink-soft); border:1px solid #24384A; border-radius:14px; padding:28px;
  display:flex; flex-direction:column; gap:0;
}
.workflow-step{
  display:flex; align-items:center; gap:14px; padding:14px 0; color:var(--white); font-size:0.94rem; font-weight:600;
}
.workflow-step .dot{ width:9px; height:9px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.workflow-arrow{ margin-left:4px; color:var(--slate-light); font-family:var(--font-mono); font-size:0.85rem; }

@media (max-width:900px){ .automation-wrap{ grid-template-columns:1fr; } }
@media (max-width:980px){ .workflow-trio{ grid-template-columns:1fr 1fr !important; } }
@media (max-width:640px){ .workflow-trio{ grid-template-columns:1fr !important; } }

/* --- Assessment CTA band --- */
.assess-band{
  background:var(--accent-mist); border:1px solid #F0D989; border-radius:18px;
  padding:48px; display:grid; grid-template-columns:1.3fr 0.7fr; gap:32px; align-items:center;
}
.assess-band h2{ font-size:1.9rem; }
.assess-band p{ margin-top:12px; color:var(--slate-dark); }
@media (max-width:800px){ .assess-band{ grid-template-columns:1fr; padding:32px; } }

/* --- Generic feature row (Data / Cloud / Software / Enterprise / IoT) --- */
.feature-row{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:center; }
.feature-row.reverse{ grid-template-columns:1.1fr 0.9fr; }
.feature-row.reverse .feature-copy{ order:2; }
.feature-tags{ margin-top:22px; display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size:0.82rem; font-weight:600; padding:7px 13px; border-radius:999px;
  background:var(--slate-mist); color:var(--slate-dark); border:1px solid var(--line);
}
.feature-copy p{ margin-top:16px; }
.feature-copy .btn{ margin-top:26px; }
.feature-visual{
  border-radius:16px; border:1px solid var(--line); background:var(--paper);
  aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; overflow:hidden;
}
@media (max-width:900px){
  .feature-row, .feature-row.reverse{ grid-template-columns:1fr; }
  .feature-row.reverse .feature-copy{ order:0; }
  .feature-visual{ order:-1; }
}

/* --- Approach steps --- */
.approach-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.approach-grid--wide{ grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
.approach-step{ padding:22px 18px; border-top:2px solid var(--accent); }
.approach-step .num{ font-family:var(--font-mono); color:var(--accent-dark); font-size:0.8rem; }
.approach-step h3{ margin-top:10px; font-size:1.05rem; }
.approach-step p{ margin-top:8px; font-size:0.88rem; color:var(--text-muted); }
@media (max-width:980px){ .approach-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .approach-grid{ grid-template-columns:1fr; } }

/* --- Why cards --- */
.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.why-card{ padding:26px 4px 0; border-top:1px solid var(--line); }
.why-card h3{ font-size:1.05rem; }
.why-card p{ margin-top:10px; color:var(--text-muted); font-size:0.92rem; }
@media (max-width:980px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .why-grid{ grid-template-columns:1fr; } }

/* --- Story --- */
.story{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:start; }
.story-copy p{ margin-top:16px; }
.story-copy p + p{ margin-top:14px; }
@media (max-width:900px){ .story{ grid-template-columns:1fr; } }

/* --- Case studies placeholder --- */
.cs-placeholder{
  border:1.5px dashed var(--slate-light); border-radius:16px; padding:64px 32px; text-align:center;
  background:var(--paper);
}
.cs-placeholder p{ max-width:480px; margin:12px auto 0; color:var(--text-muted); }

/* --- Insights grid --- */
.insight-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.insight-card{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:box-shadow .25s var(--ease), transform .25s var(--ease); }
.insight-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.insight-thumb{ aspect-ratio:16/10; background:linear-gradient(135deg,var(--slate-mist),var(--paper)); }
.insight-body{ padding:20px; }
.insight-cat{ font-family:var(--font-mono); font-size:0.72rem; color:var(--accent-dark); letter-spacing:.06em; text-transform:uppercase; }
.insight-body h3{ font-size:1.02rem; margin-top:8px; }
@media (max-width:900px){ .insight-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .insight-grid{ grid-template-columns:1fr; } }

/* --- Final CTA --- */
.final-cta{
  background:var(--ink); border-radius:0; padding:80px 0; text-align:center;
}
.final-cta h2{ color:var(--white); }
.final-cta .lede{ color:#A9BFBC; max-width:560px; margin:16px auto 0; }
.final-cta .hero-ctas{ justify-content:center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--paper); border-top:1px solid var(--line); padding:64px 0 28px; }
.footer-top{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; }
.footer-brand img{ height:30px; width:auto; }
.footer-brand p{ margin-top:14px; color:var(--text-muted); font-size:0.9rem; max-width:260px; }
.footer-tagline{ margin-top:16px; font-family:var(--font-mono); font-size:0.78rem; color:var(--slate-dark); letter-spacing:.04em; }
.footer-col h4{ font-size:0.76rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); font-family:var(--font-mono); margin-bottom:14px; }
.footer-col li{ margin-bottom:9px; }
.footer-col a{ font-size:0.9rem; color:var(--ink); }
.footer-col a:hover{ color:var(--accent-dark); }
.footer-bottom{
  margin-top:56px; padding-top:24px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:0.82rem; color:var(--text-muted);
}
.footer-bottom a{ margin-left:16px; }
@media (max-width:980px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .footer-top{ grid-template-columns:1fr; } }

/* --- FAQ accordion (used on service pages later, styled globally) --- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:none; padding:20px 0; display:flex; justify-content:space-between; align-items:center; font-weight:700; color:var(--ink); font-size:1rem; }
.faq-q .plus{ font-family:var(--font-mono); color:var(--accent); transition:transform .2s var(--ease); }
.faq-item[data-open="true"] .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s var(--ease); }
.faq-item[data-open="true"] .faq-a{ padding-bottom:20px; }
.faq-a p{ color:var(--text-muted); font-size:0.94rem; }

/* --- Scroll reveal --- */
[data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; }
}

/* --- Trust / capability strip --- */
.trust-strip{ border-bottom:1px solid var(--line); }
.trust-strip-label{ font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin-bottom:16px; text-align:center; }
.trust-strip-list{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px 34px; }
.trust-strip-list li{ font-family:var(--font-head); font-weight:800; font-size:1.05rem; color:var(--slate-deep); opacity:.8; letter-spacing:.01em; }

/* --- Assessment note --- */
.assess-note{ margin-top:12px; font-size:0.82rem; color:var(--text-muted); text-align:center; }

/* --- Insight placeholder badge --- */
.placeholder-badge{
  display:inline-block; margin-left:8px; font-family:var(--font-mono); font-size:0.68rem;
  text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted);
  background:var(--paper); border:1px solid var(--line); border-radius:999px; padding:3px 9px;
}

/* --- FAQ list --- */
.faq-list{ margin-top:8px; }

/* --- Build / Automate / Grow anchor section --- */
.bag-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.bag-card{
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:34px 28px; transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bag-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.bag-card--accent{ border-color:var(--slate-light); background:var(--slate-mist); }
.bag-label{
  font-family:var(--font-mono); font-size:0.74rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--slate-dark); font-weight:600;
}
.bag-card h3{ margin-top:12px; font-size:1.35rem; }
.bag-card p{ margin-top:12px; color:var(--text-muted); font-size:0.95rem; }
.bag-card .btn{ margin-top:20px; }
@media (max-width:900px){ .bag-grid{ grid-template-columns:1fr; } }

/* --- Breadcrumb --- */
.breadcrumb-wrap{ padding:20px 0 0; }
.breadcrumb{ font-size:0.85rem; color:var(--text-muted); display:flex; gap:8px; align-items:center; }
.breadcrumb a{ color:var(--text-muted); }
.breadcrumb a:hover{ color:var(--slate-dark); }
.breadcrumb span[aria-current]{ color:var(--ink); font-weight:600; }

/* --- Generic page header (interior pages) --- */
.page-header{ padding:36px 0 56px; }
.page-header h1{ margin-top:14px; }
.page-header .lede{ margin-top:16px; max-width:640px; }

/* --- Category block (services/solutions hubs) --- */
.category-block{ padding:48px 0; border-top:1px solid var(--line); }
.category-block:first-of-type{ border-top:none; }
.category-block-head{ display:flex; align-items:baseline; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:22px; }
.category-block-head h3{ font-size:1.5rem; }
.group-heading{ padding:40px 0 8px; }
.group-heading .eyebrow{ margin-bottom:6px; }
.group-heading h2{ font-size:2rem; }
.group-heading p{ color:var(--text-muted); margin-top:10px; max-width:640px; }

/* --- Simple info card grid (industries, solutions items) --- */
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.info-card{ border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.info-card h3{ font-size:1.08rem; }
.info-card p{ margin-top:10px; color:var(--text-muted); font-size:0.92rem; }
@media (max-width:900px){ .info-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .info-grid{ grid-template-columns:1fr; } }

/* --- Contact form --- */
.contact-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-form{ display:grid; gap:16px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-field{ display:flex; flex-direction:column; gap:6px; }
.form-field label{ font-size:0.86rem; font-weight:700; color:var(--ink); }
.form-field .req{ color:var(--accent-dark); }
.form-field input, .form-field select, .form-field textarea{
  padding:12px 14px; border:1.5px solid var(--line); border-radius:8px; font-size:0.95rem; color:var(--text-body);
  background:var(--white); transition:border-color .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ border-color:var(--slate); outline:none; }
.form-note{ font-size:0.84rem; color:var(--text-muted); margin-top:4px; }
.contact-info-card{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:30px; }
.contact-info-card dt{ font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-top:18px; }
.contact-info-card dt:first-child{ margin-top:0; }
.contact-info-card dd{ margin:4px 0 0; font-weight:600; color:var(--ink); }
.is-placeholder{ color:var(--text-muted) !important; cursor:default; text-decoration:none !important; }
.form-status{ padding:12px 14px; border-radius:8px; font-size:0.9rem; display:none; }
.form-status.visible{ display:block; }
.form-status.info{ background:var(--slate-mist); color:var(--slate-deep); border:1px solid var(--slate-light); }
@media (max-width:900px){ .contact-wrap{ grid-template-columns:1fr; } .form-row{ grid-template-columns:1fr; } }

/* --- Empty state (case studies / insights hubs) --- */
.empty-state{
  border:1.5px dashed var(--slate-light); border-radius:16px; padding:64px 32px; text-align:center; background:var(--paper);
}
.empty-state p{ max-width:520px; margin:12px auto 0; color:var(--text-muted); }

/* --- 404 page --- */
.error-page{ text-align:center; padding:110px 0; }
.error-code{ font-family:var(--font-mono); font-size:1rem; color:var(--slate); letter-spacing:.1em; }
.error-page h1{ margin-top:16px; }
.error-page .lede{ margin:16px auto 0; max-width:480px; }
.error-ctas{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:32px; }

/* --- Comparison table (mobile-safe via horizontal scroll wrapper) --- */
.compare-table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.compare-table{ width:100%; border-collapse:collapse; min-width:640px; font-size:0.92rem; }
.compare-table th, .compare-table td{ padding:14px 16px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.compare-table thead th{ background:var(--slate-mist); font-family:var(--font-head); font-weight:800; color:var(--ink); white-space:nowrap; }
.compare-table tbody tr:last-child td{ border-bottom:none; }
.compare-table tbody th{ background:var(--paper); font-weight:700; color:var(--ink); white-space:nowrap; }
.compare-table td{ color:var(--text-muted); }

/* --- Article / Insight prose --- */
.insight-article{ padding:32px 0 80px; }
.insight-article h2{ font-size:1.5rem; margin-top:44px; margin-bottom:16px; }
.insight-article h2:first-child{ margin-top:0; }
.insight-article h3{ font-size:1.15rem; margin-top:28px; margin-bottom:12px; }
.insight-article p{ margin-top:16px; color:var(--text-body); line-height:1.75; font-size:1.02rem; }
.insight-article p:first-of-type{ margin-top:0; font-size:1.1rem; color:var(--text-muted); }
.insight-article ul, .insight-article ol{ margin-top:16px; padding-left:22px; }
.insight-article li{ margin-top:8px; line-height:1.65; color:var(--text-body); }
.insight-article li::marker{ color:var(--slate); }
.insight-article a{ color:var(--slate-dark); font-weight:600; text-decoration:underline; text-decoration-color:var(--slate-light); text-underline-offset:3px; }
.insight-article .article-toc{ background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:20px 24px; margin:28px 0; }
.insight-article .article-toc p{ margin:0; font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.insight-article .article-toc ul{ margin-top:10px; padding-left:18px; }
.insight-article .article-toc li{ margin-top:6px; font-size:0.92rem; }
.insight-article .article-toc a{ text-decoration:none; }
.insight-article .callout{ margin:24px 0; padding:16px 20px; border-left:2px solid var(--accent); background:var(--paper); font-style:italic; color:var(--text-body); }
.insight-article .article-cta{ margin-top:48px; padding:28px; background:var(--slate-mist); border-radius:14px; text-align:center; }
.insight-article .article-cta p{ margin-top:0; color:var(--text-body); }
.insight-meta{ font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted); margin-top:14px; }

/* --- Reusable enquiry form (see assets/js/enquiry-form.js) --- */
.enquiry-form{
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:32px; display:flex; flex-direction:column; gap:16px; box-shadow:var(--shadow-sm);
  max-width:720px; margin:0 auto;
}
.enquiry-form-heading{ font-size:1.4rem; margin:0; }
.enquiry-form-intro{ margin:0; color:var(--text-muted); font-size:0.95rem; }
.enquiry-form .form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.enquiry-form button[type="submit"]{ justify-self:start; }
.enquiry-form button[disabled]{ opacity:.65; cursor:not-allowed; transform:none; }
.field-error{ display:block; min-height:0; font-size:0.82rem; color:#B3261E; margin-top:2px; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea{ border-color:#B3261E; }
.form-status.success{ background:var(--slate-mist); color:var(--slate-deep); border:1px solid var(--slate-light); }
.form-status.error{ background:#FCEBEA; color:#8C1D18; border:1px solid #F3C0BC; }
/* Honeypot: hidden from users and assistive tech, still fillable by bots. */
.enquiry-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
/* Section wrapper so the form can sit on any page consistently. */
.enquiry-section{ padding:72px 0; background:var(--paper); border-top:1px solid var(--line); }
@media (max-width:640px){
  .enquiry-form{ padding:22px; }
  .enquiry-form .form-row{ grid-template-columns:1fr; }
}

/* --- Skip link --- */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--white);
  padding:12px 18px; z-index:999; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }
