/* MarginSite Services v2.1 — Matched to MarginSite.com Brand Identity */
:root {
  --ms-black: #000000;
  --ms-charcoal: #1b1f27;
  --ms-charcoal2: #262c36;
  --ms-green: #45c42b;
  --ms-green-dark: #34a61e;
  --ms-green-soft: #ecfdf0;
  --ms-bg: #f4f6f8;
  --ms-card: #ffffff;
  --ms-border: #e2e6ec;
  --ms-text: #1a1d24;
  --ms-muted: #525b68;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ms-bg);
  color: var(--ms-text);
  line-height: 1.6;
}
.ms-wrap { max-width: 1140px; margin: 0 auto; padding: 0 18px; }

/* 1. Light Gray Utility Topbar (Exact Match to MarginSite.com) */
.ms-topbar {
  background: #f5f5f5;
  color: #4b5563;
  font-size: 0.78rem;
  border-bottom: 1px solid #e5e7eb;
}
.ms-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  flex-wrap: wrap;
}
.ms-topbar a { color: #374151; text-decoration: none; font-weight: 500; }
.ms-topbar a:hover { color: var(--ms-green-dark); }
.ms-top-links { display: flex; gap: 14px; align-items: center; }
.ms-top-links a + a { padding-left: 14px; border-left: 1px solid #d1d5db; }

/* 2. Crisp White Logo Row */
.ms-logo-bar {
  background: #ffffff;
  padding: 14px 0;
}
.ms-logo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ms-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ms-text);
}
.ms-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.ms-brand-text strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: #1f2937; }
.ms-brand-text strong span { color: var(--ms-green-dark); }
.ms-brand-text small { font-size: 0.62rem; color: #6b7280; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.ms-logo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ms-mob-btn {
  display: none;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* 3. Jet-Black Full-Width Uppercase Nav Bar (Exact Match to MarginSite.com) */
.ms-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ms-black);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.ms-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  flex-wrap: wrap;
}
.ms-nav a {
  text-decoration: none;
  color: #f3f4f6;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 15px;
  transition: background 0.15s, color 0.15s;
}
.ms-nav a:hover, .ms-nav a.active {
  background: #171717;
  color: var(--ms-green);
}
.ms-nav-cta {
  margin-left: auto;
  background: var(--ms-green) !important;
  color: #ffffff !important;
  padding: 9px 16px !important;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 6px;
}
.ms-nav-cta:hover { background: var(--ms-green-dark) !important; color: #fff !important; }

/* Hero (Dark Charcoal + Signature Green Highlight matching MarginSite.com) */
.ms-hero {
  background: linear-gradient(135deg, #151820 0%, #242a35 55%, #1c2820 100%);
  color: #ffffff;
  padding: 58px 0 54px;
  border-bottom: 3px solid var(--ms-green);
}
.ms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(69, 196, 43, 0.16);
  border: 1px solid rgba(69, 196, 43, 0.4);
  color: #7ee868;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.ms-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  line-height: 1.18;
  max-width: 820px;
  letter-spacing: -0.02em;
}
.ms-hero p {
  margin: 0 0 24px;
  font-size: 1.03rem;
  color: #d1d5db;
  max-width: 720px;
  line-height: 1.65;
}
.ms-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.ms-btn:hover { transform: translateY(-1px); }
.ms-btn-primary { background: var(--ms-green); color: #ffffff; }
.ms-btn-primary:hover { background: var(--ms-green-dark); }
.ms-btn-outline { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #ffffff; }
.ms-btn-outline:hover { background: rgba(255,255,255,0.16); }
.ms-btn-dark { background: var(--ms-charcoal); color: #ffffff; }
.ms-btn-dark:hover { background: #000000; }

.ms-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.85rem;
  color: #d1d5db;
  font-weight: 600;
}

/* Sections & Grids */
.ms-section { padding: 50px 0; }
.ms-section-alt { background: #ffffff; border-top: 1px solid var(--ms-border); border-bottom: 1px solid var(--ms-border); }
.ms-sec-head { margin-bottom: 24px; }
.ms-sec-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ms-green-dark);
  margin-bottom: 6px;
}
.ms-sec-head h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.95rem); letter-spacing: -0.015em; color: #111827; }
.ms-sec-head p { margin: 0; color: var(--ms-muted); max-width: 680px; }

.ms-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.ms-card {
  background: var(--ms-card);
  border: 1px solid var(--ms-border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
}
.ms-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: #111827; }
.ms-card p { margin: 0 0 14px; font-size: 0.91rem; color: var(--ms-muted); }
.ms-card ul { margin: 0 0 16px; padding-left: 18px; font-size: 0.88rem; color: #374151; display: grid; gap: 5px; }
.ms-card-link { margin-top: auto; font-weight: 700; font-size: 0.88rem; color: var(--ms-green-dark); text-decoration: none; }
.ms-card-link:hover { text-decoration: underline; }
.ms-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--ms-green-soft);
  color: #166534;
  border: 1px solid #bbf7d0;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Footer */
.ms-footer {
  background: #14171d;
  color: #d1d5db;
  padding: 44px 0 24px;
  margin-top: 28px;
  border-top: 3px solid var(--ms-green);
}
.ms-footer-cta {
  background: #20252f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.ms-footer-cta h2 { margin: 0 0 5px; color: #ffffff; font-size: 1.32rem; }
.ms-footer-cta p { margin: 0; color: #d1d5db; font-size: 0.92rem; }
.ms-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}
.ms-footer h4 { margin: 0 0 10px; color: #ffffff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ms-footer a { display: block; color: #cbd5e1; text-decoration: none; font-size: 0.86rem; margin-bottom: 7px; }
.ms-footer a:hover { color: var(--ms-green); }
.ms-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: #9ca3af;
}

.ms-float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  text-decoration: none;
}
.ms-float-wa svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 900px) {
  .ms-grid-2, .ms-grid-3, .ms-footer-grid { grid-template-columns: 1fr; }
  .ms-mob-btn { display: inline-flex; }
  .ms-logo-cta { display: none; }
  .ms-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
  }
  .ms-nav.is-open { display: flex; }
  .ms-nav a { padding: 11px 12px; border-top: 1px solid #1f2937; }
  .ms-nav-cta { margin-left: 0; text-align: center; }
}
