/* =========================================================
   META gestion — Full-bleed commercial homepage (2026f)
   Edge-to-edge bands; text/cards stay in .hm-rail
   ========================================================= */

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body.mg-fresh {
  --hm-ink: #07131a;
  --hm-text: #12232c;
  --hm-muted: #5d6f78;
  --hm-line: rgba(7, 19, 26, 0.1);
  --hm-bg: #f3f6f8;
  --hm-surface: #ffffff;
  --hm-teal: #00a89e;
  --hm-teal-deep: #07887f;
  --hm-teal-soft: #e5f8f6;
  --hm-sand: #f4efe4;
  --hm-dark: #07131a;
  --hm-radius: 16px;
  --hm-shadow: 0 20px 48px rgba(7, 19, 26, 0.1);
  --hm-rail: min(1240px, calc(100% - 2.5rem));
  --font-display: "Sora", "Noto Sans Arabic", system-ui, sans-serif;
  --font: "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font);
  color: var(--hm-text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 168, 158, 0.14), transparent 58%),
    linear-gradient(180deg, #fbfcfd 0%, var(--hm-bg) 40%, #e9eef1 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body.mg-fresh main {
  width: 100%;
  max-width: 100%;
}

/* Content rail — text/cards only, not media bands */
.hm-rail {
  width: var(--hm-rail);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

@media (max-width: 575.98px) {
  body.mg-fresh {
    --hm-rail: calc(100% - 1.5rem);
  }
}

body.mg-fresh h1,
body.mg-fresh h2,
body.mg-fresh h3,
body.mg-fresh .hm-title,
body.mg-fresh .hm-price,
body.mg-fresh .hm-stat-card strong {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  color: var(--hm-ink);
  font-weight: 750;
  line-height: 1.15;
}

/* Nav full width */
body.mg-fresh .mg-nav {
  width: 100%;
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hm-line);
}

body.mg-fresh .mg-nav .container {
  max-width: 1240px;
}

body.mg-fresh .mg-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 10px;
}

body.mg-fresh .mg-nav .nav-link:hover,
body.mg-fresh .mg-nav .nav-link.active {
  background: var(--hm-teal-soft) !important;
  color: var(--hm-teal-deep) !important;
  box-shadow: none;
}

body.mg-fresh .btn-mg {
  background: var(--hm-teal);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 168, 158, 0.25);
}

body.mg-fresh .btn-mg:hover {
  background: var(--hm-teal-deep);
  filter: none;
}

body.mg-fresh .mg-footer {
  width: 100%;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(0, 168, 158, 0.18), transparent 55%),
    var(--hm-dark);
}

body.mg-fresh .mg-footer .container {
  max-width: 1240px;
}

/* ===== Full-bleed hero ===== */
.hm-hero {
  position: relative;
  width: 100%;
  padding: 3.25rem 0 2rem;
  overflow: hidden;
}

.hm-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 15% 0%, rgba(0, 168, 158, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 10%, rgba(184, 148, 31, 0.08), transparent 50%);
}

.hm-hero-top {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 0;
}

.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  color: var(--hm-ink);
}

.hm-pill i {
  color: var(--hm-teal);
}

.hm-brand {
  margin: 0 0 1rem;
}

.hm-brand img {
  width: min(420px, 88vw);
  height: auto;
}

.hm-title {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  margin: 0 auto 0.9rem;
  max-width: 18ch;
}

.hm-lead {
  font-size: 1.1rem;
  color: var(--hm-muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hm-btn-primary {
  background: var(--hm-teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 168, 158, 0.28);
}

.hm-btn-primary:hover {
  background: var(--hm-teal-deep);
  color: #fff;
  transform: translateY(-2px);
}

.hm-btn-ghost {
  background: var(--hm-surface);
  color: var(--hm-ink);
  border: 1.5px solid var(--hm-line);
}

.hm-btn-ghost:hover {
  background: var(--hm-ink);
  color: #fff;
  border-color: var(--hm-ink);
  transform: translateY(-2px);
}

/* ===== Full-bleed modern carousel — show full image ===== */
.hm-product-band {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 1.5rem;
  background: var(--hm-dark);
}

.hm-carousel {
  position: relative;
  width: 100%;
  margin: 0;
}

.hm-carousel-frame {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0, 168, 158, 0.12), transparent 65%),
    #07131a;
}

.hm-slide-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(82vh, 880px);
  padding: 1.25rem clamp(0.5rem, 3vw, 3rem);
  box-sizing: border-box;
}

.hm-slide-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 840px);
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hm-slide-stage-portrait img {
  max-height: min(78vh, 840px);
  max-width: min(420px, 88vw);
}

.hm-carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.hm-carousel.carousel-fade .carousel-item.active,
.hm-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hm-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.hm-car-dots {
  margin-bottom: 1.25rem;
  z-index: 6;
}

.hm-car-dots [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.35);
  border: 0;
  opacity: 1;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hm-car-dots .active {
  width: 44px;
  background-color: var(--hm-teal);
}

.hm-car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hm-ink);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 12px 32px rgba(7, 19, 26, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hm-car-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hm-car-btn.prev {
  left: clamp(0.75rem, 2vw, 1.75rem);
}

.hm-car-btn.next {
  right: clamp(0.75rem, 2vw, 1.75rem);
}

.hm-tabs-rail {
  padding-top: 1.15rem;
  padding-bottom: 0.25rem;
}

.hm-car-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.hm-car-tab {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  text-align: start;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hm-car-tab i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 168, 158, 0.2);
  color: #5ee0d5;
  flex-shrink: 0;
  font-size: 1rem;
}

.hm-car-tab strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
  color: #fff;
}

.hm-car-tab small {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.hm-car-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 168, 158, 0.45);
  transform: translateY(-2px);
}

