
/* MDC v2.1.8.4 — Premium UI Polish */

:root {
  --ui-ink: #12364f;
  --ui-muted: #64727e;
  --ui-line: rgba(8,44,74,.10);
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7faf8;
  --ui-primary: #0b3c5d;
  --ui-accent: #2d7a4f;
  --ui-accent-soft: #eaf5ee;
  --ui-gold: #d3a934;
  --ui-shadow-1: 0 10px 24px rgba(8,44,74,.07);
  --ui-shadow-2: 0 18px 42px rgba(8,44,74,.11);
  --ui-shadow-3: 0 28px 64px rgba(8,44,74,.16);
}

/* Page rhythm */
main {
  background:
    linear-gradient(180deg, rgba(247,250,248,.35), rgba(255,255,255,0) 16rem);
}
.section-heading .eyebrow,
.eyebrow {
  color: var(--ui-accent);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-heading h2,
.section-heading h1 {
  color: var(--ui-ink);
  letter-spacing: -.025em;
}
.section-heading p {
  color: var(--ui-muted);
  line-height: 1.75;
}

/* Refined cards */
.card,
.service-card,
.research-card,
.project-card,
.expert-card,
.course-card,
.publication-card,
.insight-card,
.practice-card,
.value-card,
.client-category,
.impact-metric,
.executive-pillar,
.executive-insight,
.executive-project-card,
.visual-story-card,
.research-practice-card,
.project-evidence-card {
  background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-1);
  position: relative;
  isolation: isolate;
}
.card::before,
.service-card::before,
.research-card::before,
.project-card::before,
.course-card::before,
.publication-card::before,
.executive-pillar::before,
.executive-insight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(61,181,98,.08), transparent 38%);
  opacity: .45;
  z-index: -1;
}
@media (hover:hover) and (pointer:fine) {
  .card:hover,
  .service-card:hover,
  .research-card:hover,
  .project-card:hover,
  .expert-card:hover,
  .course-card:hover,
  .publication-card:hover,
  .insight-card:hover,
  .practice-card:hover,
  .value-card:hover,
  .client-category:hover,
  .impact-metric:hover,
  .executive-pillar:hover,
  .executive-insight:hover,
  .executive-project-card:hover,
  .visual-story-card:hover,
  .research-practice-card:hover,
  .project-evidence-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ui-shadow-2);
    border-color: rgba(45,122,79,.24);
  }
}

/* Buttons */
.btn,
.button,
.cta-button,
a[class*="btn"] {
  min-height: 46px;
  padding: .78rem 1.15rem;
  border-radius: .78rem;
  font-weight: 800;
  letter-spacing: .005em;
  box-shadow: 0 8px 20px rgba(8,44,74,.08);
}
.btn-primary,
.button-primary,
a.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #1f6b45, #2d7a4f) !important;
  border-color: transparent !important;
}
.btn-primary:hover,
.button-primary:hover,
a.btn-primary:hover {
  background: linear-gradient(135deg, #185b3a, #246b45) !important;
  box-shadow: 0 14px 30px rgba(31,107,69,.22);
}
.btn-secondary,
.button-secondary,
a.btn-secondary {
  color: var(--ui-primary) !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(8,44,74,.16) !important;
}
.btn-secondary:hover,
.button-secondary:hover,
a.btn-secondary:hover {
  background: #f3f8f4 !important;
  border-color: rgba(45,122,79,.30) !important;
}

/* Links */
main a:not(.btn):not(.button):not(.cta-button) {
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}
main a:not(.btn):not(.button):not(.cta-button):hover {
  color: var(--ui-accent);
}

/* Hero enhancement */
.page-hero,
.project-hero,
.executive-home-hero {
  overflow: hidden;
}
.page-hero::after,
.project-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,181,98,.18), rgba(61,181,98,0) 70%);
  pointer-events: none;
}
.page-hero h1,
.project-hero h1,
.executive-home-hero h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,.12);
}

