/* ===========================================================
   MARGTN.COM — modern design system (homepage pilot)
   Loaded after css/style.css; scoped to elements the redesign
   actually touches. Legacy classes elsewhere are untouched.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ink:        #16233a;
  --ink-soft:   #46536b;
  --ink-faint:  #7c869a;
  --paper:      #faf8f3;
  --paper-raised: #ffffff;
  --paper-sunk: #f1ede2;
  --rule:       #ded4c2;
  --rule-soft:  #eae3d2;
  --brass:      #b8873f;
  --brass-deep: #8f6529;
  --brass-tint: #f3e6cd;
  --teal:       #2f6f62;
  --teal-tint:  #e2ede9;
  --shadow-sm:  0 1px 2px rgba(22,35,58,0.06), 0 2px 8px rgba(22,35,58,0.05);
  --shadow-md:  0 2px 4px rgba(22,35,58,0.06), 0 12px 32px rgba(22,35,58,0.08);
  --radius:     10px;
  --radius-sm:  6px;
}

.m-page * { box-sizing: border-box; }

.m-page {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.m-page h1, .m-page h2, .m-page h3, .m-page .m-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

.m-mono {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- layout helpers ---------- */
.m-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.m-section { padding: 88px 0; }
.m-section.tight { padding: 56px 0; }
.m-section.sunk { background: var(--paper-sunk); }
.m-section.ink { background: var(--ink); color: #eef1f6; }
.m-rule-top { border-top: 1px solid var(--rule); }

.m-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.m-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.m-section.ink .m-eyebrow { color: #e0b878; }
.m-section.ink .m-eyebrow::before { background: #e0b878; }

.m-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}
.m-section.ink .m-lede { color: #c3ccdb; }

/* ---------- buttons ---------- */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  line-height: 1;
}
.m-btn:hover { transform: translateY(-1px); text-decoration: none; }
.m-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.m-btn-primary {
  background: var(--brass);
  color: #211a0e;
  box-shadow: var(--shadow-sm);
}
.m-btn-primary:hover { background: var(--brass-deep); color: #fff; box-shadow: var(--shadow-md); }

.m-btn-ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.m-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.m-section.ink .m-btn-ghost,
.m-final-cta .m-btn-ghost { border-color: rgba(255,255,255,0.28); color: #eef1f6; }
.m-section.ink .m-btn-ghost:hover,
.m-final-cta .m-btn-ghost:hover { border-color: #fff; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .m-btn, .m-card, .m-reveal { transition: none !important; }
}

/* ---------- header / nav override ---------- */
.m-page .header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
}
.m-page .header .logo img { max-height: 42px; width: auto; }
.m-page .header-right-info .single-header-info .content h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 0;
}
.m-page .header-right-info .single-header-info .content p {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}
.m-page .header-right-info .icon-box .inner-box { background: var(--brass-tint); color: var(--brass-deep); }
.m-page .header-right-info .thm-btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
}
.m-page .header-right-info .thm-btn:hover { background: var(--brass-deep); }

.m-page .mainmenu-area {
  background: var(--ink);
}
.m-page .navigation .nav-header > ul > li > a {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #d7dde8;
}
.m-page .navigation .nav-header > ul > li:hover > a,
.m-page .navigation .nav-header > ul > li > a:hover {
  color: #e0b878;
}
.m-page .navigation .nav-header > ul > li > ul {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.m-page .navigation .nav-header > ul > li > ul > li > a {
  font-family: 'Manrope', sans-serif;
}
.m-page .navigation .nav-footer button {
  color: #e0b878;
}

/* ---------- hero ---------- */
.m-hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-sunk) 100%);
  border-bottom: 1px solid var(--rule);
}
.m-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.m-hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.m-hero h1 .m-accent { color: var(--brass-deep); }

.m-hero-cta {
  display: flex;
  gap: 14px;
  margin: 30px 0 34px;
  flex-wrap: wrap;
}

