/* ============================================================
   MAS - Ministry Automation Suite
   Site-specific layer on top of the VaultEdge design system.
   Palette is inherited from custom-override.css (:root --ve-*).
   ============================================================ */

:root {
  --mas-navy:  #0d1b2a;
  --mas-navy2: #16273d;
  --mas-gold:  #d4a017;
  --mas-blue:  #1f6feb;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ---------- Brand mark in navbar / footer ---------- */
.mas-logo-img { height: 40px; width: auto; display: block; }
.ve-footer-logo .mas-logo-img { height: 46px; }

/* Skip link (accessibility) */
.mas-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--mas-gold); color: var(--mas-navy);
  padding: 10px 18px; font-weight: 700; border-radius: 0 0 8px 0;
}
.mas-skip:focus { left: 0; }

/* ---------- Hero tweaks ---------- */
.ve-hero-right.mas-hero-right {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--mas-navy) 0%, #1a3459 100%);
  padding: 40px;
}
.mas-hero-shot {
  width: 100%; border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.ve-hero-left h1 .mas-nowrap { white-space: nowrap; }

/* ---------- Icon tiles (product/feature cards) ---------- */
.mas-icon-tile {
  width: 78px; height: 78px; border-radius: 18px;
  background: #fff; border: 1px solid var(--ve-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; padding: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(13,27,42,0.06);
}
.mas-icon-tile img { width: 100%; height: 100%; object-fit: contain; }
.ve-service-card:hover .mas-icon-tile { transform: scale(1.04); transition: var(--ve-trans); }

/* 4-up grid for the full product set */
.mas-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1199px) { .mas-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .mas-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .mas-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Problem / solution split ---------- */
.mas-split-section { background: #fff; }
.mas-panel {
  border-radius: 16px; padding: 40px 36px; height: 100%;
  border: 1px solid var(--ve-border); background: #fff;
}
.mas-panel-dark {
  background: linear-gradient(150deg, var(--mas-navy) 0%, var(--mas-navy2) 100%);
  border-color: rgba(255,255,255,0.08);
}
.mas-panel-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mas-gold); color: var(--mas-navy);
  font-weight: 900; font-size: 15px; margin-right: 10px;
}
.mas-panel h3 {
  font-size: 22px; font-weight: 900; margin-bottom: 6px;
  display: flex; align-items: center;
}
.mas-panel-dark h3 { color: #fff; }
.mas-panel-sub { font-size: 14px; color: var(--ve-text); margin-bottom: 26px; }
.mas-panel-dark .mas-panel-sub { color: rgba(255,255,255,0.55); }

.mas-pain { list-style: none; margin: 0; padding: 0; }
.mas-pain li { display: flex; gap: 14px; margin-bottom: 20px; }
.mas-pain li i { color: #d9534f; font-size: 16px; margin-top: 3px; flex-shrink: 0; }
.mas-pain strong { display: block; font-size: 15px; font-weight: 800; color: var(--ve-dark); margin-bottom: 2px; }
.mas-pain span { font-size: 13.5px; color: var(--ve-text); line-height: 1.6; }

.mas-channels { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.mas-chip {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); border-radius: 50px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
}
.mas-chip i { color: var(--mas-gold); margin-right: 7px; }
.mas-flow-out {
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-top: 4px;
}
.mas-flow-out div { text-align: center; }
.mas-flow-out i { display: block; font-size: 24px; color: var(--mas-gold); margin-bottom: 8px; }
.mas-flow-out span {
  font-size: 12px; font-weight: 800; color: #fff;
  letter-spacing: 1.2px; text-transform: uppercase;
}

/* ---------- Demo video (click-to-play facade) ---------- */
.mas-video-section { background: #fff; }
.mas-video-wrap { max-width: 900px; margin: 0 auto; }
.mas-video {
  display: block; position: relative; width: 100%; padding: 0;
  border: 1px solid var(--ve-border); border-radius: 16px;
  overflow: hidden; cursor: pointer; background: var(--mas-navy);
  aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgba(13,27,42,0.18);
  transition: var(--ve-trans);
}
.mas-video:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(13,27,42,0.26); }
.mas-video:focus-visible { outline: 3px solid var(--mas-gold); outline-offset: 3px; }
.mas-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mas-video-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.35) 0%, rgba(13,27,42,0.15) 45%, rgba(13,27,42,0.8) 100%);
}
.mas-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--mas-gold); color: var(--mas-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; padding-left: 6px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.4);
  transition: var(--ve-trans);
}
.mas-video:hover .mas-video-play { transform: translate(-50%, -50%) scale(1.08); background: #e8b84b; }
.mas-video-label {
  position: absolute; left: 0; right: 0; bottom: 26px;
  color: #fff; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 17px;
  letter-spacing: 0.3px; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.mas-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 575px) {
  .mas-video-play { width: 64px; height: 64px; font-size: 22px; }
  .mas-video-label { font-size: 14px; bottom: 16px; }
}

/* ---------- Workflow steps ---------- */
.mas-steps-section { background: var(--ve-light); }
.mas-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1199px) { .mas-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .mas-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .mas-steps { grid-template-columns: 1fr; } }
.mas-step {
  background: #fff; border: 1px solid var(--ve-border);
  border-radius: 12px; padding: 26px 20px; text-align: center;
  position: relative; transition: var(--ve-trans);
}
.mas-step:hover { transform: translateY(-5px); box-shadow: var(--ve-shadow); }
.mas-step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mas-navy); color: var(--mas-gold);
  font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.mas-step i { font-size: 26px; color: var(--mas-gold); margin: 10px 0 14px; display: block; }
