/* NAI Systems basic static website */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --soft: #f5f5f3;
  --line: #e5e5e0;
  --accent: #1468e8;
  --accent-dark: #0c4da8;
  --accent-soft: #eef5ff;
  --teal: #079f9b;
  --teal-soft: #eafaf8;
  --violet: #7356d9;
  --panel: #102d58;
  --panel-text: #f5f5f3;
  --max: 1120px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.35rem;
}

ul,
ol {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #111;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-name {
  white-space: nowrap;
}

.footer-brand {
  font-weight: 750;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--soft);
}

.site-nav .nav-cta {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 5px 16px rgba(20, 104, 232, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  padding: 92px 0 74px;
  background:
    radial-gradient(circle at 82% 14%, rgba(7, 159, 155, 0.14), transparent 24rem),
    radial-gradient(circle at 12% 18%, rgba(20, 104, 232, 0.12), transparent 28rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
}

.hero-lead {
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(20, 104, 232, 0.18);
}

.button.secondary {
  background: #fff;
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-panel,
.contact-card,
.project-card,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.hero-panel {
  padding: 28px;
  background: linear-gradient(145deg, var(--panel), #114c76 62%, #087f82);
  color: var(--panel-text);
  box-shadow: 0 20px 50px rgba(16, 45, 88, 0.18);
}

.hero-panel .signal-list {
  color: #fff;
}

.hero-panel .panel-label {
  color: #dcecff;
  opacity: 1;
}

.panel-label,
.tag {
  display: inline-flex;
  margin-bottom: 18px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  position: relative;
  padding-left: 24px;
}

.signal-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.section {
  padding: 84px 0;
}

.section.muted {
  background: linear-gradient(135deg, var(--accent-soft), var(--teal-soft));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 28px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 10px 28px rgba(16, 45, 88, 0.05);
}

.card:nth-child(2n) {
  border-top-color: var(--teal);
}

.card:nth-child(3n) {
  border-top-color: var(--violet);
}

.card p {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.cta {
  padding: 84px 0;
}

.cta-box {
  padding: 54px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, var(--panel), #114c76 62%, #087f82);
  color: var(--panel-text);
  box-shadow: 0 20px 50px rgba(16, 45, 88, 0.16);
}

.cta-box p {
  max-width: 720px;
  color: #cfcfca;
}

.cta-box .button.primary {
  margin-top: 16px;
  background: #fff;
  color: #111;
  border-color: #fff;
}

.page-hero {
  padding: 68px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, rgba(7, 159, 155, 0.13), transparent 22rem),
    linear-gradient(135deg, var(--accent-soft), #fff 68%);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.15rem;
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-item:first-child {
  padding-top: 0;
}

.service-item ul {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-left: 22px;
}

.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card,
.contact-card {
  padding: 32px;
  box-shadow: 0 10px 28px rgba(16, 45, 88, 0.05);
}

.project-card .tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  opacity: 1;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
}

.contact-list div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.contact-list a,
.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.contact-list a:hover,
.contact-list a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.project-card:nth-child(2n) .tag {
  color: #08706e;
  background: var(--teal-soft);
}

.contact-card:first-child {
  border-top: 3px solid var(--accent);
}

.contact-card:last-child {
  border-top: 3px solid var(--teal);
  background: linear-gradient(145deg, #fff, var(--teal-soft));
}

.site-footer {
  padding: 44px 0 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
  color: var(--muted);
  font-weight: 650;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid,
  .split,
  .service-item,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .cta {
    padding: 58px 0;
  }

  .cta-box {
    padding: 34px 24px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }
}