.m-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.m-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
}
.m-trust-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.m-hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}
.m-hero-visual .carousel,
.m-hero-visual .carousel-inner,
.m-hero-visual .item,
.m-hero-visual img { border-radius: 0; }
.m-hero-visual img { display: block; width: 100%; height: auto; }
.m-hero-visual .carousel-indicators { bottom: 12px; }
.m-hero-visual .carousel-indicators li { border-color: rgba(255,255,255,0.7); }
.m-hero-visual .carousel-indicators .active { background: var(--brass); }

@media (max-width: 900px) {
  .m-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .m-hero { padding: 44px 0 40px; }
}

/* ---------- section headers ---------- */
.m-section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.m-section-head.left { text-align: left; margin-left: 0; }
.m-section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }

/* ---------- cards ---------- */
.m-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .m-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .m-grid { grid-template-columns: 1fr; } }

.m-grid.m-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .m-grid.m-grid-4 { grid-template-columns: repeat(2, 1fr); } }

.m-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.m-card:hover { box-shadow: var(--shadow-md); border-color: #cfc2a4; transform: translateY(-2px); }

.m-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--brass-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.m-card-icon img { width: 24px; height: 24px; object-fit: contain; }

.m-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.m-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.m-card a.m-card-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brass-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.m-card a.m-card-link:hover { color: var(--ink); text-decoration: none; }
.m-card a.m-card-link .arrow { transition: transform 0.15s ease; }
.m-card a.m-card-link:hover .arrow { transform: translateX(3px); }

/* ---------- coverage strip ---------- */
.m-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.m-coverage a.m-city-chip {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.m-coverage a.m-city-chip:hover { border-color: var(--brass); color: var(--brass-deep); text-decoration: none; }

/* ---------- services list ---------- */
.m-service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}
.m-service-row a {
  padding: 26px 22px;
  border-right: 1px solid var(--rule-soft);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: background 0.15s ease;
}
.m-service-row a:last-child { border-right: none; }
.m-service-row a:hover { background: var(--paper-sunk); text-decoration: none; }
.m-service-row .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--brass-deep);
  display: block;
  margin-bottom: 10px;
}
.m-service-row h3 { font-size: 16px; margin-bottom: 6px; }
.m-service-row p { font-size: 13px; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .m-service-row { grid-template-columns: repeat(2, 1fr); }
  .m-service-row a:nth-child(2) { border-right: none; }
}
@media (max-width: 560px) {
  .m-service-row { grid-template-columns: 1fr; }
  .m-service-row a { border-right: none; border-bottom: 1px solid var(--rule-soft); }
  .m-service-row a:last-child { border-bottom: none; }
}

/* ---------- FAQ accordion (visual refresh only) ---------- */
.m-page .faq-accrodion .accrodion {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.m-page .faq-accrodion .accrodion-title { padding: 16px 18px; cursor: pointer; }
.m-page .faq-accrodion .accrodion-title h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; margin: 0; }
.m-page .faq-accrodion .accrodion-title .text { color: var(--ink); }
.m-page .faq-accrodion .accrodion-title .decor { display: none; }
.m-page .faq-accrodion .accrodion-content { padding: 0 18px 16px; }
.m-page .faq-accrodion .accrodion-content p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.m-page .faq-accrodion .accrodion.active .accrodion-title,
.m-page .faq-accrodion .accrodion-title:hover { background: var(--paper-sunk); }

/* ---------- app cards ---------- */
.m-app-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
}
.m-app-card .m-app-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.m-app-card h3 { font-size: 17px; margin-bottom: 4px; }
.m-app-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 16px; }

