/* styles.css
   Premium medical green palette + hero slider + reveal animations + z-shape cards
*/

/* ========= RESET / BASE ========= */
:root {
  --bg: #f6fbf8;
  --surface: rgba(255, 255, 255, 0.82);
  --card: #ffffff;
  --text: #0b1b13;
  --muted: rgba(11, 27, 19, 0.62);
  --border: rgba(9, 40, 24, 0.10);

  /* Medical green */
  --g-900: #05301f;
  --g-800: #064029;
  --g-700: #0a5a3a;
  --g-600: #0d7a4f;
  --g-500: #149a65;
  --g-400: #35b37d;
  --g-300: #7fd8b5;

  --glow: rgba(20, 154, 101, 0.35);
  --glow2: rgba(53, 179, 125, 0.25);

  --shadow: 0 18px 46px rgba(5, 48, 31, 0.12);
  --shadow2: 0 12px 28px rgba(5, 48, 31, 0.14);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;

  --max: 1380px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: clip; /* cleaner than hidden for modern browsers */
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
}

html[dir="rtl"] body {
  font-family: Cairo, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========= LAYOUT ========= */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* ========= BUTTONS / CHIPS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    background 220ms var(--ease), border-color 220ms var(--ease);
  box-shadow: 0 10px 20px rgba(5, 48, 31, 0.06);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(5, 48, 31, 0.12);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.btn--whatsapp {
  border-color: rgba(20, 154, 101, 0.22);
  background: linear-gradient(135deg, rgba(20, 154, 101, 0.12), rgba(255, 255, 255, 0.85));
}

.wa {
  filter: drop-shadow(0 10px 18px rgba(20, 154, 101, 0.22));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 154, 101, 0.10);
  border: 1px solid rgba(20, 154, 101, 0.18);
  font-weight: 800;
  color: var(--g-800);
  transition: transform 200ms var(--ease);
}
.chip:hover {
  transform: translateY(-1px);
}

/* ========= NAV ========= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(9, 40, 24, 0.08);
}

.nav__inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g-500), var(--g-300));
  box-shadow: 0 0 0 8px rgba(20, 154, 101, 0.12), 0 18px 30px rgba(20, 154, 101, 0.22);
}

.brand__name {
  font-size: 15px;
}

.nav__links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav__link {
  position: relative;
  font-weight: 800;
  font-size: 14px;
  color: rgba(11, 27, 19, 0.75);
  transition: color 200ms var(--ease);
}
.nav__link:hover {
  color: rgba(11, 27, 19, 1);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--g-500), var(--g-300));
}

.nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile menu */
.mobile {
  display: none;
  border-top: 1px solid rgba(9, 40, 24, 0.08);
}
.mobile__inner {
  padding: 14px 18px 18px;
  display: grid;
  gap: 10px;
}
.mobile__link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(9, 40, 24, 0.08);
  font-weight: 900;
}
.mobile__link.is-active {
  border-color: rgba(20, 154, 101, 0.18);
  box-shadow: 0 16px 32px rgba(5, 48, 31, 0.10);
}
.mobile.is-open{ display:block; }
.mobile__inner{
  padding: 14px 18px 18px;
  display:grid;
  gap: 10px;
}
.mobile__link{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(9,40,24,.08);
  font-weight: 900;
}
.mobile__link.is-active{
  border-color: rgba(32,167,119,.18);
  box-shadow: 0 16px 32px rgba(5,48,31,.10);
}

/* ========= LANGUAGE MENU ========= */
.lang {
  position: relative;
}
.lang__btn {
  cursor: pointer;
}
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
html[dir="rtl"] .lang__menu {
  right: auto;
  left: 0;
}
.lang.is-open .lang__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang__item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
html[dir="rtl"] .lang__item {
  text-align: right;
}
.lang__item:hover {
  background: rgba(20, 154, 101, 0.10);
}
.chev {
  opacity: 0.8;
}

