:root {
  --mmx-bg: #f7faf8;
  --mmx-surface: #ffffff;
  --mmx-text: #0f172a;
  --mmx-muted: #64748b;
  --mmx-green: #047857;
  --mmx-green-dark: #022c22;
  --mmx-green-soft: #dff7ec;
  --mmx-blue: #0f2b4c;
  --mmx-cream: #f8f2e7;
  --mmx-line: rgba(15, 23, 42, .10);
  --mmx-shadow: 0 20px 55px rgba(15, 23, 42, .10);
  --mmx-radius: 22px;
  --mmx-container: min(1120px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mmx-bg);
  color: var(--mmx-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mmx-green); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 242, 231, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(4, 120, 87, .14);
}
.admin-bar .site-header { top: 32px; }
.site-header-inner {
  width: var(--mmx-container);
  margin: 0 auto;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--mmx-text); }
.custom-logo { max-height: 62px; width: auto; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--mmx-green), var(--mmx-blue));
  font-weight: 900;
  font-size: 26px;
}
.brand-text strong { display: block; letter-spacing: .08em; font-size: 22px; color: var(--mmx-green); }
.brand-text small { display: block; text-transform: uppercase; letter-spacing: .10em; font-size: 11px; font-weight: 800; color: var(--mmx-green); }
.primary-navigation { justify-self: center; }
.primary-menu, .footer-menu, .mobile-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 28px; }
.primary-menu a { font-weight: 750; color: #1e293b; }
.primary-menu .current-menu-item > a,
.primary-menu a:hover { color: var(--mmx-green); }
.primary-menu .sub-menu {
  position: absolute;
  display: none;
  list-style: none;
  margin: 0;
  padding: 12px;
  min-width: 220px;
  background: #fff;
  box-shadow: var(--mmx-shadow);
  border-radius: 16px;
}
.primary-menu li { position: relative; }
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 8px 10px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.pill-link, .button-primary, .button-secondary, .footer-button, .mobile-cta, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  color: var(--mmx-green);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  cursor: pointer;
}
.pill-link.primary, .button-primary, .woocommerce a.button.alt, .woocommerce button.button.alt {
  color: #fff;
  background: var(--mmx-green);
}
.button-secondary { color: var(--mmx-text); background: #fff; }
.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(4, 120, 87, .20);
  border-radius: 999px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--mmx-green-dark);
}
.search-strip {
  width: var(--mmx-container);
  margin: 0 auto 18px;
}
.miromax-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(4, 120, 87, .16);
  border-radius: 999px;
  box-shadow: 0 15px 45px rgba(4, 120, 87, .08);
}
.miromax-search-form input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  min-width: 0;
  outline: none;
}
.miromax-search-form button {
  border: 0;
  border-radius: 999px;
  background: var(--mmx-green);
  color: #fff;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
}
.mobile-panel {
  border-top: 1px solid var(--mmx-line);
  background: #fff;
}
.mobile-panel-inner {
  width: var(--mmx-container);
  margin: 0 auto;
  padding: 18px 0 24px;
}
.mobile-menu a, .mobile-cta { display: block; padding: 14px 0; font-weight: 800; }
.mobile-cta { color: #fff; background: var(--mmx-green); padding: 14px 18px; margin-top: 10px; text-align: center; }

.site-main { min-height: 52vh; }
.section-wrap, .hero-section, .content-shell, .woocommerce-shell, .article-header, .article-content, .article-featured-image, .not-found-section, .page-hero {
  width: var(--mmx-container);
  margin-left: auto;
  margin-right: auto;
}
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: center;
  padding: 78px 0 56px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mmx-green);
  background: var(--mmx-green-soft);
  border: 1px solid rgba(4, 120, 87, .16);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 16px; color: var(--mmx-text); }
