:root {
  --ink: #17211d;
  --muted: #52605a;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #d7ddd6;
  --green: #104c3d;
  --green-dark: #0b3028;
  --gold: #b18435;
  --blue: #274a65;
  --clay: #8c6654;
  --shadow: 0 20px 60px rgba(16, 34, 28, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid rgba(215, 221, 214, 0.86);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 190px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  color: #f7f8f4;
  background: linear-gradient(90deg, var(--green) 0 78%, var(--gold) 78% 100%);
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.site-nav a {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(16, 76, 61, 0.08);
}

.hero {
  position: relative;
  min-height: 70svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 25, 21, 0.88), rgba(10, 25, 21, 0.62) 48%, rgba(10, 25, 21, 0.18)),
    url("assets/sggc-operating-systems-hero.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.2rem 0 5.8rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #e8d6a7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 5rem);
  max-width: 10ch;
}

.subhead {
  margin: 1.1rem 0 0;
  color: #f3f6f2;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.35;
  font-weight: 700;
}

.hero p:not(.eyebrow):not(.subhead) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: #f3d37a;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd96a;
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.76;
}

.section {
  padding: clamp(3.2rem, 7vw, 5.8rem) 0;
}

.section-alt {
  background: #eef2ee;
}

.section-dark {
  color: #ffffff;
  background: var(--green-dark);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 790px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-header p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.13rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card {
  border-top: 4px solid var(--green);
}

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

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

.service-card:nth-child(4n) {
  border-top-color: var(--clay);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.process-list,
.plain-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li,
.plain-list li {
  position: relative;
  padding-left: 1.4rem;
}

.process-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.process-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.process-step {
  min-height: 98px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.process-step span {
  display: block;
  margin-bottom: 0.45rem;
  color: #f3d37a;
  font-weight: 800;
}

.page-hero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 25, 21, 0.9), rgba(16, 76, 61, 0.76)),
    url("assets/sggc-operating-systems-hero.png") center / cover no-repeat;
}

.page-hero .wrap {
  padding: clamp(4.2rem, 8vw, 7rem) 0;
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 1.12rem;
}

.callout {
  padding: 1.35rem;
  border-left: 4px solid var(--gold);
  background: rgba(177, 132, 53, 0.1);
}

.contact-panel {
  max-width: 720px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

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

@media (max-width: 820px) {
  .nav-wrap {
    min-height: auto;
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 0.5rem 0.62rem;
  }

  .hero {
    min-height: 66svh;
    background:
      linear-gradient(180deg, rgba(10, 25, 21, 0.92), rgba(10, 25, 21, 0.68)),
      url("assets/sggc-operating-systems-hero.png") center / cover no-repeat;
  }

  .hero-inner {
    padding: 4rem 0;
  }

  h1 {
    max-width: 11ch;
  }

  .grid-2,
  .grid-3,
  .split,
  .process-band {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 72px;
  }
}

@media (max-width: 520px) {
  .wrap,
  .hero-inner,
  .nav-wrap,
  .footer-wrap {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    text-align: center;
  }

  .button {
    width: 100%;
  }
}
