/*
Theme Name:   MasterPhi — Harmonize Child
Theme URI:    https://masterphi.com
Description:  Child theme for Hello Elementor — Harmonize brand palette, typography, and global styles.
Author:       Prosperity Ridge Inc.
Author URI:   https://masterphi.com
Template:     hello-elementor
Version:      1.0.0
License:      Proprietary — All Rights Reserved
Text Domain:  hello-masterphi-child
*/

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {
  --mphi-green:       #6B7C4D;
  --mphi-green-dark:  #4a5e30;
  --mphi-green-light: #8fa06b;
  --mphi-gold:        #C9A84C;
  --mphi-gold-light:  #e0c278;
  --mphi-cream:       #F8F5EF;
  --mphi-cream-dark:  #ede9e0;
  --mphi-dark:        #2C2C2C;
  --mphi-body:        #4A4A4A;
  --mphi-muted:       #7A7A7A;
  --mphi-white:       #FFFFFF;

  --mphi-font-heading: 'Playfair Display', Georgia, serif;
  --mphi-font-body:    'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --mphi-radius:      4px;
  --mphi-radius-lg:   8px;
  --mphi-shadow:      0 4px 24px rgba(0,0,0,0.08);
  --mphi-shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
}

/* =====================================================================
   BASE
   ===================================================================== */
body {
  font-family: var(--mphi-font-body);
  color: var(--mphi-body);
  background-color: var(--mphi-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--mphi-font-heading);
  color: var(--mphi-dark);
  line-height: 1.2;
}

a {
  color: var(--mphi-green);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mphi-gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* Prevent user-select on key content areas */
.elementor-section,
.elementor-widget-heading,
.elementor-widget-text-editor {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Allow selection in form fields */
input, textarea, select {
  user-select: auto;
  -webkit-user-select: auto;
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.site-header,
header.elementor-location-header {
  background-color: var(--mphi-white);
  border-bottom: 1px solid var(--mphi-cream-dark);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* "Open App" nav button */
.mphi-nav-app-btn,
.elementor-nav-menu .mphi-app-btn a {
  background-color: var(--mphi-green) !important;
  color: var(--mphi-white) !important;
  border-radius: var(--mphi-radius) !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease !important;
}

.mphi-nav-app-btn:hover,
.elementor-nav-menu .mphi-app-btn a:hover {
  background-color: var(--mphi-green-dark) !important;
  color: var(--mphi-white) !important;
}

/* =====================================================================
   BUTTONS (global Elementor overrides)
   ===================================================================== */
.elementor-button.mphi-btn-primary,
.elementor-button-primary {
  background-color: var(--mphi-gold) !important;
  color: var(--mphi-dark) !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.elementor-button.mphi-btn-primary:hover,
.elementor-button-primary:hover {
  background-color: var(--mphi-gold-light) !important;
  transform: translateY(-1px);
}

.elementor-button.mphi-btn-outline {
  background-color: transparent !important;
  border: 2px solid currentColor !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

/* =====================================================================
   ICON BOX (pillar cards, steps)
   ===================================================================== */
.elementor-icon-box-wrapper {
  text-align: center;
}

.elementor-icon-box-icon {
  margin-bottom: 20px;
}

.elementor-icon-box-content .elementor-icon-box-title {
  font-family: var(--mphi-font-heading);
  margin-bottom: 10px;
}

/* Pillar cards */
.mphi-pillar-card .elementor-icon-box-wrapper {
  background-color: var(--mphi-white);
  border-radius: var(--mphi-radius-lg);
  padding: 32px 24px;
  box-shadow: var(--mphi-shadow);
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.mphi-pillar-card .elementor-icon-box-wrapper:hover {
  box-shadow: var(--mphi-shadow-lg);
  transform: translateY(-3px);
}

/* Testimonial cards */
.mphi-testimonial-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--mphi-radius-lg);
  padding: 36px 28px;
}

.mphi-testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  font-family: var(--mphi-font-heading);
}

.mphi-testimonial-card .mphi-testimonial-author {
  margin-top: 20px;
  font-weight: 700;
  color: var(--mphi-gold);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================================================================
   PRICING CARDS
   ===================================================================== */
.mphi-pricing-card {
  background-color: var(--mphi-white);
  border-radius: var(--mphi-radius-lg);
  padding: 48px 36px;
  box-shadow: var(--mphi-shadow);
  text-align: center;
  position: relative;
}

.mphi-pricing-card.mphi-featured {
  border: 2px solid var(--mphi-gold);
  box-shadow: var(--mphi-shadow-lg);
}

.mphi-pricing-card .mphi-best-value-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--mphi-gold);
  color: var(--mphi-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
}

.mphi-pricing-card .mphi-price {
  font-family: var(--mphi-font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--mphi-dark);
  line-height: 1;
  margin: 16px 0 4px;
}

.mphi-pricing-card .mphi-price sup {
  font-size: 24px;
  vertical-align: super;
  line-height: 0;
}

.mphi-pricing-card .mphi-price-period {
  color: var(--mphi-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.mphi-pricing-card .mphi-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.mphi-pricing-card .mphi-feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mphi-cream-dark);
  font-size: 15px;
  color: var(--mphi-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mphi-pricing-card .mphi-feature-list li::before {
  content: '✓';
  color: var(--mphi-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* =====================================================================
   SECTION EYEBROWS
   ===================================================================== */
.mphi-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mphi-gold);
  display: block;
  margin-bottom: 12px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
footer.elementor-location-footer,
.site-footer {
  background-color: var(--mphi-dark);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--mphi-gold);
}

footer .mphi-footer-brand {
  font-family: var(--mphi-font-heading);
  font-size: 20px;
  color: var(--mphi-white);
  font-weight: 700;
}

/* =====================================================================
   POPUP (Open App overlay)
   ===================================================================== */
#mphi-app-popup {
  display: none; /* Controlled by Elementor Popup or JS */
}

.elementor-popup-modal .dialog-widget-content {
  border-radius: var(--mphi-radius-lg);
  overflow: hidden;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .mphi-pricing-card {
    padding: 36px 24px;
    margin-bottom: 24px;
  }

  .mphi-testimonial-card {
    margin-bottom: 20px;
  }
}

/* =====================================================================
   SELECTION OVERRIDE — keep text readable but don't show selection color
   ===================================================================== */
::selection {
  background: transparent;
  color: inherit;
}
::-moz-selection {
  background: transparent;
  color: inherit;
}

/* Allow selection in form inputs only */
input::selection,
textarea::selection {
  background: var(--mphi-gold);
  color: var(--mphi-dark);
}
