/*
Theme Name: Matrix Fulfillment
Theme URI: https://matrixfulfillment.com
Author: Matrix Fulfillment
Author URI: https://matrixfulfillment.com
Description: Custom WordPress theme for Matrix Fulfillment — a Los Angeles 3PL for DTC brands and Amazon sellers. Navy / teal / white brand identity, SEO-optimized with schema.org markup.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matrixfulfillment
*/

/* =========================
   1. RESET & ROOT VARIABLES
========================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  /* Brand: navy + teal (from logo concepts) */
  --mf-orange: #4A9B95;          /* accent/CTA — kept the variable name for compatibility */
  --mf-orange-hover: #3D8580;    /* darker teal for hover */
  --mf-black: #1F3D5C;           /* deep navy — primary brand */
  --mf-soft-black: #2A4D6B;      /* softer navy for cards/dark surfaces */
  --mf-off-white: #F7FAFA;       /* cool off-white background */
  --mf-white: #FFFFFF;
  --mf-gray: #5A6F7A;            /* cool gray for body copy */
  --mf-gray-light: #DCE7E5;
  --mf-gray-border: #DCE7E5;
  --mf-mint: #E8F4F2;            /* subtle highlight background */
  --mf-navy-deep: #14293F;       /* deepest navy for footer */

  --mf-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --mf-radius: 10px;
  --mf-radius-lg: 18px;

  --mf-container: 1200px;
  --mf-container-narrow: 920px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--mf-font-body);
  color: var(--mf-black);
  background:
    radial-gradient(ellipse 800px 400px at 50% -100px, rgba(74,155,149,0.05) 0%, transparent 70%),
    var(--mf-off-white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mf-black); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mf-orange); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--mf-font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--mf-black);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; line-height: 1.3; }
h4 { font-size: 1.15rem; }
p { color: var(--mf-gray); }

.container {
  max-width: var(--mf-container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--mf-container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: 90px 0; }
@media (max-width: 768px) { section { padding: 60px 0; } }

/* =========================
   2. BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--mf-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--mf-orange);
  color: var(--mf-white);
}
.btn-primary:hover {
  background: var(--mf-orange-hover);
  color: var(--mf-white);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--mf-black);
  border-color: var(--mf-black);
}
.btn-secondary:hover {
  background: var(--mf-black);
  color: var(--mf-white);
}
.btn-ghost-light {
  background: transparent;
  color: var(--mf-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
  background: var(--mf-white);
  color: var(--mf-black);
}
.btn-large { padding: 16px 32px; font-size: 1rem; }

/* =========================
   3. HEADER & NAV
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mf-gray-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--mf-container);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--mf-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--mf-black);
}
.site-logo span { color: var(--mf-orange); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.mega-nav-list { display: flex; gap: 4px; align-items: center; list-style: none; padding: 0; margin: 0; }
.mega-nav-item { position: relative; }
.mega-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  color: var(--mf-black); cursor: pointer;
  transition: all .15s ease;
}
.mega-nav-link:hover { background: var(--mf-mint); color: var(--mf-orange); }
.mega-nav-link .caret { font-size: 0.6rem; opacity: 0.7; }

/* Mega menu panel — hover-activated */
.mega-panel {
  display: none;
  position: absolute; top: calc(100% + 4px);
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(31,61,92,0.25);
  padding: 28px;
  z-index: 200;
  min-width: 720px;
}
.mega-panel-services { left: 0; min-width: 760px; }
.mega-panel-industries { left: -120px; min-width: 720px; }
.mega-panel-platforms { left: -220px; min-width: 680px; }
.mega-nav-item:hover .mega-panel,
.mega-nav-item:focus-within .mega-panel { display: block; }
.mega-cols { display: grid; gap: 32px; }
.mega-cols-3 { grid-template-columns: 1fr 1fr 0.8fr; }
.mega-panel-industries .mega-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mega-panel-platforms .mega-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mega-col h5 {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mf-orange); margin-bottom: 12px;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-col li a {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--mf-black);
  transition: all .15s ease;
}
.mega-col li a:hover { background: var(--mf-mint); color: var(--mf-orange); }
.mega-col li a.view-all { color: var(--mf-orange); font-weight: 700; }
.mega-feature { background: var(--mf-mint); padding: 20px; border-radius: 10px; }
.mega-feature h4 { font-size: 0.98rem; margin-bottom: 8px; color: var(--mf-black); }
.mega-feature p { font-size: 0.84rem; margin-bottom: 12px; color: var(--mf-gray); }
.btn-sm { padding: 9px 16px !important; font-size: 0.85rem !important; }

