/* ==========================================================================
   Briltus — Design tokens
   Direction: enterprise consulting / IT-services standard (Capgemini-style):
   white background, one confident corporate blue, clean sans-serif type,
   simple card grids, minimal ornamentation. No display serif, no gradients.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink:#1A1D24;
  --navy:#0B2C5C;
  --navy-2:#0E3A73;
  --blue:#0060B0;
  --blue-dark:#00468A;
  --white:#FFFFFF;
  --bg:#FFFFFF;
  --bg-alt:#F4F6F8;
  --muted:#5B6472;
  --border:#E2E5EA;
  --radius:6px;
  --shadow-sm: 0 1px 3px rgba(11,44,92,.08);
  --shadow-md: 0 6px 20px rgba(11,44,92,.12);
  --maxw:1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'IBM Plex Sans', Arial, system-ui, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'IBM Plex Sans', Arial, sans-serif;
  font-weight:700;
  line-height:1.2;
  margin:0 0 .5em;
  color:var(--navy);
  letter-spacing:-.01em;
}
p{margin:0 0 1em;}
a{color:var(--blue); text-decoration:none;}
a:hover{color:var(--blue-dark); text-decoration:underline;}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
.eyebrow{
  font-size:.8rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--blue);
  font-weight:600;
  display:inline-block;
  margin-bottom:.75em;
}
img{max-width:100%;}
svg{display:block;}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  padding:.8em 1.6em;
  border-radius:var(--radius);
  font-weight:600;
  font-size:.95rem;
  border:2px solid transparent;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{background:var(--blue); color:#fff; border-color:var(--blue);}
.btn-primary:hover{background:var(--blue-dark); border-color:var(--blue-dark); color:#fff; text-decoration:none;}
.btn-accent{background:var(--navy); color:#fff; border-color:var(--navy);}
.btn-accent:hover{background:var(--navy-2); border-color:var(--navy-2); color:#fff; text-decoration:none;}
.btn-outline{background:transparent; border-color:var(--navy); color:var(--navy);}
.btn-outline:hover{background:var(--navy); color:#fff; text-decoration:none;}
.btn-block{width:100%; justify-content:center;}

/* Header / Nav */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; padding:18px 24px; max-width:var(--maxw); margin:0 auto;}
.brand{font-weight:700; font-size:1.3rem; color:var(--navy); display:flex; align-items:center; gap:8px;}
.brand-mark{width:10px; height:22px; background:var(--blue); display:inline-block;}
.brand-logo{height:38px; width:auto; display:block;}
.brand-logo-footer{height:34px; filter:brightness(0) invert(1);}
.nav-links{display:flex; gap:22px; list-style:none; margin:0; padding:0; align-items:center; flex-wrap:wrap; justify-content:flex-end;}
.nav-links a{color:var(--ink); font-weight:500; font-size:.95rem; text-decoration:none;}
.nav-links a:hover{color:var(--blue); text-decoration:none;}
.nav-links a.active{color:var(--navy); font-weight:600; border-bottom:2px solid var(--blue); padding-bottom:4px;}
.nav-toggle{display:none;}
.nav-links a.nav-cta{
  background:var(--navy); color:#fff !important; font-weight:600;
  padding:.62em 1.4em; border-radius:var(--radius);
}
.nav-links a.nav-cta:hover{background:var(--navy-2); color:#fff !important; text-decoration:none;}
.nav-links a.nav-cta.active{border-bottom:none; padding-bottom:.62em;}

/* Services dropdown */
.nav-dropdown{position:relative;}
.dropdown-menu{
  list-style:none; margin:0; padding:8px; position:absolute; top:100%; left:0;
  background:#fff; border:1px solid var(--border); border-radius:8px; box-shadow:var(--shadow-md);
  min-width:180px; display:none; z-index:60;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu{display:block;}
.dropdown-menu li a{display:block; padding:8px 12px; border-radius:6px; font-size:.92rem; color:var(--ink); font-weight:500;}
.dropdown-menu li a:hover{background:var(--bg-alt); color:var(--blue); text-decoration:none;}

/* Hero — clean, confident, image-banner style (solid navy block standing in
   for photography). This is the enterprise-consulting pattern: bold claim,
   short supporting line, one clear CTA, no decorative clutter. */
.hero{
  background:var(--navy);
  color:#fff;
  padding:80px 0;
}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:56px; align-items:center;}
.hero .eyebrow{color:#8FC1FF;}
.hero h1{font-size:clamp(2.2rem, 4vw, 3.1rem); color:#fff; max-width:16ch;}
.hero .lede{font-size:1.1rem; color:#C9D6E8; max-width:46ch;}
.hero-actions{display:flex; gap:14px; margin-top:1.75em; flex-wrap:wrap;}
.hero-actions .btn-outline{border-color:#fff; color:#fff;}
.hero-actions .btn-outline:hover{background:#fff; color:var(--navy);}
.hero-visual{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  padding:32px;
}
.hero-visual .stat-row{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
.hero-visual .stat-item{border-top:1px solid rgba(255,255,255,.2); padding-top:14px;}
.hero-visual .stat-item b{display:block; font-size:1.8rem; font-weight:700; color:#fff;}
.hero-visual .stat-item span{font-size:.82rem; color:#AEC3DE;}

/* Client/industry logo strip — plain text wordmarks, corporate-standard trust bar */
.logo-strip{background:var(--bg-alt); border-bottom:1px solid var(--border); padding:24px 0;}
.logo-strip .container{display:flex; align-items:center; gap:40px; flex-wrap:wrap; justify-content:center;}
.logo-strip span{font-size:.85rem; color:var(--muted); font-weight:600;}
.logo-strip .logo-label{color:var(--navy); font-weight:700;}

/* Service cards — image-block + label + title + description, matching the
   consulting-site "insights/services" card pattern */
/* Case studies — challenge/approach/result format, clearly labeled as
   representative engagements (not verified client claims) */
.case-study{background:#fff; border:1px solid var(--border); border-radius:8px; padding:32px; margin-bottom:20px;}
.case-study-tag{display:inline-block; font-size:.78rem; font-weight:600; color:var(--blue); text-transform:uppercase; letter-spacing:.03em; margin-bottom:.6em;}
.case-study h3{font-size:1.25rem; margin-bottom:.6em;}
.case-study-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:1.2em; border-top:1px solid var(--border); padding-top:20px;}
.case-study-grid h5{margin:0 0 .4em; font-size:.82rem; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); font-weight:600;}
.case-study-grid p{margin:0; font-size:.92rem; color:var(--ink);}
.case-study-note{font-size:.82rem; color:var(--muted); font-style:italic; margin-top:1.4em; padding-top:14px; border-top:1px solid var(--border);}

/* Blog post body — renders Quill-authored HTML (p, h2/h3, blockquote, img, lists) */
.blog-body{color:var(--ink); font-size:1.02rem; line-height:1.75;}
.blog-body p{margin:0 0 1.2em;}
.blog-body h2{font-size:1.4rem; margin:1.4em 0 .5em;}
.blog-body h3{font-size:1.15rem; margin:1.2em 0 .4em;}
.blog-body img{max-width:100%; border-radius:8px; margin:1em 0;}
.blog-body blockquote{border-left:3px solid var(--blue); margin:1.4em 0; padding:.4em 0 .4em 1.2em; color:var(--muted); font-style:italic;}
.blog-body ul, .blog-body ol{margin:0 0 1.2em; padding-left:1.4em;}
.blog-body a{color:var(--blue); text-decoration:underline;}

.section{padding:72px 0;}
.section-alt{background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.section-head{max-width:680px; margin-bottom:44px;}
.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.service-card{
  background:#fff; border:1px solid var(--border); border-radius:12px;
  padding:28px; box-shadow:var(--shadow-sm);
  transition:box-shadow .15s ease, transform .15s ease;
}
.service-card:hover{box-shadow:var(--shadow-md); transform:translateY(-3px);}
.service-card .eyebrow{margin-bottom:.7em; font-size:.72rem; letter-spacing:.06em;}
.service-card h3{font-size:1.2rem; margin-bottom:.5em;}
.service-card p{color:var(--muted); font-size:.92rem; margin-bottom:1.1em;}
.service-card a{font-weight:600; font-size:.88rem;}

/* Process strip — simple numbered row, no decorative circles/gradients */
.process-row{display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin-top:40px;}
.process-step{border-top:3px solid var(--blue); padding-top:16px;}
.process-step .step-label{font-size:.78rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.03em;}
.process-step h4{font-size:1.05rem; margin:.3em 0 .35em;}
.process-step p{font-size:.88rem; color:var(--muted); margin:0;}

/* Stat band */
.stat-band{background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:48px 0;}
.stat-band .container{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center;}
.stat-band b{font-size:2rem; display:block; color:var(--navy); font-weight:700;}
.stat-band span{font-size:.85rem; color:var(--muted);}

/* Quote / testimonial — plain, restrained */
.quote-block{padding:64px 0; background:var(--navy); color:#fff; text-align:center;}
.quote-block blockquote{
  font-size:clamp(1.25rem, 2vw, 1.55rem); font-weight:500; margin:0 auto 18px;
  max-width:760px; line-height:1.5; color:#fff;
}
.quote-attrib{font-size:.82rem; color:#AEC3DE; letter-spacing:.03em;}

/* Generic content */
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start;}
.card{background:#fff; border:1px solid var(--border); border-radius:8px; padding:26px;}
.card + .card{margin-top:16px;}
.info-list{border-top:1px solid var(--border); margin-top:1.2em;}
.info-row{display:flex; justify-content:space-between; gap:20px; padding:14px 0; border-bottom:1px solid var(--border);}
.info-row dt{font-size:.85rem; color:var(--muted); margin:0; font-weight:500;}
.info-row dd{margin:0; font-weight:600; color:var(--navy); font-size:.92rem; text-align:right;}
.numbered-list{border-top:1px solid var(--border); margin-top:1.2em;}
.numbered-row{display:grid; grid-template-columns:44px 1fr; gap:18px; padding:20px 0; border-bottom:1px solid var(--border);}
.numbered-row .num{font-weight:700; font-size:1.05rem; color:var(--blue);}
.numbered-row h4{margin:0 0 .3em; font-size:1rem; color:var(--navy);}
.numbered-row p{margin:0; color:var(--muted); font-size:.9rem;}

/* FAQ */
.faq-item{border-bottom:1px solid var(--border); padding:18px 0;}
.faq-item h4{margin-bottom:.4em; font-size:1.02rem; color:var(--ink); font-weight:600;}
.faq-item p{color:var(--muted); margin:0;}

/* Forms */
.form-group{margin-bottom:18px;}
label{display:block; font-weight:600; font-size:.88rem; margin-bottom:6px; color:var(--navy);}
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea{
  width:100%; padding:.7em .85em; border:1px solid var(--border); border-radius:var(--radius);
  font-family:inherit; font-size:.95rem; background:#fff; color:var(--ink);
}
input:focus, select:focus, textarea:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,96,176,.15);}
textarea{min-height:130px; resize:vertical;}
.field-error{color:#B3261E; font-size:.82rem; margin-top:4px;}
.alert{padding:14px 18px; border-radius:var(--radius); margin-bottom:20px; font-size:.92rem;}
.alert-success{background:#E6F4EF; color:#0F5132; border:1px solid #BFE3D3;}
.alert-danger{background:#FBEAEA; color:#7A1E1E; border:1px solid #F1C0C0;}

/* Job listings */
.job-card{display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;}
.job-meta{color:var(--muted); font-size:.86rem;}

/* Footer */
.site-footer{background:var(--navy); color:#C9D6E8; padding:52px 0 24px; margin-top:56px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px;}
.site-footer h4{color:#fff; font-size:.92rem; margin-bottom:1em; font-weight:600;}
.site-footer a{color:#AEC3DE; font-size:.9rem; line-height:2;}
.site-footer a:hover{color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15); margin-top:36px; padding-top:18px; font-size:.8rem; color:#8FA3C0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* ===================== Chatbot widget ===================== */
.chat-form{background:#fff; border:1px solid var(--border); border-radius:8px; padding:14px; margin-top:4px;}
.chat-form label{font-size:.78rem; font-weight:600; color:var(--navy); margin-bottom:3px; display:block;}
.chat-form .form-group{margin-bottom:10px;}
.chat-form input{width:100%; padding:.55em .7em; border:1px solid var(--border); border-radius:6px; font-size:.88rem; font-family:inherit;}
.chat-form input:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 2px rgba(0,96,176,.15);}
.chat-form .form-error{color:#B3261E; font-size:.78rem; margin:-4px 0 10px;}
.chat-form button{width:100%; background:var(--blue); color:#fff; border:none; border-radius:6px; padding:.6em; font-weight:600; font-size:.88rem; cursor:pointer;}
.chat-form button:hover{background:var(--blue-dark);}
.chat-input-row.disabled{opacity:.5; pointer-events:none;}

#briltus-chat-launcher{
  position:fixed; bottom:24px; right:24px; z-index:200;
  width:58px; height:58px; border-radius:50%;
  background:var(--blue); color:#fff; border:none; cursor:pointer;
  box-shadow:0 6px 18px rgba(11,44,92,.35);
  display:flex; align-items:center; justify-content:center;
}
#briltus-chat-launcher svg{width:24px; height:24px;}
#briltus-chat-launcher:hover{background:var(--blue-dark);}
#briltus-chat-launcher .dot{
  position:absolute; top:6px; right:6px; width:10px; height:10px; border-radius:50%;
  background:#fff; border:2px solid var(--blue);
}
#briltus-chat-window{
  position:fixed; bottom:94px; right:24px; z-index:200;
  width:360px; max-width:calc(100vw - 32px);
  height:480px; max-height:calc(100vh - 140px);
  background:#fff; border-radius:8px; border:1px solid var(--border);
  box-shadow:var(--shadow-md);
  display:none; flex-direction:column; overflow:hidden;
}
#briltus-chat-window.open{display:flex;}
.chat-header{background:var(--navy); color:#fff; padding:16px 18px; display:flex; align-items:center; justify-content:space-between;}
.chat-header strong{font-size:1rem;}
.chat-header span{display:block; font-size:.75rem; color:#AEC3DE;}
.chat-close{background:none; border:none; color:#AEC3DE; font-size:20px; cursor:pointer; line-height:1;}
.chat-body{flex:1; overflow-y:auto; padding:16px; background:#F8F9FB; display:flex; flex-direction:column; gap:10px;}
.msg{max-width:82%; padding:10px 13px; border-radius:8px; font-size:.88rem; line-height:1.45;}
.msg-bot{background:#fff; border:1px solid var(--border); align-self:flex-start;}
.msg-user{background:var(--blue); color:#fff; align-self:flex-end;}
.chat-input-row{display:flex; border-top:1px solid var(--border); padding:10px;}
.chat-input-row input{border:none; flex:1; padding:8px; font-size:.9rem;}
.chat-input-row input:focus{outline:none;}
.chat-input-row button{background:var(--blue); border:none; border-radius:6px; padding:0 16px; font-weight:600; cursor:pointer; color:#fff;}

/* Responsive */
@media (max-width: 900px){
  .hero-grid, .two-col{grid-template-columns:1fr;}
  .card-grid{grid-template-columns:1fr;}
  .case-study-grid{grid-template-columns:1fr;}
  .process-row{grid-template-columns:1fr 1fr; gap:24px;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .stat-band .container{grid-template-columns:1fr 1fr; gap:24px;}
  .nav-links{
    position:fixed; top:64px; left:0; right:0; background:#fff;
    flex-direction:column; align-items:flex-start; padding:20px 24px; gap:16px;
    border-bottom:1px solid var(--border); display:none;
  }
  .nav-links.open{display:flex;}
  .dropdown-menu{position:static; display:block; box-shadow:none; border:none; padding:0 0 0 16px; margin-top:6px;}
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu{display:block;}
  .nav-toggle{display:block; background:none; border:1px solid var(--border); border-radius:6px; padding:8px 10px; cursor:pointer;}
}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important;}
}
