/*
Theme Name: MenaTask Child
Template: convertify-theme
Description: Child theme for MenaTask SaaS landing page
Author: MenaTask
Version: 1.0.0
Text Domain: build-momentum-child
*/

/* MenaTask Brand Colors */
:root {
  --bm-primary: #4f46e5;
  --bm-primary-hover: #4338ca;
  --bm-secondary: #6366f1;
  --bm-accent: #10b981;
  --bm-text-dark: #1f2937;
  --bm-text-light: #6b7280;
  --bm-bg-light: #f9fafb;
  --bm-bg-card: #ffffff;
  --bm-border: #e5e7eb;
}

/* Hero Section */
.bm-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 100%);
  padding: 80px 20px;
  text-align: center;
}

.bm-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bm-text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.bm-hero .highlight {
  background: linear-gradient(135deg, var(--bm-primary), var(--bm-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.bm-btn-primary {
  background: var(--bm-primary);
  color: white !important;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin: 10px;
  transition: all 0.3s ease;
}

.bm-btn-primary:hover {
  background: var(--bm-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  color: white !important;
}

.bm-btn-secondary {
  background: white;
  color: var(--bm-primary) !important;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin: 10px;
  border: 2px solid var(--bm-border);
  transition: all 0.3s ease;
}

.bm-btn-secondary:hover {
  border-color: var(--bm-primary);
  color: var(--bm-primary) !important;
}

/* Section Layouts */
.bm-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.bm-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.bm-pricing-card {
  text-align: center;
  padding: 40px 30px;
  position: relative;
  overflow: visible; /* Allow badge to show outside card */
}

.bm-pricing-card.featured {
  border: 3px solid var(--bm-primary);
  transform: scale(1.05);
}

.bm-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bm-primary);
  margin: 20px 0;
}

.bm-pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bm-accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Footer */
.bm-footer {
  background: #1f2937;
  color: white;
  padding: 60px 20px 30px;
}

.bm-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.bm-footer a:hover {
  color: white;
}

/* Smooth Animations */
a[href*='app.menatask.com']:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3) !important;
}

.bm-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Gradient text animations */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.highlight {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Allow badges to show on pricing cards */
.bm-card.bm-pricing-card {
  overflow: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure all elements fit viewport */
  * {
    box-sizing: border-box;
  }

  /* Prevent text overflow */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  div,
  span {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Ensure all containers fit viewport */
  header,
  header > div,
  .bm-hero,
  .bm-section,
  .bm-card,
  .bm-grid,
  .bm-footer {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Fix images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .bm-hero {
    padding: 40px 25px;
    margin: 0 !important;
  }

  /* Override inline grid to single column */
  .bm-hero > div {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .bm-hero > div > div {
    max-width: 100% !important;
  }

  /* Hide second column (product mockup) on mobile */
  .bm-hero > div > div:nth-child(2) {
    display: none !important;
  }

  .bm-hero h1 {
    font-size: 2rem;
    line-height: 1.3;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: center !important;
  }

  .bm-hero p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0;
    margin: 0 0 15px 0;
    max-width: 100% !important;
  }

  .bm-section {
    padding: 40px 25px;
  }

  .bm-card {
    padding: 20px;
  }

  .bm-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bm-pricing-card.featured {
    transform: scale(1);
  }

  .bm-btn-primary,
  .bm-btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Ensure viewport constraints */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  header,
  header > div,
  .bm-hero,
  .bm-section,
  .bm-card,
  .bm-grid,
  .bm-footer {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .bm-hero {
    padding: 30px 20px;
  }

  /* Override inline grid to single column */
  .bm-hero > div {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .bm-hero > div > div {
    max-width: 100% !important;
  }

  /* Hide second column (product mockup) on mobile */
  .bm-hero > div > div:nth-child(2) {
    display: none !important;
  }

  .bm-hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: center !important;
  }

  .bm-hero p {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0;
    margin: 0 0 10px 0;
    max-width: 100% !important;
  }

  .bm-section {
    padding: 30px 20px;
  }

  .bm-card {
    padding: 15px;
  }

  .bm-grid {
    gap: 15px;
  }

  .bm-price {
    font-size: 2.5rem;
  }
}

/* MenaTask header — Modules dropdown (header-build-momentum.php) */
.bm-header-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.bm-header-nav > a,
.bm-header-nav details summary {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}
.bm-header-nav details summary::-webkit-details-marker {
  display: none;
}
.bm-header-nav details summary::after {
  content: " ▾";
  font-size: 0.7rem;
  opacity: 0.65;
  margin-left: 2px;
}
.bm-header-nav .bm-modules-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 8px 0;
  z-index: 1001;
}
.bm-header-nav .bm-modules-wrap {
  position: relative;
}
.bm-header-nav .bm-modules-panel a {
  display: block;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.bm-header-nav .bm-modules-panel a:hover {
  background: #f3f4f6;
  color: #111827;
}
@media (max-width: 640px) {
  .bm-header-nav .bm-modules-panel {
    left: auto;
    right: 0;
  }
}
