/* Glenlock Digital — design system
   Palette: deep navy/charcoal, warm off-white, teal accent. */

:root {
  --ink: #1b232e;
  --ink-soft: #3c4a5a;
  --paper: #f7f4ee;
  --paper-alt: #efeae0;
  --card: #fffdf9;
  --line: #ddd6c8;
  --teal: #0e5c4b;
  --teal-bright: #12866e;
  --teal-tint: #e3efe9;
  --danger: #a4322c;
  --danger-tint: #f7e6e4;
  --ok: #1d7a4f;
  --ok-tint: #e4f1e9;
  --focus: #12866e;
  --shadow: 0 1px 2px rgba(27, 35, 46, 0.06), 0 8px 24px rgba(27, 35, 46, 0.08);
  --radius: 10px;
  --max-w: 68rem;
  --header-h: 3.5rem;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html.theme-dark {
  --ink: #e8e4da;
  --ink-soft: #b3ada0;
  --paper: #161b22;
  --paper-alt: #1c232d;
  --card: #202834;
  --line: #333d4b;
  --teal: #2fbf9a;
  --teal-bright: #35d6ae;
  --teal-tint: #1d3229;
  --danger: #e0716a;
  --danger-tint: #3a2624;
  --ok: #58c78f;
  --ok-tint: #1f332a;
  --focus: #35d6ae;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem);
}

h2 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.55rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 0.75em;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-bright);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

.muted {
  color: var(--ink-soft);
}

.optional {
  color: var(--ink-soft);
  font-size: 0.85em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.btn {
  min-height: 2.75rem;
  max-width: 100%;
  white-space: normal;
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

html.theme-dark .btn-primary {
  color: #10201b;
}

.btn-primary:hover {
  background: var(--teal-bright);
  color: #fff;
}

html.theme-dark .btn-primary:hover {
  color: #10201b;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

html.theme-dark .brand-mark {
  color: #10201b;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}

.site-nav a:not(.btn):hover {
  color: var(--teal);
  text-decoration: underline;
}

.nav-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  justify-content: center;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav a {
  padding: 0.55rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}

/* Sections */
.section {
  padding: 1.75rem 0;
}

.section .container > :last-child {
  margin-bottom: 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section-intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 0.65rem;
}

.lede {
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.hero-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}

.service-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.service-card h3 a::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.3rem;
  background: var(--teal);
  border-radius: 2px;
}

.service-card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.about-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.about-list li {
  padding-left: 1.4rem;
  position: relative;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.85;
}

/* Workforce callout */
.callout {
  background: var(--teal-tint);
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: var(--radius);
  padding: 1.8rem;
}

.callout p {
  color: var(--ink);
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--ink-soft);
}

/* Pages (privacy) */
.page {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
  padding: 2rem 0 2.5rem;
}

.page h2 {
  margin-top: 1.25em;
}

.page ul {
  padding-left: 1.2rem;
}

.updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 0.75rem;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-legal {
  padding: 0 0 0.75rem;
  border-top: 1px solid var(--line);
}

.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
  padding-top: 0.65rem;
}

/* Responsive */
@media (max-width: 64rem) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 56rem) {
  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section {
    padding: 1.5rem 0;
  }

  .hero {
    padding: 2rem 0;
  }
}

@media (max-width: 40rem) {
  .footer-inner {
    flex-direction: column;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}