/* MERO Consulting — visual redesign 2026 */

/* ── Design Tokens ─────────────────────────────────────── */

:root {
  --navy: #0a2342;
  --navy-light: #1b3a5c;
  --gold: #c5a55a;
  --gold-light: #d4b96e;
  --gold-dark: #8a6f2e;
  --slate-900: #1a1a2e;
  --slate-600: #4a5568;
  --slate-400: #94a3b8;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --max: 1120px;
}

/* ── Reset & Base ──────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-900);
  background: var(--white);
  margin: 0;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-light); }

h2 {
  font-size: 28px;
  margin: 40px 0 16px;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  margin: 24px 0 8px;
  color: var(--navy);
  font-weight: 700;
}

ul, ol { padding-left: 24px; }
li { margin: 8px 0; }
li strong { color: var(--navy); }

p { margin: 16px 0; }

/* ── Header & Navigation ───────────────────────────────── */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  flex-direction: column;
}

.brand {
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand::before {
  content: "★ ";
  color: var(--gold);
}

.trust-strip {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active { color: var(--white); }
.nav a:hover { color: var(--white); }

/* ── Mobile Hamburger (CSS-only) ────────────────────────── */

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--slate-400);
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease forwards;
}

.hero h1 {
  font-size: 42px;
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}

.hero .tagline {
  font-size: 20px;
  color: var(--slate-600);
  margin: 0;
  font-weight: 500;
  max-width: 600px;
}

/* ── CTA Buttons ────────────────────────────────────────── */

.cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white) !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  margin: 8px 8px 8px 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 2px solid var(--navy);
}

.cta:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white) !important;
}

.cta.secondary {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}

.cta.secondary:hover {
  background: var(--navy);
  color: var(--white) !important;
}

/* ── Trust Badges ───────────────────────────────────────── */

.trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-400);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate-600);
  font-weight: 500;
}

.trust-icon {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 16px;
}

/* ── Service Card Grid ──────────────────────────────────── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.service-card {
  border-left: 3px solid var(--gold-dark);
  padding: 20px 24px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 4px;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--slate-600);
  margin: 0;
}

.service-card h3 {
  margin: 0 0 8px;
}

/* ── Compliance Badge Strip ─────────────────────────────── */

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

/* ── Identifier Table Card ──────────────────────────────── */

.id-card {
  background: var(--white);
  border-top: 4px solid var(--navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 4px 0;
  margin: 16px 0 24px;
  overflow: hidden;
}

.id-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

.id-table td {
  padding: 10px 20px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}

.id-table tr:last-child td {
  border-bottom: 0;
}

.id-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  width: 35%;
  white-space: nowrap;
}

/* ── Engagement Cards ───────────────────────────────────── */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.engagement-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  padding: 24px;
}

.engagement-card h3 {
  margin: 0 0 8px;
}

/* ── Past Performance Cards ─────────────────────────────── */

.performance-card {
  border-left: 3px solid var(--gold-dark);
  padding: 20px 24px;
  background: var(--white);
  margin: 16px 0;
}

/* ── Principal Bio Block ────────────────────────────────── */

.bio-block {
  border-left: 4px solid var(--gold-dark);
  padding: 16px 24px;
  background: var(--slate-100);
  margin: 16px 0;
}

/* ── Contact Grid ───────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
}

/* ── Blockquote / Note ──────────────────────────────────── */

blockquote, .note {
  border-left: 3px solid var(--gold-dark);
  background: var(--slate-100);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--slate-600);
}

/* ── Main Content ───────────────────────────────────────── */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  margin-top: 64px;
  padding: 32px 24px;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.footer-col {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-designation {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.7;
}

.footer-ids {
  font-size: 13px;
  font-family: monospace, monospace;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

/* ── Animations ─────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Focus States ───────────────────────────────────────── */

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.site-header a:focus-visible {
  outline-color: var(--gold);
}

/* ── Responsive: Tablet (≤1024px) ───────────────────────── */

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
}

/* ── Responsive: Mobile (≤640px) ────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-header .inner {
    padding: 12px 20px;
  }

  .brand { font-size: 18px; }

  .trust-strip { display: none; }

  .nav-toggle-label { display: flex; }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 12px;
  }

  .nav-toggle:checked ~ .nav { display: flex; }

  .nav-toggle:checked ~ .nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  main {
    padding: 0 20px 48px;
  }

  .hero {
    padding: 24px 0 20px;
    margin-bottom: 24px;
  }

  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 17px; }
  h2 { font-size: 24px; }

  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .trust-badges { gap: 16px; }
  .badge-strip { gap: 6px; }
  .badge { font-size: 12px; padding: 4px 10px; }
  .id-table td:first-child { width: 40%; }
}
