/* ============================================================
   TechTime Consults — Design System
   ============================================================ */

:root {
  /* Brand blues */
  --blue-900: #042C53;
  --blue-800: #0C447C;
  --blue-700: #124F8F;
  --blue-600: #185FA5;
  --blue-500: #2E75BC;
  --blue-400: #5B93CF;
  --blue-200: #B5D4F4;
  --blue-100: #D9E9FA;
  --blue-50:  #E6F1FB;

  /* Ink / neutrals */
  --ink: #131A24;
  --ink-soft: #4A5568;
  --ink-mute: #8993A4;
  --paper: #FFFFFF;
  --paper-soft: #F6F8FB;
  --paper-tint: #F0F5FB;
  --border: #E1E7EF;
  --border-strong: #C9D3E0;

  /* Type */
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 26, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 68, 124, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

p { color: var(--ink-soft); }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------- Eyebrow / labels ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 4px 14px rgba(24, 95, 165, 0.28); }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-50); }
.btn-block { width: 100%; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.logo .mark { flex-shrink: 0; }
.logo .word-light { color: var(--ink-mute); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 22px;
}
.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-panel a {
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-panel .btn { margin-top: 12px; }
.mobile-panel.open { display: flex; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative;
  padding: 108px 24px 96px;
  text-align: center;
  overflow: hidden;
  background: var(--paper);
}
.hero-nodes {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 52px; margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue-600); }
.hero .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { padding: 72px 20px 64px; }
  .hero h1 { font-size: 34px; }
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  background: var(--blue-800);
  background-image: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  padding: 72px 24px 64px;
  text-align: center;
  color: #fff;
}
.page-hero .eyebrow { color: var(--blue-200); }
.page-hero .eyebrow::before { background: var(--blue-200); }
.page-hero h1 { color: #fff; font-size: 38px; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; font-size: 16px; }

/* ---------------- Sections ---------------- */
.section { padding: 88px 24px; }
.section-tight { padding: 64px 24px; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-tint { background: var(--paper-soft); }
.bg-dark { background: var(--blue-900); color: #fff; }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark p { color: rgba(255,255,255,0.72); }

.divider { border: none; border-top: 1px solid var(--border); }

/* ---------------- Grids ---------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------- Cards ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 18px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 14.5px; }

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 16px;
}

/* Left-accent card */
.accent-card {
  border-left: 3px solid var(--blue-600);
  background: var(--paper-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
}
.accent-card h4 { margin-bottom: 6px; }
.accent-card p { font-size: 14px; }

/* Numbered step */
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step-num {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.step h4 { margin-bottom: 4px; }
.step p { font-size: 14.5px; }

/* Pillar (services page) */
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
}
.pillar-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  background: var(--blue-50);
}
.pillar-num {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.pillar-head h2 { font-size: 20px; color: var(--blue-900); margin-bottom: 3px; }
.pillar-head p { font-size: 13.5px; color: var(--blue-700); margin: 0; }
.pillar-body { padding: 30px; }
.pillar-body > .lede { font-size: 15px; margin-bottom: 22px; }
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.sub-item { background: var(--paper-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.sub-item h4 { font-size: 13.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sub-item h4 i { color: var(--blue-600); font-size: 15px; }
.sub-item p { font-size: 13px; margin: 0; }
@media (max-width: 640px) { .sub-grid { grid-template-columns: 1fr; } .pillar-body { padding: 22px; } .pillar-head { padding: 20px; } }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--blue-800);
  background-image: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band-wrap { padding: 0 24px; margin: 0 auto 88px; max-width: var(--container); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--paper-soft); border-top: 1px solid var(--border); padding: 64px 24px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 280px; margin-bottom: 24px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); font-weight: 700; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a, .footer ul li { font-size: 14px; color: var(--ink-soft); }
.footer ul li a:hover { color: var(--blue-600); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li i { color: var(--blue-600); font-size: 14px; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
}
.field-error { color: #C0392B; font-size: 12.5px; margin-top: 6px; display: none; }
.field-error.show { display: block; }
.form-note { font-size: 13px; color: var(--ink-mute); margin-top: 14px; text-align: center; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.form-status.success { display: block; background: #EAF6EE; color: #1E7A3C; }
.form-status.error { display: block; background: #FBEAEA; color: #B5312A; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------- Contact detail cards ---------------- */
.detail-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.detail-card .icon-tile { margin-bottom: 0; width: 38px; height: 38px; font-size: 16px; flex-shrink: 0; }
.detail-card h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 700; margin-bottom: 4px; }
.detail-card p { font-size: 14.5px; color: var(--ink); margin: 0; }

/* ---------------- Notice boxes ---------------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.notice i { color: var(--blue-600); font-size: 20px; margin-top: 2px; }
.notice h4 { color: var(--blue-900); margin-bottom: 4px; }
.notice p { font-size: 14px; color: var(--blue-800); margin: 0; }

/* ---------------- Role tags / badges ---------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600; font-size: 14px;
}
.tag i { color: var(--blue-600); font-size: 17px; }

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ============================================================
   Motion system — scroll reveals, hero entrance, chart draw-ins
   ============================================================ */

/* Scroll reveal: JS toggles .visible via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger direct children of a grid as they reveal */
.grid > .reveal:nth-child(2) { transition-delay: 90ms; }
.grid > .reveal:nth-child(3) { transition-delay: 180ms; }
.grid > .reveal:nth-child(4) { transition-delay: 270ms; }

/* Hero entrance on page load (home) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUpIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .hero h1 { animation: fadeUpIn 0.85s cubic-bezier(.16,.84,.44,1) both; }
  .hero .lede { animation: fadeUpIn 0.85s cubic-bezier(.16,.84,.44,1) both; animation-delay: .12s; }
  .hero-actions { animation: fadeUpIn 0.85s cubic-bezier(.16,.84,.44,1) both; animation-delay: .24s; }
  .page-hero .eyebrow { animation: fadeUpIn 0.7s cubic-bezier(.16,.84,.44,1) both; }
  .page-hero h1 { animation: fadeUpIn 0.7s cubic-bezier(.16,.84,.44,1) both; animation-delay: .08s; }
  .page-hero p { animation: fadeUpIn 0.7s cubic-bezier(.16,.84,.44,1) both; animation-delay: .16s; }
}

/* Chart draw-in primitives, used by both the homepage chart and the services dashboard mock */
.reveal .draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.15s cubic-bezier(.16,.84,.44,1) .3s;
}
.reveal.visible .draw-line { stroke-dashoffset: 0; }

.reveal .grow-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .7s cubic-bezier(.16,.84,.44,1);
}
.reveal.visible .grow-bar { transform: scaleY(1); }
.reveal.visible .grow-bar:nth-of-type(2) { transition-delay: .05s; }
.reveal.visible .grow-bar:nth-of-type(3) { transition-delay: .1s; }
.reveal.visible .grow-bar:nth-of-type(4) { transition-delay: .15s; }
.reveal.visible .grow-bar:nth-of-type(5) { transition-delay: .2s; }
.reveal.visible .grow-bar:nth-of-type(6) { transition-delay: .25s; }

.reveal .pop-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s ease .6s, transform .45s cubic-bezier(.34,1.56,.64,1) .6s;
}
.reveal.visible .pop-dot { opacity: 1; transform: scale(1); }

/* Respect reduced motion fully — everything appears instantly, no exceptions */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .draw-line, .reveal .grow-bar, .reveal .pop-dot {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---------------- Ambient backgrounds ---------------- */
.hero, .page-hero, .cta-band { position: relative; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero .blob-a { width: 380px; height: 380px; background: var(--blue-100); opacity: .55; top: -140px; left: -100px; }
.hero .blob-b { width: 320px; height: 320px; background: var(--blue-50); opacity: .7; bottom: -160px; right: -60px; }
.page-hero .blob-a { width: 300px; height: 300px; background: rgba(91,147,207,0.35); top: -120px; left: -60px; }
.page-hero .blob-b { width: 260px; height: 260px; background: rgba(181,212,244,0.25); bottom: -140px; right: -40px; }
.cta-band .blob-a { width: 260px; height: 260px; background: rgba(181,212,244,0.3); top: -100px; right: -60px; }

.dot-grid {
  background-image: radial-gradient(circle, rgba(24,95,165,0.16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---------------- Refined hover states ---------------- */
.card { transition: border-color .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.16,.84,.44,1); }
.card:hover { border-color: var(--blue-200); box-shadow: 0 14px 32px rgba(12,68,124,0.14); transform: translateY(-4px); }
.icon-tile { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s ease; }
.card:hover .icon-tile { transform: scale(1.08) rotate(-4deg); background: var(--blue-100); }

.pillar { transition: box-shadow .3s ease, border-color .3s ease; }
.pillar:hover { border-color: var(--blue-200); box-shadow: 0 16px 36px rgba(12,68,124,0.1); }

.accent-card { transition: transform .25s cubic-bezier(.16,.84,.44,1), box-shadow .25s ease; }
.accent-card:hover { transform: translateX(3px); box-shadow: 0 8px 20px rgba(12,68,124,0.08); }

.btn { transition: transform .2s cubic-bezier(.16,.84,.44,1), box-shadow .25s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(24,95,165,0.4); }

.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ---------------- Dashboard mock (services page) ---------------- */
.dashboard-mock { max-width: 620px; margin: 28px auto 4px; }
.dashboard-mock svg { width: 100%; height: auto; display: block; }
.dashboard-mock .widget-bg { fill: var(--paper); stroke: var(--border); }
.dashboard-mock .widget-label { font-family: var(--font-body); font-size: 11px; fill: var(--ink-mute); }

/* ---------------- Homepage chart signature ---------------- */
.chart-section { padding-top: 8px; }
.chart-viz { max-width: 660px; margin: 0 auto; }
.chart-viz svg { width: 100%; height: auto; display: block; }
