/* =========================================================================
   Rejuva Pharmaceutical — stylesheet
   Brand palette derived from the logo: deep forest green, leaf green, cream.
   ========================================================================= */

:root {
  /* Greens */
  --green-950: #0f3d1e;
  --green-900: #16532a;
  --green-800: #1d6630;
  --green-700: #2a7d3b;   /* logo "REJUVA" dark green */
  --green-600: #3a9446;
  --leaf-700:  #5a9e36;
  --leaf-600:  #74b73f;   /* logo "PHARMACEUTICAL" / light leaf */
  --leaf-500:  #8cc63f;
  --leaf-400:  #a7d65f;

  /* Neutrals */
  --cream:     #f7f4e9;   /* logo background */
  --cream-2:   #fbf9f1;
  --cream-3:   #f1ecdb;
  --ink:       #18241c;
  --body:      #3f4a42;
  --muted:     #6b766e;
  --line:      #e4e7df;
  --white:     #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 61, 30, .06), 0 2px 8px rgba(15, 61, 30, .05);
  --shadow:    0 10px 30px -12px rgba(15, 61, 30, .22);
  --shadow-lg: 0 28px 60px -22px rgba(15, 61, 30, .32);
  --ring:      0 0 0 4px rgba(116, 183, 63, .28);

  /* Geometry */
  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --container:  1180px;

  /* Type */
  --font-head: "Poppins", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
}

/* RTL switches the heading/body fonts to Arabic-first stacks */
html[dir="rtl"] {
  --font-head: "Tajawal", "Poppins", system-ui, sans-serif;
  --font-body: "Tajawal", "Inter", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream-2);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}

::selection { background: var(--leaf-400); color: var(--green-950); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--cream { background: var(--cream); }
.section--cream2 { background: var(--cream-2); }
.section--white { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(116, 183, 63, .14);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -.02em;
}
.section-title .accent { color: var(--green-700); }
.section-lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--green-700), var(--leaf-600));
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(42, 125, 59, .65);
}
.btn--primary:hover { box-shadow: 0 18px 30px -12px rgba(42, 125, 59, .7); }

.btn--ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--green-800);
  border-color: rgba(42, 125, 59, .28);
}
.btn--ghost:hover { background: #fff; border-color: var(--green-700); }

.btn--light { background: #fff; color: var(--green-800); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color:#fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }

/* arrow nudge */
.btn .arrow { transition: transform .2s ease; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 241, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
/* Frosted-glass header only on wide screens, where the mobile off-canvas
   menu is not used. backdrop-filter establishes a containing block for
   position:fixed descendants, which would break the mobile menu. */
@media (min-width: 861px) {
  .site-header {
    background: rgba(251, 249, 241, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(15, 61, 30, .5);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--body);
  padding: 9px 14px;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--green-700); background: rgba(116,183,63,.1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--green-800);
  transition: background .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: #fff; border-color: var(--green-600); }
.lang-toggle svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 7px); }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translate(-50%, 0) rotate(45deg); }
body.menu-open .nav-toggle span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(64px, 9vw, 120px);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(116,183,63,.22), transparent 60%),
    radial-gradient(900px 600px at -5% 10%, rgba(42,125,59,.12), transparent 55%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  font-family: var(--font-head);
  color: var(--green-800);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(116,183,63,.18);
  display: grid; place-items: center;
}
.hero-badge .dot svg { width: 13px; height: 13px; color: var(--green-700); }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--green-700), var(--leaf-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--body);
  max-width: 560px;
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 30px;
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 14.5px;
}
.hero-trust .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-trust .check svg { width: 13px; height: 13px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  border: 1px solid var(--line);
  z-index: 2;
}
.hero-card .logo-big {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}
.hero-card .tag {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: .02em;
}
.hero-mini {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.hero-mini div {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.hero-mini b {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--green-700);
  line-height: 1;
}
.hero-mini span { font-size: 12.5px; color: var(--muted); }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .55;
  z-index: 1;
}
.hero-blob.b1 { width: 150px; height: 150px; background: var(--leaf-400);
  inset-block-start: -30px; inset-inline-end: -28px; }
