/*
Theme Name: B&T Solutions 2026
Theme URI: https://bandtsolutions.com
Author: B&T Solutions
Description: Modern, lightweight custom theme for B&T Solutions — a US-based, remote-first software & technology partner.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bt2026
*/

:root {
  --brand: #2A50FF;
  --brand-600: #1D3BE0;
  --brand-tint: #E9EDFF;
  --ink: #0B1020;
  --ink-soft: #1A2138;
  --paper: #F7F8FC;
  --surface: #FFFFFF;
  --line: #E4E8F4;
  --muted: #5B6480;
  --muted-2: #858DA6;
  --glow: rgba(42,80,255,0.16);
  --shadow: 0 24px 60px -28px rgba(11,16,32,0.28);
  --shadow-sm: 0 10px 30px -18px rgba(11,16,32,0.35);
  --maxw: 1160px;
  --r: 18px;
  --sans: "SF Pro Display","Segoe UI Variable","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --mono: "SF Mono","JetBrains Mono","Cascadia Mono",ui-monospace,"Menlo",monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #6E86FF; --brand-600: #536EFF; --brand-tint: #171E38;
    --ink: #EAEDF7; --ink-soft: #C6CCE0; --paper: #080B16; --surface: #0F1424;
    --line: #222A44; --muted: #9AA2BE; --muted-2: #737B99;
    --glow: rgba(110,134,255,0.22);
    --shadow: 0 24px 60px -28px rgba(0,0,0,0.7); --shadow-sm: 0 10px 30px -18px rgba(0,0,0,0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #6E86FF; --brand-600: #536EFF; --brand-tint: #171E38;
  --ink: #EAEDF7; --ink-soft: #C6CCE0; --paper: #080B16; --surface: #0F1424;
  --line: #222A44; --muted: #9AA2BE; --muted-2: #737B99;
  --glow: rgba(110,134,255,0.22);
  --shadow: 0 24px 60px -28px rgba(0,0,0,0.7); --shadow-sm: 0 10px 30px -18px rgba(0,0,0,0.8);
}
:root[data-theme="light"] {
  color-scheme: light;
  --brand: #2A50FF; --brand-600: #1D3BE0; --brand-tint: #E9EDFF;
  --ink: #0B1020; --ink-soft: #1A2138; --paper: #F7F8FC; --surface: #FFFFFF;
  --line: #E4E8F4; --muted: #5B6480; --muted-2: #858DA6;
  --glow: rgba(42,80,255,0.16);
  --shadow: 0 24px 60px -28px rgba(11,16,32,0.28); --shadow-sm: 0 10px 30px -18px rgba(11,16,32,0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brand); display: inline-block; }
.section-eyebrow { justify-content: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.brand-word { line-height: 1; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  position: relative; letter-spacing: -0.04em;
  box-shadow: 0 6px 16px -6px var(--glow);
}
.brand b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px var(--glow); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-soft);
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.menu-btn { display: none; }

/* Mobile nav panel */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }
.mobile-nav {
  position: fixed; inset: 74px 0 auto 0; z-index: 49; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 24px 26px;
}
.mobile-nav a { display: block; padding: 13px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn-primary { margin-top: 16px; justify-content: center; width: 100%; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 92px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; margin-top: 22px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 30em; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.hero-meta .item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.hero-visual { position: relative; }
.glow { position: absolute; inset: -20% -10% -20% -20%; z-index: 0; background: radial-gradient(60% 60% at 70% 35%, var(--glow), transparent 70%); filter: blur(8px); }
.device { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; transform: rotate(-1.2deg); }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: inline-block; }
.device-bar i:first-child { background: #ff5f57; } .device-bar i:nth-child(2){ background:#febc2e;} .device-bar i:nth-child(3){ background:#28c840;}
.device-bar span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 16px; }
.app-title { font-weight: 700; font-size: 15px; }
.app-chip { font-family: var(--mono); font-size: 10.5px; color: var(--brand); background: var(--brand-tint); padding: 4px 9px; border-radius: 6px; letter-spacing: .05em; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 6px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat-card .k { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; }
.stat-card .v { font-size: 22px; font-weight: 800; margin-top: 6px; letter-spacing: -0.03em; }
.stat-card .v small { font-size: 13px; color: var(--brand); font-weight: 700; margin-left: 4px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 46px; margin-top: 12px; }
.bars b { flex: 1; background: linear-gradient(var(--brand), var(--brand-600)); border-radius: 4px 4px 2px 2px; opacity: .85; display:block; }
.float-badge { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; }
.float-badge .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.fb-1 { top: -22px; right: -14px; } .fb-2 { bottom: -20px; left: -26px; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 22px; flex-wrap: wrap; }
.trust .lead { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; flex-wrap: wrap; }
.trust li { font-weight: 700; font-size: 15px; color: var(--ink-soft); letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
.head-center { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.head-center h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 16px; }
.head-center p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .2s ease, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.svc .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 20px; }
.svc h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.svc p { margin-top: 11px; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.svc .tag { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding-top: 26px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--brand); font-weight: 600; letter-spacing: .1em; }
.step h3 { font-size: 19px; margin-top: 12px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.step::before { content:""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--brand); border-radius: 2px; }

/* Why / stats */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.why h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-top: 16px; }
.why p.lede { margin-top: 20px; color: var(--muted); font-size: 17.5px; }
.why ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.why li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.why li .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.fact .big { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); font-variant-numeric: tabular-nums; }
.fact .lbl { margin-top: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; }

