/* ──────────────────────────────────────────────────────────────────────────
   MHCC Elementor Helper — plugin stylesheet
   Covers: modal overlay, "How to Get Baseline Tested" section cards
   ────────────────────────────────────────────────────────────────────────── */

/* ── MODAL ─────────────────────────────────────────────────────────────── */

.mhcc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mhcc-modal[aria-hidden="true"] {
  display: none !important;
}

.mhcc-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  margin: auto;
  outline: none; /* focus ring handled via keyboard-visible only */
}

.mhcc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
}

.mhcc-modal-close:hover {
  background: rgba(0, 0, 0, 0.18);
}

.mhcc-modal-close:focus-visible {
  outline: 3px solid #008f8c;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .mhcc-modal {
    padding: 0;
    align-items: flex-start;
  }
  .mhcc-modal-inner {
    border-radius: 0;
    min-height: 100dvh;
  }
}

/* ── INLINE EMBED ([mh_screen_tool]) ──────────────────────────────────── */
/* Shares .mhcc-modal-inner so all tool content styles apply; these rules
   override the modal-specific chrome. Kept after the modal media query so
   they win at equal specificity. */

.mhcc-screen-tool-embed {
  box-shadow: 0 18px 45px rgba(18, 52, 54, 0.12);
}

@media (max-width: 640px) {
  .mhcc-screen-tool-embed {
    border-radius: 16px;
    min-height: 0;
  }
}

/* ── OPEN SCREEN TOOL BUTTON (when used outside Elementor button widget) ── */

.mhcc-open-screen-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #3bbfca;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.mhcc-open-screen-tool:hover {
  background: #2a9baa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 191, 202, 0.35);
}

.mhcc-open-screen-tool:focus-visible {
  outline: 3px solid #b8d433;
  outline-offset: 3px;
}

/* ── "HOW TO GET BASELINE TESTED" SECTION ─────────────────────────────── */

.mhcc-gt-section {
  padding: 72px 0;
  background: #2e3035; /* charcoal — matches baseline page's .section-dark */
}

.mhcc-gt-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px)  { .mhcc-gt-container { padding-inline: 40px; } }
@media (min-width: 1024px) { .mhcc-gt-container { padding-inline: 60px; } }

.mhcc-gt-header {
  text-align: center;
  margin-bottom: 48px;
}

.mhcc-gt-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8d433; /* lime accent */
  margin-bottom: 12px;
}

.mhcc-gt-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}

.mhcc-gt-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Two-column grid for cards */
.mhcc-gt-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .mhcc-gt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Base card */
.mhcc-gt-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, background 0.2s;
}

.mhcc-gt-card:hover {
  background: rgba(59, 191, 202, 0.08);
  border-color: rgba(59, 191, 202, 0.3);
}

/* Dark variant (Teams card) */
.mhcc-gt-card-dark {
  background: rgba(184, 212, 51, 0.06);
  border-color: rgba(184, 212, 51, 0.2);
}

.mhcc-gt-card-dark:hover {
  background: rgba(184, 212, 51, 0.1);
  border-color: rgba(184, 212, 51, 0.4);
}

.mhcc-gt-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 191, 202, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3bbfca;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.mhcc-gt-card-dark .mhcc-gt-card-icon {
  background: rgba(184, 212, 51, 0.15);
  color: #b8d433;
}

.mhcc-gt-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.mhcc-gt-card-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 12px;
  flex-grow: 1;
}

.mhcc-gt-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 16px 0 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border-left: 3px solid #3bbfca;
}

.mhcc-gt-card-dark .mhcc-gt-price {
  border-left-color: #b8d433;
}

.mhcc-gt-price strong {
  color: #3bbfca;
  font-size: 1.15rem;
}

.mhcc-gt-card-dark .mhcc-gt-price strong {
  color: #b8d433;
}

/* Buttons */
.mhcc-gt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  align-self: flex-start;
  border: 2px solid transparent;
}

.mhcc-gt-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.mhcc-gt-btn-primary {
  background: #3bbfca;
  color: #fff;
  border-color: #3bbfca;
}

.mhcc-gt-btn-primary:hover {
  background: #2a9baa;
  border-color: #2a9baa;
  box-shadow: 0 6px 20px rgba(59, 191, 202, 0.4);
  color: #fff;
}

.mhcc-gt-btn-outline {
  background: transparent;
  color: #b8d433;
  border-color: #b8d433;
}

.mhcc-gt-btn-outline:hover {
  background: rgba(184, 212, 51, 0.12);
  color: #b8d433;
}

@media (max-width: 480px) {
  .mhcc-gt-card {
    padding: 28px 20px 24px;
  }
  .mhcc-gt-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── UTILITY ────────────────────────────────────────────────────────────── */

/* Shared .btn classes for use outside the HTML shortcodes (e.g. screen tool button) */
.mhcc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 6px; font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.mhcc-btn-primary { background: #1d9e75; color: #fff; border: none; }
.mhcc-btn-outline { background: transparent; border: 1px solid #1d9e75; color: #1d9e75; }