/* ---------- final CTA ---------- */
.m-final-cta {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #eef1f6;
}
.m-final-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.m-final-cta p { color: #c3ccdb; margin: 0; max-width: 46ch; }
.m-final-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .m-final-cta { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
}

/* ---------- legacy section overrides (chrome rollout to non-redesigned pages) ---------- */
/* .fact-counter-wrapper ("OUR STRENGTH") used a dark stock photo + a legacy overlay class
   fight (.overlay-white:before white@.9 vs .fact-counter-wrapper:before teal@.95 on the same
   pseudo-element) that rendered as a jarring dark-gray block against the new palette. Replace
   with a solid navy panel so it reads as part of the design system, not a leftover template. */
.m-page .overlay-white,
.m-page .fact-counter-wrapper {
	background: var(--ink) !important;
}
.m-page .overlay-white:before,
.m-page .fact-counter-wrapper:before {
	background: var(--ink) !important;
	opacity: 1 !important;
}
.m-page .fact-counter-wrapper h2 {
	font-family: 'Fraunces', Georgia, serif;
	color: #fff;
}
.m-page .single-fact .icon-box {
	border-color: rgba(255,255,255,.35);
	color: #e0b878;
}
.m-page .single-fact span {
	font-family: 'JetBrains Mono', monospace;
	color: #fff;
}
.m-page .single-fact p {
	color: #c3ccdb;
}
.m-page .fact-counter-wrapper .thm-btn.inverse {
	border-color: rgba(255,255,255,.4);
	color: #fff;
	background: transparent;
}
.m-page .fact-counter-wrapper .thm-btn.inverse:hover {
	background: var(--brass);
	border-color: var(--brass);
	color: #211a0e;
}

/* Mobile app download section: real functional icons, but the old red/blue Android-style
   graphics clash badly with the new palette. Wrap each in a clean card instead of trying to
   restyle the images themselves. */
.m-page .single-team {
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 24px 18px;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.m-page .single-team:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.m-page .single-team img {
	max-width: 90px;
	margin: 0 auto 14px;
	display: block;
}
.m-page .single-team .team-datails h3 {
	font-size: 17px;
	margin-bottom: 2px;
}
.m-page .single-team .team-datails p {
	color: var(--ink-soft);
	font-size: 13.5px;
	margin-bottom: 14px;
}
.m-page .single-team .btn-blog-bg {
	display: inline-block;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: var(--brass-deep);
	background: var(--brass-tint);
	padding: 8px 18px;
	border-radius: var(--radius-sm);
	text-decoration: none;
}
.m-page .single-team .btn-blog-bg:hover {
	background: var(--brass);
	color: #211a0e;
	text-decoration: none;
}
.m-page .meet-Volunteer .sec-title h3 {
	font-family: 'Fraunces', Georgia, serif;
	color: var(--ink);
}

/* Service/city/pharmacy CTA sections used an inline style="background:#27588D" (old brand
   blue) with plain .thm-btn pill buttons - built before modern.css existed, so they never
   matched the homepage's navy .m-final-cta treatment. Attribute-selector targets exactly
   these 14 sections without touching .thm-btn elsewhere (e.g. the header's Download Now). */
.m-page section[style*="27588D"] {
	background: var(--ink) !important;
}
.m-page section[style*="27588D"] h2 {
	font-family: 'Fraunces', Georgia, serif;
}
.m-page section[style*="27588D"] .thm-btn {
	display: inline-flex;
	align-items: center;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.m-page section[style*="27588D"] .thm-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}
.m-page section[style*="27588D"] a.thm-btn:first-of-type {
	background: var(--brass);
	color: #211a0e;
	border: none;
}
.m-page section[style*="27588D"] a.thm-btn:first-of-type:hover {
	background: var(--brass-deep);
	color: #fff;
}
.m-page section[style*="27588D"] a.thm-btn:last-of-type {
	background: transparent;
	border: 1px solid rgba(255,255,255,.28);
	color: #eef1f6;
}
.m-page section[style*="27588D"] a.thm-btn:last-of-type:hover {
	border-color: #fff;
	color: #fff;
}

/* ---------- page title banner (sitewide - all 26 pages share .inner-header) ---------- */
/* Was a generic dark stock photo (inner-header-bg.jpg) behind a #444 overlay on every
   inner page - replaced with a navy gradient matching the rest of the design system. */
.m-page .inner-header {
	background: linear-gradient(135deg, var(--ink) 0%, #1c2d47 100%) !important;
}
.m-page .inner-header:before {
	display: none;
}
.m-page .inner-header .sec-title h1,
.m-page .inner-header .sec-title h2 {
	font-family: 'Fraunces', Georgia, serif;
}

/* ---------- feature-list bullets -> cards (sitewide, wherever fa-hand-o-right is used) ---------- */
/* Plain bullet lists ("What X Covers", "Our Services", city-page software lists, etc.)
   across the 14 template-built pages plus about-us.php and the hub page all used the same
   flat <li><i class="fa fa-hand-o-right"> pattern. Scoped via :has() so it applies wherever
   that pattern already exists with no markup changes needed on any individual page. */
.m-page ul:has(> li > i.fa-hand-o-right) {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.m-page li:has(> i.fa-hand-o-right) {
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--brass);
	border-radius: var(--radius-sm);
	padding: 14px 18px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.m-page li:has(> i.fa-hand-o-right):hover {
	box-shadow: var(--shadow-sm);
	border-left-color: var(--brass-deep);
	transform: translateX(2px);
}
.m-page li:has(> i.fa-hand-o-right) > i.fa-hand-o-right {
	color: var(--brass);
	margin-top: 4px;
	flex-shrink: 0;
	font-size: 15px;
}
.m-page li:has(> i.fa-hand-o-right) a {
	font-weight: 700;
	color: var(--ink);
}
.m-page li:has(> i.fa-hand-o-right) a:hover {
	color: var(--brass-deep);
}

/* ---------- forms (contact-form used by free-demo.php and contact-us.php) ---------- */
/* The <select> was never covered by the site's existing form CSS (only input/textarea were)
   so it rendered with raw, invisible-looking browser defaults. Styled consistently with the
   rest of the design system, with a custom arrow since appearance is reset. */
.m-page .contact-form { margin: 0 -8px; }
.m-page .contact-form > div[class*="col-"] {
	padding: 0 8px;
	margin-bottom: 18px;
}
.m-page .contact-content .contact-form input[type="text"],
.m-page .contact-content .contact-form select,
.m-page .contact-content .contact-form textarea {
	width: 100%;
	height: auto;
	line-height: 1.4;
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	margin-bottom: 0;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	color: var(--ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.m-page .contact-content .contact-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2346536b' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	padding-right: 40px;
	cursor: pointer;
}
.m-page .contact-content .contact-form textarea {
	min-height: 170px;
	resize: vertical;
}
.m-page .contact-content .contact-form input[type="text"]:focus,
.m-page .contact-content .contact-form select:focus,
.m-page .contact-content .contact-form textarea:focus {
	outline: none;
	border-color: var(--brass);
	box-shadow: 0 0 0 3px var(--brass-tint);
}
.m-page .contact-content .contact-form .thm-btn {
	background: var(--brass);
	color: #211a0e;
	border: none;
	border-radius: var(--radius-sm);
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	padding: 14px 34px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.m-page .contact-content .contact-form .thm-btn:hover {
	background: var(--brass-deep);
	color: #fff;
	transform: translateY(-1px);
}
.m-page .contact-content h2 {
	margin-bottom: 22px;
}

/* ---------- footer override ---------- */
.m-page .footer {
  background: var(--ink);
  color: #c3ccdb;
}
.m-page .footer .title { color: #fff; font-family: 'Manrope', sans-serif; font-weight: 700; }
.m-page .footer a { color: #c3ccdb; }
.m-page .footer a:hover { color: #e0b878; }
.m-page .footer p { color: #a7b1c4; }
.m-page .footer-bottom { background: #0f1a2c; color: #8b96ab; }
.m-page .footer-bottom p { color: #8b96ab; margin: 0; }