/* ========= HERO ========= */
.hero {
  position: relative;
  padding: 34px 0 10px;
  overflow-x: clip; /* prevents any absolute bg from creating side space */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: -120px;
  background-image:
    linear-gradient(to right, rgba(5, 48, 31, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5, 48, 31, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent);
  opacity: 0.55;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.9;
}
.hero__glow--a {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(20, 154, 101, 0.32), transparent 60%);
  animation: floatA 10s ease-in-out infinite;
}
.hero__glow--b {
  width: 460px;
  height: 460px;
  right: -140px;
  top: -90px;
  background: radial-gradient(circle, rgba(53, 179, 125, 0.25), transparent 60%);
  animation: floatB 12s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 22px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-38px, 18px); }
}

.hero__inner {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.hero__copy {
  padding: 26px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 154, 101, 0.20);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(5, 48, 31, 0.08);
  font-weight: 900;
  color: rgba(11, 27, 19, 0.78);
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g-500), var(--g-300));
}

.hero__title {
  margin: 16px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.hero__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  animation: none;
}

.hero__sub {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.hero__arline {
  margin: 10px 0 0;
  font-weight: 900;
  color: rgba(5, 48, 31, 0.92);
}

.hero__meta {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.meta {
  border-radius: 18px;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  padding: 14px 14px;
  box-shadow: 0 14px 30px rgba(5, 48, 31, 0.07);
}
.meta__k {
  font-weight: 900;
  font-size: 12px;
  color: rgba(11, 27, 19, 0.70);
}
.meta__v {
  margin-top: 6px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(11, 27, 19, 0.95);
}

/* ========= SLIDER ========= */
.slider {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px;
  max-width: 100%;
}

.slider__track {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  filter: blur(10px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease),
    filter 520ms var(--ease);
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.slide.is-exit-left {
  opacity: 0;
  transform: translateX(-26px) scale(0.985);
  filter: blur(12px);
}

.slide.is-exit-right {
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  filter: blur(12px);
}

.slide__media {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: kenburns 8.5s ease-in-out infinite;
  filter: saturate(1.05) contrast(1.06);
}
@keyframes kenburns {
  0%,100% { transform: scale(1.06) translateX(0); }
  50% { transform: scale(1.12) translateX(-1.2%); }
}

.slide__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 20px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(9, 40, 24, 0.10);
  box-shadow: 0 18px 34px rgba(5, 48, 31, 0.10);
}

.slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(5, 48, 31, 0.75);
}
.slide__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g-500), var(--g-300));
}

.slide__text {
  margin-top: 6px;
  font-weight: 900;
  color: rgba(11, 27, 19, 0.95);
  line-height: 1.35;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 2px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(9, 40, 24, 0.18);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), width 180ms var(--ease);
}
.dot:hover {
  transform: translateY(-1px);
}
.dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--g-500), var(--g-300));
  border-color: rgba(20, 154, 101, 0.18);
}

/* ========= SECTION ========= */
.section {
  padding: 64px 0 80px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.h2 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(10px);
  animation: none;
}

.p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* ========= Z SHAPE ========= */
.z {
  margin-top: 30px;
  display: grid;
  gap: 22px;
}

.z__row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.z__row--rev {
  grid-template-columns: 0.95fr 1.05fr;
}
.z__row--rev .z__card {
  order: 2;
}
.z__row--rev .z__media {
  order: 1;
}