.hm-car-tab.active {
  border-color: var(--hm-teal);
  background: rgba(0, 168, 158, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 168, 158, 0.25);
}

.hm-car-tab.active i {
  background: var(--hm-teal);
  color: #fff;
}

/* ===== Full-bleed sections ===== */
.hm-section {
  width: 100%;
  padding: 5rem 0;
}

.hm-section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f4 100%);
}

.hm-section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hm-section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  margin-bottom: 0.75rem;
}

.hm-section-head > p {
  color: var(--hm-muted);
  margin-bottom: 0.75rem;
}

.hm-section-head.light h2 {
  color: #fff;
}

.hm-section-head.light > p {
  color: rgba(255, 255, 255, 0.7);
}

.hm-eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-teal-deep);
}

.hm-eyebrow.light {
  color: var(--hm-teal);
}

.hm-body {
  color: var(--hm-muted);
  font-size: 1.02rem;
  max-width: 40rem;
}

.hm-stats {
  background: #fff;
  border-block: 1px solid var(--hm-line);
  padding: 2.5rem 0;
}

.hm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hm-stat-card {
  background: var(--hm-bg);
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  padding: 1.4rem 1.1rem;
  text-align: center;
}

.hm-stat-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--hm-teal-deep);
  margin-bottom: 0.25rem;
}

.hm-stat-card span {
  color: var(--hm-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hm-note {
  text-align: center;
  margin: 1.25rem 0 0;
  color: var(--hm-muted);
  font-size: 0.88rem;
}

.hm-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--hm-radius);
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 168, 158, 0.35);
  box-shadow: var(--hm-shadow);
}

.hm-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.hm-card p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.95rem;
}

.hm-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--hm-teal-soft);
  color: var(--hm-teal-deep);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hm-icon.sm {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.hm-icon-alt {
  background: var(--hm-sand);
  color: #8a6f16;
}

.hm-icon.on-dark {
  background: rgba(0, 168, 158, 0.16);
  color: #5ee0d5;
}

.hm-media-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  background: #fff;
}

.hm-media-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hm-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.hm-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.hm-list i {
  color: var(--hm-teal-deep);
  font-size: 1.15rem;
}

.hm-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hm-link-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(0, 168, 158, 0.35);
  box-shadow: var(--hm-shadow);
}

.hm-link-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.hm-link-card p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.9rem;
}

.hm-link-card > .bi-arrow-up-right {
  margin-inline-start: auto;
  color: var(--hm-teal-deep);
}

.hm-price-card {
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
}

.hm-price-card.featured {
  border-color: var(--hm-teal);
  box-shadow: inset 4px 0 0 var(--hm-teal);
}

.hm-tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--hm-teal-soft);
  color: var(--hm-teal-deep);
}

.hm-tag.hot {
  background: var(--hm-sand);
  color: #7a6210;
}

.hm-price-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

.hm-price {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hm-price small {
  font-size: 0.85rem;
  color: var(--hm-muted);
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
}

.hm-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hm-price-card li {
  padding: 0.35rem 0;
  color: var(--hm-muted);
  font-weight: 600;
}

.hm-price-card > p {
  color: var(--hm-muted);
  margin-bottom: 1.25rem;
}

.hm-text-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--hm-ink);
  text-decoration: none;
}

.hm-text-link:hover {
  color: var(--hm-teal-deep);
}

.hm-dark {
  width: 100%;
  background:
    radial-gradient(ellipse 55% 50% at 100% 0%, rgba(0, 168, 158, 0.22), transparent 55%),
    linear-gradient(145deg, #07131a 0%, #0f2a33 100%);
  color: rgba(255, 255, 255, 0.78);
}

.hm-step-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--hm-teal);
  margin-bottom: 0.85rem;
}

.hm-step-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hm-step-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.hm-quote-card {
  margin: 0;
  padding: 2rem;
  border-radius: 18px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
}

.hm-quote-card > i {
  font-size: 1.8rem;
  color: var(--hm-teal);
  opacity: 0.7;
}

.hm-quote-card p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hm-ink);
  margin: 0.75rem 0 1rem;
  line-height: 1.5;
}

.hm-quote-card footer {
  color: var(--hm-muted);
  font-size: 0.92rem;
}

.hm-cta {
  background: var(--hm-bg);
}

.hm-cta-card {
  text-align: center;
  padding: 3.25rem 1.5rem;
  border-radius: 22px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
}

.hm-cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.hm-cta-card > p {
  color: var(--hm-muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .hm-car-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .hm-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hm-slide-stage {
    min-height: min(62vh, 620px);
    padding: 1rem 2.5rem;
  }

  .hm-slide-stage img {
    max-height: min(58vh, 580px);
  }
}

@media (max-width: 575.98px) {
  .hm-car-tabs {
    grid-template-columns: 1fr;
  }

  .hm-hero {
    padding: 2rem 0 1.25rem;
  }

  .hm-section {
    padding: 3.5rem 0;
  }

  .hm-slide-stage {
    min-height: 300px;
    padding: 0.75rem 0.5rem;
  }

  .hm-slide-stage img {
    max-height: 280px;
    border-radius: 8px;
  }

  .hm-slide-stage-portrait img {
    max-width: min(220px, 70vw);
    max-height: 280px;
  }

  .hm-car-btn {
    width: 42px;
    height: 42px;
  }
}

html[dir="rtl"] .hm-car-btn.prev {
  left: auto;
  right: clamp(0.75rem, 2vw, 1.75rem);
}

html[dir="rtl"] .hm-car-btn.next {
  right: auto;
  left: clamp(0.75rem, 2vw, 1.75rem);
}

html[dir="rtl"] .hm-title,
html[dir="rtl"] .hm-section-head h2 {
  letter-spacing: 0;
}
