/*
Theme Name: iMDR MedTech
Theme URI: https://imdrmedtech.com
Author: iMDR MedTech
Author URI: https://imdrmedtech.com
Description: A clean, modern, trust-focused WordPress theme built for iMDR MedTech — global medical device regulatory and quality consulting, software-focused consulting, and a vetted expert marketplace. Ships with the full site structure (home + 11 service, product and platform pages) pre-built on activation.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imdr-medtech
Tags: custom-menu, featured-images, responsive-layout, translation-ready
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root {
  --navy-950: #081225;
  --navy-900: #0b2545;
  --navy-800: #112f5c;
  --navy-700: #163a72;
  --navy-100: #e7edf6;
  --teal-600: #0e8c86;
  --teal-500: #14b8a6;
  --teal-400: #5fd3c4;
  --amber-500: #f5a524;
  --amber-600: #e08e0b;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-300: #d1d5db;
  --surface-0: #ffffff;
  --surface-50: #f7f9fc;
  --surface-100: #eef2f8;
  --border: #e3e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 37, 69, 0.14);
  --maxw: 1180px;
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface-0);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-700);
  max-width: 760px;
}
.center-col { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn-amber { background: var(--amber-500); color: var(--navy-950); }
.btn-amber:hover { background: var(--amber-600); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding a { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.site-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.1;
}
.site-tagline { font-size: 0.72rem; color: var(--ink-500); letter-spacing: 0.03em; }

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: block;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 8px;
}
.primary-nav a:hover { background: var(--surface-100); color: var(--teal-600); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: none; }
.menu-toggle svg { width: 24px; height: 24px; color: var(--navy-900); }

@media (max-width: 900px) {
  .primary-nav {
    position: fixed; inset: 70px 0 0 0;
    background: #fff;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 10px 0 40px;
    border-top: 1px solid var(--border);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 0 20px; gap: 4px; }
  .primary-nav a { padding: 14px 10px; font-size: 1.02rem; border-bottom: 1px solid var(--surface-100); border-radius: 0; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn-dark-label { display: none; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(1100px 500px at 85% -10%, rgba(20,184,166,0.35), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  color: #fff;
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.3;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { background: rgba(20,184,166,0.18); color: var(--teal-400); }
.hero h1 { color: #fff; }
.hero p.lede { color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
  max-width: 640px;
  position: relative; z-index: 1;
}
.hero-stat { border-left: 2px solid rgba(255,255,255,0.25); padding-left: 14px; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--teal-400); display: block; }
.hero-stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%);
  color: #fff;
  padding: 72px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lede { color: rgba(255,255,255,0.82); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   5. Cards & grids
   ========================================================================== */
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-400); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { color: var(--ink-500); margin-bottom: 0; font-size: 0.95rem; }

.bg-surface { background: var(--surface-50); }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.78); }

/* checklist */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.98rem; color: var(--ink-700);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.bg-navy .check-list li::before { background-color: var(--teal-400); }

/* two-column feature row */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
}
.feature-media {
  background: linear-gradient(160deg, var(--navy-900), var(--teal-600));
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 36px;
}
.feature-media .big-icon svg { width: 96px; height: 96px; opacity: 0.9; }

/* accordion-ish definition blocks used for service lists */
.service-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 18px;
  background: #fff;
}
.service-block h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; margin-bottom: 12px;
}
.service-block h3 .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.service-block ul { margin: 0; padding-left: 1.1em; color: var(--ink-700); }
.service-block ul li { margin-bottom: 6px; }
.service-block p { color: var(--ink-700); }

/* pricing box */
.pricing-box {
  border: 2px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.price-amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--navy-900); }
.price-sub { color: var(--ink-500); margin-bottom: 22px; }
.pricing-box .btn { margin-top: 10px; }