/* Card */
.card {
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(9, 40, 24, 0.10);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(360px 220px at 20% 10%, rgba(20, 154, 101, 0.18), transparent 60%),
    radial-gradient(320px 220px at 90% 30%, rgba(127, 216, 181, 0.16), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.card__name {
  font-weight: 900;
  font-size: 13px;
  color: rgba(11, 27, 19, 0.75);
}

.card__price {
  font-weight: 1000;
  font-size: 14px;
  color: rgba(11, 27, 19, 0.92);
}
.card__price span {
  font-weight: 900;
  font-size: 12px;
  color: rgba(11, 27, 19, 0.62);
}

.card__title {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card__desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.card__actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.link {
  font-weight: 1000;
  color: var(--g-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 160ms var(--ease);
}
.link::after {
  content: "→";
}
html[dir="rtl"] .link::after {
  content: "←";
}
.link:hover {
  transform: translateY(-1px);
}

/* Media card */
.media {
  border-radius: var(--r-xl);
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  padding: 18px;
  display: grid;
  place-items: center;
}

.media__frame {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 22px;
  background: radial-gradient(500px 220px at 30% 20%, rgba(20, 154, 101, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  border: 1px solid rgba(9, 40, 24, 0.10);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.media__frame img {
  width: min(360px, 80%);
  height: auto;
  transform: translateY(10px) scale(1.02);
  filter: drop-shadow(0 30px 40px rgba(5, 48, 31, 0.22));
}

.media__shine {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-60%);
  opacity: 0;
  pointer-events: none;
}

.media:hover .media__shine {
  opacity: 0.6;
  transform: translateX(60%);
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}

/* ========= REVEAL ANIMATIONS (CSS + JS toggles) ========= */
[data-reveal],
[data-inview] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
}

.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
}

/* Words reveal */
[data-reveal-words] .w {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
}

.in-view[data-reveal-words] .w,
[data-reveal-words].in-view .w {
  animation: wordUp 900ms var(--ease) forwards;
  animation-delay: var(--d);
}

@keyframes wordUp {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Tilt (subtle premium) */
[data-tilt] {
  transform-style: preserve-3d;
}
[data-tilt].tilt-active {
  transition: transform 120ms var(--ease);
}

/* ========= FOOTER ========= */
.footer {
  border-top: 1px solid rgba(9, 40, 24, 0.08);
  background: rgba(21, 141, 0, 0.119);
  backdrop-filter: blur(14px);
}
.footer__grid {
  padding: 36px 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.footer__brand {
  font-weight: 1000;
  letter-spacing: -0.02em;
}
.footer__h {
  font-weight: 1000;
  margin-bottom: 10px;
}
.footer__p {
  color: rgba(11, 27, 19, 0.68);
  line-height: 1.7;
  font-size: 14px;
}
.footer__p a {
  color: var(--g-700);
  font-weight: 900;
}
.footer__bottom {
  padding: 14px 0 20px;
  color: rgba(11, 27, 19, 0.55);
  font-weight: 800;
  font-size: 13px;
}

/* ========= FAB ========= */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--g-600), var(--g-400));
  color: white;
  box-shadow: 0 22px 40px rgba(20, 154, 101, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: transform 220ms var(--ease);
  z-index: 60;
}
.fab:hover {
  transform: translateY(-2px);
}
html[dir="rtl"] .fab {
  right: auto;
  left: 18px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .slider__track {
    height: 360px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav__links {
    display: none;
  }
  .nav__burger {
    display: inline-grid;
    place-items: center;
  }

  .slider__track {
    height: 320px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Force "media top + content bottom" everywhere on mobile */
  .z__row,
  .z__row--rev {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .z__row .media {
    order: 1;
  }
  .z__row .card {
    order: 2;
  }

  .media__frame {
    min-height: 260px;
    height: 260px;
  }

  .media__frame img {
    width: min(360px, 88%);
    height: auto;
    object-fit: contain;
  }

  .media__frame iframe {
    height: 320px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-inview] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .slide {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* --- Language inside burger menu --- */
.mobile__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(9, 40, 24, 0.08);
}

.mobile__label {
  font-weight: 1000;
  font-size: 12px;
  color: rgba(11, 27, 19, 0.65);
  margin-bottom: 10px;
}

.mobile__langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile__lang {
  width: 100%;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 1000;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.mobile__lang:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(5, 48, 31, 0.10);
}

.mobile__lang.is-active {
  border-color: rgba(20, 154, 101, 0.22);
  background: linear-gradient(135deg, rgba(20, 154, 101, 0.12), rgba(255, 255, 255, 0.88));
}
/* Burger language only on mobile */
.mobile__group { display: none; }

@media (max-width: 760px) {
  .mobile__group { display: block; }
}
/* Hide old desktop language dropdown (we use burger language instead) */
.nav__actions .lang {
  display: none !important;
}
/* Desktop: show navbar language dropdown */
.nav__actions .lang {
  display: inline-flex !important;
}

/* Mobile: hide navbar language dropdown + show burger language */
.mobile__group { 
  display: none; 
}

@media (max-width: 760px) {
  .nav__actions .lang {
    display: none !important;
  }

  .mobile__group {
    display: block;
  }
}
/* ========= BENEFITS (simple full-width icons like reference) ========= */
.benefits{
  padding: 70px 0 40px;
}

.benefits__inner{
  max-width: 1240px;
}

.benefits__grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 38px 34px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.benefit{
  width: 100%;
  max-width: 260px;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease),
    filter 800ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.benefit.in-view{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.benefit__icon{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: rgba(6,64,41,0.95);

  border: 4px solid rgba(10,90,58,0.65);
  background: rgba(255,255,255,0.35);
  box-shadow:
    0 18px 44px rgba(5,48,31,0.10),
    0 0 0 10px rgba(20,154,101,0.06);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.benefit__icon svg{
  width: 42px;
  height: 42px;
}

.benefit__t{
  margin: 0;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.01em;
}

.benefit__p{
  margin: 12px 0 0;
  color: rgba(11,27,19,0.68);
  font-size: 15px;
  line-height: 1.75;
}

.benefit:hover .benefit__icon{
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 26px 60px rgba(5,48,31,0.16),
    0 0 0 12px rgba(20,154,101,0.09);
}

/* Responsive like reference */
@media (max-width: 1200px){
  .benefits__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit{ max-width: 320px; }
}

@media (max-width: 760px){
  .benefits{ padding: 44px 0 18px; }
  .benefits__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .benefit__icon{ width: 82px; height: 82px; }
  .benefit__t{ font-size: 16px; }
  .benefit__p{ font-size: 14px; }
}

@media (max-width: 420px){
  .benefits__grid{ grid-template-columns: 1fr; }
}


/* ========= Featured products (like reference image) ========= */
.section--featured {
  padding-top: 46px;
}

.featured {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: stretch;
}

/* LEFT promo */
.promo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 360px auto;
}

.promo__media {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(20, 154, 101, 0.18), transparent 60%),
    radial-gradient(700px 360px at 90% 20%, rgba(127, 216, 181, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(6, 64, 41, 0.15), rgba(255, 255, 255, 0.0)),
    url("https://tse2.mm.bing.net/th/id/OIP.C5a_rFOXzJU-zGq_HkkO9QHaE8?w=1380&h=920&rs=1&pid=ImgDetMain&o=7&rm=3");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.05);
}

/* لو معندكش assets/hero-test.jpg مش هتبوّظ، الخلفيات اللي فوق هتشتغل لوحدها */

.promo__content {
  padding: 20px 22px 22px;
}

.promo__title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.promo__desc {
  margin: 12px 0 0;
  color: rgba(11, 27, 19, 0.66);
  line-height: 1.75;
  max-width: 62ch;
}

.promo__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* RIGHT grid */
.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pitem {
  border-radius: 20px;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(5, 48, 31, 0.08);
  overflow: hidden;
  position: relative;

  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease),
    filter 800ms var(--ease),
    box-shadow 220ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.pitem.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.pitem:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(5, 48, 31, 0.14);
}

.pitem__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(5, 48, 31, 0.85);
  background: rgba(20, 154, 101, 0.12);
  border: 1px solid rgba(20, 154, 101, 0.18);
  z-index: 2;
}

html[dir="rtl"] .pitem__badge {
  left: auto;
  right: 12px;
}

.pitem__badge--new {
  background: rgba(127, 216, 181, 0.18);
  border-color: rgba(127, 216, 181, 0.25);
}

.pitem__img {
  height: 210px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.pitem__img img {
  width: min(220px, 92%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(5, 48, 31, 0.18));
  transform: translateY(6px);
  transition: transform 220ms var(--ease);
}

.pitem:hover .pitem__img img {
  transform: translateY(2px) scale(1.01);
}

.pitem__meta {
  padding: 14px 16px 16px;
}

.pitem__kicker {
  font-weight: 900;
  font-size: 12px;
  color: rgba(11, 27, 19, 0.60);
}

.pitem__name {
  margin-top: 6px;
  font-weight: 1000;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(11, 27, 19, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pitem__bottom {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pitem__price {
  font-weight: 1000;
  color: rgba(11, 27, 19, 0.92);
}
.pitem__price span {
  font-weight: 900;
  font-size: 12px;
  color: rgba(11, 27, 19, 0.60);
}

.pitem__arrow {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.70);
  transition: transform 200ms var(--ease);
}

.pitem:hover .pitem__arrow {
  transform: translateX(2px);
}
html[dir="rtl"] .pitem:hover .pitem__arrow {
  transform: translateX(-2px);
}

/* Responsive */
@media (max-width: 1080px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .promo {
    grid-template-rows: 320px auto;
  }
}

@media (max-width: 760px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }
  .pitem__img {
    height: 220px;
  }
  .promo__title {
    font-size: 28px;
  }
}


/* ========= Auto-scrolling Gallery (MegaFood-like) ========= */
.gallery {
  padding: 46px 0 24px;
}

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.gallery__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: rgba(6, 64, 41, 0.95);
}

.gallery__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 1000;
  color: rgba(6, 64, 41, 0.9);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(5, 48, 31, 0.08);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.gallery__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(5, 48, 31, 0.12);
}
.gallery__ctaDot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(20, 154, 101, 0.12);
  border: 1px solid rgba(20, 154, 101, 0.18);
}

/* Rail */
.gallery__rail {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0 6px;
}

/* Track (the moving row) */
.gallery__track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: marqueeRight 34s linear infinite;
  will-change: transform;
}

/* Pause on hover (nice premium) */
.gallery__rail:hover .gallery__track {
  animation-play-state: paused;
}

/* Direction: user asked "يمشي يمين" */
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}

/* If page is RTL, keep same direction to the right (still ok).
   لو حبيت تعكسه في RTL غيّر keyframes أو اعمل keyframes تانية. */

/* Item */
.gitem {
  display: grid;
  gap: 14px;
  min-width: clamp(240px, 24vw, 360px);
  text-decoration: none;
  color: inherit;
}

.gitem__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 44px rgba(5, 48, 31, 0.10);
  transform: translateY(0);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

/* Important: image keeps its natural size */
.gitem__media img {
  display: block;
  width: 100%;
  height: auto;           /* keeps real aspect ratio */
  object-fit: contain;    /* no cropping */
  background: rgba(255,255,255,0.35);
}

/* Hover */
.gitem:hover .gitem__media {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(5, 48, 31, 0.16);
}

.gitem__label {
  font-weight: 1000;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: rgba(6, 64, 41, 0.90);
}

/* Responsive */
@media (max-width: 760px) {
  .gallery__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .gitem__label {
    font-size: 18px;
  }
  .gallery__track {
    animation-duration: 26s;
  }
}
/* ثابت مقاس الصور داخل الكاروسيل */
.gitem {
  min-width: 320px;   /* عرض الكارد */
  max-width: 320px;
}

.gitem__media {
  height: 240px;      /* ارتفاع ثابت */
  border-radius: 18px;
  overflow: hidden;
}

.gitem__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* لو عايز نفس إحساس MegaFood */
  /* object-fit: contain; */ /* لو عايز بدون قص خالص */
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .gitem { min-width: 280px; max-width: 280px; }
  .gitem__media { height: 210px; }
}

@media (max-width: 760px) {
  .gitem { min-width: 240px; max-width: 240px; }
  .gitem__media { height: 180px; }
}
/* ========= Premium footer contact card ========= */
.footer__card {
  border-radius: 24px;
  border: 1px solid rgba(9, 40, 24, 0.10);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(5, 48, 31, 0.10);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.footer__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(420px 260px at 18% 12%, rgba(20, 154, 101, 0.14), transparent 60%),
    radial-gradient(420px 260px at 92% 28%, rgba(127, 216, 181, 0.16), transparent 60%);
  pointer-events: none;
}

.footer__card > * { position: relative; z-index: 1; }

.footer__cardHead {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.footer__cardIcon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: rgba(6, 64, 41, 0.95);
  background: rgba(20, 154, 101, 0.10);
  border: 1px solid rgba(20, 154, 101, 0.18);
}

.footer__small {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(11, 27, 19, 0.60);
}

.footer__rows {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.footer__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(9, 40, 24, 0.08);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.footer__row:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(5, 48, 31, 0.08);
}

.footer__rowIcon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(6, 64, 41, 0.95);
  background: rgba(20, 154, 101, 0.10);
  border: 1px solid rgba(20, 154, 101, 0.16);
}

.footer__label {
  font-weight: 1000;
  font-size: 12px;
  color: rgba(11, 27, 19, 0.60);
}

.footer__value {
  margin-top: 5px;
  font-weight: 900;
  color: rgba(11, 27, 19, 0.92);
  line-height: 1.55;
  font-size: 14px;
}

.footer__value a {
  color: rgba(6, 64, 41, 0.95);
  font-weight: 1000;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 154, 101, 0.22);
}