.nav-cta { margin-left: 12px; }

.mobile-menu-toggle { display: none; }

@media (max-width: 1024px) {
  .mega-panel { display: none !important; }
}

@media (max-width: 900px) {
  .mega-nav-list { display: none; }
  .main-nav.is-open .mega-nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mf-white);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--mf-gray-border);
    align-items: stretch;
  }
  .mega-nav-link { width: 100%; }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--mf-black);
  }
  .nav-cta { display: none; }
}

/* =========================
   4. HERO
========================= */
.hero {
  padding: 80px 0 100px;
  background: var(--mf-off-white);
  position: relative;
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 106, 26, 0.1);
  color: var(--mf-orange);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--mf-orange); }
.hero-subhead {
  font-size: 1.15rem;
  color: var(--mf-gray);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-micro {
  font-size: 0.88rem;
  color: var(--mf-gray);
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-micro span::before {
  content: "✓ ";
  color: var(--mf-orange);
  font-weight: 700;
}

/* =========================
   4b. HERO IMAGE (split layout)
========================= */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: var(--mf-container);
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}
.hero-split .hero-inner { text-align: left; margin: 0; }
.hero-split .hero-ctas { justify-content: flex-start; }
.hero-split .hero-micro { justify-content: flex-start; }
.hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: var(--mf-soft-black);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-split .hero-inner { text-align: center; }
  .hero-split .hero-ctas, .hero-split .hero-micro { justify-content: center; }
}

/* =========================
   5. TRUST BAND
========================= */
.trust-band {
  padding: 50px 0;
  background: var(--mf-white);
  border-top: 1px solid var(--mf-gray-border);
  border-bottom: 1px solid var(--mf-gray-border);
}
.trust-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--mf-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 600;
}

/* Logo grid — for trust band + integrations */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}
.logo-cell {
  background: var(--mf-off-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius);
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  transition: all .2s ease;
}
.logo-cell:hover { border-color: var(--mf-orange); transform: translateY(-2px); }
.logo-cell img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.7);
  transition: filter .25s ease;
}
.logo-cell:hover img { filter: grayscale(0) opacity(1); }

@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================
   6. VALUE PROPS (3 col)
========================= */
.value-props { background: var(--mf-off-white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--mf-orange);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 36px 32px;
  transition: all .25s ease;
}
.value-card:hover {
  border-color: var(--mf-orange);
  transform: translateY(-3px);
}
.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,106,26,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.value-card h3 { margin-bottom: 12px; }
.value-card p { font-size: 0.97rem; line-height: 1.6; }

@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

/* =========================
   7. SERVICES GRID (6 col)
========================= */
.services-section { background: var(--mf-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--mf-off-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 32px 28px;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: var(--mf-black);
  border-color: var(--mf-black);
  transform: translateY(-3px);
}
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link { color: var(--mf-white); }
.service-card:hover .service-link { color: var(--mf-orange); }
.service-card h3 { margin-bottom: 12px; transition: color .25s ease; }
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
  transition: color .25s ease;
}
.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mf-orange);
  transition: color .25s ease;
}
.service-link::after { content: " →"; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* =========================
   7b. SERVICE CARDS — WITH IMAGES
========================= */
.service-card-img {
  background: var(--mf-off-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.service-card-img:hover {
  border-color: var(--mf-orange);
  transform: translateY(-3px);
}
.service-card-img .service-img {
  aspect-ratio: 16 / 9;
  background: var(--mf-soft-black);
  overflow: hidden;
}
.service-card-img .service-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.service-card-img:hover .service-img img { transform: scale(1.04); }
.service-card-img .service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-img h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card-img p { font-size: 0.95rem; flex: 1; margin-bottom: 16px; }
.service-card-img.dark { background: var(--mf-black); }
.service-card-img.dark h3 { color: var(--mf-white); }
.service-card-img.dark p { color: rgba(255,255,255,0.7); }

/* =========================
   7c. SHIPHERO / WMS SECTION
========================= */
.wms-section { background: var(--mf-white); }
.wms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: var(--mf-container);
  margin: 0 auto;
}
.wms-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: var(--mf-black);
  border: 1px solid var(--mf-gray-border);
}
.wms-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wms-content .section-eyebrow { display: inline-block; margin-bottom: 14px; }
.wms-content h2 { margin-bottom: 16px; }
.wms-content p { font-size: 1.05rem; margin-bottom: 18px; }
.wms-features { list-style: none; padding: 0; margin: 20px 0 0; }
.wms-features li {
  padding: 8px 0;
  font-size: 0.98rem;
  color: var(--mf-soft-black);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.wms-features li::before {
  content: "✓";
  color: var(--mf-orange);
  font-weight: 800;
  flex-shrink: 0;
}
.wms-logo-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mf-gray-border);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--mf-gray);
}
.wms-logo-bar img { height: 28px; width: auto; }

