/* ==========================================================================
   Marketing SEO Top – Design System (base)
   Colours from the Marketing SEO Top logo.
   Primary = navy (authority) · Accent = gold (CTA, navy text on top) · Lotus = gold highlight.
   ========================================================================== */

:root {
  --mtop-primary: #0E1726;        /* navy – logo wordmark */
  --mtop-primary-dark: #0A111C;
  --mtop-secondary: #2A3B55;      /* lighter navy */
  --mtop-accent: #E2A916;         /* gold accent */
  --mtop-accent-hover: #C08D0B;   /* gold for button-hover bg + icon graphics (≥3:1) */
  --mtop-gold-text: #8A6406;      /* darker gold ONLY for text on light bg (5.4:1, WCAG AA) */
  --mtop-lotus: #E2A916;          /* gold highlight, used sparingly */
  --mtop-lotus-soft: #FDF6E3;
  --mtop-text: #1F2937;
  --mtop-muted: #5B6576;
  --mtop-bg-light: #F6F7F9;       /* cool off-white */
  --mtop-bg-soft: #EEF0F4;
  --mtop-border: #E6E8EC;
  --mtop-white: #ffffff;
  --mtop-success: #12805C;
  --mtop-danger: #b3261e;
  --mtop-shadow-sm: 0 1px 3px rgba(14, 23, 38, .08), 0 1px 2px rgba(14, 23, 38, .06);
  --mtop-shadow-md: 0 6px 22px rgba(14, 23, 38, .10);
  --mtop-shadow-lg: 0 18px 48px rgba(14, 23, 38, .14);
  --mtop-radius-sm: 8px;
  --mtop-radius-md: 14px;
  --mtop-radius-lg: 20px;
  --mtop-container: 1200px;
  --mtop-submenu-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 21 12 12 21 3 12Z'/%3E%3C/svg%3E");
  --mtop-gap: clamp(1rem, 2.5vw, 2rem);
  --mtop-section-y: clamp(3rem, 6vw, 5.5rem);
  --mtop-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Scope everything under .mtop-home / .mtop-scope so we never fight
   Flatsome globals on inner pages. */
.mtop-scope,
.mtop-scope * { box-sizing: border-box; }

.mtop-scope {
  font-family: var(--mtop-font);
  color: var(--mtop-text);
  font-size: 16px;
  line-height: 1.65;
}

.mtop-container {
  width: 100%;
  max-width: var(--mtop-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.mtop-section { padding-block: var(--mtop-section-y); }
.mtop-section--soft { background: var(--mtop-bg-light); }
.mtop-section--brand { background: var(--mtop-primary); color: #EEF0F4; }

/* Typography */
.mtop-scope h1, .mtop-scope h2, .mtop-scope h3, .mtop-scope h4 {
  font-family: var(--mtop-font);
  color: var(--mtop-primary);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .5em;
}
.mtop-section--brand h2, .mtop-section--brand h3 { color: #fff; }
.mtop-scope h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.mtop-scope h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
.mtop-scope h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.mtop-scope p { margin: 0 0 1rem; }

.mtop-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mtop-gold-text);
  margin-bottom: .6rem;
}

.mtop-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.mtop-section-head p { color: var(--mtop-muted); margin-bottom: 0; }
.mtop-section-head--left { text-align: left; margin-inline: 0; }

/* Buttons */
.mtop-btn {
  --_bg: var(--mtop-accent);
  --_fg: var(--mtop-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: var(--mtop-radius-sm);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.mtop-btn:hover { background: var(--mtop-accent-hover); color: var(--mtop-primary-dark); transform: translateY(-1px); }
.mtop-btn:focus-visible { outline: 3px solid var(--mtop-accent); outline-offset: 3px; }
.mtop-btn .mtop-ico { width: 20px; height: 20px; }

.mtop-btn--primary { --_bg: var(--mtop-primary); --_fg: #fff; }
.mtop-btn--primary:hover { background: var(--mtop-primary-dark); color: #fff; }
.mtop-btn--ghost {
  --_bg: transparent; --_fg: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.mtop-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mtop-btn--outline {
  --_bg: transparent; --_fg: var(--mtop-primary);
  border-color: var(--mtop-border);
}
.mtop-btn--outline:hover { background: var(--mtop-bg-soft); color: var(--mtop-primary); }
.mtop-btn--lotus { --_bg: var(--mtop-lotus); --_fg: var(--mtop-primary-dark); }
.mtop-btn--lotus:hover { background: #C08D0B; color: var(--mtop-primary-dark); }
.mtop-btn--block { width: 100%; }

/* Cards */
.mtop-card {
  background: #fff;
  border: 1px solid var(--mtop-border);
  border-radius: var(--mtop-radius-md);
  box-shadow: var(--mtop-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mtop-card:hover { transform: translateY(-4px); box-shadow: var(--mtop-shadow-md); border-color: #D9DEE5; }

/* Icon chips */
.mtop-ico-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--mtop-bg-soft);
  color: var(--mtop-accent-hover);
  flex: none;
}
.mtop-ico-chip .mtop-ico { width: 28px; height: 28px; }

/* Utilities */
.mtop-grid { display: grid; gap: var(--mtop-gap); }
.mtop-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal on scroll (progressive – visible by default if JS/observer absent) */
.mtop-reveal { opacity: 1; }
.js .mtop-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .mtop-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mtop-scope *, .mtop-scope *::before, .mtop-scope *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .mtop-reveal { opacity: 1; transform: none; }
}

/* Skip link */
.mtop-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100000;
  background: var(--mtop-primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.mtop-skip-link:focus { left: 0; }
