/*
Theme Name:  Mashive House Maids
Theme URI:   https://mashivehub.com
Author:      Mashive
Description: قالب مشايف لخدمات الشغالات — Arabic RTL, Elementor compatible, professional design
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mashive
*/

/* ============================================================
   DESIGN TOKENS — Professional color palette
   ============================================================ */
:root {
  /* Primary — deep teal green */
  --brand-primary:       #0D7A5F;
  --brand-primary-dark:  #085A46;
  --brand-primary-light: #E6F4F0;
  --brand-primary-mid:   #1A9E7A;

  /* Accent — warm gold */
  --brand-gold:          #B8860B;
  --brand-gold-light:    #FDF8EC;

  /* WhatsApp */
  --brand-wa:            #25D366;
  --brand-wa-dark:       #1DA851;

  /* Neutral backgrounds */
  --bg-page:             #F5F6F8;
  --bg-white:            #FFFFFF;
  --bg-dark:             #0A1628;
  --bg-dark-mid:         #112240;

  /* Text */
  --text-dark:           #0D1B2A;
  --text-mid:            #374151;
  --text-muted:          #6B7280;
  --text-light:          #9CA3AF;

  /* Borders */
  --border:              #E5E7EB;
  --border-dark:         #D1D5DB;

  /* Radii */
  --radius-sm:           6px;
  --radius-md:           12px;
  --radius-lg:           20px;
  --radius-xl:           28px;

  /* Shadows */
  --shadow-sm:           0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:           0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:           0 8px 32px rgba(0,0,0,0.10);

  /* Layout */
  --container:           1160px;
  --font:                'Cairo', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   GLOBAL HORIZONTAL SCROLL FIX
   Every element is constrained to viewport width
   ============================================================ */
html {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative; /* needed for overflow-x:hidden to work on iOS */
}
/* Every element respects container */
*, *::before, *::after {
  max-width: 100%;
}
/* Images and media never overflow */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.mashive-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.mashive-section    { padding: 80px 0; }
.mashive-section-sm { padding: 48px 0; }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--brand-primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 2px;
  background: var(--brand-primary); border-radius: 2px;
}

h1 { font-size: clamp(28px,4.5vw,52px); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(22px,3vw,38px);   font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(16px,2vw,20px);   font-weight: 600; line-height: 1.4; }
h4 { font-size: 15px; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.8; }

