/* Single-page business site — static assets for S3 + CloudFront */

:root {
  --bg: #f6f4f0;
  --bg-elevated: #fffcf7;
  --ink: #1a1714;
  --ink-muted: #5c564e;
  --accent: #c45c26;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --border: rgba(26, 23, 20, 0.08);
  --shadow: 0 24px 48px rgba(26, 23, 20, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - var(--space) * 2, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
}

.nav-cta:hover {
  opacity: 0.92;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-drawer {
  border-top: 1px solid var(--border);
  padding: 1rem var(--space);
  background: var(--bg-elevated);
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-drawer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-drawer {
    display: none !important;
  }
}

/* Hero */

.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(280px, 360px);
    align-items: center;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero-title-italic {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 92, 38, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.hero-panel {
  position: relative;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.hero-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 1.5rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 10vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.section-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* Cards */

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-featured {
  background: linear-gradient(160deg, #fff 0%, #faf6f0 100%);
  border-color: rgba(196, 92, 38, 0.25);
  box-shadow: 0 16px 40px rgba(196, 92, 38, 0.08);
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.card-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.card > p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.card-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.card-list li {
  margin-bottom: 0.35rem;
}

.card-list li:last-child {
  margin-bottom: 0;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

@media (min-width: 700px) {
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
}

.timeline-marker {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.timeline-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Serverless strip */

.highlight-strip {
  background: var(--ink);
  color: var(--bg);
}

.strip-inner {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .strip-inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
  }
}

.highlight-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.highlight-strip p {
  margin: 0;
  color: rgba(246, 244, 240, 0.78);
  max-width: 36rem;
}

.strip-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 22rem;
}

.strip-tags li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* CTA */

.section-cta {
  padding-bottom: clamp(4rem, 12vw, 6rem);
}

.cta-box {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 92, 38, 0.2);
  border-radius: var(--radius);
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.cta-box > p:first-of-type {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--ink-muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cta-link:hover {
  color: var(--ink);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .footer-meta {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-brand {
  margin: 0;
  font-weight: 700;
}

.footer-brand-link {
  color: inherit;
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-upwork {
  margin: 0;
  font-size: 0.875rem;
}

.footer-upwork a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-upwork a:hover {
  text-decoration: underline;
}