/* CTA */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-600)); border-radius: 28px; padding: 66px 32px; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,.18), transparent 60%); }
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: #fff; }
.cta-band p { margin-top: 16px; color: rgba(255,255,255,.9); font-size: 18px; max-width: 40ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-600); margin-top: 30px; }
.cta-band .btn-primary:hover { background: #fff; color: var(--brand-600); }

/* ---------- Contact page ---------- */
.page-hero { padding: 64px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-top: 18px; }
.page-hero p { margin-top: 18px; color: var(--muted); font-size: 19px; max-width: 44ch; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; padding-top: 40px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; color: #fff; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted-2); text-align: center; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 22px; font-weight: 500; }
.alert-ok { background: color-mix(in srgb, #16a34a 14%, var(--surface)); color: #12833f; border: 1px solid color-mix(in srgb, #16a34a 30%, var(--line)); }
.alert-err { background: color-mix(in srgb, #dc2626 12%, var(--surface)); color: #c0392b; border: 1px solid color-mix(in srgb, #dc2626 28%, var(--line)); }
.info-list { display: grid; gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.info-item .ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.info-item .k { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.info-item .v { font-size: 16.5px; font-weight: 600; margin-top: 4px; color: var(--ink); }
.info-item a.v:hover { color: var(--brand); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 62px 0 34px; }
.foot .brand { margin-bottom: 16px; }
.foot p.tag { color: var(--muted); font-size: 15px; max-width: 30ch; }
.foot h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot a { color: var(--ink-soft); font-size: 15px; }
.foot a:hover { color: var(--brand); }
.foot .contact-line { color: var(--ink-soft); font-size: 15px; display: flex; gap: 9px; align-items: flex-start; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--brand); color: var(--brand); }
.foot-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13.5px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc .ic svg.i { width: 24px; height: 24px; }

/* Responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 460px; }
  .services { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links, .nav-right .btn-ghost, .nav-right .btn-primary { display: none; }
  .menu-btn { display: grid; }
  section.block { padding: 68px 0; }
  .services, .process, .facts, .foot { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .cta-band { border-radius: 20px; }
  .float-badge { display: none; }
  .trust .wrap { justify-content: flex-start; }
  .contact-card { padding: 24px; }
}