@media (max-width: 900px) {
  .wms-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================
   11b. FOUNDER WITH PHOTO
========================= */
.founder-with-photo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  max-width: var(--mf-container);
  margin: 0 auto;
  text-align: left;
}
.founder-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: var(--mf-soft-black);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .founder-with-photo { grid-template-columns: 1fr; text-align: center; }
}

/* =========================
   8. HOW IT WORKS (4 steps) — navy anchor section
========================= */
.how-it-works {
  background: var(--mf-black);
  color: var(--mf-white);
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(74,155,149,0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(74,155,149,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.how-it-works .container { position: relative; z-index: 1; }
.how-it-works .section-header h2 { color: var(--mf-white); }
.how-it-works .section-header p { color: rgba(255,255,255,0.7); }
.how-it-works .section-eyebrow { color: var(--mf-orange); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  padding: 32px 0 0;
  border-top: 3px solid var(--mf-orange);
  position: relative;
}
.step-num {
  font-family: var(--mf-font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--mf-orange);
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.step h3 { color: var(--mf-white); margin-bottom: 10px; font-size: 1.25rem; }
.step p { color: rgba(255,255,255,0.7); font-size: 0.96rem; }

@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* =========================
   9. INTEGRATIONS
========================= */
.integrations { background: var(--mf-off-white); }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.integration-pill {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius);
  padding: 22px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mf-soft-black);
  transition: all .2s ease;
}
.integration-pill:hover {
  border-color: var(--mf-orange);
  color: var(--mf-orange);
  transform: translateY(-2px);
}

@media (max-width: 900px) { .integrations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .integrations-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================
   10. STATS BAND — white version
========================= */
.stats-band {
  background: var(--mf-white);
  border-top: 1px solid var(--mf-gray-border);
  border-bottom: 1px solid var(--mf-gray-border);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--mf-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mf-black);
  margin-bottom: 8px;
}
.stat-num span.accent { color: var(--mf-orange); }
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mf-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }

/* =========================
   11. FOUNDER SECTION
========================= */
.founder { background: var(--mf-white); }
.founder-inner {
  max-width: var(--mf-container-narrow);
  margin: 0 auto;
  text-align: center;
}
.founder h2 { margin-bottom: 24px; }
.founder p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* =========================
   12. FAQ
========================= */
.faq { background: var(--mf-off-white); }
.faq-list { max-width: var(--mf-container-narrow); margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--mf-gray-border);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--mf-font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--mf-black);
  cursor: pointer;
  padding: 0;
}
.faq-question .faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mf-black);
  color: var(--mf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all .2s ease;
}
.faq-item.is-open .faq-toggle {
  background: var(--mf-orange);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding-top: 16px;
  color: var(--mf-gray);
  line-height: 1.65;
}
.faq-item.is-open .faq-answer { display: block; }

/* Native <details> accordion FAQ — no JS needed, used on service detail pages */
details.faq-item {
  cursor: pointer;
  position: relative;
}
details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mf-font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--mf-black);
  cursor: pointer;
  padding: 0;
  line-height: 1.4;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mf-black);
  color: var(--mf-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all .2s ease;
}
details.faq-item[open] summary::after {
  content: "−";
  background: var(--mf-orange);
}
details.faq-item .faq-answer {
  display: block;
  padding-top: 16px;
  color: var(--mf-gray);
  line-height: 1.65;
}

