/* Inter — self-hosted, no external CDN dependency */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap; src:url('/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ===== QUANBY SOLUTIONS — ENTERPRISE DARK ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060B18;
  --bg-card: #0D1526;
  --bg-elevated: #111D35;
  --teal: #00C896;
  --teal-dim: rgba(0,200,150,0.12);
  --blue: #2563EB;
  --text: rgba(255,255,255,0.90);
  --text-muted: rgba(255,255,255,0.68);
  --text-subtle: rgba(255,255,255,0.58);
  --border: rgba(255,255,255,0.07);
  --border-div: rgba(255,255,255,0.06);
  --radius: 8px;
  --max-w: 1200px;
}

/* ===== TOUCH ACTION (faster tap on mobile) ===== */
button, a, .btn, .service-link, .article-link, .nav-links a, .mobile-menu a,
input, select, textarea, label, [role="button"], summary {
  touch-action: manipulation;
}


html { scroll-behavior: smooth; font-size: 160%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(2.16rem, 3.6vw, 3rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); font-weight: 300; }

.quanby-brand-label {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.quanby-brand-label span { color: var(--teal); }

.eyebrow {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: block;
}
.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,200,150,0.28);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 0.9rem;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: 3rem 0; border-bottom: 1px solid var(--border-div); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 1.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}
.btn-teal { background: var(--teal); color: #060B18; border-color: var(--teal); }
.btn-teal:hover { background: #00b085; border-color: #00b085; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.03); }
.btn-outline-teal { background: transparent; color: var(--teal); border-color: rgba(0,200,150,0.35); }
.btn-outline-teal:hover { background: var(--teal-dim); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,11,24,0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 80px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(6,11,24,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* ===== NAV HAMBURGER AT 960px (iPad breakpoint) ===== */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (min-width: 961px) {
  .nav-links { display: flex !important; }
  .hamburger { display: none !important; }
}


/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: flex-start;
  padding-top: 140px !important;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-div);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr minmax(0, 240px);
  gap: 2rem;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.hero-left { max-width: 620px; }
.hero-headline { margin: 0.5rem 0 1.25rem; }
.hero-body { font-size: 1.08rem; max-width: 500px; margin-bottom: 2rem; line-height: 1.75; }
.hero-ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-trust {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-div);
}
.hero-trust span { display: flex; align-items: center; gap: 0.35rem; }
.hero-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 300px;
  min-width: 240px;
}
.stat-item {
  padding: 1rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.stat-item:nth-child(2) { border-right: none; }
.stat-item:nth-child(3) { border-bottom: none; }
.stat-item:nth-child(4) { border-right: none; border-bottom: none; }
.stat-number { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1; white-space: nowrap; }
.stat-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 400; letter-spacing: 0.02em; white-space: normal; line-height: 1.3; }

/* ===== CLIENTS STRIP ===== */
.clients-strip {
  padding: 3rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-label {
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.client-tile {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  padding: 0.38rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s;
}
.client-tile:hover { color: var(--text-muted); border-color: rgba(255,255,255,0.14); }

/* ===== SERVICES SECTION ===== */
.section-header { margin-bottom: 1.3rem; }
.section-header h2 { margin: 0.5rem 0 0.7rem; }
.section-header p { max-width: 500px; font-size: 0.95rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.2s, border-left-color 0.2s;
  border-left: 3px solid transparent;
}
.service-card:hover {
  background: var(--bg-elevated);
  border-left-color: var(--teal);
}
.service-icon-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.service-icon-wrap i { font-size: 1.35rem; color: var(--teal); }
.service-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.service-card h3 { margin-bottom: 0.45rem; font-size: 1.05rem; color: var(--teal); font-weight: 700; }
.service-card p { font-size: 0.98rem; margin-bottom: 1.2rem; text-align: justify; hyphens: auto; flex: 1; }
.service-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}
.service-card:hover .service-link { gap: 0.45rem; }

/* ===== WHY QUANBY ===== */
.why-rows { margin-top: 1.5rem; }
.why-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-div);
  align-items: start;
}
.why-row:last-child { border-bottom: none; }
.why-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  line-height: 1;
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.why-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }
.why-content p { font-size: 0.98rem; max-width: 580px; }

