/* =========================================
   SPENCER IT SOLUTIONS — STYLESHEET
   ========================================= */

/* --- TOKENS --- */
:root {
  --navy:       #0d1117;
  --navy-mid:   #161d27;
  --navy-card:  #1c2433;
  --navy-border:#263040;
  --blue:       #3b82f6;
  --blue-bright:#60a5fa;
  --blue-dim:   #1d4ed8;
  --white:      #f0f4ff;
  --white-dim:  #94a3b8;
  --white-mute: #475569;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --transition: 0.22s ease;
  --shadow-card: 0 2px 20px rgba(0,0,0,0.35);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- UTILITIES --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pad { padding: 6rem 0; }
.text-accent { color: var(--blue); }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}
.section-header { margin-bottom: 4rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--navy-border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  background: rgba(59,130,246,0.06);
}
.btn-full { width: 100%; justify-content: center; }

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--navy-border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark.small {
  width: 28px; height: 28px;
  font-size: 0.85rem;
  border-radius: 4px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}
.logo-accent { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-dim);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: var(--blue-bright); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.45rem 1.25rem;
}
.nav-cta:hover, .nav-cta.active {
  background: var(--blue-bright) !important;
  color: #fff !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(59,130,246,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto 0 max(2rem, calc(50vw - 580px));
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-mute);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white-mute), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* --- QUICK SERVICES --- */
.quick-services {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 2rem 0;
}
.qs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.qs-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 2rem;
  border-right: 1px solid var(--navy-border);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-dim);
  transition: color var(--transition);
}
.qs-item:last-child { border-right: none; }
.qs-item:hover { color: var(--white); }
.qs-icon { font-size: 1.1rem; }

/* --- WHY SECTION --- */
.why-section { background: var(--navy); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.why-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.why-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.why-card p { color: var(--white-dim); font-size: 0.92rem; line-height: 1.65; }

/* --- CTA BAND --- */
.cta-band {
  background: linear-gradient(135deg, #0d1f3c 0%, #0d1117 100%);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}
.cta-inner p { color: var(--white-dim); margin-top: 0.35rem; }

/* --- PAGE HERO --- */
.page-hero {
  padding: 9rem 0 5rem;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--navy-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--white-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* --- SERVICES PAGE --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.service-card--cta {
  background: linear-gradient(135deg, #0d1f3c 0%, var(--navy-card) 100%);
  border-color: rgba(59,130,246,0.3);
}
.service-icon-wrap {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.service-card p {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--white-mute);
  padding-left: 1.1rem;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
}

/* --- ABOUT PAGE --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 6rem;
}
.about-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 auto 1rem;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.about-title {
  color: var(--blue-bright);
  font-size: 0.85rem;
}
.about-divider {
  height: 1px;
  background: var(--navy-border);
  margin: 1.25rem 0;
}
.about-facts {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  gap: 0.5rem;
}
.fact-label {
  color: var(--white-mute);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.about-facts a { color: var(--blue-bright); }
.about-facts a:hover { text-decoration: underline; }

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--navy-border);
  padding-top: 4rem;
}
.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}
.value-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.value-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.value-item p { color: var(--white-dim); font-size: 0.88rem; line-height: 1.65; }

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-intro {
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-method:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}
.method-icon { font-size: 1.4rem; flex-shrink: 0; }
.method-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.method-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.method-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.method-note { font-size: 0.82rem; color: var(--white-mute); }
.contact-note {
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--white-dim);
}
.contact-note strong { color: var(--white); }

/* --- FORM --- */
.contact-form-wrap {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.optional {
  color: var(--white-mute);
  font-weight: 400;
  font-size: 0.78rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy);
  border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group select {
  appearance: none;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-mute);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fca5a5;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.form-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--white-mute);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon {
  width: 56px; height: 56px;
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  color: #4ade80;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}
.form-success a { color: var(--blue-bright); }

/* --- FOOTER --- */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--white-mute);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--white-mute);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: fadeUp 0.7s ease backwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-heading { animation-delay: 0.2s; }
.hero-sub     { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .why-grid, .values-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,17,23,0.97);
    backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.4rem; }
  .nav-toggle { display: flex; z-index: 101; }
  .qs-grid { gap: 0.5rem; }
  .qs-item { border-right: none; border-bottom: 1px solid var(--navy-border); width: 100%; }
  .cta-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
}
