/* SeraphDev — static site styles
   Brand: light theme, gray-900 ink on white, restrained accents.
   Built for full crawlability + WCAG 2.1 AA (contrast, focus, motion). */

:root {
  --ink: #111827;        /* gray-900 — headings */
  --ink-soft: #374151;   /* gray-700 */
  --muted: #4b5563;      /* gray-600 — body copy, 7.5:1 on white */
  --bg: #ffffff;
  --bg-alt: #f9fafb;     /* gray-50 */
  --bg-alt2: #f3f4f6;    /* gray-100 */
  --line: #e5e7eb;       /* gray-200 */
  --line-strong: #d1d5db;/* gray-300 */
  --focus: #1d4ed8;      /* blue-700 — visible focus ring */
  --accent: #111827;
  --accent-hover: #1f2937;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(17,24,39,.08), 0 8px 24px rgba(17,24,39,.06);
  --shadow-lg: 0 10px 40px rgba(17,24,39,.12);
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--ink); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--muted); margin: 0 0 .5rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); }
.section-dark, .section-dark h2, .section-dark p, .section-dark .eyebrow { color: #f9fafb; }
.center { text-align: center; }
.measure { max-width: 44rem; margin-left: auto; margin-right: auto; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- Focus visibility (site-wide) ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a:not(.btn) {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .7rem; border-radius: var(--radius-sm);
}
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg-alt2); }
/* The CTA in the nav is a .btn — keep its own (white-on-dark) color, never the muted link color. */
.nav-links a.btn-primary { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem; box-shadow: var(--shadow);
  }
  .nav-links a:not(.btn) { padding: .8rem .5rem; border-radius: 6px; }
  .nav-links[hidden] { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-sm);
    width: 44px; height: 40px; font-size: 1.2rem; cursor: pointer;
  }
  .nav-links .btn { margin-top: .4rem; text-align: center; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s ease, box-shadow .2s ease, transform .05s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--bg-alt2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.25rem; }
.hero-sub { font-size: 1.02rem; color: var(--muted); margin-top: 1rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 200px; }
  .btn-row { justify-content: center; }
}

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: .25rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: #fff;
  margin-bottom: .9rem;
}
.card .icon svg { width: 22px; height: 22px; }

/* proof line under a card */
.proof {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line-strong);
  font-size: .92rem; color: var(--muted);
}
.proof strong { color: var(--ink-soft); }

/* ---- Approach proof block ---- */
.pullquote {
  border-left: 4px solid var(--ink); padding: .25rem 0 .25rem 1.25rem;
  font-size: 1.25rem; color: var(--ink); max-width: 46rem; margin: 1.5rem auto 0;
}

/* ---- Portfolio strip ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .portfolio-grid { grid-template-columns: 1fr; } }
.project {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .5rem;
}
.project-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.project h3 { margin: 0; }
.project p { margin: 0; color: var(--muted); font-size: .98rem; }
.project .project-link { margin-top: .4rem; font-weight: 700; font-size: .92rem; color: var(--ink); }
.badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px; white-space: nowrap;
}
.badge-live { background: #dcfce7; color: #166534; }        /* green-700 on green-100 */
.badge-soon { background: #fef3c7; color: #92400e; }        /* amber-800 on amber-100 */
.badge-ext  { background: var(--bg-alt2); color: var(--ink-soft); }

/* ---- Case study ---- */
.casestudy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
@media (max-width: 820px) { .casestudy { grid-template-columns: 1fr; } }
.casestudy img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.walkthrough { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
@media (max-width: 600px) { .walkthrough { grid-template-columns: 1fr; } }
.walk-col { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.walk-col h4 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.walk-col p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 0 1.2rem; margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.05rem;
  padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin-top: 0; padding-bottom: 1.1rem; color: var(--muted); }

/* ---- CTA ---- */
.cta-card { text-align: center; }
.cta-card .lead { color: #d1d5db; max-width: 40rem; margin: 1rem auto 0; }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #6b7280; font-size: .88rem; }
.footer-meta a { color: var(--ink-soft); }

/* ---- Content pages (FAQ/accessibility/case study prose) ---- */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--muted); }
.prose li { margin-bottom: .4rem; }
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; min-width: 140px; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--ink); display: block; }
.stat .lbl { font-size: .85rem; color: var(--muted); }
.note { background: var(--bg-alt); border-left: 4px solid var(--line-strong); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: .95rem; }
