/* ============================================================
   Midus — shared stylesheet
   Used by index.html, contact.php, and every page under /services/.
   Extracted from per-page inline styles 2026-04-18 during the
   site-expansion-per-service-pages implementation.
   ============================================================ */

:root {
  --teal:        #1c7d91;
  --teal-dark:   #0e4d5c;
  --teal-mid:    #267a8e;
  --teal-300:    #6ab8c8;
  --teal-200:    #a8d8e2;
  --teal-100:    #d0ecf2;
  --teal-50:     #edf7fa;
  --amber:       #c97c10;
  --amber-light: #fef3df;
  --slate:       #111e26;
  --slate-mid:   #2e4552;
  --text-mid:    #3a5464;
  --text-light:  #6a8a96;
  --border:      #dce9ed;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fa;
  --error:       #c0392b;
  --success:     #1a7a4a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAV ──────────────────────────────────────────── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

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

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  font-weight: 500 !important;
  transition: background 0.18s !important;
}

.nav-cta:hover { background: var(--teal-dark) !important; }
.nav-cta.active { background: var(--teal-dark) !important; }

/* Services dropdown */
.has-dropdown > a::after {
  content: '\25BE';
  font-size: 0.65em;
  margin-left: 0.4em;
  opacity: 0.6;
  position: relative;
  top: -1px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(17, 30, 38, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 250;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: background 0.12s, color 0.12s;
}

.dropdown-menu a:hover {
  background: var(--teal-50);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--slate);
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 0.85rem 1.9rem;
}

.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost {
  color: var(--text-mid);
  padding: 0.85rem 0;
  border-bottom: 1px solid currentColor;
}

.btn-ghost:hover { color: var(--teal); }

.btn-white {
  background: #fff;
  color: var(--teal-dark);
  padding: 0.95rem 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-white:hover { background: var(--teal-100); }

/* ─── SECTION HEADERS ─────────────────────────────── */
.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ─── HOMEPAGE HERO ───────────────────────────────── */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5.5rem 5vw 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.hero h1 mark {
  background: none;
  color: var(--teal);
}

.hero-body {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 460px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--slate);
  padding: 2.5rem;
  position: relative;
}

.hero-panel-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 1.5rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  letter-spacing: 0.01em;
}

.chip-teal  { background: var(--teal);    color: #fff; }
.chip-dim   { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12); }
.chip-light { background: var(--teal-100); color: var(--teal-dark); }

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 2rem;
}

.hero-stat {
  background: var(--slate);
  padding: 1.25rem 1rem 1rem;
}

.hero-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

/* ─── HOMEPAGE SERVICES GRID ──────────────────────── */
.services {
  background: var(--bg);
  padding: 6rem 5vw;
  border-top: 1px solid var(--border);
}

.services-inner { max-width: 1240px; margin: 0 auto; }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem;
  transition: background 0.18s;
  position: relative;
}

.service-card:hover { background: var(--teal-50); }
.service-card:hover .service-icon { background: var(--teal); color: #fff; }
.service-card:hover .service-link { color: var(--teal); }

.service-icon {
  width: 38px;
  height: 38px;
  background: var(--teal-100);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.service-icon svg { width: 18px; height: 18px; }

.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.845rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.18s;
}

/* ─── HOMEPAGE ABOUT ──────────────────────────────── */
.about {
  background: var(--slate);
  padding: 6rem 5vw;
}

.about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7rem;
  align-items: start;
}

.about-left .section-kicker { color: var(--teal-300); }

.about-left h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-left h2 em {
  font-style: normal;
  color: var(--teal-300);
}

.about-left p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-weight: 300;
  max-width: 360px;
}

.about-items { padding-top: 0.25rem; }

.about-item {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.6rem 0;
}

.about-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.975rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.45rem;
}

.about-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── HOMEPAGE PROCESS ────────────────────────────── */
.process {
  background: var(--bg-soft);
  padding: 6rem 5vw;
  border-top: 1px solid var(--border);
}

.process-inner { max-width: 1240px; margin: 0 auto; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 3.5rem;
}

.process-step {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal-100);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.05em;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── CALLOUT ─────────────────────────────────────── */
.callout {
  background: var(--bg);
  padding: 5rem 5vw;
  border-top: 1px solid var(--border);
}

.callout-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.callout-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--slate);
}

.callout-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--teal-200);
  line-height: 0.6;
  display: block;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.callout-body {
  font-size: 0.925rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-top: 1.25rem;
}

.callout-list {
  list-style: none;
  margin-top: 1.5rem;
}

.callout-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 400;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.callout-list li:first-child { border-top: 1px solid var(--border); }

.callout-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ─── CTA BAND ────────────────────────────────────── */
.cta-band {
  background: var(--teal);
  padding: 5rem 5vw;
}

.cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.cta-inner h2 span {
  color: var(--teal-100);
}

/* ─── SERVICE-PAGE HERO ───────────────────────────── */
.service-hero {
  background: var(--bg);
  padding: 5rem 5vw 4.5rem;
  border-bottom: 1px solid var(--border);
}

.service-hero-inner {
  /* Was a 2-column grid (text + decorative SVG visual). The visual
     block was removed 2026-05-01 so this collapses to a single
     readable text column. Narrower max-width matches the body-text
     measure used elsewhere on the site. */
  max-width: 880px;
  margin: 0 auto;
}

