/* Global site styling for moving company (colors, typography, buttons)
 * Loaded from the Moving Booking System Pro plugin so it works with any theme.
 */

/* Base typography & background */
body {
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #111827 !important;            /* dark, readable text */
  background-color: #F3F4F6 !important;  /* soft light gray background */
}

/* Links */
a {
  color: #2563EB; /* primary blue */
}

a:hover,
a:focus {
  color: #1D4ED8;
}

/* Primary buttons (generic) */
button,
input[type="submit"],
.wp-block-button__link {
  background-color: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
  border-radius: 9999px; /* pill */
  padding: 0.6rem 1.6rem;
  font-weight: 600;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  color: #ffffff;
}

/* Accent / secondary button variant */
.mcp-btn-accent {
  background-color: #F97316; /* orange */
  border-color: #F97316;
  color: #111827;
}

.mcp-btn-accent:hover {
  background-color: #EA580C;
  border-color: #EA580C;
  color: #111827;
}

/* Header: light background, modern navigation links */
.site-header,
header.site-header,
header.header {
  background-color: #F3F4F6 !important; /* match site light gray background */
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid #E5E7EB;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Transport Solutions theme: lighten nav bar and spacing */
header.header .menu-block {
  background-color: #F3F4F6 !important;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Remove negative margin that was pulling content up under the menu on front page */
.page-template-frontpage header.header .menu-block {
  margin-bottom: 0 !important;
}

/* Lighten the very top bar as well */
.top-header {
  background-color: #F3F4F6 !important;
  color: #111827 !important;
}

/* Brand/logo sizing */
.site-header .custom-logo,
.site-header .site-logo img,
.site-header .nv-site-logo img,
.site-header .movex-header-logo img,
header.header .custom-logo,
header.header .site-logo img,
header.header .nv-site-logo img,
header.header .movex-header-logo img {
  height: 40px;
  width: auto;
  max-width: 160px;
}

/* Main navigation links – modern, readable */
.site-header a,
.site-header .menu a,
.site-header .nav-menu a,
header.header a,
header.header .menu a,
header.header .nav-menu a {
  color: #0F172A !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header a:hover,
.site-header .menu a:hover,
.site-header .nav-menu a:hover,
header.header a:hover,
header.header .menu a:hover,
header.header .nav-menu a:hover {
  color: #2563EB !important; /* primary blue on hover */
}

.site-header .current-menu-item > a,
.site-header .current_page_item > a,
header.header .current-menu-item > a,
header.header .current_page_item > a {
  color: #2563EB !important;
}

/* Hide "Work With Us" button block in Transport Solutions header */
header.header .button-box,
header.header .button-header {
  display: none !important;
}

/* Replace raw wp1 text with branded MoveX name visually */
.site-header .site-title,
header.header .site-title {
  font-size: 0;
}

.site-header .site-title::after,
header.header .site-title::after {
  content: 'MoveX Déménagement TN';
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-inline-start: 8px;
}

/* Hero sections helpers (optional, for blocks where you add these classes) */
.mcp-hero {
  /* تقليل الارتفاع قدر الإمكان مع الحفاظ على القراءة */
  padding: 0.4rem 1.5rem 0.15rem;
  text-align: center;
}

.mcp-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.mcp-hero-title {
  /* عنوان أصغر وأكثر ضغطًا */
  font-size: clamp(1.6rem, 2.6vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.mcp-hero-subtitle {
  /* وصف مضغوط جدًا مع فراغ بسيط فقط */
  font-size: 0.9rem;
  color: #4B5563; /* slate-600 */
  margin-bottom: 0.25rem;
}

/* Simple cards for services/steps */
.mcp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.mcp-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.mcp-card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mcp-card-text {
  color: #4B5563;
  font-size: 0.98rem;
}

/* Small badges / tags */
.mcp-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #DBEAFE;
  color: #1D4ED8;
}

/* Helper spacing utilities */
.mcp-section {
  /* تقليل المسافة العلوية للبلوكات أسفل الهيرو */
  padding: 0.45rem 1.5rem 0.85rem;
}

.mcp-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.mcp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.mcp-section-text {
  max-width: 720px;
  margin: 0 auto 1rem auto;
  color: #4B5563;
  text-align: center;
}

/* Reduce theme container padding above/below plugin content when using custom header */
body.mcp-movex-has-custom-header .site-main,
body.mcp-movex-has-custom-header .nv-content-wrap,
body.mcp-movex-has-custom-header .entry-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.mcp-movex-has-custom-header .entry-content > *:first-child {
  margin-top: 0 !important;
}

body.mcp-movex-has-custom-header .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

.mcp-lang-switcher {
  margin-top: 0.75rem;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
}

.mcp-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4B5563;
  background-color: #F9FAFB;
  text-decoration: none;
}

.mcp-lang-pill:hover,
.mcp-lang-pill:focus {
  border-color: #2563EB;
  color: #2563EB;
}

.mcp-lang-pill.mcp-lang-active {
  background-color: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
}

@media (max-width: 768px) {
  /* More compact language switcher on mobile: reduce gap and pill size */
  .mcp-lang-switcher {
    margin-top: 0.05rem;
    gap: 0.3rem;
  }

  .mcp-lang-pill {
    padding: 0.18rem 0.6rem;
    font-size: 0.72rem;
  }
}