.mas-step h5 { font-size: 15px; font-weight: 800; color: var(--ve-dark); margin-bottom: 8px; }
.mas-step p { font-size: 13px; color: var(--ve-text); line-height: 1.6; margin: 0; }

/* ---------- Pricing ---------- */
.mas-pricing-section { background: var(--ve-light); }
.mas-price-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px; max-width: 940px; margin: 0 auto;
}
@media (max-width: 767px) { .mas-price-grid { grid-template-columns: 1fr; } }
.mas-price-card {
  background: #fff; border: 1px solid var(--ve-border);
  border-radius: 16px; padding: 40px 34px; position: relative;
  display: flex; flex-direction: column; transition: var(--ve-trans);
}
.mas-price-card:hover { transform: translateY(-6px); box-shadow: var(--ve-shadow); }
.mas-price-card.mas-featured {
  background: linear-gradient(150deg, var(--mas-navy) 0%, var(--mas-navy2) 100%);
  border-color: var(--mas-gold);
}
.mas-price-badge {
  position: absolute; top: -13px; right: 28px;
  background: var(--mas-gold); color: var(--mas-navy);
  font-size: 11px; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 50px;
}
.mas-price-name {
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mas-gold); margin-bottom: 14px;
}
.mas-price-fig { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.mas-price-fig strong { font-family: 'Nunito', sans-serif; font-size: 52px; font-weight: 900; color: var(--ve-dark); line-height: 1; }
.mas-price-fig span { font-size: 15px; color: var(--ve-text); }
.mas-featured .mas-price-fig strong { color: #fff; }
.mas-featured .mas-price-fig span { color: rgba(255,255,255,0.6); }
/* text figure ("Let's talk") instead of a number */
.mas-price-fig.mas-price-text { margin-bottom: 16px; }
.mas-price-fig.mas-price-text strong { font-size: 40px; letter-spacing: -0.5px; }

/* Negotiate / Monthly / Yearly chips */
.mas-price-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mas-price-options span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(212,160,23,0.12); border: 1px solid rgba(212,160,23,0.35);
  color: var(--mas-gold); border-radius: 50px;
  padding: 7px 15px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.3px;
}
.mas-price-options span i { font-size: 13px; }

.mas-price-note { font-size: 14px; color: var(--ve-text); margin-bottom: 26px; line-height: 1.7; }
.mas-featured .mas-price-note { color: rgba(255,255,255,0.6); }
.mas-price-list { list-style: none; margin: 0 0 30px; padding: 0; flex: 1; }
.mas-price-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--ve-text);
  padding: 9px 0; border-bottom: 1px solid var(--ve-border);
}
.mas-price-list li:last-child { border-bottom: none; }
.mas-price-list li i { color: var(--mas-gold); font-size: 14px; margin-top: 4px; flex-shrink: 0; }
.mas-featured .mas-price-list li { color: rgba(255,255,255,0.8); border-bottom-color: rgba(255,255,255,0.08); }
.mas-price-card .ve-btn-primary,
.mas-price-card .ve-btn-ghost { text-align: center; }
.mas-price-foot { font-size: 13px; color: var(--ve-text); text-align: center; margin-top: 26px; }

