:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #0f766e;
  --primary-hover: #0d5e58;
  --accent: #b45309;
  --lab-blue: #0369a1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.nav-links a.btn-primary {
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 45%),
    radial-gradient(circle at bottom left, rgba(3, 105, 161, 0.07), transparent 45%),
    #ffffff;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 780px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(15, 118, 110, 0.09);
  border: 1px solid rgba(15, 118, 110, 0.22);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 600px;
}

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

/* Sections */
.section {
  padding: 80px 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-header h2,
.section-header-center h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 10px;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
}

.section-desc-center {
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 44px;
}

/* Filter Tabs */
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.35);
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card-tag.ai {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
}

.card-tag.other {
  background: rgba(180, 83, 9, 0.1);
  color: var(--accent);
}

.card-tag.lab {
  background: rgba(3, 105, 161, 0.1);
  color: var(--lab-blue);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-list {
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.card-list li {
  margin-bottom: 6px;
}

/* Consulting Sessions */
.sessions-grid {
  display: grid;
  gap: 24px;
}

.session-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.session-media {
  background: var(--bg-alt);
  min-height: 280px;
}

.session-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.session-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.session-body h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--text);
}

.session-body p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.session-body .card-list {
  margin: 0;
}

/* Industries & Process */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.industry-card,
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.industry-card h3,
.process-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}

.industry-card p,
.process-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.process-step {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

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

.contact-info h2 {
  color: var(--text);
}

.contact-info p {
  color: var(--text-muted);
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: var(--primary);
}

.form-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  min-height: 22px;
}

.form-status.success {
  color: var(--primary);
}

.form-status.error {
  color: #dc2626;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

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

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

/* Responsive */
@media (max-width: 860px) {
  .session-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .session-media {
    min-height: 220px;
  }

  .session-body {
    padding: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}
