/*
Theme Name: MkMage
Theme URI: https://mkmage.com
Author: MkMage
Description: MkMage e-commerce and AI growth site.
Version: 1.1.8
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mkmage
*/

:root {
  --orange: #ff6f3c;
  --navy: #1a3e5c;
  --footer: #012645;
  --ink: #111111;
  --muted: #5c6570;
  --line: #ededed;
  --paper: #ffffff;
  --mist: #f6f7f8;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 104px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: Montserrat, "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.45em;
}
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.center { text-align: center; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 104px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 104px;
  max-width: 1465px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img {
  width: 84px;
  height: 58px;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}
.logo span {
  margin-top: 2px;
  font-family: Montserrat, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #666;
  white-space: nowrap;
  line-height: 1.2;
}
.logo .brand-line {
  margin-top: 1px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #5c6570;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.nav > * { flex: 0 0 auto; }
.nav a {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}
.nav a:hover { color: var(--orange); }
.drop { position: relative; }
.drop > a { display: inline-flex; align-items: center; gap: 8px; }
.chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg) translateY(-2px);
}
.drop-menu {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  width: 420px;
  background: #fff;
  box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.25);
  padding: 8px 0;
  z-index: 5;
}
.drop:hover .drop-menu,
.drop:focus-within .drop-menu,
.drop.is-open .drop-menu { display: block; }
.drop-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 0 22px;
  font-weight: 600;
  font-size: 16px;
}
.drop-menu a:hover { background: #f7f7f7; color: #000; }
.drop-menu img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(55, 71, 79, 0.08);
  padding: 8px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
}
.menu-toggle span:before,
.menu-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span:before { top: -7px; }
.menu-toggle span:after { top: 7px; }

