/*
Theme Name: Max Merchandising Store Theme
Theme URI: https://maxmerchandising.store
Author: MAX MERCHANDISING LLC
Author URI: https://maxmerchandising.store
Description: Professional corporate e-commerce theme tailored for Facebook Meta Business Manager verification. Built for custom merchandise, corporate apparel, and event promotional products.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxmerch
Tags: business, e-commerce, corporate, one-column, custom-menu, featured-images
*/

/* ---------- Design tokens ---------- */
:root {
  --mm-navy: #10243c;
  --mm-navy-dark: #0a1728;
  --mm-orange: #e2622b;
  --mm-orange-dark: #c24f1e;
  --mm-ink: #1d2733;
  --mm-body: #4a5766;
  --mm-line: #e2e7ee;
  --mm-surface: #ffffff;
  --mm-surface-alt: #f5f7fa;
  --mm-radius: 10px;
  --mm-shadow: 0 10px 30px rgba(16, 36, 60, 0.08);
  --mm-wrap: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--mm-body);
  background: var(--mm-surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--mm-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--mm-orange-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2rem; }

.mm-wrap { width: 100%; max-width: var(--mm-wrap); margin: 0 auto; padding: 0 20px; }
.mm-section { padding: 72px 0; }
.mm-section--alt { background: var(--mm-surface-alt); }
.mm-center { text-align: center; }
.mm-lead { font-size: 1.1rem; max-width: 760px; }
.mm-center .mm-lead { margin-left: auto; margin-right: auto; }
.mm-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 700; color: var(--mm-orange-dark); margin-bottom: .8rem;
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.mm-btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--mm-radius);
  background: var(--mm-orange); color: #fff; font-weight: 700; border: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease; font-size: 1rem;
}
.mm-btn:hover { background: var(--mm-orange-dark); text-decoration: none; transform: translateY(-1px); color: #fff; }
.mm-btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.mm-btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Header ---------- */
.mm-topbar { background: var(--mm-navy-dark); color: #cfd9e5; font-size: .88rem; }
.mm-topbar .mm-wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.mm-topbar a { color: #fff; }
.mm-topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.mm-header { background: var(--mm-navy); position: sticky; top: 0; z-index: 50; }
.mm-header .mm-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.mm-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.mm-brand:hover { text-decoration: none; }
.mm-brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px;
  background: var(--mm-orange); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; letter-spacing: -.02em;
}
.mm-brand-name { font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: .02em; }
.mm-brand-tag { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb2c7; font-weight: 600; }

.mm-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.mm-nav a { color: #e6edf5; padding: 10px 14px; border-radius: 8px; display: block; font-size: .95rem; font-weight: 600; }
.mm-nav a:hover, .mm-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.mm-nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 9px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* ---------- Hero ---------- */
.mm-hero {
  background: linear-gradient(135deg, var(--mm-navy) 0%, #1b3f67 55%, var(--mm-orange-dark) 140%);
  color: #e9f0f7; padding: 96px 0;
}
.mm-hero h1 { color: #fff; }
.mm-hero p { font-size: 1.15rem; max-width: 640px; }
.mm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.mm-hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 52px; }
.mm-hero-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--mm-radius); padding: 18px; }
.mm-hero-stats strong { display: block; font-size: 1.5rem; color: #fff; }
.mm-hero-stats span { font-size: .85rem; color: #c8d6e5; }

/* ---------- Grids & cards ---------- */
.mm-grid { display: grid; gap: 26px; }
.mm-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mm-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mm-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.mm-card {
  background: var(--mm-surface); border: 1px solid var(--mm-line); border-radius: var(--mm-radius);
  padding: 26px; box-shadow: var(--mm-shadow); transition: transform .2s ease;
}
.mm-card:hover { transform: translateY(-3px); }
.mm-card h3 { margin-bottom: .4em; }
.mm-card p:last-child { margin-bottom: 0; }
.mm-card-icon { font-size: 1.6rem; margin-bottom: .5rem; }

/* Product catalog */
.mm-product { background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); overflow: hidden; box-shadow: var(--mm-shadow); }
.mm-product-media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dfe7f1, #f5f7fa); display: flex; align-items: center; justify-content: center; color: var(--mm-navy); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.mm-product-body { padding: 20px; }
.mm-product-body h3 { font-size: 1.08rem; }
.mm-product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--mm-line); padding-top: 12px; margin-top: 12px; font-size: .9rem; }
.mm-price { color: var(--mm-navy); font-weight: 800; }
.mm-badge { display: inline-block; background: #eef3f9; color: var(--mm-navy); border-radius: 999px; padding: 4px 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Contact / forms ---------- */
.mm-contact-layout { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.mm-info-list { list-style: none; padding: 0; margin: 0; }
.mm-info-list li { padding: 12px 0; border-bottom: 1px solid var(--mm-line); }
.mm-info-list li:last-child { border-bottom: 0; }
.mm-info-list strong { display: block; color: var(--mm-ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }

.mm-form { display: grid; gap: 16px; }
.mm-field { display: grid; gap: 6px; }
.mm-field label { font-size: .85rem; font-weight: 700; color: var(--mm-ink); }
.mm-field input, .mm-field select, .mm-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--mm-line); border-radius: 8px;
  font: inherit; color: var(--mm-ink); background: #fff;
}
.mm-field input:focus, .mm-field select:focus, .mm-field textarea:focus { outline: 2px solid var(--mm-orange); outline-offset: 1px; border-color: var(--mm-orange); }
.mm-field textarea { min-height: 140px; resize: vertical; }
.mm-form-note { font-size: .85rem; color: var(--mm-body); }

/* ---------- Content / posts ---------- */
.mm-page-header { background: var(--mm-surface-alt); border-bottom: 1px solid var(--mm-line); padding: 54px 0; }
.mm-page-header h1 { margin-bottom: .2em; }
.mm-breadcrumb { font-size: .85rem; color: var(--mm-body); }
.mm-content { max-width: 820px; margin: 0 auto; padding: 60px 20px; }
.mm-content h2 { margin-top: 1.8em; }
.mm-content ul li { margin-bottom: .4em; }
.mm-legal-meta { background: var(--mm-surface-alt); border-left: 4px solid var(--mm-orange); border-radius: 8px; padding: 18px 22px; font-size: .95rem; }
.mm-entry { border-bottom: 1px solid var(--mm-line); padding-bottom: 28px; margin-bottom: 28px; }
.mm-entry:last-child { border-bottom: 0; }
.mm-entry h2 { font-size: 1.4rem; margin-bottom: .3em; }
.mm-entry-meta { font-size: .85rem; color: var(--mm-body); margin-bottom: .6em; }
.mm-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.mm-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--mm-line); border-radius: 8px; color: var(--mm-ink); }
.mm-pagination .page-numbers.current { background: var(--mm-navy); color: #fff; border-color: var(--mm-navy); }

/* ---------- Footer ---------- */
.mm-footer { background: var(--mm-navy-dark); color: #b9c8d8; padding: 62px 0 0; font-size: .95rem; }
.mm-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.mm-footer a { color: #dfe8f2; }
.mm-footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mm-footer ul { list-style: none; padding: 0; margin: 0; }
.mm-footer ul li { margin-bottom: 8px; }
.mm-footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding: 22px 0 32px; font-size: .87rem; color: #93a6ba; }
.mm-footer-legal .mm-wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.mm-footer-company { color: #fff; font-weight: 700; font-size: 1.02rem; margin-bottom: .4rem; }
.mm-ein { display: inline-block; background: rgba(226,98,43,.18); color: #f6c3a8; border-radius: 6px; padding: 4px 10px; font-weight: 700; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mm-section { padding: 54px 0; }
  .mm-hero { padding: 68px 0; }
  .mm-nav-toggle { display: block; }
  .mm-header .mm-wrap { flex-wrap: wrap; }
  .mm-nav { display: none; width: 100%; }
  .mm-nav.is-open { display: block; }
  .mm-nav ul { flex-direction: column; gap: 2px; padding-bottom: 10px; }
  .mm-topbar .mm-wrap { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .mm-card, .mm-product-body { padding: 20px; }
  .mm-btn { width: 100%; text-align: center; }
}