h1 { font-size: clamp(42px, 7vw, 82px); letter-spacing: -.055em; }
h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; }
h3 { font-size: clamp(21px, 2.5vw, 28px); letter-spacing: -.025em; }
p { margin: 0 0 16px; color: var(--mmx-muted); }
.hero-content p { font-size: clamp(18px, 2vw, 23px); max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual {
  min-height: 420px;
  position: relative;
  border-radius: 36px;
  background: radial-gradient(circle at 20% 20%, rgba(22, 163, 74, .32), transparent 34%), linear-gradient(135deg, #052e2b, #0f2b4c 70%);
  box-shadow: var(--mmx-shadow);
  overflow: hidden;
}
.device-card {
  position: absolute;
  display: flex;
  align-items: end;
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  font-weight: 800;
}
.card-one { left: 9%; top: 12%; width: 44%; height: 45%; transform: rotate(-5deg); }
.card-two { right: 9%; top: 20%; width: 40%; height: 38%; transform: rotate(4deg); }
.card-three { left: 18%; bottom: 12%; width: 62%; height: 22%; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 34px 0 72px;
}
.feature-card, .post-card, .entry-content-card, .process-section, .cta-section, .not-found-section, .woocommerce-shell {
  background: var(--mmx-surface);
  border: 1px solid var(--mmx-line);
  border-radius: var(--mmx-radius);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .05);
}
.feature-card { padding: 26px; }
.feature-card span { display: block; color: var(--mmx-green); font-weight: 900; margin-bottom: 32px; }
.feature-card a, .text-link { color: var(--mmx-green); font-weight: 900; }
.process-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
  padding: 36px;
  margin-bottom: 72px;
}
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.process-list li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--mmx-line);
}
.process-list strong { font-size: 18px; }
.process-list span { color: var(--mmx-muted); }
.section-heading { margin-bottom: 24px; }
.latest-posts { padding-bottom: 72px; }
.post-grid, .archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.archive-grid { padding: 40px 0 80px; }
.post-card { overflow: hidden; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-body h2, .post-card-body h3 { font-size: 24px; }
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 38px;
  margin-bottom: 84px;
  background: linear-gradient(135deg, #fff, var(--mmx-green-soft));
}
.compact-hero {
  text-align: center;
  padding: 64px 0 34px;
}
.compact-hero h1 { margin-top: 14px; }
.content-shell { padding: 28px 0 80px; }
.entry-content-card { padding: clamp(24px, 5vw, 54px); }
.entry-content > * { max-width: 880px; }
.entry-content h2, .entry-content h3 { margin-top: 34px; }
.entry-content ul, .entry-content ol { color: var(--mmx-muted); }
.entry-content a { color: var(--mmx-green); font-weight: 800; }
.entry-content img { border-radius: 18px; }
.single-article { padding-bottom: 70px; }
.article-header { text-align: center; padding: 58px 0 28px; max-width: 980px; }
.article-featured-image { margin-bottom: 32px; }
.article-featured-image img { width: 100%; border-radius: 28px; }
.article-content { max-width: 900px; background: #fff; border-radius: var(--mmx-radius); padding: clamp(24px, 5vw, 56px); border: 1px solid var(--mmx-line); }
.not-found-section { text-align: center; padding: 80px 0; }
.not-found-section .miromax-search-form { max-width: 660px; margin: 20px auto; }
.woocommerce-shell { padding: clamp(20px, 4vw, 42px); margin-top: 20px; margin-bottom: 80px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; background: #fff; border: 1px solid var(--mmx-line); border-radius: 20px; padding: 16px !important; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.woocommerce ul.products li.product a img { border-radius: 16px; }

.site-footer {
  background: var(--mmx-green-dark);
  color: #e2e8f0;
  padding: 56px 0 28px;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #86efac; }
.footer-grid, .footer-bottom {
  width: var(--mmx-container);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px;
}
.footer-brand h2 { color: #fff; letter-spacing: .08em; font-size: 28px; }
.footer-brand span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #bfdbfe;
  font-size: 13px;
}
.footer-column h3, .footer-widget-title { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer-menu li { margin: 0 0 10px; }
.footer-menu a { color: #cbd5e1; }
.footer-button { color: var(--mmx-green-dark) !important; background: #fff; margin-top: 8px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #cbd5e1;
  font-size: 14px;
}
.footer-bottom p { margin: 0; color: #cbd5e1; }
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--mmx-green);
  box-shadow: var(--mmx-shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: .2s ease;
  cursor: pointer;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 1080px) {
  .site-header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .primary-navigation { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-section { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-visual { min-height: 340px; }
  .feature-grid, .post-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 720px) {
  :root { --mmx-container: min(100vw - 28px, 1120px); }
  .site-header-inner { min-height: 74px; gap: 12px; }
  .custom-logo { max-height: 48px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { display: none; }
  .hide-small, .header-actions .pill-link.primary { display: none; }
  .search-strip { margin-bottom: 12px; }
  .miromax-search-form { border-radius: 20px; grid-template-columns: 1fr; }
  .miromax-search-form input { padding: 10px 12px; }
  .miromax-search-form button { width: 100%; }
  .hero-section { padding: 36px 0 34px; }
  .hero-visual { min-height: 280px; border-radius: 24px; }
  .hero-actions, .cta-section { flex-direction: column; align-items: stretch; }
  .button-primary, .button-secondary { width: 100%; }
  .feature-grid, .post-grid, .archive-grid, .process-section, .footer-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .process-section, .cta-section, .entry-content-card, .article-content, .woocommerce-shell { padding: 22px; }
  .compact-hero { padding: 42px 0 20px; }
  .footer-bottom { flex-direction: column; }
  .footer-grid { gap: 26px; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(36px, 12vw, 54px); }
  h2 { font-size: 30px; }
  .site-header { position: sticky; }
  .menu-toggle { width: 46px; height: 46px; }
  .hero-visual { display: none; }
  .feature-card, .post-card-body { padding: 20px; }
  .footer-button { width: 100%; }
}

/* MIROMAX Responsive 1.0.1 - cleanup duplicates and mobile behavior */
.woocommerce-shell .woocommerce-products-header,
.woocommerce-shell .page-title,
.woocommerce-shell .woocommerce-products-header__title {
  display: none !important;
}

.mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.mobile-cta.primary {
  color: #fff;
  background: var(--mmx-green);
}

@media (min-width: 1081px) {
  .menu-toggle {
    display: none !important;
  }
  .mobile-panel,
  body.mobile-menu-open .mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 999;
    border-top: 1px solid var(--mmx-line);
    box-shadow: 0 24px 55px rgba(15, 23, 42, .14);
  }
  .mobile-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
  }
  .mobile-menu a {
    display: block;
    padding: 14px 2px;
    color: var(--mmx-text);
  }
  .mobile-menu .sub-menu {
    list-style: none;
    margin: 0 0 10px 16px;
    padding: 0;
  }
}


/* MIROMAX Responsive 1.0.2 - AI advisor page logo and typography */
.brand-fallback-logo {
  width: 68px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.miromax-ai-page .compact-hero {
  display: none;
}

.miromax-ai-hero-section {
  width: var(--mmx-container);
  margin: 0 auto;
  padding: 58px 0 34px;
  text-align: center;
}

.miromax-ai-hero-logo img {
  width: 156px;
  max-width: 38vw;
  height: auto;
  display: inline-block;
  margin: 0 auto 14px;
}

.miromax-ai-hero-section h1 {
  max-width: 900px;
  margin: 14px auto 16px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.miromax-ai-hero-section p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--mmx-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.miromax-ai-shell {
  margin-top: 10px;
}

.miromax-ai-card {
  padding: clamp(22px, 4vw, 42px);
}

.miromax-ai-page .miromax-ai-card .entry-content > h1:first-child,
.miromax-ai-page .miromax-ai-card .entry-content > h2:first-child {
  display: none;
}

.miromax-ai-page .miromax-ai-card .entry-content {
  font-size: 17px;
}

.miromax-ai-page .miromax-ai-card .entry-content p:first-of-type {
  max-width: 840px;
  color: var(--mmx-muted);
}

@media (max-width: 720px) {
  .brand-fallback-logo {
    width: 52px;
  }
  .miromax-ai-hero-section {
    padding: 36px 0 22px;
  }
  .miromax-ai-hero-logo img {
    width: 118px;
  }
  .miromax-ai-hero-section h1 {
    font-size: clamp(30px, 10vw, 42px);
  }
}