/* =========================
   13. FINAL CTA
========================= */
.final-cta {
  background: var(--mf-black);
  text-align: center;
  padding: 90px 0;
}
.final-cta h2 {
  color: var(--mf-white);
  margin-bottom: 16px;
}
.final-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn-primary {
  background: var(--mf-orange);
  color: var(--mf-white);
}
.final-cta .btn-primary:hover { background: var(--mf-orange-hover); }

/* =========================
   14. FOOTER
========================= */
.site-footer {
  background: var(--mf-navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 50px;
}
.footer-brand .site-logo { color: var(--mf-white); margin-bottom: 14px; display: inline-block; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.5; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-line { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-contact-line strong { color: var(--mf-white); font-weight: 600; margin-right: 6px; }
.footer-contact-line a { color: var(--mf-orange); font-weight: 500; }
.footer-contact-line a:hover { color: var(--mf-white); }
.footer-col h5 {
  color: var(--mf-white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.86rem; }
.footer-col a:hover { color: var(--mf-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--mf-orange); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================
   15. PAGE HEADER (interior pages)
========================= */
.page-header {
  background: var(--mf-black);
  color: var(--mf-white);
  padding: 80px 0 70px;
  text-align: center;
}
.page-header h1 { color: var(--mf-white); margin-bottom: 16px; }
.page-header .eyebrow { color: var(--mf-orange); }
.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

/* =========================
   16. PROSE / CONTENT
========================= */
.prose { max-width: var(--mf-container-narrow); margin: 0 auto; }
.prose h2 { margin: 48px 0 18px; }
.prose h3 { margin: 32px 0 14px; }
.prose p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.7; color: var(--mf-soft-black); }
.prose ul { margin: 18px 0 28px 24px; list-style: disc; }
.prose ul li { margin-bottom: 8px; color: var(--mf-soft-black); }
.prose strong { color: var(--mf-black); }

/* =========================
   17. PRICING TABLE
========================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--mf-orange);
  position: relative;
}
.pricing-card.featured::before {
  content: "Most common";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mf-orange);
  color: var(--mf-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-desc { color: var(--mf-gray); font-size: 0.95rem; margin-bottom: 24px; }
.pricing-price {
  font-family: var(--mf-font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--mf-black);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.pricing-price span { font-size: 0.95rem; color: var(--mf-gray); font-weight: 500; }
.pricing-features { margin: 24px 0; flex: 1; }
.pricing-features li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--mf-soft-black);
  border-bottom: 1px solid var(--mf-gray-border);
}
.pricing-features li::before { content: "✓ "; color: var(--mf-orange); font-weight: 700; }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* =========================
   18. CONTACT FORM
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
}
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 24px; }
.contact-detail { margin-bottom: 14px; font-size: 0.98rem; color: var(--mf-soft-black); }
.contact-detail strong { color: var(--mf-black); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

.contact-form {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--mf-soft-black);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius);
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--mf-off-white);
  transition: border-color .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mf-orange);
  background: var(--mf-white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================
   19. PRICING CALCULATOR
========================= */
.calculator {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 32px;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.calc-inputs { display: flex; flex-direction: column; gap: 22px; }
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mf-soft-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-field label span { color: var(--mf-orange); font-weight: 700; }
.calc-field input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--mf-gray-light);
  border-radius: 100px;
  outline: none;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--mf-orange);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--mf-white);
  box-shadow: 0 0 0 1px var(--mf-orange);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--mf-orange);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--mf-white);
  box-shadow: 0 0 0 1px var(--mf-orange);
}
.calc-range-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--mf-gray);
  margin-top: 6px;
}
.calc-output {
  background: var(--mf-mint);
  border-radius: var(--mf-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-output h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mf-black);
  font-weight: 700;
  margin-bottom: 6px;
}
.calc-output .estimate {
  font-family: var(--mf-font-display);
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mf-black);
  margin: 14px 0 6px;
}
.calc-output .estimate-suffix { font-size: 0.95rem; color: var(--mf-gray); font-weight: 500; }
.calc-breakdown {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(31,61,92,0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}
.calc-breakdown .row {
  display: flex;
  justify-content: space-between;
  color: var(--mf-soft-black);
}
.calc-breakdown .row strong { color: var(--mf-black); font-weight: 600; }
.calc-footnote { font-size: 0.78rem; color: var(--mf-gray); margin-top: 18px; }

@media (max-width: 800px) { .calculator { grid-template-columns: 1fr; padding: 24px; } }

/* =========================
   20. VERTICALS / INDUSTRIES
========================= */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.vertical-card {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all .25s ease;
  display: block;
}
.vertical-card:hover {
  border-color: var(--mf-orange);
  transform: translateY(-3px);
  color: inherit;
}
.vertical-icon {
  width: 52px; height: 52px;
  background: var(--mf-mint);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
}
.vertical-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.vertical-card p { font-size: 0.88rem; margin: 0; }

@media (max-width: 900px) { .verticals-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .verticals-grid { grid-template-columns: 1fr; } }

/* =========================
   21. COMPARE TABLE
========================= */
.compare-table {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--mf-gray-border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--mf-soft-black);
  display: flex;
  align-items: center;
}
.compare-row .label { font-weight: 600; color: var(--mf-black); }
.compare-head {
  background: var(--mf-mint);
  font-weight: 700;
}
.compare-head > div {
  font-family: var(--mf-font-display);
  text-align: center;
  font-size: 0.95rem;
  color: var(--mf-black);
  justify-content: center;
}
.compare-head .us {
  background: var(--mf-orange);
  color: var(--mf-white);
}
.compare-row .us {
  background: rgba(74,155,149,0.06);
  font-weight: 600;
  color: var(--mf-black);
  justify-content: center;
}
.compare-row .other { justify-content: center; }
.check { color: var(--mf-orange); font-weight: 800; }
.cross { color: #C44; font-weight: 700; }

@media (max-width: 768px) {
  .compare-table { overflow-x: auto; }
  .compare-row { min-width: 640px; }
}

/* =========================
   22. EMBEDDED CONTACT CTA (on every page)
========================= */
.contact-cta {
  background: var(--mf-mint);
  padding: 70px 0;
}
.contact-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  max-width: var(--mf-container);
  margin: 0 auto;
}
.contact-cta-text h2 { margin-bottom: 12px; }
.contact-cta-text p { font-size: 1.05rem; margin-bottom: 16px; }
.contact-cta-form {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 28px;
}
.contact-cta-form .form-group { margin-bottom: 14px; }
.contact-cta-form .form-row { gap: 12px; }
.contact-cta-form input,
.contact-cta-form select,
.contact-cta-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--mf-off-white);
}
.contact-cta-form input:focus,
.contact-cta-form select:focus,
.contact-cta-form textarea:focus {
  outline: none;
  border-color: var(--mf-orange);
  background: var(--mf-white);
}
.contact-cta-form textarea { resize: vertical; min-height: 70px; }