.btn-consult {
  background: linear-gradient(90deg, rgba(26, 62, 92, 0.92), rgba(255, 111, 60, 0.92));
  color: #fff !important;
  padding: 16px 24px;
  font-weight: 600 !important;
  white-space: nowrap;
}
.btn-consult:hover { background: var(--orange); color: #fff !important; }

.btn-orange {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  padding: 16px 24px;
  border: 0;
  cursor: pointer;
}
.btn-orange:hover { background: var(--navy); color: #fff; }
.btn-line {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  padding: 14px 22px;
  border: 2px solid var(--navy);
}
.btn-line:hover { background: var(--navy); color: #fff; }
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-intro {
  padding: 56px 0 28px;
  text-align: center;
}
.hero-intro h1 {
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
}
.hero-intro .lede {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #3a3a3a;
  font-size: 16px;
}
.hero-stage {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 0 0 48px;
}
.hero-frame {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-frame img {
  width: 100%;
  height: min(520px, 58vw);
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.hero-frame:before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -24px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  background: var(--orange);
  z-index: 0;
}

.why {
  color: #fff;
  background:
    radial-gradient(circle at 12% 70%, rgba(255, 111, 60, 0.22), transparent 280px),
    radial-gradient(circle at 96% 8%, rgba(255, 111, 60, 0.18), transparent 260px),
    var(--navy);
  padding: 88px 0 72px;
}
.why h2, .band h2, .cta-band h2 {
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
}
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; margin-top: 28px; }
.why h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.why p, .band p { color: #f2f4f6; }
.icon-row { display: flex; gap: 16px; align-items: center; margin: 0 0 18px; }
.icon-box {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  background: rgba(255, 111, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box img { width: 28px; height: 28px; object-fit: contain; }
.icon-row h4 { margin: 0 0 2px; font-size: 18px; }
.icon-row p { margin: 0; font-size: 14px; color: #d5dde4; }

.rev-box {
  margin-top: 36px;
  padding: 28px 32px 8px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  position: relative;
}
.rev-box:before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--orange);
  left: -16px;
  top: -8px;
}
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.mini-stats h4 { margin-bottom: 4px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 18px 0 0; }
.platform-row img { width: 42px; height: 42px; object-fit: contain; }
.rev-box .btn-orange { margin: 22px 0 24px; }

.section { padding: 84px 0; }
.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}
.section h2 em { font-style: normal; color: var(--orange); }

.work-grid, .card-grid, .team-grid, .stat-grid, .package-grid {
  display: grid;
  gap: 22px;
}
.work-grid { grid-template-columns: 1fr 1fr; margin-top: 36px; }
.work-card, .info-card, .package, .case-card, .post-card {
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}
.work-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.work-card .btn-orange { margin-top: auto; align-self: flex-start; }
.work-card img.wide, .case-card img, .post-card img, .package img.shot {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.icon-line { display: flex; gap: 10px; margin-bottom: 12px; }
.icon-line img { width: 36px; height: 36px; object-fit: contain; }
.more {
  color: var(--orange);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.stores {
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 111, 60, 0.28), transparent 280px),
    radial-gradient(circle at 96% 88%, rgba(255, 111, 60, 0.16), transparent 320px),
    var(--navy);
  padding: 88px 0;
}
.stores .eyebrow {
  margin: 0 0 12px;
  text-align: center;
  color: var(--orange);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stores h2 { color: #fff; }
.stores-lede {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  color: #d5dde4;
}
.store-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.store-card {
  min-height: 240px;
  padding: 22px 20px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.store-card b {
  display: block;
  margin-bottom: 36px;
  color: rgba(255, 111, 60, 0.55);
  font-family: Montserrat, sans-serif;
  font-size: 42px;
  line-height: 1;
}
.store-card h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.store-card p { margin: 0; color: #d5dde4; font-size: 15px; }
.store-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  padding-top: 8px;
}
.store-path article {
  padding-top: 22px;
  border-top: 2px solid rgba(255, 111, 60, 0.7);
}
.store-path span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.store-path h3 { color: #fff; font-size: 18px; }
.store-path p { color: #d5dde4; }
.section-cta { text-align: center; margin: 36px 0 0; }

.proof { background: var(--mist); }
.stat-grid { grid-template-columns: repeat(3, 1fr); margin-top: 12px; text-align: center; }
.stat-grid b {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-grid h3 { margin-top: 8px; }

.quote-wrap { position: relative; max-width: 920px; margin: 36px auto 0; }
.quote-slide {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.quote-slide[hidden] { display: none; }
.quote-slide img.person {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}
.quote-slide img.person.is-logo {
  object-fit: contain;
  border-radius: 0;
  background: var(--mist);
  padding: 12px;
}
.quote-slide img.mark { width: 140px; height: auto; margin-bottom: 10px; }
.quote-slide blockquote { margin: 0; font-size: 18px; }
.quote-slide cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; font-family: Montserrat, sans-serif; }
.quote-slide cite span { display: block; font-weight: 400; color: var(--muted); font-family: "Open Sans", sans-serif; }
.quote-nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.quote-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}
.quote-nav button:hover { border-color: var(--orange); color: var(--orange); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.post-card { text-decoration: none; display: block; }
.post-card h3 { font-size: 20px; padding: 0 18px; }
.pill {
  display: inline-block;
  margin: 14px 18px 0;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band p { max-width: 640px; margin: 0 auto 22px; }

.page-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #123049 center/cover no-repeat;
}
.page-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 20, 40, 0.15), rgba(1, 20, 40, 0.72));
}
.page-banner .wrap { position: relative; z-index: 1; padding: 80px 0 48px; }
.page-banner h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  max-width: 14em;
  color: #fff;
}
.page-banner p { max-width: 640px; color: #f3f3f3; font-size: 18px; }

.plain-hero { padding: 48px 0 10px; }
.plain-hero h1 { font-size: clamp(36px, 5vw, 56px); max-width: 16ch; }

.card-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.info-card { padding: 26px; }
.info-card img.icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.team-grid { grid-template-columns: 1fr 1fr; gap: 40px 36px; margin: 40px auto 0; max-width: 780px; }
.person-card { text-align: center; }
.person-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; }
.person-card h3 { font-size: 22px; margin: 16px 0 6px; }
.person-card .role {
  color: var(--orange);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.person-card .bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36em;
  margin: 0 auto;
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.value { background: var(--mist); padding: 22px; }
.value img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.feature {
  background: var(--mist);
  padding: 18px 16px 8px;
  min-height: 160px;
}
.feature img { width: 42px; height: 42px; object-fit: contain; margin-bottom: 8px; }
.feature h3 { font-size: 16px; }

.package-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.package { padding-bottom: 18px; }
.package h3, .package p, .package ul { padding: 0 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.step { border-top: 3px solid var(--orange); padding-top: 14px; }
.step img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 8px; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.contact-grid img.office { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.reach { display: grid; gap: 14px; margin-bottom: 22px; }
.reach div { display: flex; gap: 12px; align-items: flex-start; }
.reach img, .reach svg { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; fill: var(--navy); }
.company-card { margin-bottom: 36px; }
.company-card .co-label { font-family: Montserrat, "Segoe UI", sans-serif; font-weight: 700; }
.company-card .brand-note { margin-top: 18px; }
.footer-company { color: #fff; font-family: Montserrat, sans-serif; font-weight: 700; margin: 0 0 8px; }
form.contact, form.news { display: grid; gap: 12px; }
form.contact input, form.contact select, form.contact textarea, form.news input {
  width: 100%;
  border: 1px solid #ccc;
  padding: 12px 14px;
  background: #fff;
}
.notice { background: #eef8ef; border: 1px solid #b7e0bc; padding: 12px 14px; }

.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-a { display: none; padding: 0 0 16px; color: #333; }
.faq-item.is-open .faq-a { display: block; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.3em; font-size: 30px; }

.site-footer { background: var(--footer); color: #e8eef3; padding: 56px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 28px; }
.site-footer h3 {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-logo { height: 54px; width: 78px; max-width: none; object-fit: contain; margin-bottom: 8px; }
.news-row { display: flex; flex-wrap: wrap; gap: 8px; }
.news-row input { flex: 1 1 180px; min-width: 0; width: auto; }
.news-row button { flex: 0 0 auto; white-space: nowrap; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.socials svg { width: 16px; height: 16px; fill: #fff; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #b7c3ce;
  font-size: 13px;
}
.sub-note { background: #12384f; color: #fff; text-align: center; padding: 10px 16px; }

@media (max-width: 980px) {
  .work-grid, .post-grid, .card-grid, .package-grid, .steps, .values, .team-grid, .feature-grid, .stat-grid, .footer-top, .contact-grid, .split, .mini-stats, .store-board {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .quote-slide { grid-template-columns: 1fr; }
}

@media (max-width: 1260px) {
  body { padding-top: 84px; }
  body.admin-bar .site-header { top: 32px; }
  .menu-toggle { display: block; }
  .header-inner, .site-header { height: 84px; }
  .logo img { width: 66px; height: 46px; }
  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 20px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .drop-menu {
    position: static;
    width: auto;
    box-shadow: none;
    display: none;
    padding: 0 0 8px 8px;
  }
  .drop.is-open .drop-menu { display: block; }
  .drop:hover .drop-menu { display: none; }
  .drop.is-open:hover .drop-menu, .drop.is-open .drop-menu { display: block; }
  .btn-consult { text-align: center; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 860px) {
  .hero-frame { width: calc(100% - 32px); }
  .work-grid, .post-grid, .card-grid, .package-grid, .steps, .values, .team-grid, .feature-grid, .stat-grid, .footer-top, .contact-grid, .split, .mini-stats, .store-board, .store-path {
    grid-template-columns: 1fr;
  }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .person-card h3 { font-size: 16px; }
  .person-card .role { font-size: 11px; letter-spacing: 0.04em; }
  .person-card .bio { font-size: 13px; }
  .news-row input, .news-row button { flex: 1 1 100%; }
}