.text-primary { color: var(--brand-primary); }
.text-gold    { color: var(--brand-gold); }
.text-white   { color: #fff; }
.text-muted   { color: var(--text-muted); }

/* ============================================================
   BUTTONS — all variants
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease; white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn-primary {
  background: var(--brand-primary); color: #fff;
  border-color: var(--brand-primary);
}
.btn-primary:hover { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary-light); }

.btn-white { background: #fff; color: var(--brand-primary); border-color: #fff; }
.btn-white:hover { background: var(--brand-primary-light); }

.btn-whatsapp { background: var(--brand-wa); color: #fff; border-color: var(--brand-wa); }
.btn-whatsapp:hover { background: var(--brand-wa-dark); border-color: var(--brand-wa-dark); transform: translateY(-1px); }

.btn-call {
  background: var(--bg-dark); color: #fff;
  border-color: var(--bg-dark);
}
.btn-call:hover { background: var(--bg-dark-mid); border-color: var(--bg-dark-mid); transform: translateY(-1px); }

.btn-gold { background: var(--brand-gold); color: #fff; border-color: var(--brand-gold); }
.btn-gold:hover { filter: brightness(0.9); }

.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ============================================================
   CALL BUTTON — floating phone icon
   ============================================================ */
.mashive-call-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--bg-dark); color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  border: 2px solid transparent;
  direction: ltr;
}
.mashive-call-btn:hover { background: var(--brand-primary); transform: translateY(-1px); }
.mashive-call-btn .call-icon { font-size: 18px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.badge-green  { background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.badge-gold   { background: var(--brand-gold-light);    color: var(--brand-gold); }
.badge-dark   { background: rgba(255,255,255,0.12);     color: #fff; }
.badge-white  { background: rgba(255,255,255,0.15);     color: #fff; border: 1px solid rgba(255,255,255,0.25); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { font-size: 16px; max-width: 580px; }
.section-header.center p { margin: 0 auto; }

/* ============================================================
   CITY TAGS
   ============================================================ */
.city-tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; font-weight: 500;
  color: var(--text-mid); transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.city-tag:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-light);
}

/* ============================================================
   SERVICE ICON
   ============================================================ */
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.service-list { list-style: none; }
.service-list li {
  font-size: 13px; color: var(--text-mid);
  padding: 6px 0; border-bottom: 1px solid var(--bg-page);
  display: flex; align-items: center; gap: 8px;
}
.service-list li::before { content: '✓'; color: var(--brand-primary); font-weight: 700; }

/* ============================================================
   PRICE CARDS
   ============================================================ */
.price-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  position: relative; transition: all 0.2s;
}
.price-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.featured-tag {
  position: absolute; top: -13px; right: 50%; transform: translateX(50%);
  background: var(--brand-gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 100px; white-space: nowrap;
}
.price-amount { font-size: 44px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.price-card.featured .price-amount  { color: #fff; }
.price-card.featured .price-name    { color: rgba(255,255,255,0.7); }
.price-card.featured .price-period  { color: rgba(255,255,255,0.55); }
.price-features { list-style: none; margin: 0 0 24px; padding: 0; }
.price-features li {
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; color: var(--text-mid);
}
.price-card.featured .price-features li { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.price-check { color: var(--brand-primary); font-weight: 700; }
.price-card.featured .price-check { color: #fff; }

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.review-stars { color: #F59E0B; font-size: 17px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text  { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--brand-primary-dark); flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq-icon { font-size: 20px; color: var(--brand-primary); transition: transform 0.2s; flex-shrink: 0; }
.faq-a    { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-top: 10px; display: none; }
.faq-item.open .faq-a  { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress-bar  { height: 5px; background: rgba(255,255,255,0.12); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--brand-primary-mid); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.mashive-cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-mid) 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.mashive-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(13,122,95,0.25) 0%, transparent 70%);
}
.mashive-cta .mashive-container { position: relative; z-index: 1; text-align: center; }
.mashive-cta h2 { color: #fff; margin-bottom: 14px; }
.mashive-cta > .mashive-container > p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.mashive-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.mashive-cta-phone-display { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mashive-cta-phone-label  { font-size: 12px; color: rgba(255,255,255,0.4); }
.mashive-cta-phone-number { font-size: 32px; font-weight: 800; color: #fff; direction: ltr; text-decoration: none; transition: color 0.15s; }
.mashive-cta-phone-number:hover { color: var(--brand-primary-mid); }
.mashive-cta-hours { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 9999;
  width: 56px; height: 56px; background: var(--brand-wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s; cursor: pointer; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.inner-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-mid) 100%);
  padding: 64px 0 56px; position: relative; overflow: hidden;
}
.inner-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 40%, rgba(13,122,95,0.2) 0%, transparent 70%);
}
.inner-hero .mashive-container { position: relative; z-index: 1; }
.inner-hero h1  { color: #fff; margin-bottom: 12px; }
.inner-hero > .mashive-container > p { color: rgba(255,255,255,0.6); font-size: 16px; max-width: 580px; margin-bottom: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   ABOUT MINI CARDS
   ============================================================ */
.mashive-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mashive-about-feature { display: flex; gap: 14px; margin-bottom: 22px; }
.mashive-about-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--brand-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.mashive-about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mashive-mini-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm);
}
.mashive-mini-card.dark   { background: var(--bg-dark); border-color: transparent; }
.mashive-mini-card.dark p { color: rgba(255,255,255,0.5); }
.mashive-mini-card.accent { background: var(--brand-primary); border-color: transparent; }
.mashive-big-num { font-size: 34px; font-weight: 800; color: var(--brand-primary); line-height: 1; margin-bottom: 5px; }
.mashive-mini-card.dark .mashive-big-num   { color: #fff; }
.mashive-mini-card.accent .mashive-big-num { color: #fff; }

/* ============================================================
   STEP CARDS
   ============================================================ */
.mashive-step-card { text-align: center; padding: 28px 16px; }
.mashive-step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

/* ============================================================
   NATIONALITY CARDS
   ============================================================ */
.nat-flag { font-size: 38px; margin-bottom: 10px; }
.nat-name  { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.nat-sub   { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   CITY CARDS
   ============================================================ */
.mashive-city-card {
  background: var(--bg-white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  transition: all 0.2s; cursor: pointer;
}
.mashive-city-card:hover { border-color: var(--brand-primary); background: var(--brand-primary-light); box-shadow: var(--shadow-md); }
.mashive-city-card:hover .city-card-name { color: var(--brand-primary); }
.city-flag     { font-size: 26px; margin-bottom: 10px; }
.city-card-name{ font-size: 17px; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); }
.city-card-en  { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.city-services { display: flex; flex-wrap: wrap; gap: 5px; }
.city-svc {
  font-size: 11px; padding: 3px 9px;
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-muted);
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
/* Allow Elementor to work inside theme sections */
.elementor-section, .elementor-widget { direction: rtl; }
.elementor-element { font-family: var(--font); }

/* Elementor call/WA button shortcodes */
.mashive-el-cta-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.mashive-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.6);
  padding: 56px 0 28px;
}
.mashive-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 44px;
}
.mashive-footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; margin-top: 12px; margin-bottom: 18px; }
.mashive-footer-col h4  { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.mashive-footer-menu { list-style: none; margin: 0; padding: 0; }
.mashive-footer-menu li { margin-bottom: 9px; }
.mashive-footer-menu li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.mashive-footer-menu li a:hover { color: #fff; }
.mashive-footer-hours { margin-top: 18px; padding: 14px; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.07); }
.mashive-footer-hours-label { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 3px; }
.mashive-footer-hours-days  { font-size: 13px; color: #fff; }
.mashive-footer-hours-time  { font-size: 12px; color: rgba(255,255,255,0.4); }
.mashive-footer-bottom {
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.25);
}
.mashive-footer-seo-links { font-size: 11px; color: rgba(255,255,255,0.12); }
.mashive-social-links { display: flex; gap: 8px; margin-top: 4px; }
.mashive-social-link {
  width: 34px; height: 34px; background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background 0.15s;
}
.mashive-social-link:hover { background: var(--brand-primary); }

/* ============================================================
   RESPONSIVE — FIX horizontal scroll
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4          { grid-template-columns: 1fr 1fr; }
  .mashive-about-grid   { grid-template-columns: 1fr; gap: 36px; }
  .mashive-footer-grid  { grid-template-columns: 1fr 1fr; }
  #mn-drop-cities   { min-width: unset !important; width: 100vw; left: 0; right: 0; }
}
@media (max-width: 768px) {
  .mashive-section  { padding: 52px 0; }
  .grid-2, .grid-3  { grid-template-columns: 1fr; }
  .grid-4           { grid-template-columns: 1fr 1fr; }
  .mashive-nav-links { display: none; }
  .mashive-footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .mashive-cta-phone-number { font-size: 22px; letter-spacing: 0; }
  .mashive-about-cards { grid-template-columns: 1fr 1fr; }
  .mashive-container { padding: 0 16px; width: 100%; }

  /* FIX: every grid/flex child is constrained */
  .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; max-width: 100%; }

  /* FIX: cards never overflow on small screens */
  .card, .price-card, .mashive-city-card,
  .mashive-kw-card, .mashive-mini-card { max-width: 100%; }

  /* FIX: hero stats wrap properly */
  .mashive-hero-stats { gap: 12px; }
  .mashive-stat-divider { display: none; }

  /* FIX: footer grid single column */
  .mashive-footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* FIX: CTA buttons wrap on small screens */
  .mashive-cta-btns { flex-direction: column; align-items: center; }
  .mashive-cta-btns .btn { width: 100%; max-width: 320px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  h1      { font-size: 26px; }
  .btn-lg { padding: 13px 22px; font-size: 14px; }
}
