/* First Medic Consulting — Design System & Layout
   Palette: Deep Clinical Navy (#1E2E52), Slate Neutrals, Calibrated Clinical Teal (#0E8A9C)
   Accent Red (#D92D20) reserved strictly for the official brand emblem. */

:root {
  --navy-950: #0F172A;
  --navy-900: #162340;
  --navy-800: #1E2E52;
  --navy-700: #2A3F6E;
  --teal-700: #0A6E7D;
  --teal-600: #0E8A9C;
  --teal-50: #F0FAFB;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --error: #B91C1C;
  --error-bg: #FEF2F2;
  --success: #0F766E;
  --success-bg: #F0FDFA;

  --font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-700);
  background-color: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--navy-800);
}

:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link (WCAG 2.2) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  left: 12px;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-navy {
  background-color: var(--navy-800);
  color: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate-900);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}

.section-navy .eyebrow {
  color: #7DD3DF;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
}

.section-head p {
  margin: 0;
  font-size: 17px;
  color: var(--slate-600);
}

.section-navy .section-head p {
  color: #CBD5E1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--navy-800);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--navy-900);
  color: var(--white);
}

.btn-accent {
  background-color: var(--teal-700);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #085A66;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn-outline:hover {
  border-color: var(--navy-800);
  background-color: var(--slate-50);
  color: var(--navy-800);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  padding: 6px 2px;
}

.nav-desktop a:hover {
  color: var(--navy-800);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  color: var(--slate-900);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  border-top: 1px solid var(--slate-200);
  overflow-y: auto;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--slate-900);
  border-bottom: 1px solid var(--slate-100);
}

.nav-mobile-cta {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

/* Asymmetrical Split Hero */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-950);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate-600);
  margin: 0 0 16px;
  max-width: 560px;
}

.hero-tagline {
  font-size: 15px;
  font-style: italic;
  color: var(--slate-500);
  margin: 0 0 32px;
  padding-left: 14px;
  border-left: 2px solid var(--teal-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.1;
}

.metric-label {
  font-size: 13px;
  color: var(--slate-600);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  font-size: 13px;
}

.hero-caption strong {
  color: var(--slate-900);
  font-weight: 600;
}

.hero-caption span {
  color: var(--slate-500);
}

.hero-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-mini {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.hero-mini img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-mini-label {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  border-top: 1px solid var(--slate-100);
}

/* About, Vision & Mission */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--slate-700);
}

.about-heading {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 22px;
}

.prose-actions {
  margin-top: 28px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.vm-stack {
  display: grid;
  gap: 20px;
}

.vm-block {
  padding: 28px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
}

.vm-block h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-700);
  margin-bottom: 10px;
}

.vm-block p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--slate-900);
  font-weight: 500;
}

/* Core Values Strip */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 64px;
  background: var(--white);
}

.value-cell {
  padding: 26px 22px;
  border-right: 1px solid var(--slate-200);
}

.value-cell:last-child {
  border-right: none;
}

.value-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 10px;
}

.value-cell h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-cell p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-item {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.service-item:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 600;
}

.service-item p {
  margin: 0;
  font-size: 15px;
  color: var(--slate-600);
}

/* 5-Phase Hospital Setup Timeline */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.phase-step {
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7DD3DF;
}

.phase-step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
}

.phase-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
}

.phase-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #CBD5E1;
}

/* Interactive Operations Management Tabs */
.tabs-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-btn {
  text-align: left;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tab-btn:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.tab-btn[aria-selected="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.tab-panel {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tab-panel > p {
  margin: 0 0 24px;
  color: var(--slate-600);
}

.framework-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.framework-box {
  padding: 20px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.framework-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.framework-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--slate-700);
}

/* Diagnostic Table (Page 14 Problem -> Causes) */
.diagnostic-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.diagnostic-row strong {
  color: var(--slate-900);
}

.diagnostic-arrow {
  color: var(--teal-700);
  font-weight: 600;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.portfolio-card.featured {
  grid-column: span 2;
}

.portfolio-media {
  background: var(--slate-100);
  overflow: hidden;
}

.portfolio-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.03);
}

.portfolio-body {
  padding: 20px 22px;
  border-top: 1px solid var(--slate-200);
}

.portfolio-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 6px;
}

.portfolio-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-body p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-600);
}

/* Partners Roster */
.partners-block {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--slate-200);
}

.partners-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.partner-tile {
  padding: 18px 20px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.partner-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 3px;
}

.partner-tile span {
  font-size: 13px;
  color: var(--slate-500);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--slate-200);
  background: var(--slate-100);
}

.team-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.team-info p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.45;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 840px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--teal-700);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--slate-600);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.advisor-list {
  display: grid;
  gap: 16px;
}

.advisor-card {
  padding: 22px 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.advisor-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.advisor-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.advisor-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  min-height: 32px;
}

.advisor-links a:hover {
  color: var(--teal-700);
}

/* Form */
.inquiry-form {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(14, 138, 156, 0.14);
  outline: none;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--slate-600);
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy-800);
}

/* Honeypot hidden from visual users & screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #FECACA;
}

.form-status.is-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #99F6E4;
}

.form-handoff {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #CBD5E1;
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 320px;
  margin: 0;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #CBD5E1;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94A3B8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: #94A3B8;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Legal / Standalone Pages */
.prose-page {
  padding: 72px 0 96px;
  max-width: 780px;
}

.prose-page h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 12px;
}

.prose-meta {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 36px;
}

.prose-page h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose-page p,
.prose-page li {
  font-size: 15px;
  color: var(--slate-700);
}

/* Mobile Sticky Bottom Bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

/* Scroll Reveal (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .value-cell {
    border-bottom: 1px solid var(--slate-200);
  }

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

  .tabs-wrapper {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-card.featured {
    grid-column: span 2;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-subgrid,
  .values-grid,
  .services-grid,
  .phases-grid,
  .framework-cols,
  .portfolio-grid,
  .partners-grid,
  .team-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card.featured {
    grid-column: span 1;
  }

  .value-cell {
    border-right: none;
  }

  .tab-panel,
  .inquiry-form {
    padding: 22px;
  }

  .diagnostic-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