.footer__value a:hover {
  border-bottom-color: rgba(20, 154, 101, 0.50);
}

.footer__sep {
  margin: 0 8px;
  color: rgba(11, 27, 19, 0.35);
}

.footer__cardActions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

html[dir="rtl"] .footer__cardHead,
html[dir="rtl"] .footer__row {
  direction: rtl;
}

@media (max-width: 760px) {
  .footer__card { padding: 16px; }
}

/* ===== Premium About band (Contact page) ===== */
.aboutBand{
  margin-top: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(9, 40, 24, 0.10);
  background:
    radial-gradient(520px 240px at 10% 10%, rgba(20,154,101,0.14), transparent 60%),
    radial-gradient(520px 240px at 90% 20%, rgba(127,216,181,0.16), transparent 60%),
    rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 22px 22px;
}

.aboutBand__head{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.aboutBand__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--g-800);
  background: rgba(20,154,101,0.10);
  border: 1px solid rgba(20,154,101,0.18);
  box-shadow: 0 14px 26px rgba(5,48,31,0.08);
  flex: 0 0 auto;
}

.aboutBand__kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(5,48,31,0.70);
}

.aboutBand__kicker::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g-500), var(--g-300));
}

.aboutBand__title{
  margin: 8px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.aboutBand__sub{
  margin: 8px 0 0;
  color: rgba(11,27,19,0.65);
  font-weight: 700;
  line-height: 1.7;
  max-width: 90ch;
}

.aboutBand__body{
  margin: 14px 0 0;
  color: rgba(11,27,19,0.70);
  line-height: 1.9;
  font-size: 15px;
  max-width: 120ch;
}

/* RTL alignment */
html[dir="rtl"] .aboutBand__head{
  flex-direction: row-reverse;
}
html[dir="rtl"] .aboutBand__titles{
  text-align: right;
}
