/* E More Consulting — single-page styles */

:root {
  --color-bg: #f6f8f6;
  --color-surface: #ffffff;
  --color-text: #1a2e24;
  --color-text-muted: #3d5348;
  --color-accent: #1f5c3f;
  --color-accent-hover: #16472f;
  --color-border: #d4e0d8;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(26, 46, 36, 0.08);
  --max-width: 72rem;
  --narrow: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  margin: 0 0 var(--space-md);
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo img {
  height: 4rem;
  width: auto;
  max-width: min(200px, 45vw);
  object-fit: contain;
  object-position: left center;
}

.site-logo:hover img {
  opacity: 0.92;
}

.site-logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
}

.site-nav a {
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

main {
  display: block;
}

.section {
  padding: var(--space-xl) var(--space-md);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--narrow);
}

.hero {
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  background: #ffffff;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.hero__lede {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 38ch;
}

.hero__media {
  display: flex;
  justify-content: center;
}

.hero__media img {
  width: min(100%, 420px);
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .hero__media img {
    width: min(50%, 210px);
  }
}

.values {
  background: var(--color-bg);
  border-block: 1px solid var(--color-border);
}

.values__intro {
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-bottom: var(--space-lg);
  font-size: 1.0625rem;
}

.values__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(26, 46, 36, 0.04);
}

/* Core values card tints (order: Data-Driven, holistic, Success focused) */
.values__grid > .value-card:nth-child(1) {
  background: #c2edda;
  border-color: rgba(26, 46, 36, 0.12);
}

.values__grid > .value-card:nth-child(2) {
  background: #fffff4;
  border-color: rgba(26, 46, 36, 0.1);
}

.values__grid > .value-card:nth-child(3) {
  background: #63ddfc;
  border-color: rgba(26, 46, 36, 0.12);
}

.value-card__media {
  margin: calc(var(--space-sm) * -0.5) calc(var(--space-sm) * -0.5) var(--space-sm);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: transparent;
}

.value-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Single-column layout: keep illustrations small until 3-up grid at 900px */
@media (max-width: 899px) {
  .value-card__media {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .value-card__media img {
    width: 25%;
  }
}

.value-card__title {
  margin-top: 0;
}

.value-card p {
  color: var(--color-text-muted);
  flex: 1;
}

.trusted {
  text-align: center;
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.trusted__marquee {
  overflow: hidden;
  margin-inline: calc(var(--space-md) * -1);
  padding-block: var(--space-sm);
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.trusted__track {
  display: flex;
  width: max-content;
  animation: trusted-marquee 45s linear infinite;
}

.trusted__marquee:hover .trusted__track {
  animation-play-state: paused;
}

@keyframes trusted-marquee {
  to {
    transform: translateX(-50%);
  }
}

.trusted__logos {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-lg);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-xl);
  flex-shrink: 0;
}

.trusted__logos li {
  margin: 0;
  flex-shrink: 0;
}

.trusted__logos img {
  max-height: 3rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  filter: grayscale(0.25);
  opacity: 0.88;
}

/* Square IMF mark: default max-height makes it tiny vs wide logos */
.trusted__logo--imf img {
  max-height: 5.25rem;
  max-width: 5.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .trusted__marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .trusted__track {
    animation: none !important;
    transform: none !important;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trusted__track .trusted__logos[aria-hidden="true"] {
    display: none !important;
  }

  .trusted__logos {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
}

.about {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.site-footer {
  background: var(--color-text);
  color: #e8f0ea;
  padding: var(--space-xl) var(--space-md);
  scroll-margin-top: 4rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer__heading {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.site-footer a {
  color: #b8d4c4;
  font-weight: 500;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__contact {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.site-footer__sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.site-footer__copy {
  margin: 0;
  opacity: 0.75;
}

.site-footer__copy small {
  font-size: 0.875rem;
}
