/* =====================================================================
   MCT brand refresh: minimal overlay on cloned Elementor site.
   The active Elementor kit (elementor-kit-12) already loads Poppins +
   Work Sans + brand colors. Don't fight it. Only add what's missing:
   bottom nav + hide top nav + body padding for the fixed bar.
   ===================================================================== */

:root {
  --mct-navy:        #1B365D;
  --mct-navy-700:    #16294A;
  --mct-red:         #BA0C2F;
  --mct-red-700:     #8E0823;
  --mct-cream:       #FCF7EE;
  --mct-white:       #FFFFFF;
  --mct-line:        #D9D2C2;

  --mct-font-ui:      'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --mct-nav-height:   72px;
  --mct-easing:       cubic-bezier(.2,.6,.2,1);
}

/* ---------------------------------------------------------------------
   Hide Elementor's top header (we replace it with bottom nav)
   --------------------------------------------------------------------- */
header.elementor-location-header,
.elementor-location-header,
[data-elementor-type="header"],
.hfe-site-header {
  display: none !important;
}

/* ---------------------------------------------------------------------
   Reserve space at the bottom of every page so content isn't hidden
   under the fixed nav
   --------------------------------------------------------------------- */
body {
  margin: 0 !important;
  padding-bottom: calc(var(--mct-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
}

/* ---------------------------------------------------------------------
   Bottom fixed nav
   --------------------------------------------------------------------- */
.mct-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--mct-nav-height);
  z-index: 9999;
  background: var(--mct-navy);
  border-top: 3px solid var(--mct-red);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mct-font-ui);
}

.mct-bottom-nav-inner {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mct-bottom-nav-logo { display: flex; align-items: center; }
.mct-bottom-nav-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mct-bottom-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}
.mct-bottom-nav-links li { margin: 0; padding: 0; }
.mct-bottom-nav-links a {
  font-family: var(--mct-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 120ms var(--mct-easing);
}
.mct-bottom-nav-links a:hover,
.mct-bottom-nav-links a[aria-current="page"] {
  color: var(--mct-white);
}

/* Featured/new-service highlight (e.g. AI Services) */
.mct-bottom-nav-links a.mct-bottom-nav-link--featured {
  background: #F0B429;
  color: var(--mct-white) !important;
  padding: 8px 14px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 0 1px rgba(0,0,0,0.3);
}
.mct-bottom-nav-links a.mct-bottom-nav-link--featured:hover {
  background: #E69C00;
}

/* Back-to-top icon button (right of News) */
.mct-bottom-nav-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: background 120ms var(--mct-easing),
              border-color 120ms var(--mct-easing),
              color 120ms var(--mct-easing),
              transform 200ms var(--mct-easing);
  text-decoration: none;
  padding: 0;
}
.mct-bottom-nav-top:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
  color: var(--mct-white);
  transform: translateY(-2px);
}
.mct-bottom-nav-top svg {
  width: 16px;
  height: 16px;
  display: block;
}
/* Icons hidden on desktop; shown only in mobile tab-bar layout.
   Two label spans exist per item: full (desktop) + short (mobile). */
.mct-nav-icon            { display: none; width: 22px; height: 22px; flex-shrink: 0; }
.mct-nav-label--full     { display: inline; }
.mct-nav-label--short    { display: none; }

.mct-bottom-nav-cta {
  background: var(--mct-red);
  color: var(--mct-white);
  font-family: var(--mct-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 120ms var(--mct-easing);
}
.mct-bottom-nav-cta:hover { background: var(--mct-red-700); }

.mct-bottom-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--mct-white);
  font-family: var(--mct-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
}