.service-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.service-hero-eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}

.service-hero-eyebrow a:hover {
  border-color: var(--teal);
}

.service-hero-eyebrow::before {
  content: '\2190';
  margin-right: 0.5rem;
  font-size: 0.9em;
}

.service-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.service-hero-lede {
  font-size: 1.15rem;
  color: var(--slate-mid);
  max-width: 520px;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.service-hero-body {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.service-hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.service-hero-visual {
  background: var(--slate);
  padding: 3rem 2.5rem;
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-hero-visual .big-icon {
  width: 64px;
  height: 64px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.service-hero-visual .big-icon svg {
  width: 30px;
  height: 30px;
}

.service-hero-visual p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── SERVICE-PAGE SECTIONS ───────────────────────── */
.service-section {
  padding: 5rem 5vw;
  border-bottom: 1px solid var(--border);
}

.service-section.alt {
  background: var(--bg-soft);
}

.service-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.service-section-inner.service-section-narrow {
  max-width: 860px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.two-col-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.two-col-header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.75;
  max-width: 340px;
}

/* personas grid */
.personas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.persona-card {
  background: var(--bg);
  border-left: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
}

.service-section.alt .persona-card {
  background: #fff;
}

.persona-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.persona-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* capabilities grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.capability-card {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.service-section.alt .capability-card { background: #fff; }

.capability-icon {
  width: 34px;
  height: 34px;
  background: var(--teal-100);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.capability-icon svg { width: 16px; height: 16px; }

.capability-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.capability-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* outcomes */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.outcome-card {
  background: var(--bg);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
}

.service-section.alt .outcome-card { background: #fff; }

.outcome-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.outcome-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.outcome-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
}

.outcome-card .outcome-note {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

/* how we work (mini process) */
.miniprocess-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.miniprocess-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0.75rem 0 0.5rem;
}

.miniprocess-step p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

.miniprocess-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.55rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
}

/* Related services */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.18s, background 0.18s;
}

.service-section.alt .related-card { background: #fff; }

.related-card:hover {
  border-color: var(--teal);
  background: var(--teal-50);
}

.related-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.45rem;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* Final CTA on service pages */
.final-cta {
  background: var(--teal);
  padding: 5rem 5vw;
  color: #fff;
}

.final-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: left;
}

.final-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 700px;
}

.final-cta p {
  font-size: 1.05rem;
  color: var(--teal-100);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.final-cta-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.final-cta a.ghost {
  color: #fff;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.18s;
}

.final-cta a.ghost:hover { border-color: #fff; }

/* ─── CONTACT PAGE ────────────────────────────────── */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 4rem 5vw 3.5rem;
}

.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.18s;
}

.breadcrumb a:hover { color: var(--teal); }

.breadcrumb span { color: var(--border); }

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
}

.service-tag-line {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--teal-dark);
  background: var(--teal-50);
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1rem;
  max-width: 640px;
}

.service-tag-line strong { color: var(--teal-dark); font-weight: 600; }

.contact-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 5vw 6rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-sidebar { position: sticky; top: 88px; }

.sidebar-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.sidebar-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.sidebar-text {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

.sidebar-list {
  list-style: none;
  margin-top: 1rem;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.4rem 0;
  font-weight: 300;
}

.sidebar-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.contact-form-wrap { background: var(--bg); }

#contactForm fieldset { border: none; padding: 0; }

#contactForm fieldset > div { margin-bottom: 1.75rem; }

#contactForm fieldset > div:last-child {
  margin-bottom: 0;
  margin-top: 2rem;
}

#contactForm label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.required {
  color: var(--teal);
  font-weight: 600;
}

#contactForm input[type="text"],
#contactForm select,
#contactForm textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

#contactForm select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%233a5464' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

#contactForm input[type="text"]:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  border-color: var(--teal);
  background: var(--teal-50);
}

#contactForm input[type="text"].error,
#contactForm textarea.error {
  border-color: var(--error);
}

#contactForm textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.65;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

button.submit {
  background: var(--teal);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.01em;
}

button.submit:hover { background: var(--teal-dark); }

button.submit:disabled {
  background: var(--teal-200);
  cursor: not-allowed;
}

#image-loader { display: none; }
#image-loader img { width: 20px; height: 20px; }

.form-message {
  display: none;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 1.5rem;
  border-left: 3px solid;
}

.form-message.success {
  background: #edfaf3;
  color: var(--success);
  border-color: var(--success);
}

.form-message.error-msg {
  background: #fdf2f2;
  color: var(--error);
  border-color: var(--error);
}

.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--slate);
  padding: 4rem 5vw 2rem;
}

.footer-inner { max-width: 1240px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  height: 30px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-col a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .miniprocess-grid { grid-template-columns: 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 3.2rem); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .callout-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
  .service-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; padding-top: 3rem; }
  .contact-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 5vw 1.5rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links > li { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-links .nav-cta { width: fit-content; }
  .nav-toggle { display: block; }

  /* mobile dropdown: render as expanded list */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding: 0.35rem 0 0 0.75rem;
    background: transparent;
    min-width: 0;
  }
  .dropdown-menu a { padding: 0.4rem 0; font-size: 0.82rem; }
  .has-dropdown > a::after { content: ''; margin: 0; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
