/* Home page (content/home-modern.php). Scoped to .mh because the old theme's stylesheets are still on the page. */
.mh { --ink: #0f172a; --muted: #5b6b7d; --line: #e3e8f0; --brand: #0b6b78; --brand-dark: #0b2534; --mint: #5eead4; font-family: "Inter", "Rubik", system-ui, sans-serif; color: var(--ink); background: #f4f7f9; }
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh a { text-decoration: none; }
.mh h1, .mh h2, .mh h3 { margin: 0; color: inherit; font-family: inherit; letter-spacing: 0; }
.mh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.mh-hero { background: radial-gradient(circle at 85% 10%, #12707d 0, transparent 45%), var(--brand-dark); color: #fff; padding: 60px 0; }
.mh-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.mh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mint); }
.mh-hero h1 { margin-top: 14px; font-size: 48px; line-height: 1.12; font-weight: 700; color: #fff; }
.mh-hero p { margin: 18px 0 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: #c6d4de; }
.mh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 11px; font-size: 15.5px; font-weight: 700; transition: background .15s, border-color .15s; }
.mh a.mh-btn-main { background: var(--mint); color: var(--brand-dark); }
.mh a.mh-btn-main:hover { background: #99f6e4; color: var(--brand-dark); }
.mh a.mh-btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.mh a.mh-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.mh a.mh-btn-line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.mh a.mh-btn-line:hover { border-color: var(--brand); color: var(--brand); }

.mh-picker { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.mh-picker h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.mh-devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mh-devices a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 86px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.mh-devices a i { font-size: 23px; color: var(--brand); }
.mh-devices a:hover { border-color: var(--brand); background: #e6f4f5; color: var(--brand); }
.mh-devices a.mh-more { background: #f4f7f9; }

.mh-trust { background: #fff; border-bottom: 1px solid var(--line); }
.mh-trust .mh-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.mh-trust .mh-wrap > div { display: flex; align-items: center; gap: 12px; }
.mh-trust i { flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #e6f4f5; color: var(--brand); font-size: 18px; }
.mh-trust span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.mh-trust b { display: block; font-size: 14.5px; color: var(--ink); }

.mh-sec { padding: 56px 0; }
.mh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.mh-head h2 { font-size: 30px; font-weight: 700; }
.mh-head a { color: var(--brand); font-weight: 700; font-size: 15px; white-space: nowrap; }

.mh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mh-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.mh-steps b { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-size: 15px; }
.mh-steps h3 { margin-top: 14px; font-size: 17px; font-weight: 700; }
.mh-steps p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.mh-shop { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mh-chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; scrollbar-width: none; }
.mh-chips::-webkit-scrollbar { display: none; }
.mh-chips a { flex: none; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; }
.mh-chips a:hover { border-color: var(--brand); color: var(--brand); }
.mh-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mh-product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.mh-product:hover { color: var(--ink); box-shadow: 0 10px 24px rgba(15,23,42,.1); transform: translateY(-2px); }
.mh-pimg { position: relative; display: block; flex: none; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.mh-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.mh-pname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 14px 2px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.mh-pmodels { margin: 0 14px; color: var(--muted); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-product b { margin: auto 14px 14px; padding-top: 8px; font-size: 16px; color: var(--brand); }

.mh-visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.mh-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--brand-dark); cursor: pointer; }
.mh-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-video span { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--brand-dark); font-size: 24px; transition: transform .15s; }
.mh-video span i { margin-left: 4px; }
.mh-video:hover span { transform: scale(1.08); }
.mh-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.mh-contact h2 { font-size: 30px; font-weight: 700; }
.mh-contact p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; text-align: right; }

@media (max-width: 980px) {
  .mh-hero { padding: 40px 0; }
  .mh-hero-in, .mh-visit { grid-template-columns: 1fr; gap: 30px; }
  .mh-hero h1 { font-size: 40px; }
  .mh-trust .mh-wrap, .mh-steps { grid-template-columns: 1fr 1fr; }
  .mh-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .mh-hero h1 { font-size: 32px; }
  .mh-hero p { font-size: 16px; }
  .mh-cta .mh-btn { flex: 1 1 100%; }
  .mh-picker { padding: 16px; }
  .mh-devices { grid-template-columns: repeat(3, 1fr); }
  .mh-trust .mh-wrap { gap: 14px 10px; }
  .mh-trust i { width: 36px; height: 36px; font-size: 15px; }
  .mh-sec { padding: 38px 0; }
  .mh-head h2, .mh-contact h2 { font-size: 24px; }
  .mh-steps { grid-template-columns: 1fr; }
  .mh-products { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Arabic */
.mh[dir="rtl"] .fa-arrow-right { transform: scaleX(-1); }
