/* ============================================
   Gareth McCumskey – Consultant Site Styles
   Dark-mode, developer/cloud aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0e17;
  color: #c9d1d9;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #58a6ff; text-decoration: none; transition: color .2s; }
a:hover { color: #79c0ff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section { padding: 5rem 0; }
.section--alt { background: #0d1220; }
.text-center { text-align: center; }
.text-muted { color: #8b949e; }

/* --- Typography --- */
h1, h2, h3, h4 { color: #e6edf3; line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }
.lead { font-size: 1.125rem; color: #8b949e; max-width: 680px; }
.lead--centered { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 6px;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s;
  border: none; text-align: center;
}
.btn-primary { background: #238636; color: #fff; }
.btn-primary:hover { background: #2ea043; color: #fff; }
.btn-secondary { background: transparent; color: #58a6ff; border: 1px solid #30363d; }
.btn-secondary:hover { border-color: #58a6ff; background: rgba(88,166,255,.08); color: #58a6ff; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #21262d;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 700; font-size: 1.1rem; color: #e6edf3; letter-spacing: -.02em; }
.logo span { color: #238636; }
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-list a { color: #8b949e; font-size: .9rem; font-weight: 500; }
.nav-list a:hover, .nav-list a.active { color: #e6edf3; }
.nav-cta { padding: .45rem 1.1rem !important; background: #238636; color: #fff !important; border-radius: 6px; font-size: .85rem !important; }
.nav-cta:hover { background: #2ea043; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; color: #e6edf3;
  font-size: 1.5rem; cursor: pointer; padding: .25rem;
}

/* --- Hero --- */
.hero { padding: 6rem 0 5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35,134,54,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { max-width: 780px; margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 0; }

/* --- Trust Strip --- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  padding: 2rem 0; border-top: 1px solid #21262d; border-bottom: 1px solid #21262d;
  margin: 3rem 0;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: #8b949e;
}
.trust-item svg { flex-shrink: 0; color: #238636; }

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.card {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 2rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #30363d; transform: translateY(-2px); }
.card h3 { color: #e6edf3; }
.card p { font-size: .95rem; color: #8b949e; margin-top: .5rem; }
.card .btn { margin-top: 1.25rem; }

/* Icon top of card */
.card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(35,134,54,.15); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; color: #3fb950;
}

/* --- Problem Cards --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.problem-card {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 1.25rem; display: flex; gap: .75rem; align-items: flex-start;
}
.problem-card svg { flex-shrink: 0; color: #f85149; margin-top: .15rem; }
.problem-card span { font-size: .9rem; color: #c9d1d9; }

/* --- Process --- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 2.5rem; position: relative;
}
.process-step {
  text-align: center; position: relative; padding: 2rem 1rem;
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
}
.process-number {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(35,134,54,.15); color: #3fb950;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { font-size: .875rem; color: #8b949e; margin-top: .5rem; }

/* connector line between steps */
.process-grid::before {
  content: ''; position: absolute;
  top: 50%; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, #238636 0%, #21262d 100%);
  z-index: 0;
}
.process-step { z-index: 1; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border: 1px solid #21262d; border-radius: 12px;
  padding: 3.5rem 2rem; text-align: center;
}
.cta-banner h2 { max-width: 600px; margin: 0 auto 1rem; }
.cta-banner .lead { margin: 0 auto; }

/* --- Differentiation --- */
.diff-list { margin-top: 1.5rem; }
.diff-list li {
  position: relative; padding-left: 1.5rem; margin-bottom: .75rem;
  font-size: .95rem; color: #c9d1d9;
}
.diff-list li::before {
  content: '→'; position: absolute; left: 0; color: #3fb950; font-weight: 700;
}

/* --- Services Page --- */
.service-block {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 2.5rem; margin-bottom: 2rem;
}
.service-block h3 { font-size: 1.35rem; color: #e6edf3; margin-bottom: .75rem; }
.service-meta { font-size: .85rem; color: #3fb950; font-weight: 600; margin-top: 1.25rem; }
.service-block ul { margin-top: 1rem; padding-left: 1.25rem; }
.service-block ul li {
  position: relative; padding-left: 1.25rem; margin-bottom: .5rem;
  font-size: .9rem; color: #8b949e;
}
.service-block ul li::before {
  content: '✓'; position: absolute; left: 0; color: #3fb950; font-weight: 700;
}
.deliverables-label { font-weight: 600; color: #e6edf3; margin-top: 1.25rem; margin-bottom: .5rem; display: block; }

/* --- About --- */
.about-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 3rem; align-items: start; margin-top: 2rem;
}
.about-sidebar {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 2rem; text-align: center;
}
.about-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, #238636, #1a6b2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff; font-weight: 700;
  margin: 0 auto 1rem;
}
.about-sidebar h3 { font-size: 1.1rem; }
.about-sidebar p { font-size: .85rem; color: #8b949e; margin-top: .25rem; }
.about-links { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.about-links a { font-size: .85rem; }
.about-content section { margin-bottom: 2.5rem; }
.about-content section h3 { font-size: 1.15rem; color: #e6edf3; margin-bottom: .75rem; }

/* --- Contact Form --- */
.contact-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 3rem; margin-top: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: #e6edf3; margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .65rem .85rem;
  background: #0d1117; border: 1px solid #30363d; border-radius: 6px;
  color: #c9d1d9; font-size: .95rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88,166,255,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-status { margin-top: 1rem; font-size: .95rem; }
.form-status.success { color: #3fb950; }
.form-status.error { color: #f85149; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-aside {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 2rem; height: fit-content;
}
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-aside p { font-size: .9rem; color: #8b949e; margin-bottom: 1rem; }

/* --- Insights / Case Studies --- */
.insight-card {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 1.75rem; transition: border-color .2s;
}
.insight-card:hover { border-color: #30363d; }
.insight-card .tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  color: #3fb950; background: rgba(35,134,54,.12);
  padding: .2rem .6rem; border-radius: 4px; margin-bottom: .75rem;
}
.insight-card h3 { font-size: 1.05rem; }
.insight-card p { font-size: .875rem; color: #8b949e; margin-top: .5rem; }

/* --- Article Pages --- */
.article-page { padding: 4rem 0 5rem; }
.article-container { max-width: 760px; }
.article-back { display: inline-block; font-size: .9rem; margin-bottom: 2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.article-meta .tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  color: #3fb950; background: rgba(35,134,54,.12);
  padding: .2rem .6rem; border-radius: 4px;
}
.article-page h1 { margin-bottom: 1rem; }
.article-date { color: #8b949e; font-size: .9rem; margin-top: 1rem; }
.article-content { margin-top: 3rem; }
.article-content h2 { margin-top: 2.5rem; }
.article-content h3 { margin-top: 2rem; }
.article-content p { margin-top: 1rem; }
.article-content ul,
.article-content ol { margin: 1rem 0; padding-left: 1.25rem; }
.article-content ul { list-style: none; }
.article-content li {
  margin-bottom: .5rem;
  color: #c9d1d9;
}
.article-content ul li {
  position: relative; padding-left: 1.25rem;
}
.article-content ul li::before {
  content: '•'; position: absolute; left: 0; color: #3fb950; font-weight: 700;
}
.article-content ol { padding-left: 1.5rem; }
.article-content ol li { padding-left: .25rem; }
.article-content blockquote {
  border-left: 3px solid #3fb950; padding-left: 1rem; margin: 1.5rem 0;
  color: #8b949e;
}
.article-content code {
  background: #161b22; border: 1px solid #21262d; border-radius: 4px;
  padding: .1rem .3rem; font-size: .9em;
}
.article-content pre {
  background: #0d1117; border: 1px solid #21262d; border-radius: 8px;
  padding: 1rem; overflow-x: auto; margin: 1.5rem 0;
}
.article-content pre code { border: 0; padding: 0; background: transparent; }

.case-card {
  background: #161b22; border: 1px solid #21262d; border-radius: 8px;
  padding: 2rem; transition: border-color .2s;
}
.case-card:hover { border-color: #30363d; }
.case-card .badge {
  display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: #8b949e; background: #21262d;
  padding: .2rem .6rem; border-radius: 4px; margin-bottom: .75rem;
}
.case-card h3 { font-size: 1.1rem; }
.case-card p { font-size: .9rem; color: #8b949e; margin-top: .5rem; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid #21262d; padding: 3rem 0 2rem;
  background: #0a0e17;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { font-size: .85rem; color: #8b949e; margin-top: .5rem; max-width: 320px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #e6edf3; margin-bottom: .75rem; }
.footer-col a { display: block; font-size: .85rem; color: #8b949e; margin-bottom: .4rem; }
.footer-col a:hover { color: #e6edf3; }
.footer-bottom {
  border-top: 1px solid #21262d; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: #484f58;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-list { display: none; }
  .nav-list.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #0d1117;
    border-bottom: 1px solid #21262d; padding: 1.5rem;
    gap: 1rem;
  }
  .menu-toggle { display: block; }
  .hero { padding: 4rem 0 3rem; }
  .process-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; gap: .75rem; }
}