/* Expanded form: section labels, checkbox grid, required marker */
.form-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mf-orange);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mf-gray-border);
}
.form-section-label:first-child { margin-top: 0; }
.req { color: var(--mf-orange); font-weight: 700; }
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 8px;
}
.cb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--mf-soft-black);
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  padding: 6px 0;
}
.cb input[type="checkbox"] {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--mf-orange);
  cursor: pointer;
}
@media (max-width: 600px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}
.contact-cta-form .form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  color: var(--mf-soft-black);
}

@media (max-width: 900px) {
  .contact-cta-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================
   23. BIG FOOTER (sitemap-style)
========================= */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 50px;
}
@media (max-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* =========================
   24. PAGE-LEVEL HERO VARIANT (lighter)
========================= */
.page-hero {
  background: var(--mf-mint);
  padding: 70px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--mf-gray-border);
}
.page-hero .eyebrow { color: var(--mf-orange); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; max-width: 660px; margin: 0 auto; }
.page-hero .accent { color: var(--mf-orange); }

/* =========================
   25. PLATFORM/VERTICAL FEATURE LIST
========================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature-item {
  background: var(--mf-white);
  border: 1px solid var(--mf-gray-border);
  border-radius: var(--mf-radius-lg);
  padding: 26px 24px;
}
.feature-item .feature-icon {
  width: 38px; height: 38px;
  background: var(--mf-mint);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--mf-orange);
  font-size: 1.1rem;
  font-weight: 700;
}
.feature-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.95rem; margin: 0; }

@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr; } }
