/* Golden Gate IT single-page site. System fonts, no dependencies.
   Light/dark follows the OS via prefers-color-scheme. */

:root {
  --bg: #fdfcfb;
  --bg-2: #f1ede5;
  --text: #1c1a17;
  --muted: #5f5a52;
  --line: rgba(28, 26, 23, 0.14);
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 65, 12, 0.07);
  --card: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-2: #14171b;
    --text: #e9e7e3;
    --muted: #a49e95;
    --line: rgba(233, 231, 227, 0.13);
    --accent: #fb923c;
    --accent-ink: #1c1006;
    --accent-soft: rgba(251, 146, 60, 0.08);
    --card: #14171b;
  }
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 680px; }

section { scroll-margin-top: 4.5rem; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }

h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }

.kicker {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0.9rem 0 0;
  text-wrap: pretty;
}

.fine { font-size: 0.82rem; color: var(--muted); margin-top: 1.5rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 550;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-phone { white-space: nowrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn:active { transform: translateY(1px); }

.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); color: var(--text); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: radial-gradient(48rem 26rem at 92% -30%, var(--accent-soft), transparent 65%);
}

.hero h1 { max-width: 16ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* subtle section contrast: neutral panel + one warm wash at the CTA */
.section.tint { background: var(--bg-2); }
.section.warm { background: var(--accent-soft); }

.section-more { margin-top: 1.6rem; font-weight: 600; }

/* what we do: flat category list, hairline dividers, no boxes */
.svc-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 2.5rem;
}
.svc-list li { border-top: 1px solid var(--line); }
.svc-list a {
  display: block;
  padding: 0.9rem 0;
  color: var(--text);
  font-weight: 550;
}
.svc-list a:hover { color: var(--accent); text-decoration: none; }

/* ---------- why us ---------- */

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

.pillars-flat { margin-top: 2rem; }

.pillar h3 { margin-bottom: 0.4rem; }
.pillar h3::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: 0.3em;
}
.pillar p { color: var(--muted); font-size: 0.95rem; }

.founders { margin-top: 2.5rem; max-width: 62ch; }

/* ---------- form ---------- */

form { margin-top: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field { margin-bottom: 0.9rem; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }

/* honeypot: offscreen, never shown to humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#form-status { margin-top: 1rem; font-weight: 550; min-height: 1.5em; }

/* ---------- pages & blog prose ---------- */

.post { padding: clamp(3rem, 7vw, 4.5rem) 0 4.5rem; }

.post-meta { color: var(--muted); font-size: 0.88rem; margin-top: 0.9rem; }

.prose h1 { margin-top: 0.4rem; }
.prose h2 { margin: 2.4rem 0 0.6rem; font-size: 1.4rem; scroll-margin-top: 5rem; }
.prose h3 { margin: 1.6rem 0 0.4rem; font-size: 1.05rem; }
.prose p { color: var(--muted); margin: 0.7rem 0; }
.prose ul { color: var(--muted); padding-left: 1.25rem; margin: 0.7rem 0 1rem; }
.prose li { margin: 0.35rem 0; }
.prose strong { color: var(--text); font-weight: 650; }

.page-cta { margin-top: 2.75rem; }

.post-cta {
  display: block;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--card) 70%);
  color: var(--text);
  margin-top: 2.75rem;
  padding: 1.4rem 1.5rem;
}
.post-cta h3 { font-weight: 650; }
.post-cta p { color: var(--muted); margin: 0.4rem 0 0; }
.post-cta:hover { text-decoration: none; }

.post-list { display: grid; gap: 0.6rem; margin-top: 2rem; }
.post-list .card {
  display: block;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.post-list .card:hover { text-decoration: none; }
.post-list .card:hover h3 { color: var(--accent); }
.post-list .card h3 { font-size: 1.15rem; margin-top: 0.35rem; }
.post-list .card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }

/* ---------- footer ---------- */

footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-inner .brand { font-size: 1.05rem; margin-bottom: 0.4rem; }
.footer-inner div:last-child { text-align: right; }
.footer-inner p + p { margin-top: 0.6rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-phone { display: none; }
  .nav-links { gap: 1rem; font-size: 0.88rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner div:last-child { text-align: left; }
}
