/* Website Expressed — styles.css
   Brand: Express Indigo #1E3A8A, Launch Teal #0F766E, Signal Amber #F59E0B,\   Ink #111827, Paper #F9FAFB. Fonts: Space Grotesk (headings), Inter (body). */

/* Self-hosted fonts (variable woff2, latin subset) with system fallbacks. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

:root {
  --indigo: #1E3A8A;
  --teal: #0F766E;
  --amber: #F59E0B;
  --ink: #111827;
  --paper: #F9FAFB;
  --white: #FFFFFF;
  --gray: #6B7280;
  --border: #E5E7EB;
  --font-head: 'Space Grotesk', 'Arial', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --radius: 10px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--indigo); }
a:hover { color: var(--teal); }

ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.4rem; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3rem 0; }
section.alt { background: var(--white); }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}

.brand svg { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--indigo);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
}

.nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--indigo); }

.nav .btn { padding: 0.5rem 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: #16307a; color: var(--white); }

.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: #0b5d57; color: var(--white); }

.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: #d97706; color: var(--ink); }

.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--white); }

/* Hero */
.hero {
  background: var(--white);
  padding: 4rem 0 3rem;
}

.hero h1 { color: var(--indigo); margin-bottom: 1rem; }
.hero .lead { font-size: 1.15rem; max-width: 46rem; }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.trust-line { color: var(--gray); font-size: 0.95rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 { color: var(--indigo); }

.card .price {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
}

.badge {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.5rem;
}

.card ul { margin-left: 1.1rem; font-size: 0.95rem; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.step-num {
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
th { background: var(--paper); font-family: var(--font-head); }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 640px;
}

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-note { font-size: 0.9rem; color: var(--gray); }

/* FAQ */
details.faq {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
details.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  color: var(--indigo);
}

/* Portfolio cards */
.portfolio-card a { text-decoration: none; }
.portfolio-card .url { font-size: 0.9rem; color: var(--teal); word-break: break-all; }
.portfolio-card h3 a { color: inherit; text-decoration: none; }
.portfolio-card h3 a:hover { color: var(--teal); }

/* Case-study screenshot slots */
.shot-slot { color: var(--gray); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 0;
  margin-top: 2rem;
}
.site-footer a { color: #c7d2fe; }
.site-footer a:hover { color: var(--amber); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Focus visibility */
/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; padding: 0.75rem 0; gap: 0.75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  section { padding: 2.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}