/* ===== IMPACT NUMBERS ===== */
.impact-band {
  background: var(--bg-card);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.impact-item {
  text-align: center;
  padding: 1.25rem 2rem;
  border-right: 1px solid var(--border);
}
.impact-item:last-child { border-right: none; }
.impact-number { font-size: 2.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.impact-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; font-weight: 400; }

/* ===== INSIGHTS / THE QUILL ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: rgba(255,255,255,0.14); }
.article-img {
  width: 100% !important;
  height: 200px !important;
  max-height: 200px !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
  object-position: center center;
  display: block !important;
  flex-shrink: 0;
}
.article-body { padding: 1.25rem; }
.article-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.article-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-bottom: 0.7rem;
  font-weight: 400;
}
.article-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  transition: opacity 0.2s;
}
.article-link:hover { opacity: 0.8; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { max-width: 460px; margin: 0 auto 2rem; font-size: 0.95rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}
.footer-brand-name {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.footer-brand-name .accent { color: var(--teal); }
.footer-brand p { font-size: 1rem; margin-bottom: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer-offices { font-size: 0.94rem; color: var(--text-subtle); }
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 400;
}
.footer-col ul li a:hover { color: var(--text); }
.footer-contact-item { margin-bottom: 0.65rem; }
.footer-contact-item .c-label {
  font-size: 0.62rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: block;
  margin-bottom: 1px;
}
.footer-contact-item .c-val {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-subtle); font-weight: 400; }

/* ===== INNER PAGE HERO ===== */
.page-hero {
  padding: 140px 0 30px !important;
  border-bottom: 1px solid var(--border-div);
}
.page-hero h1 { margin: 0.4rem 0 0.7rem; }
.page-hero p { max-width: 580px; font-size: 1rem; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { margin-bottom: 1.1rem; font-size: 0.92rem; }
.facts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.facts-card h4 {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}
.fact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.fact-item:last-child { border-bottom: none; }
.fact-key { color: var(--text-muted); font-weight: 400; }
.fact-val { color: var(--text); font-weight: 600; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.value-card i { font-size: 1.4rem; color: var(--teal); margin-bottom: 0.7rem; display: block; }
.value-card h3 { font-size: 0.92rem; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.82rem; }
.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 480px;
  margin-top: 2.25rem;
}
.leadership-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.leadership-info h3 { font-size: 0.97rem; margin-bottom: 0.15rem; }
.leadership-info .role { font-size: 0.78rem; color: var(--teal); font-weight: 500; margin-bottom: 0.35rem; display: block; }
.leadership-info p { font-size: 0.82rem; }

/* ===== PRODUCTS PAGE ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: rgba(0,200,150,0.2); }
.product-icon { font-size: 1.8rem; color: var(--teal); margin-bottom: 0.9rem; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.product-card > p { font-size: 0.88rem; margin-bottom: 1.2rem; }
.product-features { margin-bottom: 1.5rem; }
.product-features li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.32rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}
.product-features li::before { content: '—'; color: var(--teal); font-weight: 600; flex-shrink: 0; }

/* ===== SUPPORT PAGE ===== */
.support-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.channel-card i { font-size: 1.8rem; color: var(--teal); margin-bottom: 0.9rem; display: block; }
.channel-card h3 { margin-bottom: 0.45rem; font-size: 1rem; }
.channel-card p { font-size: 0.85rem; }
.hours-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hours-item .hours-label {
  font-size: 0.62rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.hours-item .hours-val { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(13,21,38,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.62rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
  font-weight: 300;
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--teal, #00b4d8); outline-offset: 3px; border-radius: 4px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--teal, #00b4d8);
  outline-offset: 2px;
  border-color: rgba(0,200,150,0.38);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }
.form-group select option { background: #0D1526; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit-row { grid-column: 1 / -1; }
.form-success {
  display: none;
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: var(--teal);
  font-size: 0.88rem;
  margin-top: 1rem;
}
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.office-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.7rem;
}
.office-card h3 { font-size: 0.92rem; margin-bottom: 0.6rem; }
.office-card p { font-size: 0.83rem; line-height: 1.65; }

/* ===== OJT PAGE ===== */
.ojt-intro { max-width: 640px; font-size: 0.95rem; margin-bottom: 2.75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }
  .stat-item { border-right: 1px solid var(--border); border-bottom: none; }
  .stat-item:last-child { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-item:nth-child(2) { border-right: none; }
  .impact-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .impact-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .insights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .support-channels { grid-template-columns: 1fr; }
  .contact-form-wrap { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  section { padding: 1.9rem 0; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
  .why-row { grid-template-columns: 60px 1fr; gap: 1.25rem; }
  .why-number { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .clients-row { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 1.9rem; }
  .hero-ctas { flex-direction: column; }
  .values-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE READABILITY FIXES ── */
@media (max-width: 1200px) {
  body { font-size: 15px; }

  /* Hero */
  .quanby-brand-label { font-size: 1.9rem !important; }
  .eyebrow { font-size: 0.8rem !important; letter-spacing: 0.1em; }
  .hero-headline { font-size: clamp(1.9rem, 8vw, 2.6rem) !important; }
  .hero-body { font-size: 1.08rem !important; line-height: 1.7; }
  .hero-trust { font-size: 0.82rem !important; }

  /* Clients strip */
  .clients-label { font-size: 0.98rem !important; color: rgba(255,255,255,0.72) !important; letter-spacing: 0.12em; }
  .client-tile { font-size: 1rem !important; color: rgba(255,255,255,0.68) !important; font-weight: 500; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2,1fr) !important; }
  .service-card { padding: 1.4rem !important; }
  .service-tag { font-size: 0.7rem !important; }
  .service-card h3 { font-size: 1.05rem !important; color: var(--teal) !important; }
  .service-card p { font-size: 0.98rem !important; }

  /* Why Quanby */
  .why-number { font-size: 2rem !important; color: rgba(255,255,255,0.6) !important; }
  .why-content h3 { font-size: 1rem !important; }
  .why-content p { font-size: 0.98rem !important; }

  /* Section headings */
  .section-tag { font-size: 0.72rem !important; }
  section h2 { font-size: clamp(1.8rem, 7.2vw, 2.4rem) !important; }
  section > .container > p { font-size: 1rem !important; }

  /* Article cards */
  .article-card h3 { font-size: 0.95rem !important; }
  .article-card p { font-size: 0.92rem !important; }

  /* Footer */
  .footer-brand-name { font-size: 1.1rem !important; }
  .footer-brand p { font-size: 1rem !important; }
  .footer-col h4 { font-size: 0.72rem !important; }
  .footer-col a, .footer-col li { font-size: 0.95rem !important; }
  .c-label { font-size: 0.72rem !important; }
  .c-val { font-size: 0.88rem !important; }
}

/* ═══════════════════════════════════════════════
   MOBILE READABILITY — targets ≤900px
═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  /* Layout */
  .nav-links, .nav-cta { display: none !important; }
  .hamburger { display: flex !important; }
  .hamburger { display: flex !important; }
  .services-grid { grid-template-columns: repeat(2,1fr) !important; }
  .insights-grid { grid-template-columns: 1fr !important; }
  .hero-inner { grid-template-columns: 1fr !important; }

  /* Base sizing */
  html, body { font-size: 16px !important; }

  /* Body / paragraph text — the main fix */
  p, li, td, th { font-size: 15px !important; line-height: 1.75 !important; }
  .hero-body { font-size: 16px !important; line-height: 1.7 !important; }
  .hero-sub { font-size: 16px !important; }

  /* Service cards */
  .service-card p { font-size: 14px !important; line-height: 1.7 !important; }
  .service-card h3 { font-size: 17px !important; color: var(--teal) !important; }
  .service-tag { font-size: 13px !important; }
  .service-link { font-size: 14px !important; }

  /* Section subheadings */
  .section-header p,
  .section-header > p,
  section > .container > p,
  .section-sub { font-size: 15px !important; line-height: 1.7 !important; }

  /* Why Quanby */
  .why-content p { font-size: 15px !important; line-height: 1.7 !important; }
  .why-content h3 { font-size: 17px !important; }
  .why-number { font-size: 2rem !important; color: rgba(255,255,255,0.6) !important; }

  /* Clients strip */
  .clients-label { font-size: 13px !important; color: rgba(255,255,255,0.75) !important; }
  .client-tile { font-size: 14px !important; color: rgba(255,255,255,0.82) !important; }

  /* Articles */
  .article-card h3 { font-size: 16px !important; }
  .article-card p { font-size: 14px !important; line-height: 1.7 !important; }
  .article-badge { font-size: 13px !important; }
  .article-author { font-size: 13px !important; }
  .article-link { font-size: 14px !important; }

  /* Footer */
  .footer-brand p { font-size: 14px !important; }
  .footer-col h4 { font-size: 12px !important; }
  .footer-col a, .footer-col li { font-size: 14px !important; }
  .c-label { font-size: 12px !important; }
  .c-val { font-size: 14px !important; }
  .footer-offices { font-size: 14px !important; }
  .footer-brand-name { font-size: 18px !important; }
  .footer-bottom p { font-size: 13px !important; }

  /* Buttons */
  .btn { font-size: 15px !important; padding: 12px 20px !important; }

  /* Trust bar */
  .hero-trust span { font-size: 13px !important; }

  /* Misc */
  .eyebrow { font-size: 11px !important; }
  .section-tag { font-size: 11px !important; }
}

/* ══ FORCE READABLE FONT SIZES — all viewports ══ */
.service-card p,
.why-content p { font-size: 0.98rem !important; line-height: 1.75 !important; }
.hero-body { font-size: 1.08rem !important; line-height: 1.7 !important; }
.hero-trust span { font-size: 0.88rem !important; }
.section-header p { font-size: 1rem !important; line-height: 1.7 !important; }

/* ══ RESPONSIVE GRID BREAKPOINTS ══ */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .insights-grid { grid-template-columns: 1fr !important; }
  .hero-inner { grid-template-columns: 1fr !important; }
  p, li { font-size: 1rem !important; }
}

/* ══ FULL JUSTIFY BODY TEXT — all pages ══ */
p,
.hero-body,
.hero-sub,
.why-content p,
.service-card p,
.article-card p,
.footer-brand p,
.article-body p,
.section-header p,
li {
  text-align: justify;
  hyphens: auto;
}

/* Exceptions: keep centered where layout requires it */
.section-header p,
.hero-trust,
.clients-label,
.article-meta,
.footer-bottom p,
.cta-band p {
  text-align: center;
}

/* ══ OJT PAGE — Program Details fixes ══ */
.facts-card h4 {
  font-size: 0.82rem !important;
  color: var(--text) !important;
  opacity: 1 !important;
  letter-spacing: 0.1em;
}
.fact-item {
  font-size: 0.95rem !important;
  gap: 1rem;
  align-items: flex-start;
}
.fact-key {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500 !important;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 110px;
}
.fact-val {
  color: #fff !important;
  font-weight: 600 !important;
  text-align: right;
}

/* ══ FOOTER BOTTOM BAR — mobile stack fix ══ */
footer .container > div[style*= justify-content:space-between],
footer .container > div[style*=justify-content: space-between] {
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  /* Stack footer bottom bar vertically on mobile */
  footer .container > div[style*=space-between] {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  /* Full width for both columns */
  footer .container > div[style*=space-between] > div {
    width: 100% !important;
    min-width: unset !important;
  }
  /* Mobile menu: stack nav links */
  .nav-links { display: none !important; }
  /* Ensure hamburger shows */
  .hamburger { display: flex !important; }
  /* Mobile menu text size */
  .mobile-menu a { font-size: 1.1rem !important; padding: 0.9rem 1.5rem !important; }
}

@media (max-width: 480px) {
  /* Prevent text overflow in footer left column */
  footer .container > div[style*=space-between] > div:first-child {
    max-width: 100% !important;
  }
  /* Logo text wrap */
  footer .container div[style*=white-space:nowrap],
  footer .container div[style*=white-space: nowrap] {
    white-space: normal !important;
  }
}

/* ══ Quill card image fix — fixed height, no 4:3 expansion ══ */
.article-img {
  height: 200px !important;
  aspect-ratio: unset !important;
  max-height: 200px !important;
  object-fit: cover !important;
  object-position: center center;
}
/* Gradient placeholder divs with article-img class */
div.article-img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 200px !important;
  aspect-ratio: unset !important;
}
