/* ============================================================
   TechFuzionIT — Design tokens
   Concept: "fuzion seam" — two colors (signal blue / circuit
   copper) meeting along a soft diagonal, echoing the literal
   idea of fusion. Used once boldly (hero), then as a thin
   gradient rule between sections. Everything else stays quiet.
   ============================================================ */

:root {
  --ink: #0F1626;
  --ink-soft: #1B2437;
  --paper: #F6F7FB;
  --paper-dim: #ECEEF4;
  --white: #FFFFFF;
  --blue: #2454FF;
  --blue-dim: #DCE4FF;
  --copper: #C9762E;
  --copper-dim: #F4E3D2;
  --slate: #5B6472;
  --slate-light: #8892A0;
  --border: #E2E5EC;
  --border-dark: #2A3346;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1120px;
  --shadow: 0 1px 2px rgba(15, 22, 38, 0.04), 0 8px 24px rgba(15, 22, 38, 0.06);
}

/* ============================================================
   Reset & base
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--slate); }

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

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper);
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #1c46e0; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  margin-top: 2rem;
}
.btn-outline:hover { border-color: var(--slate); }

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-accent { color: var(--blue); }

.main-nav { position: relative; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ink);
  border-bottom-color: var(--copper);
}
.nav-menu a.nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
}
.nav-menu a.nav-cta:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============================================================
   Flash messages
   ============================================================ */

.flash-wrap { padding-top: 1rem; }
.flash {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
.flash-success {
  background: #E3F3EA;
  color: #1F6B3F;
  border: 1px solid #BFE3CE;
}

/* ============================================================
   Hero + signature seam element
   ============================================================ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.hero-seam {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(45% 65% at 20% 30%, rgba(36, 84, 255, 0.55), transparent 70%),
    radial-gradient(50% 70% at 78% 65%, rgba(201, 118, 46, 0.5), transparent 70%);
  filter: blur(60px);
  opacity: 0.9;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero .eyebrow { color: #9FB4FF; }

.hero-title { margin-bottom: 0.6em; }

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Thin gradient rule reusing the seam concept between sections */
.seam-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--copper));
  opacity: 0.55;
}
.seam-divider.thin { opacity: 0.3; margin: 2.5rem 0; }

/* ============================================================
   Stats band
   ============================================================ */

.stats {
  background: var(--ink-soft);
  color: var(--white);
  padding: 2.2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: #9FB4FF;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ============================================================
   Sections (generic)
   ============================================================ */

.section { padding: 4.5rem 0; }

/* ============================================================
   Services teaser grid (homepage)
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  letter-spacing: 0.02em;
}

.service-card h3 { margin-bottom: 0.2rem; }
.service-card p { margin-bottom: 0.4rem; font-size: 0.92rem; }

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
}

/* ============================================================
   Approach section (homepage)
   ============================================================ */

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.approach-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.approach-list li:last-child { border-bottom: 1px solid var(--border); }

.approach-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
  display: block;
  margin-bottom: 0.3rem;
}
.approach-list p { margin: 0; font-size: 0.92rem; }

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  background: var(--paper-dim);
  text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-inner p { margin-bottom: 1.5rem; }

/* ============================================================
   Page header (services / about / contact / 404)
   ============================================================ */

.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-sub {
  font-size: 1.05rem;
  max-width: 540px;
}
.error-page { text-align: center; }
.error-page .page-sub { margin: 0 auto 1.5rem; }

/* ============================================================
   Services detail page
   ============================================================ */

.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
.service-detail-head h2 { margin-bottom: 0.4rem; }
.service-detail-lead { font-size: 1rem; max-width: 640px; }

.included-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.included-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

/* ============================================================
   About page
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.about-grid p { font-size: 0.95rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-card p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   Contact page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field { margin-bottom: 1.25rem; }
.field label,
.hp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.field-error {
  display: block;
  color: #C0392B;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* Honeypot field: present in the DOM for bots, invisible to real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-block { border-top: 1px solid var(--border); padding-top: 1rem; }
.footer-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  margin-bottom: 0.35rem;
}
.aside-block a { color: var(--blue); font-weight: 600; }
.aside-block p { margin: 0; font-size: 0.9rem; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 320px; margin-top: 0.6rem; }
.footer-links { display: flex; gap: 3rem; }
.footer-links > div { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a, .footer-static { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   Scroll reveal (progressive enhancement, JS adds .in-view)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .service-grid,
  .stats-grid,
  .values-grid { grid-template-columns: 1fr; }

  .approach-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .service-detail { grid-template-columns: 1fr; gap: 0.75rem; }

  .footer-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    min-width: 200px;
    gap: 0.2rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.6rem 0.7rem; border-bottom: none !important; border-radius: var(--radius-sm); }
  .nav-menu a:hover, .nav-menu a.active { background: var(--paper-dim); }
  .nav-menu a.nav-cta { text-align: center; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
