/* =========================================================
   SmartMed — National Day 96 offers (see includes/offers.php)
   ========================================================= */
:root { --of-green: #0b6b3a; --of-green-soft: #eaf6ef; --of-gold: #b8923a; }

.offers {
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(11,107,58,.08), transparent 65%),
    radial-gradient(700px 380px at 0% 100%, rgba(26,79,214,.08), transparent 65%),
    linear-gradient(180deg, #fff, var(--brand-tint));
}

/* ---------- intro ---------- */
.of-intro { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.of-greet { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); cursor: zoom-in; aspect-ratio: 4 / 5; }
.of-greet img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.of-greet:hover img { transform: scale(1.03); }
.of-head .kicker { color: var(--of-green); }
.of-head h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.12; margin-bottom: 16px; color: var(--of-green); }
.of-head > p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 24px; }
.of-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.of-chips li {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 16px; font-family: var(--display); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm);
}
.of-chips .icon { width: 16px; height: 16px; color: var(--of-green); stroke-width: 2.6; }

/* ---------- cards ---------- */
.of-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.of-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.of-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.of-poster {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #eef2f8;
  aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; cursor: zoom-in;
}
.of-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.of-poster:hover img { transform: scale(1.03); }
.of-off {
  display: inline-block; margin-inline-start: 6px; vertical-align: 1px; background: linear-gradient(135deg, var(--of-gold), #d6b46a);
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 11.5px; padding: 2px 10px; border-radius: 100px;
}
.of-zoom {
  position: absolute; bottom: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: var(--shadow-sm);
}
.of-body { padding: 20px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.of-body h3 { font-size: 1.32rem; color: var(--ink); margin-bottom: 6px; }
.of-tag { font-family: var(--display); font-weight: 700; color: var(--of-green); margin-bottom: 4px; line-height: 1.45; }
.of-sub { color: var(--muted); font-size: .94rem; margin-bottom: 16px; line-height: 1.6; }
.of-body h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
body.lang-ar .of-body h4 { letter-spacing: 0; font-size: .95rem; }
.of-list { display: grid; gap: 9px; margin-bottom: 20px; }
.of-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; font-weight: 500; line-height: 1.5; }
.of-list span { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--of-green-soft); color: var(--of-green); }
.of-list .icon { width: 13px; height: 13px; stroke-width: 3; }
.of-price {
  margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  background: var(--of-green-soft); border: 1px solid rgba(11,107,58,.16); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px;
}
.of-price .lbl { width: 100%; font-size: .8rem; font-weight: 600; color: var(--muted); }
.of-price .now { font-family: var(--display); font-weight: 700; color: var(--of-green); }
.of-price .now b { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.of-price .was { color: #9aa3b2; font-weight: 600; font-size: .95rem; }
.btn-wa { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.btn-wa:hover { background: #1eb955; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,211,102,.4); }
.of-dots { display: none; }

/* ---------- lightbox ---------- */
.of-lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(8,14,30,.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.of-lightbox[hidden] { display: none; }
.of-lightbox img { max-width: min(92vw, 620px); max-height: 88vh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.of-lb-close {
  position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center;
}
.of-lb-close:hover { background: rgba(255,255,255,.26); }
body.of-lb-open { overflow: hidden; }
body.of-lb-open .fab-whatsapp, body.of-lb-open .hero-audio { opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .of-grid { grid-template-columns: repeat(2, 1fr); }
  .of-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 13px); }
  .of-intro { grid-template-columns: 280px 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .of-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; text-align: center; }
  .of-greet { max-width: 300px; margin: 0 auto; }
  .of-head > p { margin-inline: auto; }
  .of-chips { justify-content: center; }
  .of-head h2 { font-size: 2rem; }

  /* swipeable row on phones */
  .of-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-inline: -24px; padding: 6px 24px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .of-grid::-webkit-scrollbar { display: none; }
  .of-card, .of-card:last-child:nth-child(odd) { flex: 0 0 min(84vw, 340px); width: auto; scroll-snap-align: center; }
  .of-card:hover { transform: none; }
  .of-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
  .of-dots span { width: 8px; height: 8px; border-radius: 4px; background: #cfd6e2; transition: width .25s, background .25s; }
  .of-dots span.on { width: 22px; background: var(--of-green); }
}
@media (hover: none) { .of-card:hover, .of-poster:hover img, .of-greet:hover img { transform: none; } }