.hero-blob.b2 { width: 120px; height: 120px; background: rgba(42,125,59,.4);
  inset-block-end: -34px; inset-inline-start: -30px; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =========================================================================
   Stats strip
   ========================================================================= */
.stats {
  position: relative;
  margin-top: -1px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700) 70%, var(--leaf-700));
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-block: 44px;
}
.stat { text-align: center; padding: 8px 12px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute;
  inset-inline-start: 0; top: 18%; height: 64%;
  width: 1px; background: rgba(255,255,255,.18);
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--leaf-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.85); }

/* =========================================================================
   About + values
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about-copy p { color: var(--body); margin-top: 18px; }

.vm-cards { display: grid; gap: 16px; }
.vm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 5px; background: linear-gradient(var(--green-700), var(--leaf-600));
}
.vm-card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(116,183,63,.14); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 14px;
}
.vm-card .ic svg { width: 24px; height: 24px; }
.vm-card h3 { font-size: 19px; margin-bottom: 6px; }
.vm-card p { font-size: 15px; color: var(--muted); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.value {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(116,183,63,.4); }
.value .ic {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--leaf-600));
  color: #fff; display: grid; place-items: center; margin-bottom: 18px;
}
.value .ic svg { width: 27px; height: 27px; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { font-size: 14.5px; color: var(--muted); }

/* =========================================================================
   Flagship product
   ========================================================================= */
.flagship { background:
  radial-gradient(700px 420px at 100% 0%, rgba(116,183,63,.16), transparent 60%),
  var(--cream); }
.flagship-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.flagship-visual {
  position: relative;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.flagship-visual::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(116,183,63,.45), transparent 70%);
  inset-block-start: -90px; inset-inline-end: -90px;
}
.flagship-visual .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase;
  position: relative; z-index: 1;
}
html[dir="rtl"] .flagship-visual .pill { letter-spacing: 0; }
.flagship-visual h3 {
  color: #fff; font-size: clamp(28px, 4vw, 40px); margin-top: 20px; position: relative; z-index: 1;
}
.flagship-visual .ar-name { color: var(--leaf-400); font-size: 20px; margin-top: 4px; position: relative; z-index: 1; }
.flagship-visual .desc { color: rgba(255,255,255,.85); margin-top: 16px; position: relative; z-index: 1; }

.flagship-big {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 30px; position: relative; z-index: 1;
}
.flagship-big .x { font-family: var(--font-head); font-weight: 800; font-size: 76px; line-height: .9;
  background: linear-gradient(120deg, #fff, var(--leaf-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.flagship-big small { font-size: 15px; color: rgba(255,255,255,.85); max-width: 220px; }

.dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 28px; position: relative; z-index: 1;
}
.dual div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 16px;
}
.dual h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.dual p { font-size: 13px; color: rgba(255,255,255,.78); }

/* flagship content side */
.flagship-copy .feature {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.flagship-copy .feature:last-of-type { border-bottom: none; }
.flagship-copy .feature .ic {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(116,183,63,.14); color: var(--green-700);
  display: grid; place-items: center;
}
.flagship-copy .feature .ic svg { width: 25px; height: 25px; }
.flagship-copy .feature h4 { font-size: 17px; margin-bottom: 3px; }
.flagship-copy .feature p { font-size: 15px; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px;
}
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.fact span { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] .fact span { letter-spacing: 0; }
.fact b { font-family: var(--font-head); color: var(--ink); font-size: 16px; }
.fact.price b { color: var(--green-700); font-size: 22px; }

.flagship-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =========================================================================
   Products grid
   ========================================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.product::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--leaf-500));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
html[dir="rtl"] .product::after { transform-origin: right; }
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(116,183,63,.45); }
.product:hover::after { transform: scaleX(1); }

.product .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product .ic {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(42,125,59,.12), rgba(116,183,63,.18));
  color: var(--green-700); display: grid; place-items: center;
}
.product .ic svg { width: 30px; height: 30px; }
.badge {
  font-family: var(--font-head); font-weight: 600; font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(116,183,63,.16); color: var(--green-800);
}
html[dir="rtl"] .badge { letter-spacing: 0; }
.badge.flag { background: linear-gradient(135deg, var(--green-700), var(--leaf-600)); color: #fff; }

.product h3 { font-size: 21px; margin-top: 20px; }
.product .ar { color: var(--green-700); font-weight: 600; font-family: var(--font-head); font-size: 16px; margin-top: 2px; }
.product p { font-size: 15px; color: var(--muted); margin-top: 12px; flex-grow: 1; }
.product .cat {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--green-700); font-family: var(--font-head);
}
.product .cat svg { width: 16px; height: 16px; }

