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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Theme tokens */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-softer: #eff6ff;
  --bg-hero: linear-gradient(145deg, #eff6ff 0%, #ffffff 60%);
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --primary: #2563eb;
  --primary-soft: #bfdbfe;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-card-strong: 0 20px 45px rgba(15, 23, 42, 0.12);
  --footer-bg: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #020617;
  --bg-soft: #020617;
  --bg-softer: #0b1220;
  --bg-hero: radial-gradient(circle at top left, #1d4ed8 0%, #020617 55%, #020617 100%);
  --text: #e5e7eb;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: #1f2937;
  --border-card: #1f2937;
  --primary: #60a5fa;
  --primary-soft: #1d4ed8;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --shadow-card-strong: 0 22px 55px rgba(15, 23, 42, 0.9);
  --footer-bg: #020617;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  scroll-margin-top: 80px;
}

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

.main-nav a {
  color: var(--text);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary-soft);
}

.btn-outline:hover {
  background: #eff6ff;
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.logo span {
  color: var(--primary);
}

.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}

.logo-text {
  display: inline-block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.theme-toggle {
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-toggle:hover {
  border-color: var(--primary-soft);
  color: var(--primary);
}

.theme-icon {
  line-height: 1;
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0.4;
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
}

:root:not([data-theme="dark"]) .theme-icon-moon {
  opacity: 0.4;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0.2rem 0 0.75rem;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 700;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hero-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-form-card {
  background-color: var(--bg);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card-strong);
  padding: 1.75rem 1.7rem 1.5rem;
}

.hero-form-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.hero-form-card p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-form input,
.hero-form select {
  border-radius: 0.7rem;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.hero-form input:focus,
.hero-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.13);
}

.form-footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Services */
.services {
  background-color: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.icon-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background-color: var(--bg-softer);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Process */
.process {
  background-color: var(--bg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-step {
  position: relative;
}

.step-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-soft);
  margin-bottom: 0.4rem;
}

.process-step h3 {
  margin: 0 0 0.4rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Testimonial hero */
.testimonial-hero {
  position: relative;
  background-image: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #1e293b 100%);
  color: #ffffff;
}

.testimonial-overlay {
  padding: 4.5rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.photo-placeholder {
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #1d4ed8, #22c55e);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.testimonial-photo-img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 1.5rem;
  display: block;
}

.testimonial-content h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.8rem;
}

.testimonial-content p {
  margin: 0 0 1rem;
  color: #e2e8f0;
}

.testimonial-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.testimonial-stats strong {
  font-size: 1.6rem;
}

.testimonial-stats span {
  display: block;
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* Logos */
.logos {
  background-color: var(--bg);
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.logos-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.logos-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.logo-client {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-pill {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  background-color: var(--bg-soft);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg);
  padding: 0.9rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Case studies */
.case-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.case-card {
  padding: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.case-card-media {
  position: relative;
  overflow: hidden;
}

.case-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.case-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.86);
  color: #e5e7eb;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

:root[data-theme="dark"] .case-badge {
  background-color: rgba(15, 23, 42, 0.95);
}

.case-card-body {
  padding: 1.5rem 1.6rem 1.3rem;
}

.case-author-row {
  margin-top: 0.5rem;
  margin-bottom: 0.9rem;
}

.case-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid var(--bg);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.case-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.case-title a:hover {
  color: var(--primary);
  text-decoration: none;
}

.case-excerpt {
  margin: 0 0 1.05rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.case-read-more {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.case-read-more:hover {
  text-decoration: none;
}

.case-card-footer {
  padding: 0.9rem 1.6rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
}

.case-meta-separator {
  opacity: 0.5;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs-sep {
  margin: 0 0.4rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.breadcrumbs-current {
  color: var(--text-soft);
}

/* Case study detail page */
.case-detail-hero {
  max-width: 980px;
  margin: 0 auto 2.25rem;
}

.case-detail-title {
  margin: 0.25rem 0 0.75rem;
  line-height: 1.12;
  font-size: clamp(2rem, 2vw + 1.25rem, 2.6rem);
}

.case-detail-excerpt {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
  max-width: 72ch;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.case-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.case-detail-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.case-detail-featured-image {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.case-detail-layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.case-toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.case-toc-title {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.case-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.case-toc-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0.35rem;
  border-radius: 0.5rem;
}

.case-toc-nav a:hover {
  color: var(--primary);
  text-decoration: none;
  background: var(--bg-softer);
}

.case-toc-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
  background: var(--bg-softer);
}

.case-detail-content {
  min-width: 0;
}

.case-detail-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.case-detail-content h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--text);
}

.case-detail-content p,
.case-detail-content li {
  color: var(--text-soft);
}

.case-detail-content ul {
  padding-left: 1.2rem;
}

.case-blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-softer);
  border-radius: 0 0.75rem 0.75rem 0;
}

.case-blockquote p {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.case-blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

.case-figure {
  margin: 1.5rem 0 0;
}

.case-figure img {
  display: block;
}

.case-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.case-image-grid .image-modal-trigger,
.case-image-grid .case-detail-featured-image {
  width: 100%;
}

.case-image-grid .image-modal-trigger {
  padding: 0;
  text-align: left;
}

.case-blockquote-figure {
  margin: 1.5rem 0 0;
}

.case-blockquote-figure .case-blockquote-image-link {
  display: block;
}

.case-blockquote-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-blockquote-figure figcaption a {
  color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: var(--bg);
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.case-table th,
.case-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.case-table thead th {
  color: var(--text);
  font-weight: 700;
  background: var(--bg-softer);
}

.case-table tbody tr:last-child th,
.case-table tbody tr:last-child td {
  border-bottom: none;
}

.case-author-bio {
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.case-author-bio-inner {
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.case-author-bio-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.case-author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.case-author-bio-label {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-author-bio-name {
  margin: 0;
  font-weight: 600;
}

.case-author-bio-name a {
  color: inherit;
}

.case-author-bio-name a:hover {
  color: var(--primary);
  text-decoration: none;
}

.case-author-bio-role {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.case-author-bio-linkedin img {
  width: 28px;
  height: 28px;
  display: block;
}

.case-author-bio-text {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Image viewer modal */
.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.image-modal.is-open {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.image-modal-dialog {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  margin: 0 1rem;
  border-radius: 1rem;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.75);
  padding: 0.75rem 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-modal-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.image-modal-close:hover {
  color: var(--primary);
}

.image-modal-image {
  border-radius: 0.75rem;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.image-modal-trigger {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.image-modal-trigger img {
  display: block;
}

/* Bottom CTA */
.cta-bottom {
  background-color: var(--bg-softer);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.cta-inner p {
  margin: 0 0 1.2rem;
  color: var(--text-soft);
}

/* Contact & Map */
.contact-map {
  background-color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info h2 {
  margin: 0 0 0.5rem;
}

.contact-info p {
  margin: 0 0 0.4rem;
  color: var(--text-soft);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

.icon-linkedin {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.social-link:hover .icon-linkedin {
  fill: #0a66c2;
}

.map-embed iframe {
  border-radius: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 0;
  background-color: var(--footer-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  color: var(--text-muted);
}

.back-to-top:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  }

  .services-grid,
  .process-steps,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-toc {
    position: relative;
    top: auto;
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-form-card {
    order: -1;
  }

  .services-grid,
  .process-steps,
  .case-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3.25rem 0;
  }

  .testimonial-overlay {
    padding: 3.25rem 0;
  }

  .footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}