/*
Theme Name:   MSP Mesh Map
Theme URI:    https://mspmm.com
Description:  Kadence child theme for MSP Mesh Map — vendor-agnostic MSP platform
Author:       MSP Mesh Map
Author URI:   https://mspmm.com
Template:     kadence
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:  mspmm
*/

/* ─── BRAND TOKENS ─── */
:root {
  --mm-navy:    #042C53;
  --mm-deep:    #0C447C;
  --mm-primary: #185FA5;
  --mm-mid:     #378ADD;
  --mm-light:   #85B7EB;
  --mm-tint:    #E6F1FB;
  --mm-white:   #ffffff;
  --mm-gray-50: #F8FAFC;
  --mm-gray-100:#EEF2F7;
  --mm-gray-400:#8BA3BC;
  --mm-gray-700:#2D4057;
  --mm-text:    #0D1B2A;
  --mm-font-head: 'Syne', sans-serif;
  --mm-font-body: 'DM Sans', sans-serif;
  --mm-radius:  8px;
  --mm-radius-lg: 16px;
}

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── BASE OVERRIDES ─── */
body {
  font-family: var(--mm-font-body) !important;
  color: var(--mm-text);
  background: var(--mm-white);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--mm-font-head) !important;
  color: var(--mm-text);
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -1px;   line-height: 1.1;  }
h3 { font-size: clamp(20px, 2vw, 26px);   font-weight: 700; letter-spacing: -0.3px; line-height: 1.2;  }
h4 { font-size: 18px; font-weight: 600; line-height: 1.3; }

p { font-family: var(--mm-font-body); line-height: 1.7; color: var(--mm-text); }

a { color: var(--mm-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--mm-mid); }

/* ─── HEADER ─── */
.site-header,
.kadence-sticky-header,
#masthead {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 95, 165, 0.08) !important;
  box-shadow: none !important;
}

/* Nav links */
.main-navigation a,
.kadence-navigation a,
#site-navigation a {
  font-family: var(--mm-font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--mm-gray-700) !important;
  transition: color 0.2s;
}
.main-navigation a:hover,
.kadence-navigation a:hover {
  color: var(--mm-primary) !important;
}

/* Nav CTA button */
.nav-cta-btn,
.header-cta-button,
.kadence-button-wrap.nav-cta a {
  background: var(--mm-primary) !important;
  color: white !important;
  padding: 9px 22px !important;
  border-radius: var(--mm-radius) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.nav-cta-btn:hover,
.header-cta-button:hover {
  background: var(--mm-deep) !important;
}

/* Site logo sizing */
.site-logo img,
.custom-logo {
  max-height: 40px;
  width: auto;
}

/* ─── FOOTER ─── */
.site-footer,
#colophon {
  background: #020F1C !important;
  color: rgba(255, 255, 255, 0.4) !important;
  padding: 64px 0 32px !important;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 14px;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--mm-light) !important;
}

.site-footer h5,
.site-footer .widget-title,
.footer-widget-title {
  font-family: var(--mm-font-head) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-bottom-wrap,
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  margin-top: 48px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── BUTTONS ─── */
.wp-block-button__link,
.button,
.btn,
.kadence-button {
  background: var(--mm-primary) !important;
  color: white !important;
  border-radius: var(--mm-radius) !important;
  font-family: var(--mm-font-body) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  padding: 14px 28px !important;
  border: none !important;
  transition: background 0.2s, transform 0.15s !important;
  text-decoration: none !important;
}
.wp-block-button__link:hover,
.button:hover,
.kadence-button:hover {
  background: var(--mm-mid) !important;
  transform: translateY(-1px);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-outline,
.kadence-button.btn-outline {
  background: transparent !important;
  color: var(--mm-primary) !important;
  border: 1.5px solid var(--mm-primary) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--mm-tint) !important;
}

/* ─── SECTION UTILITIES ─── */
.mm-section { padding: 80px 5vw; width: 100%; box-sizing: border-box; }
.mm-section-dark { background: var(--mm-navy); }
.mm-section-gray { background: var(--mm-gray-50); }
.mm-section-white { background: white; }
.mm-inner { max-width: 1140px; margin: 0 auto; }

/* Section label (eyebrow text) */
.mm-label,
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mm-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--mm-font-body);
}

/* ─── CARDS ─── */
.mm-card {
  background: white;
  border: 1px solid var(--mm-gray-100);
  border-radius: var(--mm-radius-lg);
  padding: 32px;
  transition: all 0.2s;
}
.mm-card:hover {
  border-color: var(--mm-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(24, 95, 165, 0.08);
}

.mm-card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mm-radius-lg);
  padding: 24px;
}
.mm-card-dark:hover {
  background: rgba(55, 138, 221, 0.12);
  border-color: rgba(55, 138, 221, 0.3);
}

/* ─── FEATURE ICON ─── */
.mm-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--mm-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

/* ─── TAGS / BADGES ─── */
.mm-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--mm-primary);
  background: var(--mm-tint);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mm-font-body);
}

.mm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(55, 138, 221, 0.15);
  border: 1px solid rgba(55, 138, 221, 0.3);
  color: var(--mm-light);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--mm-font-body);
}

/* ─── PRICING TABLE ─── */
.mm-pricing-featured {
  border: 2px solid var(--mm-primary) !important;
  box-shadow: 0 8px 40px rgba(24, 95, 165, 0.12) !important;
}

/* ─── HERO GRADIENT TEXT ─── */
.mm-gradient-text {
  background: linear-gradient(135deg, var(--mm-mid), var(--mm-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── INTEGRATION DOTS ─── */
.mm-int-dot {
  width: 6px;
  height: 6px;
  background: var(--mm-mid);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .mm-section { padding: 60px 6vw; }
  h1 { letter-spacing: -0.8px; }
  h2 { letter-spacing: -0.5px; }
  .mm-card { padding: 24px; }
}

/* ─── KADENCE BLOCK OVERRIDES ─── */
.kadence-column { box-sizing: border-box; }

/* Info boxes */
.kt-blocks-info-box-title {
  font-family: var(--mm-font-head) !important;
}

/* Advanced headings */
.kt-adv-heading {
  font-family: var(--mm-font-head) !important;
}

/* Row layouts */
.kt-row-layout-inner {
  max-width: 1140px !important;
}

/* ─── WORDPRESS CORE BLOCKS ─── */
.wp-block-separator {
  border-color: var(--mm-gray-100);
  opacity: 1;
}

.wp-block-quote {
  border-left-color: var(--mm-primary);
}

/* Tables */
.wp-block-table td,
.wp-block-table th {
  font-family: var(--mm-font-body);
  border-color: var(--mm-gray-100);
}
.wp-block-table thead {
  background: var(--mm-navy);
  color: white;
}

/* ─── ADMIN BAR OFFSET ─── */
@media screen and (min-width: 600px) {
  .kadence-sticky-header { top: 32px !important; }
}
