@import url("https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --ma-ink: #0f1115;
  --ma-ink-2: #1c2128;
  --ma-paper: #f7f1e9;
  --ma-sand: #efe6dc;
  --ma-muted: #6b7280;

  --ma-accent: #4f7cff;
  --ma-accent-2: #3a66f4;
  --ma-accent-contrast: #ffffff;

  --ma-radius: 18px;
  --ma-shadow: 0 18px 48px rgba(15, 17, 21, 0.2);
  --ma-max: 1120px;
  --ma-footer-bg: #0b0d10;

  --ma-font-display: "Syne", sans-serif;
  --ma-font-text: "Sora", sans-serif;
}

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

.ma-container {
  width: min(100% - 2rem, var(--ma-max));
  margin-inline: auto;
}

.ma-section {
  padding: clamp(36px, 4.5vw, 64px) 0;
}

.ma-header,
.ma-hero,
.ma-record,
.ma-services,
.ma-footer,
.ma-about-hero,
.ma-resume {
  font-family: var(--ma-font-text);
}

.ma-hero h1,
.ma-record h2,
.ma-services h2,
.ma-services h3,
.ma-about-title,
.ma-prose h2,
.ma-resume h1 {
  font-family: var(--ma-font-display);
  letter-spacing: -0.015em;
}

.ma-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ma-muted);
}

/* Buttons */
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ma-accent);
  color: var(--ma-accent-contrast);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.ma-btn:hover {
  background: var(--ma-accent-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(58, 102, 244, 0.35);
}

.ma-btn:focus-visible {
  outline: 2px solid var(--ma-accent);
  outline-offset: 2px;
}

.ma-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.ma-btn--nav {
  background: #111827;
  color: #ffffff !important;
}

.ma-btn--nav:hover {
  background: #1f2937;
}

/* Header */
.ma-header {
  background: var(--ma-paper);
  border-bottom: 1px solid #e7dfd5;
}

.ma-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.ma-logo img {
  width: 200px;
  height: auto;
  display: block;
}

.ma-menu {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.ma-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ma-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #111827;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ma-burger {
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  display: block;
}

.ma-burger::before,
.ma-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.ma-burger::before { top: -6px; }
.ma-burger::after { top: 6px; }

.ma-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ma-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ma-ink);
}

/* Mobile header menu */
@media (max-width: 900px) {
  .ma-logo img { width: 160px; }
  .ma-menu-button { display: flex; }

  .ma-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(92vw, 260px);
    background: var(--ma-paper);
    border: 1px solid #e7dfd5;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(15, 17, 21, 0.12);
  }

  .ma-menu-toggle:checked + .ma-menu-button + .ma-nav {
    display: grid;
    gap: 8px;
  }

  .ma-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .ma-btn--nav {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }
}

/* Hero */
.ma-hero {
  background: radial-gradient(1200px 600px at 20% -10%, #2a2f36 0%, #0f1115 55%, #0b0d10 100%);
  color: #fff;
}

.ma-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.ma-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin: 10px 0 12px;
}

.ma-lead {
  font-size: clamp(18px, 2vw, 24px);
  color: #d7dbe0;
  margin: 0 0 16px;
}

.ma-body {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #c7ccd2;
  margin: 0 0 24px;
}

.ma-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.ma-meta {
  font-size: 14px;
  color: #9aa2ad;
}

.ma-hero-media {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.ma-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  display: block;
}

/* Track Record */
.ma-record { background: var(--ma-paper); }

.ma-section-head { display: grid; gap: 12px; margin-bottom: 20px; }

.ma-record h2,
.ma-services h2 { font-size: clamp(26px, 3vw, 38px); margin: 0; }

.ma-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.ma-card {
  background: #fff;
  border: 1px solid #e8e2d9;
  border-radius: var(--ma-radius);
  padding: 20px;
}

.ma-kpi { font-size: clamp(28px, 3.5vw, 52px); font-weight: 800; margin: 0 0 6px; color: var(--ma-ink); }
.ma-card-title { font-weight: 700; margin: 0 0 8px; }
.ma-card-body { color: #5f6670; margin: 0; line-height: 1.6; }

/* What I Do */
.ma-services {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  padding-bottom: clamp(32px, 4vw, 60px);
}

.ma-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.ma-service {
  border: 1px solid #efe8de;
  border-radius: var(--ma-radius);
  padding: 20px;
  background: #fff;
}

.ma-service h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 24px); }
.ma-service p { margin: 0; color: #5f6670; line-height: 1.6; }

/* Footer */
.ma-footer { background: var(--ma-footer-bg); color: #fff; }

.ma-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.ma-linkedin { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 700; }
.ma-linkedin img { width: 90px; height: auto; display: block; filter: brightness(0) invert(1); }

.ma-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive fixes for grids */
@media (max-width: 900px) {
  .ma-hero-grid,
  .ma-cards,
  .ma-services-grid {
    grid-template-columns: 1fr !important;
  }

  .ma-hero-media {
    order: 2;
    max-width: 100%;
    margin-top: 18px;
  }

  .ma-hero-copy { order: 1; }

  .ma-card,
  .ma-service {
    width: 100%;
  }
}

/* Spacing cleanup */
.wp-site-blocks > .ma-hero,
.wp-site-blocks > .ma-record,
.wp-site-blocks > .ma-services,
.wp-site-blocks > .ma-footer,
.wp-site-blocks > .ma-about-hero {
  margin-block-start: 0;
}

.wp-block-post-content > .ma-section {
  margin-block-start: 0;
}