/* Section alternation */
.section-muted {
  background:
    linear-gradient(180deg, rgba(244,248,245,.95), rgba(248,250,249,.95));
  border-block: 1px solid rgba(8,44,74,.05);
}

/* Forms */
form {
  background: #fff;
}
input,
select,
textarea {
  border-radius: .72rem !important;
  border: 1px solid rgba(8,44,74,.16) !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(8,44,74,.03);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input:hover,
select:hover,
textarea:hover {
  border-color: rgba(45,122,79,.28) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(45,122,79,.55) !important;
  box-shadow: 0 0 0 4px rgba(45,122,79,.10) !important;
}
label {
  color: var(--ui-ink);
}

/* Tables */
.responsive-table-wrap {
  border: 1px solid var(--ui-line);
  background: #fff;
  box-shadow: var(--ui-shadow-1);
}
table thead th {
  background: #eef6f0;
  color: var(--ui-ink);
}
table tbody tr:nth-child(even) {
  background: #fafcfb;
}
table tbody tr:hover {
  background: #f3f8f4;
}

/* Tags and badges */
.tag,
.badge,
.pill,
.chip,
.project-tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: .28rem .58rem;
  border-radius: 999px;
  background: var(--ui-accent-soft);
  color: #235f3d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
}

/* Quotes */
blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.3rem 1.4rem 1.3rem 1.7rem;
  border-left: 4px solid var(--ui-accent);
  border-radius: .75rem;
  background: #f5f9f6;
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow-1);
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 85% 15%, rgba(61,181,98,.18), transparent 28%),
    #062640;
}
.site-footer a {
  transition: color .18s ease, transform .18s ease;
}
@media (hover:hover) and (pointer:fine) {
  .site-footer a:hover {
    transform: translateX(2px);
  }
}

/* Image polish */
.authentic-card,
.visual-banner,
.executive-image-panel img,
.project-card img,
.course-card img,
.publication-card img {
  box-shadow: 0 18px 42px rgba(8,44,74,.12);
}
.authentic-card .authentic-caption,
.executive-image-panel .image-note {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Navigation state polish */
.primary-nav a[aria-current="page"],
.primary-nav .active {
  color: var(--ui-accent) !important;
}
@media (min-width: 1025px) {
  .primary-nav > a,
  .nav-dropdown-toggle {
    position: relative;
  }
  .primary-nav > a::before,
  .nav-dropdown-toggle::before {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .15rem;
    height: 2px;
    border-radius: 999px;
    background: var(--ui-accent);
    transform: scaleX(0);
    transition: transform .2s ease;
  }
  .primary-nav > a:hover::before,
  .primary-nav > a[aria-current="page"]::before,
  .nav-dropdown-toggle:hover::before,
  .nav-dropdown-toggle.active::before {
    transform: scaleX(1);
  }
}

/* Micro-interactions */
.icon,
svg {
  transition: transform .2s ease;
}
@media (hover:hover) and (pointer:fine) {
  .card:hover .icon,
  .service-card:hover .icon,
  .research-card:hover .icon,
  .executive-pillar:hover .icon {
    transform: translateY(-2px) scale(1.03);
  }
}

/* Mobile refinements */
@media (max-width: 680px) {
  .card,
  .service-card,
  .research-card,
  .project-card,
  .expert-card,
  .course-card,
  .publication-card,
  .insight-card,
  .practice-card,
  .value-card {
    box-shadow: 0 8px 22px rgba(8,44,74,.07);
  }

  .btn,
  .button,
  .cta-button,
  a[class*="btn"] {
    min-height: 48px;
  }

  .authentic-card .authentic-caption {
    inset: auto .85rem .8rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card,
  .service-card,
  .research-card,
  .project-card,
  .expert-card,
  .course-card,
  .publication-card,
  .insight-card,
  .practice-card,
  .value-card,
  .client-category,
  .impact-metric,
  .executive-pillar,
  .executive-insight,
  .executive-project-card {
    transform: none !important;
  }
}