/* table-like comparison for jurisdictions */
.region-list { display: grid; gap: 16px; }
.region-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--surface-0);
}
.region-item h4 { margin: 0 0 8px; font-family: var(--font-head); color: var(--navy-900); font-size: 1.02rem; }
.region-item p { margin: 0; color: var(--ink-500); font-size: 0.92rem; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--navy-900); }
.faq-item p { color: var(--ink-500); margin: 0; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  counter-increment: step;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; flex-shrink: 0;
}
.step .num::before { content: counter(step); }
.step h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy-900); }
.step p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 480px; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-chip {
  background: var(--surface-100);
  color: var(--ink-500);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* content default styles (generic WP content inside pages) */
.entry-content { max-width: 880px; margin: 0 auto; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.1em; }
.entry-content ul { color: var(--ink-700); }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .site-title { color: #fff; }
.footer-col h4 {
  color: #fff; font-family: var(--font-head);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-400); }
.footer-note { font-size: 0.9rem; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
.align-center { align-items: center; }

/* ==========================================================================
   SEO / GEO additions
   ========================================================================== */
.last-updated { text-align: center; color: var(--ink-500); font-size: 0.85rem; margin: 0; padding: 18px 20px 30px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto; margin: 0;
  position: fixed !important; top: 8px; left: 8px; z-index: 100000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}

/* ==========================================================================
   7. Two offerings: Consulting (teal) + Expert Marketplace (amber)
   ========================================================================== */

/* --- Offering bar under the header (pillar pages only) --- */
.offering-bar { background: var(--surface-100); border-bottom: 1px solid var(--border); }
.offering-bar-inner { display: grid; grid-template-columns: 1fr 1fr; }
.offering-tab {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 20px;
  color: var(--ink-500);
  font-size: 0.82rem;
  border-bottom: 3px solid transparent;
}
.offering-tab strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--navy-900); display: flex; align-items: center; gap: 8px; }
.offering-tab strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.offering-tab--consulting strong::before { background: var(--teal-500); }
.offering-tab--marketplace strong::before { background: var(--amber-500); }
.offering-tab:hover { background: #fff; color: var(--ink-700); }
.offering-tab.is-active { background: #fff; }
.offering-tab--consulting.is-active { border-bottom-color: var(--teal-500); }
.offering-tab--marketplace.is-active { border-bottom-color: var(--amber-500); }
@media (max-width: 640px) { .offering-tab span { display: none; } .offering-tab { padding: 12px 14px; } }

/* --- Marketplace accent: amber on indigo-navy, so it never reads as the consulting site --- */
.is-marketplace-page .page-hero {
  background: radial-gradient(900px 420px at 92% -20%, rgba(245,165,36,0.30), transparent 60%), linear-gradient(160deg, #0a1030, #1b2a6b 72%, #26358a);
}
.is-marketplace-page .eyebrow { color: #8a5a00; background: rgba(245,165,36,0.16); }
.is-marketplace-page .page-hero .eyebrow,
.is-marketplace-page .bg-navy .eyebrow { color: #ffd28a; background: rgba(245,165,36,0.18); }
.is-marketplace-page .btn-primary { background: var(--amber-500); color: var(--navy-950); }
.is-marketplace-page .btn-primary:hover { background: var(--amber-600); color: #fff; }
.is-marketplace-page .check-list li::before,
.is-marketplace-page .bg-navy .check-list li::before { background-color: var(--amber-500); }
.is-marketplace-page .card:hover { border-color: var(--amber-500); }
.is-marketplace-page .card .icon { background: #fdf1d9; color: #8a5a00; }
.is-marketplace-page .step .num { background: #1b2a6b; }
.is-marketplace-page .bg-navy { background: #141f55; }
.is-marketplace-page .page-hero .hero-stat .num { color: #ffc861; }
.is-marketplace-page .btn-primary:hover { color: #fff; }

.is-consulting-page .bg-navy .eyebrow { color: var(--teal-400); background: rgba(20,184,166,0.18); }
.bg-navy .eyebrow { color: var(--teal-400); background: rgba(20,184,166,0.18); }
.page-hero .hero-stats { margin-top: 36px; }
.page-hero .hero-actions { align-items: center; }
.card-featured { border-color: var(--amber-500); box-shadow: var(--shadow-md); }

/* --- Dark glass cards used inside navy sections --- */
.glass-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); padding: 26px 24px; }
.glass-card .step-no { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--amber-500); margin-bottom: 8px; }
.glass-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.glass-card p { margin: 0; font-size: 0.93rem; }

/* --- Anonymised expert match card (illustration) --- */
.match-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; max-width: 460px; margin-left: auto; }
@media (max-width: 860px) { .match-card { margin: 0 auto; } }
.match-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-500); background: var(--surface-100); padding: 4px 10px; border-radius: 999px; }
.match-head { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.match-head strong { display: block; font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; }
.match-head small { color: var(--ink-500); font-size: 0.82rem; }
.match-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy-100); color: var(--navy-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.match-avatar svg { width: 22px; height: 22px; }
.match-fit { margin-left: auto; font-weight: 700; font-size: 0.78rem; color: #8a5a00; background: #fdf1d9; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.match-rows { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.match-rows li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.9rem; }
.match-rows li span { color: var(--ink-500); }
.match-rows li strong { color: var(--navy-900); text-align: right; }
.match-lock { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: var(--surface-50); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.8rem; color: var(--ink-500); }
.match-lock svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Comparison table --- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { width: 17%; background: var(--surface-50); font-family: var(--font-head); font-size: 0.9rem; color: var(--navy-900); }
.compare td { color: var(--ink-700); width: 41.5%; }
.compare thead th { font-family: var(--font-head); font-size: 1rem; border-bottom: 0; }
.compare thead th a { color: #fff; }
.compare thead th a:hover { color: var(--teal-400); }
.compare thead .col-market a:hover { color: #ffc861; }
.compare thead .col-consulting { background: var(--navy-900); box-shadow: inset 0 -4px 0 var(--teal-500); }
.compare thead .col-market { background: #1b2a6b; box-shadow: inset 0 -4px 0 var(--amber-500); }

/* --- Home page: the two offerings side by side --- */
.offering-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .offering-split { grid-template-columns: 1fr; } }
.offering-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: 38px 34px; border: 1px solid var(--border); }
.offering-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.offering-card .check-list { margin: 8px 0 28px; }
.offering-card > .btn, .offering-actions { margin-top: auto; align-self: flex-start; }
.offering-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.offering-label { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.offering-card--consulting { background: #fff; border-top: 5px solid var(--teal-500); box-shadow: var(--shadow-md); }
.offering-card--consulting .offering-label { color: var(--teal-600); }
.offering-card--platform { background: linear-gradient(160deg, #0a1030, #1b2a6b); border-top: 5px solid var(--amber-500); color: #fff; box-shadow: var(--shadow-md); }
.offering-card--platform h3 { color: #fff; }
.offering-card--platform p, .offering-card--platform .check-list li { color: rgba(255,255,255,0.84); }
.offering-card--platform .offering-label { color: #ffc861; }
.offering-card--platform .check-list li::before { background-color: var(--amber-500); }

/* ==========================================================================
   8. Forms (consultation, post a project, apply as an expert)
   ========================================================================== */
.form-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; gap: 30px; } }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); color: var(--ink-700); }
@media (max-width: 540px) { .form-card { padding: 22px 18px; } }
.imdr-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 540px) { .imdr-form .form-grid { grid-template-columns: 1fr; } }
.imdr-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.imdr-form .field--full { grid-column: 1 / -1; }
.imdr-form label { font-weight: 600; font-size: 0.88rem; color: var(--navy-900); }
.imdr-form .req { color: #c0392b; }
.imdr-form input[type="text"],
.imdr-form input[type="email"],
.imdr-form input[type="url"],
.imdr-form select,
.imdr-form textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink-900);
  width: 100%; padding: 11px 13px;
  background: #fff; border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm);
}
.imdr-form textarea { resize: vertical; min-height: 120px; }
.imdr-form input:focus, .imdr-form select:focus, .imdr-form textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,0.2);
}
.is-marketplace-page .imdr-form input:focus,
.is-marketplace-page .imdr-form select:focus,
.is-marketplace-page .imdr-form textarea:focus { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,165,36,0.25); }
.imdr-form .field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.imdr-form .field--check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.imdr-form .field--check label { font-weight: 400; font-size: 0.88rem; color: var(--ink-700); }
.imdr-form .form-actions { margin-top: 22px; }
.imdr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.95rem; }
.form-notice--ok { background: #e8f8f3; border: 1px solid #9edbc7; color: #0b5d4a; }
.form-notice--err { background: #fdecec; border: 1px solid #f3b4b4; color: #8a1f1f; }

/* ==========================================================================
   9. Navigation groups (dropdowns) + highlighted offering links
   ========================================================================== */
.primary-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: middle;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 270px; z-index: 1000;
  flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px; list-style: none; margin: 0;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu { display: flex; }
.primary-nav .sub-menu a { font-weight: 500; padding: 10px 14px; white-space: nowrap; }
.primary-nav .menu-item-consulting > a { box-shadow: inset 0 0 0 1.5px var(--teal-500); border-radius: 999px; }
.primary-nav .menu-item-marketplace > a { background: var(--amber-500); color: var(--navy-950); border-radius: 999px; }
.primary-nav .menu-item-marketplace > a:hover { background: var(--amber-600); color: #fff; }
.primary-nav .menu-item-consulting > a:hover { background: rgba(20,184,166,0.12); }
@media (max-width: 900px) {
  .primary-nav .sub-menu { display: flex; position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 14px; background: transparent; }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  .primary-nav .menu-item-consulting > a,
  .primary-nav .menu-item-marketplace > a { border-radius: 8px; margin: 4px 0; }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .primary-nav a { padding: 10px 10px; font-size: 0.88rem; }
}

/* ==========================================================================
   10. Fixes / polish
   ========================================================================== */
.bg-navy .check-list li { color: rgba(255,255,255,0.86); }
.page-hero .eyebrow { color: var(--teal-400); background: rgba(20,184,166,0.18); }
.is-marketplace-page .page-hero .eyebrow { color: #ffd28a; background: rgba(245,165,36,0.18); }
.primary-nav a, .header-cta .btn { white-space: nowrap; }
.header-inner { max-width: 1320px; gap: 18px; }
/* Tagline: single line, only when there is room (prevents 3-line wrap that bloats the header) */
.site-branding { flex-shrink: 0; }
.site-title, .site-tagline { white-space: nowrap; }
@media (max-width: 1500px) { .site-tagline { display: none; } }
.brand-logo { display: block; height: 44px; width: auto; max-width: 200px; }
@media (max-width: 900px) {
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   11. Insights (blog)
   ========================================================================== */
.insights-filter { margin: 0 0 28px; }
.insights-filter .tag-chip { text-decoration: none; }
.insights-filter .tag-chip:hover { background: var(--navy-100); color: var(--navy-900); }
.post-card h3 a { color: var(--navy-900); }
.post-card h3 a:hover { color: var(--teal-600); }
.post-card-cat { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }
.post-meta { font-size: 0.82rem; color: var(--ink-500); margin: 12px 0 0; }
.post-meta--hero { color: rgba(255,255,255,0.7); margin-top: 18px; }
.post-figure { margin: 0 0 28px; }
.post-figure img { border-radius: var(--radius-md); width: 100%; }
.imdr-article .entry-content { font-size: 1.04rem; line-height: 1.75; }
.imdr-article .entry-content p { margin: 0 0 1.15em; }
.imdr-article .entry-content h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.imdr-article .entry-content h3 { margin: 1.4em 0 0.4em; }
.imdr-article .entry-content ul, .imdr-article .entry-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.imdr-article .entry-content li { margin-bottom: 0.4em; }
.imdr-article .entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.imdr-article .entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--teal-500); color: var(--ink-700); }
.imdr-article .entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.93rem; display: block; overflow-x: auto; }
.imdr-article .entry-content th, .imdr-article .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.imdr-article .entry-content th { background: var(--surface-100); color: var(--navy-900); }
.key-takeaways { background: var(--surface-50); border: 1px solid var(--border); border-left: 4px solid var(--teal-500); border-radius: var(--radius-md); padding: 18px 22px; margin: 0 0 1.8em; }
.key-takeaways .kt-title { font-family: var(--font-head); font-weight: 800; color: var(--navy-900); margin: 0 0 8px; }
.key-takeaways ul { margin: 0; }
.post-disclaimer { font-size: 0.85rem; color: var(--ink-500); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 2em; }
.related-posts .section-head { margin-bottom: 24px; }
.navigation.pagination { margin-top: 36px; text-align: center; }
.navigation.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.navigation.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy-900); }
.navigation.pagination .page-numbers.current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
