/* ================================================================
   db3 ConServe — B2B Facility Services
   Dark institutional aesthetic. Steel blue accent.
   ================================================================ */

/* Fonts loaded via <link preload> in HTML — no CSS @import needed */

/* ── 1. Custom Properties ───────────────────────────────────── */
:root {
  --bg-deep:    #0c0e12;
  --bg-0:       #111318;
  --bg-1:       #1a1d23;
  --bg-2:       #22262e;
  --bg-3:       #2a2f38;
  --border:     #333a45;
  --border-lt:  #3d4552;
  --text-1:     #e8eaed;
  --text-2:     #9ba3af;
  --text-3:     #636b78;
  --accent:     #4A90D9;
  --accent-h:   #6AABEF;
  --accent-dim: #2d6cb5;
  --accent-soft:rgba(74,144,217,0.10);
  --white:      #ffffff;
  --font-h:     'Sora', system-ui, sans-serif;
  --font-b:     'Inter', system-ui, sans-serif;
  --ease:       cubic-bezier(.16,1,.3,1);
  --container:  1140px;
}

/* ── 2. Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── 3. Utilities ───────────────────────────────────────────── */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.75;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.js .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: .08s; }
.stagger.visible > *:nth-child(3) { transition-delay: .16s; }
.stagger.visible > *:nth-child(4) { transition-delay: .24s; }
.stagger.visible > *:nth-child(5) { transition-delay: .32s; }
.stagger.visible > *:nth-child(6) { transition-delay: .40s; }

/* ── 4. Header ──────────────────────────────────────────────── */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17,19,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51,58,69,0.5);
  transition: background .3s;
}
.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.hdr-logo {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-logo .db3 { color: var(--accent); }
.hdr-logo .mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hdr-nav a {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.5px;
  transition: color .2s;
}
.hdr-nav a:hover { color: var(--text-1); }
.hdr-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background .2s, transform .2s !important;
}
.hdr-cta:hover {
  background: var(--accent-h) !important;
  transform: translateY(-1px);
}
.hdr-phone {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color .2s;
}
.hdr-phone:hover { color: var(--accent); }

/* Mobile nav */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--bg-0);
  z-index: 99;
  padding: 40px 24px;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ── 5. Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(74,144,217,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(74,144,217,0.03) 0%, transparent 60%);
  pointer-events: none;
}
/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,144,217,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,217,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .section-label { animation: fadeUp .6s var(--ease) .1s both; }
.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp .6s var(--ease) .2s both;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp .6s var(--ease) .3s both;
}
.hero .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .6s var(--ease) .4s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,144,217,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 6. Credibility Bar ─────────────────────────────────────── */
.cred-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.cred-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cred-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border: 1px solid rgba(74,144,217,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cred-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.cred-text {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.cred-text span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── 7. Services ────────────────────────────────────────────── */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.svc-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.svc-card:hover::before { opacity: 1; }
.svc-num {
  font-family: var(--font-h);
  font-size: 48px;
  font-weight: 800;
  color: var(--bg-3);
  line-height: 1;
  margin-bottom: 20px;
  transition: color .3s;
}
.svc-card:hover .svc-num { color: var(--accent-soft); }
.svc-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.svc-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.svc-tag {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-3);
}

/* ── 8. Differentiators ─────────────────────────────────────── */
.diff { padding: 100px 0; background: var(--bg-1); }
.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
.diff-list { display: flex; flex-direction: column; gap: 32px; }
.diff-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.diff-marker {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border: 1px solid rgba(74,144,217,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.diff-marker svg { width: 18px; height: 18px; fill: var(--accent); }
.diff-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.diff-item p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
}
.diff-stats {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
}
.diff-stats .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.stat-block {}
.stat-val {
  font-family: var(--font-h);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── 9. About ───────────────────────────────────────────────── */
.about { padding: 100px 0; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-2);
}
.about-text p strong { color: var(--text-1); }
.about-certs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cert-badge {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cert-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.cert-label {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.cert-label span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 1px;
}

.about-values {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.about-values h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
}
.value-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }
.value-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.value-item p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── 10. Contact / CTA ──────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-1);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(74,144,217,0.06), transparent);
  pointer-events: none;
}
.contact .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro {}
.contact-intro .section-title { margin-bottom: 16px; }
.contact-intro .section-sub { margin-bottom: 32px; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-detail .cd-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail .cd-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.contact-detail .cd-text {
  font-size: 14px;
  color: var(--text-2);
}
.contact-detail .cd-text strong {
  display: block;
  color: var(--text-1);
  font-weight: 600;
}

.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.contact-form-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}
.form-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.5;
}

/* ── 11. Footer ─────────────────────────────────────────────── */
.ftr {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.ftr .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.ftr-brand {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.ftr-brand .db3 { color: var(--accent); }
.ftr-links {
  display: flex;
  gap: 24px;
}
.ftr-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color .2s;
}
.ftr-links a:hover { color: var(--text-1); }
.ftr-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── 12. Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .burger { display: flex; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero h1 { font-size: clamp(34px, 8vw, 52px); }
  .services-grid { grid-template-columns: 1fr; }
  .fit [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .diff-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .cred-bar .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero .hero-sub { font-size: 16px; }
  .ctas { flex-direction: column; }
  .ctas .btn { width: 100%; justify-content: center; }
  .cred-bar .wrap { grid-template-columns: 1fr; }
  .diff-stats .stat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .svc-card { padding: 28px 24px; }
  .ftr .wrap { flex-direction: column; text-align: center; }
}

/* ── Accessibility ──────────────────────────────────────────── */
/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure minimum touch targets on mobile */
@media (max-width: 900px) {
  .hdr-nav a, .mobile-nav a, .ftr-links a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal, .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