/* ---------------------------------------------------------------------
   Mobile bottom tab bar (≤860px)
   Icon stacked above small label, 5 evenly-spaced tabs across the bar.
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
  .mct-bottom-nav { height: 64px; }
  .mct-bottom-nav-inner {
    padding: 0;
    gap: 0;
    justify-content: stretch;
  }
  /* Hide desktop chrome on mobile */
  .mct-bottom-nav-logo,
  .mct-bottom-nav-toggle,
  .mct-bottom-nav-top { display: none !important; }

  /* Link list = flexible row that fills the bar */
  .mct-bottom-nav-links {
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    position: static;
    transform: none;
    pointer-events: auto;
    background: transparent;
    border: none;
    height: 100%;
  }
  .mct-bottom-nav-links li {
    flex: 1 1 0;
    height: 100%;
    border: none;
  }
  .mct-bottom-nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    padding: 6px 4px 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.65);
    position: relative;
  }
  .mct-bottom-nav-links a[aria-current="page"] {
    color: var(--mct-white);
  }
  .mct-bottom-nav-links a[aria-current="page"]::before {
    content: '';
    position: absolute;
    top: -3px; /* sits on top of the red bar */
    left: 22%; right: 22%;
    height: 3px;
    background: var(--mct-red);
  }
  .mct-bottom-nav-links a:active {
    background: rgba(255,255,255,0.06);
  }

  /* AI Services keeps the gold accent (icon + label gold, no pill) */
  .mct-bottom-nav-links a.mct-bottom-nav-link--featured {
    background: transparent;
    color: #F0B429 !important;
    padding: 6px 4px 4px;
    border-radius: 0;
    text-shadow: none;
  }

  /* CTA becomes the 5th tab */
  .mct-bottom-nav-cta {
    flex: 1 1 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px 4px;
    background: transparent;
    color: rgba(255,255,255,0.65);
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    height: 100%;
  }
  .mct-bottom-nav-cta:hover,
  .mct-bottom-nav-cta:active {
    background: rgba(255,255,255,0.06);
    color: var(--mct-white);
  }

  .mct-nav-icon         { display: block; width: 22px; height: 22px; }
  .mct-nav-label--full  { display: none; }
  .mct-nav-label--short {
    display: block;
    line-height: 1;
    text-transform: uppercase;
  }
}

/* =====================================================================
   Modal popup forms (Let's Connect / Request a Callback)
   Triggered by any element with data-mct-modal="lets-connect" or "callback"
   ===================================================================== */
.mct-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 54, 93, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--mct-easing);
}
.mct-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mct-modal-dialog {
  background: var(--mct-cream);
  border: 1px solid var(--mct-line);
  border-radius: 4px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 44px 40px;
  position: relative;
  transform: translateY(16px);
  transition: transform 220ms var(--mct-easing);
  font-family: 'Poppins', sans-serif;
}
.mct-modal-overlay.is-open .mct-modal-dialog {
  transform: translateY(0);
}
.mct-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--mct-navy-300);
  border-radius: 2px;
  transition: background 120ms, color 120ms;
}
.mct-modal-close:hover {
  background: rgba(27,54,93,0.06);
  color: var(--mct-navy);
}
.mct-modal-close svg { width: 18px; height: 18px; }

.mct-modal-eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mct-red);
  margin-bottom: 10px;
}
.mct-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--mct-navy);
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.mct-modal-title em { font-style: normal; color: var(--mct-red); }
.mct-modal-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 300;
  color: var(--mct-navy);
  margin: 0 0 24px;
  line-height: 1.55;
}

/* Form body (re-skinning Zoho's classes) */
.mct-modal .zf-tempHeadBdr,
.mct-modal .zf-frmTitle,
.mct-modal .zf-frmDesc { display: none !important; }
.mct-modal .zf-templateWidth { width: 100%; max-width: 100%; }
.mct-modal .zf-clearBoth { display: none; }
.mct-modal .zf-subContWrap > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mct-modal .zf-tempFrmWrapper { margin: 0; padding: 0; }
.mct-modal .zf-tempFrmWrapper .zf-labelName { display: none; }
.mct-modal .zf-tempContDiv { width: 100%; }
.mct-modal .zf-tempContDiv > span { display: block; width: 100%; }
.mct-modal input[type="text"],
.mct-modal input[type="email"],
.mct-modal input[type="tel"],
.mct-modal textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--mct-navy);
  background: #fff;
  border: 1px solid var(--mct-line);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 120ms ease;
}
.mct-modal input[type="text"]::placeholder,
.mct-modal input[type="email"]::placeholder,
.mct-modal input[type="tel"]::placeholder,
.mct-modal textarea::placeholder {
  color: var(--mct-navy-300);
}
.mct-modal input[type="text"]:focus,
.mct-modal input[type="email"]:focus,
.mct-modal input[type="tel"]:focus,
.mct-modal textarea:focus {
  outline: none;
  border-color: var(--mct-navy);
}
.mct-modal textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.mct-modal .zf-phonefld .zf-phwrapper { width: 100%; }
.mct-modal .zf-phonefld label { display: none; }
.mct-modal .zf-errorMessage {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--mct-red);
  margin: 6px 0 0;
}
.mct-modal .zf-fmFooter {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.mct-modal .zf-submitColor {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--mct-navy);
  color: #fff;
  border: 2px solid var(--mct-navy);
  border-radius: 2px;
  padding: 14px 28px;
  cursor: pointer;
  width: 100%;
  transition: background 120ms ease, border-color 120ms ease;
}
.mct-modal .zf-submitColor:hover {
  background: var(--mct-navy-700);
  border-color: var(--mct-navy-700);
}

/* Lock background scroll when modal open */
body.mct-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .mct-modal-dialog { padding: 36px 24px 28px; }
  .mct-modal-title { font-size: 24px; }
}
