/* ==========================================================================
   Global Atlas Testing Solutions — Design System
   Minimalist. No gradients. Navy + Gold.
   ========================================================================== */

:root {
  --navy: #16243f;
  --navy-700: #1e3357;
  --navy-050: #eef1f6;
  --gold: #c29a45;
  --gold-700: #a37f31;

  --ink: #1a2436;
  --muted: #59647a;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --line: #e3e8f0;

  --container: 1120px;
  --radius: 10px;
  --radius-sm: 6px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(22, 36, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 36, 63, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--gold-700);
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

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

.btn--primary:hover {
  background: var(--navy-700);
  color: #fff;
}

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

.btn--gold:hover {
  background: var(--gold-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand__mark {
  height: 42px;
  width: auto;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand__name .accent {
  color: var(--gold-700);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--gold-700);
}

.nav__links a.btn--primary {
  color: #fff;
}

.nav__links a.btn--primary:hover {
  color: #fff;
}

.nav__cta {
  margin-left: 8px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(64px, 9vw, 128px);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero p.lead {
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__figure {
  display: flex;
  justify-content: center;
}

.hero__figure svg,
.hero__figure img {
  width: min(420px, 92%);
  height: auto;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.stat__num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: #cdd6e4;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--navy-050);
  color: var(--navy);
  margin-bottom: 18px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Approach / steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.step__num {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-700);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--gold-700);
  margin-top: 3px;
}

.panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}

.panel h3 {
  color: #fff;
}

.panel .quote {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 20px;
}

.panel .quote span {
  color: var(--gold);
}

.panel cite {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
  margin: 0 auto 28px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-alt);
}

.contact-person {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.contact-person .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}

.contact-person .name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.contact-person .role {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--gold-700);
  flex: none;
  margin-top: 3px;
}

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list .value {
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22, 36, 63, 0.08);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 4px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.form-status.is-success {
  background: #eef6ee;
  border-color: #cfe6cf;
  color: #1f6b2e;
}

.form-status.is-error {
  background: #fbeeee;
  border-color: #efd2d2;
  color: #9a2a2a;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 56px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand__name {
  color: #fff;
}

.footer-brand .brand__name .accent {
  color: var(--gold);
}

.footer-brand .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    order: -1;
  }

  .hero__figure svg,
  .hero__figure img {
    width: 260px;
  }

  .grid--3,
  .grid--2,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.28s ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
  }

  .nav__links li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    margin: 12px 0 0;
  }

  .nav__toggle {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