.products-note {
  margin-top: 36px; text-align: center; color: var(--muted); font-size: 14.5px;
}

/* =========================================================================
   Quality band
   ========================================================================= */
.quality { background: linear-gradient(160deg, var(--green-950), var(--green-800)); color: #fff; }
.quality .section-title { color: #fff; }
.quality .section-lead { color: rgba(255,255,255,.8); }
.quality .eyebrow { background: rgba(255,255,255,.12); color: var(--leaf-400); }
.quality-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px;
}
.qcard {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s ease, background .25s ease;
}
.qcard:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.qcard .ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(116,183,63,.2); color: var(--leaf-400);
  display: grid; place-items: center; margin-bottom: 18px;
}
.qcard .ic svg { width: 28px; height: 28px; }
.qcard h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.qcard p { font-size: 14.5px; color: rgba(255,255,255,.78); }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px;
  padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--cream-2);
  color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); background: #fff; box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-status {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(116,183,63,.15); color: var(--green-800); border: 1px solid rgba(116,183,63,.4); }

.contact-info { display: grid; gap: 16px; }
.info-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.info-row .ic {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-700), var(--leaf-600));
  color: #fff; display: grid; place-items: center;
}
.info-row .ic svg { width: 23px; height: 23px; }
.info-row h4 { font-size: 16px; margin-bottom: 3px; }
.info-row p, .info-row a { font-size: 15px; color: var(--muted); }
.info-row a:hover { color: var(--green-700); }

.pv-note {
  background: rgba(116,183,63,.1);
  border: 1px dashed rgba(42,125,59,.4);
  border-radius: var(--radius); padding: 18px 20px; font-size: 14px; color: var(--body);
}
.pv-note b { color: var(--green-800); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.72); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 44px; }
.footer-brand .name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 20px; line-height: 1; }
.footer-brand .name small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .22em; color: var(--leaf-400); }
.footer-col p { font-size: 14.5px; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 18px; font-family: var(--font-head);
}
html[dir="rtl"] .footer-col h4 { letter-spacing: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; transition: color .2s ease; }
.footer-col a:hover { color: var(--leaf-400); }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; color: #fff; transition: background .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--leaf-600); transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 13.5px;
}
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 18px; font-size: 12.5px; color: rgba(255,255,255,.5);
  text-align: center;
}

/* =========================================================================
   WhatsApp float
   ========================================================================= */
.wa-float {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .flagship-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--cream-2);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px;
    transform: translateX(100%);
    visibility: hidden;          /* closed: never overlay/cover the page */
    pointer-events: none;
    transition: transform .32s cubic-bezier(.4,0,.2,1), visibility .32s;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  body.menu-open .nav-links { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav-links a { font-size: 17px; padding: 14px 16px; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .values { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .dual { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .flagship-big .x { font-size: 60px; }
}

/* =========================================================================
   Product card link + "view details"
   ========================================================================= */
.product .more {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--green-700);
}
.product .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
html[dir="rtl"] .product .more svg { transform: scaleX(-1); }
.product:hover .more svg { transform: translateX(3px); }
html[dir="rtl"] .product:hover .more svg { transform: scaleX(-1) translateX(3px); }
a.product { color: inherit; }

/* =========================================================================
   Product Detail Page (PDP) — OTC medicine monograph
   ========================================================================= */
.breadcrumb {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 16px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb .sep { opacity: .5; }
html[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); display: inline-block; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.pdp-hero { background:
  radial-gradient(700px 400px at 100% -10%, rgba(116,183,63,.16), transparent 60%),
  linear-gradient(180deg, var(--cream-2), var(--cream)); }
.pdp-grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

/* Visual / pack panel */
.pdp-visual {
  position: relative;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}
.pdp-visual::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(116,183,63,.4), transparent 70%);
  inset-block-start: -100px; inset-inline-end: -100px;
}
.pack {
  position: relative; z-index: 1;
  width: 200px; max-width: 70%; margin-inline: auto;
  background: #fff; border-radius: 18px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.5);
}
.pack img { width: 96px; margin: 0 auto 12px; }
.pack .pack-name { font-family: var(--font-head); font-weight: 800; color: var(--green-800); font-size: 20px; line-height: 1; }
.pack .pack-sub { font-size: 11px; letter-spacing: .14em; color: var(--leaf-700); font-weight: 600; margin-top: 4px; }
html[dir="rtl"] .pack .pack-sub { letter-spacing: 0; }
.pack .pack-form { margin-top: 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.pdp-visual .pack-tag {
  position: relative; z-index: 1; margin-top: 22px; color: rgba(255,255,255,.85); font-size: 14px;
}

/* Info side */
.pdp-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green-700);
  background: rgba(116,183,63,.14); padding: 6px 13px; border-radius: 999px;
}
html[dir="rtl"] .pdp-cat { letter-spacing: 0; }
.pdp-info h1 { font-size: clamp(30px, 4.5vw, 46px); margin-top: 16px; letter-spacing: -.02em; }
.pdp-info .ar-name { color: var(--green-700); font-family: var(--font-head); font-weight: 600; font-size: 20px; margin-top: 4px; }
.pdp-generic {
  margin-top: 14px; font-size: 15px; color: var(--body);
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.pdp-generic b { color: var(--green-800); font-family: var(--font-head); }
.pdp-lead { margin-top: 16px; color: var(--body); }

.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; box-shadow: var(--shadow-sm);
}
.chip span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
html[dir="rtl"] .chip span { letter-spacing: 0; }
.chip b { font-family: var(--font-head); color: var(--ink); font-size: 15px; }
.chip.price b { color: var(--green-700); }

