/* ============================================
   NoxTech IT Solutions — single page portfolio
   Design language: technical blueprint / schematic
   ============================================ */

:root {
  --navy: #0E1B2B;
  --navy-2: #10202F;
  --paper: #F4F1E8;
  --paper-2: #ECE7D8;
  --ink: #1A2433;
  --cyan: #6FD3E0;
  --amber: #E8A33D;
  --muted-dark: #9FB3C8;
  --muted-light: #5B6B7D;
  --line-dark: rgba(111, 211, 224, 0.18);
  --line-light: rgba(26, 36, 51, 0.14);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

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

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

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

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

button { font: inherit; cursor: pointer; }

ul { list-style: none; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- shared section chrome ---------- */

.sheet {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.sheet--dark {
  background: var(--navy);
  color: var(--paper);
}

.sheet--paper {
  background: var(--paper);
  color: var(--ink);
}

.sheet-tag {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow .num {
  color: var(--amber);
}

.sheet--paper .eyebrow {
  color: var(--ink);
}

.sheet--paper .eyebrow .num {
  color: #B5780F;
}

.about-numbers .figure span {
  color: #B5780F;
}

.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

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

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 56ch;
}

.sheet--dark .lede { color: var(--muted-dark); }
.sheet--paper .lede { color: var(--muted-light); }

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(14, 27, 43, 0.92);
  backdrop-filter: blur(8px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line-dark);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--paper);
  letter-spacing: 0.5px;
}

.brand span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--muted-dark);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  padding: 8px 10px;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  padding-top: 168px;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 14px 14px, rgba(111,211,224,0.10) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow { color: var(--cyan); }

.hero-copy .lede { color: var(--muted-dark); }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  color: var(--paper);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero p.lede {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn--primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn--primary:hover, .btn--primary:focus-visible {
  background: transparent;
  color: var(--amber);
}

.btn--ghost {
  color: var(--cyan);
  border-color: var(--line-dark);
}

.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--cyan);
}

.hero-stats {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
}

.hero-stats .stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper);
  display: block;
}

.hero-stats .stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* ---------- about ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}

.about-col-left {
  border-right: 1px solid var(--line-light);
  padding-right: 32px;
}

.about-numbers {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-numbers .figure {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
}

.about-numbers .figure span {
  color: var(--amber);
}

.about-numbers .figure-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted-light);
  text-transform: uppercase;
}

.about-body p {
  color: var(--muted-light);
  margin-bottom: 18px;
  max-width: 64ch;
}

.about-body p:last-child { margin-bottom: 0; }

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: 48px;
}

.service-card {
  background: var(--navy);
  padding: 36px 28px;
  position: relative;
  transition: background 0.25s ease;
}

.service-card:hover {
  background: var(--navy-2);
}

.service-card .ref {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  opacity: 0.7;
  display: block;
  margin-bottom: 22px;
}

.service-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 17px;
  color: var(--paper);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted-dark);
}

/* ---------- expandable service card (Web Development) ---------- */

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-arrow {
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.service-card--expandable:hover .service-arrow,
.service-card--expandable:focus-within .service-arrow,
.service-card--expandable:focus .service-arrow {
  transform: rotate(180deg);
}

.service-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}

.service-card--expandable:hover .service-sublist,
.service-card--expandable:focus-within .service-sublist,
.service-card--expandable:focus .service-sublist {
  max-height: 220px;
  opacity: 1;
  margin-top: 16px;
}

.service-sublist li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--paper);
  letter-spacing: 0.3px;
  padding: 9px 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 9px;
}

.service-sublist li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ---------- leadership ---------- */

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}

.exec-card {
  background: var(--navy);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.exec-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.exec-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.exec-photo img { width: 100%; height: 100%; object-fit: cover; }

.exec-body {
  padding: 26px 24px 30px;
}

.exec-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.exec-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 12px;
}

.exec-bio {
  font-size: 13.5px;
  color: var(--muted-dark);
}

/* ---------- contact / footer ---------- */

.contact .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.contact-list .row span:first-child {
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  padding: 32px;
  border-radius: 2px;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-light);
  background: var(--paper);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

.contact-form .note {
  font-size: 11px;
  color: var(--muted-light);
  margin-top: 12px;
  text-align: center;
  transition: color 0.2s ease;
}

.contact-form .note.is-success {
  color: #2E7D32;
}

.contact-form .note.is-error {
  color: #C0392B;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

footer {
  background: var(--navy);
  color: var(--muted-dark);
  padding: 36px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

footer .foot-links {
  display: flex;
  gap: 24px;
}

footer .foot-links a:hover,
footer .foot-links a:focus-visible {
  color: var(--cyan);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-col-left { border-right: none; border-bottom: 1px solid var(--line-light); padding-right: 0; padding-bottom: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .contact .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--line-dark);
  }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .sheet { padding: 72px 0; }
}
