/* Grounded Hire */

:root {
  --navy: #0D1F36;
  --accent: #1D7874;
  --accent-hover: #165E5B;
  --accent-light: #E6F4F3;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --text: #1B2030;
  --text-muted: #5B6575;
  --border: #DDE3ED;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Header / Nav ────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(29,120,116,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  display: inline-block;
  background: rgba(29,120,116,0.15);
  border: 1px solid rgba(29,120,116,0.4);
  color: rgba(110,210,200,0.9);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: #4ECFC4;
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.78;
}

.hero-cta-group {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.825rem 1.625rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.78);
  padding: 0.825rem 1.625rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.hero-note {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.1px;
  font-style: italic;
}

/* Hero terminal mockup */
.hero-example {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  max-width: 500px;
  margin: 3rem auto 0;
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 0.73rem;
  text-align: left;
  overflow: hidden;
}

.ex-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.575rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ex-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ex-dot-r { background: rgba(255,95,87,0.5); }
.ex-dot-y { background: rgba(255,189,46,0.5); }
.ex-dot-g { background: rgba(40,200,64,0.5); }

.ex-filename { color: rgba(255,255,255,0.3); font-size: 0.68rem; margin-left: 0.5rem; }

.ex-body { padding: 0.875rem 1rem; }

.ex-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ex-row:last-child { border-bottom: none; }

.ex-icon { font-size: 0.78rem; line-height: 1; }
.ex-check { color: #4ADE80; }
.ex-cross { color: #F87171; }
.ex-unk   { color: #FBBF24; }

.ex-field  { color: rgba(255,255,255,0.62); font-size: 0.73rem; }
.ex-result { font-size: 0.65rem; white-space: nowrap; }
.ex-found   { color: rgba(74,222,128,0.62); }
.ex-absent  { color: rgba(248,113,113,0.62); }
.ex-unclear { color: rgba(251,191,36,0.62); }

/* ── Section base ───────────────────────────────── */
section { padding: 5rem 1.5rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 0.875rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Problem Section ────────────────────────────── */
.section-problem {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.375rem;
}

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.625rem 1.5rem;
}

.icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrap svg { width: 20px; height: 20px; }

.icon-red   { background: #FFF1F0; }
.icon-red svg   { stroke: #DC3545; }
.icon-amber { background: #FFF8E6; }
.icon-amber svg { stroke: #C07800; }
.icon-indigo  { background: #EEF2FF; }
.icon-indigo svg  { stroke: #3B5BDB; }
.icon-teal  { background: rgba(29,120,116,0.12); }
.icon-teal svg  { stroke: var(--accent); }

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── Approach Section ───────────────────────────── */
.section-approach { background: var(--bg); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.375rem;
}

.approach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.625rem 1.5rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.approach-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.approach-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── Advisory Section ───────────────────────────── */
.section-advisory { background: var(--navy); }

.section-advisory .section-label  { color: rgba(110,210,200,0.85); }
.section-advisory .section-heading { color: #fff; }
.section-advisory .section-sub    { color: rgba(255,255,255,0.58); }

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.375rem;
}

.advisory-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.625rem 1.5rem;
}

.advisory-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.advisory-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.72;
  margin: 0;
}

/* ── Article Section ────────────────────────────── */
.section-article {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.article-lede {
  max-width: 780px;
  margin-bottom: 3rem;
}

.article-body { max-width: 720px; }

.article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.175rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.2px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-body strong { font-weight: 700; color: var(--navy); }

.legal-callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Contact Section ────────────────────────────── */
.section-contact {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 540px;
  margin: 0 auto;
}

.contact-inner .section-heading {
  font-size: 2.25rem;
  letter-spacing: -0.75px;
}

.contact-inner .section-sub { margin: 0 auto 2rem; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.contact-email:hover { background: var(--accent-hover); transform: translateY(-1px); }

.contact-legal {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
  line-height: 1.65;
  font-style: italic;
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

footer a:hover { color: rgba(255,255,255,0.85); }

.footer-legal {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* ── Utility ────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .problem-grid,
  .approach-grid,
  .advisory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 1.25rem; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.1rem; letter-spacing: -0.5px; }
  .hero-sub { font-size: 1rem; }

  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }

  .ex-result { display: none; }
  .ex-row { grid-template-columns: 14px 1fr; }

  .section-heading { font-size: 1.625rem; }
  .contact-inner .section-heading { font-size: 1.875rem; }

  .problem-grid,
  .approach-grid,
  .advisory-grid { grid-template-columns: 1fr; }

  .nav-links li:not(:last-child) { display: none; }
}

@media (min-width: 768px) {
  html { font-size: 18px; }
}