.pdp-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Monograph tabs */
.monograph { padding-block: clamp(48px, 7vw, 90px); }
.tabs { max-width: 960px; margin-inline: auto; }
.tab-btns {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 2px solid var(--line); margin-bottom: 0;
}
.tab-btn {
  appearance: none; background: none; border: none;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--muted); padding: 14px 20px;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .2s ease, border-color .2s ease;
}
.tab-btn:hover { color: var(--green-700); }
.tab-btn.active { color: var(--green-800); border-bottom-color: var(--green-700); }

.tab-panel { display: none; padding-top: 30px; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tab-panel h2 { font-size: 24px; margin-bottom: 14px; }
.tab-panel h3 { font-size: 18px; margin: 22px 0 8px; }
.tab-panel p { color: var(--body); margin-bottom: 12px; }
.mono-list { display: grid; gap: 12px; margin: 8px 0 4px; }
.mono-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.mono-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green-700); margin-top: 2px; }

/* composition / spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table th, .spec-table td {
  text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top;
}
.spec-table th { font-family: var(--font-head); color: var(--ink); width: 40%; background: var(--cream-2); font-weight: 600; }
.spec-table td { color: var(--body); }

.callout {
  background: rgba(116,183,63,.1); border: 1px solid rgba(116,183,63,.3);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 18px;
}
.callout b { color: var(--green-800); }

.note-warn {
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12;
  border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; font-size: 14.5px;
}
.note-warn b { color: #9a3412; }

/* Pharmacovigilance band */
.pv-band { background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: #fff; }
.pv-band .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 40px;
}
.pv-band h2 { color: #fff; font-size: 24px; }
.pv-band p { color: rgba(255,255,255,.8); margin-top: 6px; max-width: 560px; font-size: 15px; }

/* FAQ accordion */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; transition: color .2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--green-700); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--green-700); }
.faq-item p { margin: 0; padding: 0 22px 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 1024px) { .pdp-grid { grid-template-columns: 1fr; } .pdp-visual { max-width: 460px; margin-inline: auto; } }
@media (max-width: 560px) {
  .tab-btns { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn { white-space: nowrap; }
  .spec-table th { width: 45%; }
}

/* Print = patient leaflet */
@media print {
  .site-header, .breadcrumb, .pdp-cta, .pv-band, .site-footer, .wa-float, .tab-btns, .lang-toggle, .nav-toggle { display: none !important; }
  .tab-panel { display: block !important; page-break-inside: avoid; border-top: 1px solid #ccc; padding-top: 16px; }
  .pdp-visual { box-shadow: none; background: none; color: #000; }
  .pack { box-shadow: none; border: 1px solid #ccc; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
}