/* ---------- Impact list (about page) ---------- */
.mas-impact { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 991px) { .mas-impact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .mas-impact { grid-template-columns: 1fr; } }
.mas-impact-item { text-align: center; padding: 26px 16px; }
.mas-impact-item i { font-size: 30px; color: var(--mas-gold); margin-bottom: 14px; display: block; }
.mas-impact-item p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.6; }
.mas-impact-item strong { color: #fff; display: block; font-size: 18px; font-weight: 900; margin-bottom: 4px; }

/* ---------- Prose (about page) ---------- */
.mas-prose h3 { font-size: 26px; font-weight: 900; color: var(--ve-dark); margin: 44px 0 14px; }
.mas-prose h3:first-child { margin-top: 0; }
.mas-prose p { font-size: 16px; line-height: 1.85; color: var(--ve-text); margin-bottom: 18px; }
.mas-lead {
  font-size: 19px !important; line-height: 1.75 !important;
  color: var(--ve-dark) !important; font-weight: 600;
}
.mas-pull {
  border-left: 4px solid var(--mas-gold);
  background: var(--ve-light); border-radius: 0 12px 12px 0;
  padding: 26px 30px; margin: 34px 0;
}
.mas-pull p { margin: 0; font-size: 18px; font-weight: 700; color: var(--ve-dark); line-height: 1.6; }

/* ---------- Page banner (inner pages) ---------- */
.mas-page-banner {
  background: linear-gradient(135deg, var(--mas-navy) 0%, #1a3459 100%);
  padding: 150px 0 80px; text-align: center;
}
.mas-page-banner h1 { font-size: 46px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.mas-page-banner h1 span { color: var(--mas-gold); }
.mas-page-banner p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 640px; margin: 0 auto; }
@media (max-width: 767px) { .mas-page-banner { padding: 120px 0 60px; } .mas-page-banner h1 { font-size: 32px; } }

/* ---------- Contact ---------- */
.mas-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
@media (max-width: 991px) { .mas-contact-grid { grid-template-columns: 1fr; } }
.mas-contact-card {
  background: linear-gradient(150deg, var(--mas-navy) 0%, var(--mas-navy2) 100%);
  border-radius: 16px; padding: 40px 34px;
}
.mas-contact-card h3 { color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.mas-contact-card > p { color: rgba(255,255,255,0.6); font-size: 14.5px; line-height: 1.7; margin-bottom: 30px; }
.mas-contact-list { list-style: none; margin: 0; padding: 0; }
.mas-contact-list li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.mas-contact-list i {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(212,160,23,0.15); color: var(--mas-gold);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.mas-contact-list strong { display: block; color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.mas-contact-list a, .mas-contact-list span { color: rgba(255,255,255,0.62); font-size: 14px; text-decoration: none; }
.mas-contact-list a:hover { color: var(--mas-gold); }

.mas-form-card { background: #fff; border: 1px solid var(--ve-border); border-radius: 16px; padding: 40px 34px; }
.mas-field { margin-bottom: 20px; }
.mas-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ve-dark); margin-bottom: 7px; }
.mas-field label .mas-req { color: #d9534f; }
.mas-field input, .mas-field textarea, .mas-field select {
  width: 100%; border: 1px solid var(--ve-border); border-radius: 8px;
  padding: 12px 15px; font-size: 15px; font-family: inherit;
  color: var(--ve-dark); background: #fff; transition: var(--ve-trans);
}
.mas-field input:focus, .mas-field textarea:focus, .mas-field select:focus {
  outline: none; border-color: var(--mas-gold); box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}
.mas-field textarea { resize: vertical; min-height: 130px; }
.mas-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 575px) { .mas-form-row { grid-template-columns: 1fr; } }
.mas-submit {
  background: var(--mas-gold); color: var(--mas-navy); border: none;
  padding: 15px 34px; border-radius: 8px; font-weight: 800; font-size: 15px;
  cursor: pointer; transition: var(--ve-trans); font-family: inherit;
}
.mas-submit:hover:not(:disabled) { background: #e8b84b; transform: translateY(-2px); }
.mas-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.mas-form-msg { margin-top: 18px; font-size: 14.5px; padding: 14px 16px; border-radius: 8px; display: none; }
.mas-form-msg.ok { display: block; background: #e8f6ec; color: #1e6b34; border: 1px solid #b7e0c3; }
.mas-form-msg.err { display: block; background: #fdecea; color: #a3271f; border: 1px solid #f5c6c2; }
/* honeypot - hidden from people, tempting to bots */
.mas-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mobile nav ---------- */
.mas-mobile-nav { display: none; background: var(--ve-dark2); padding: 12px 20px 20px; }
.mas-mobile-nav.open { display: block; }
.mas-mobile-nav a {
  display: block; color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mas-mobile-nav a:hover, .mas-mobile-nav a.active { color: var(--ve-gold); }
.mas-mobile-nav .ve-cta-btn { display: inline-block; margin-top: 16px; border-bottom: none; }
@media (min-width: 992px) { .mas-mobile-nav { display: none !important; } }

/* ---------- Footer extras ---------- */
.ve-footer-brand .mas-foot-tag {
  font-size: 13px; color: var(--ve-gold); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-top: 4px;
}

/* ---------- Utilities ---------- */
.mas-center { text-align: center; }
.mas-mt-40 { margin-top: 40px; }
.mas-mb-0 { margin-bottom: 0; }
