/* Pharmatech — public site styles. No build step; edit directly. */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-latin.woff2") format("woff2-variations"), url("../fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --brand: #0B4F7C;
  --accent: #14A39A;
  --dark: #0A2236;
  --ink: #0E1C2B;
  --ink-2: #3D5062;
  --muted: #6B7D8F;
  --line: #E1E8EF;
  --bg: #FFFFFF;
  --soft: #F3F7FA;
  --danger: #C2410C;
  --success: #0F7B5F;

  --brand-50: color-mix(in srgb, var(--brand) 7%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 14%, #fff);
  --brand-700: color-mix(in srgb, var(--brand) 82%, #000);
  --accent-50: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-300: color-mix(in srgb, var(--accent) 55%, #fff);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(14 28 43 / .05), 0 2px 10px rgb(14 28 43 / .04);
  --shadow: 0 18px 40px -18px rgb(14 28 43 / .28);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Plex Arabic", "Jakarta", ui-sans-serif, system-ui, Tahoma, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -0.02em; font-weight: 750; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-300); color: var(--ink); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- icons */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xs { width: .85rem; height: .85rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }
.icon--xl { width: 2.75rem; height: 2.75rem; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px var(--brand); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px var(--accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / .38); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .1); border-color: #fff; color: #fff; }

/* ---------- admin bar (only for logged-in editors) */
.admin-bar { display: flex; gap: 1rem; align-items: center; justify-content: center; background: #111827; color: #e5e7eb; font-size: .82rem; padding: .4rem 1rem; }
.admin-bar a { color: #93c5fd; }

/* ---------- top bar */
.topbar { background: var(--dark); color: rgb(255 255 255 / .78); font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.topbar .icon { opacity: .75; }
.topbar__end { display: flex; align-items: center; gap: 1rem; }
.social { display: flex; gap: .25rem; list-style: none; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.social a:hover { background: rgb(255 255 255 / .1); color: #fff; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -18px rgb(14 28 43 / .35); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand picture { display: contents; }
.brand__logo { height: 54px; width: auto; max-width: 220px; object-fit: contain; }
.brand__text { font-weight: 800; font-size: 1.6rem; color: var(--brand); letter-spacing: -0.03em; }

.site-nav { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.menu { display: flex; align-items: center; gap: .15rem; list-style: none; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__link {
  display: block; padding: .55rem .95rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.menu__link:hover { background: var(--brand-50); color: var(--brand); }
.menu__link.is-active { color: var(--brand); background: var(--brand-50); }
.submenu-toggle { display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 50%; }
.submenu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.menu__item:hover .submenu, .menu__item:focus-within .submenu, .menu__item.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.submenu a:hover, .submenu a.is-active { background: var(--brand-50); color: var(--brand); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch[lang="ar"] { font-family: var(--font-ar); }
.lang-switch[lang="en"] { font-family: var(--font); }

.nav-toggle { display: none; align-items: center; gap: .6rem; margin-inline-start: auto; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .brand__logo { height: 46px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-direction: column; align-items: stretch; margin-inline-start: 0; }
  .js .site-nav {
    position: absolute; top: 100%; inset-inline: 0; display: none;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(14 28 43 / .35);
    padding: .75rem 16px 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav { width: 100%; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu__link { flex: 1; padding: .9rem .25rem; border-radius: 0; font-size: 1.02rem; }
  .menu__link:hover, .menu__link.is-active { background: none; }
  .submenu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem; display: none; }
  .menu__item.is-open .submenu { display: block; }
  .lang-switch { align-self: flex-start; margin-top: 1rem; }
}

/* ---------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 520px at 88% 12%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%),
    linear-gradient(145deg, var(--brand) 0%, var(--dark) 78%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .page-header__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--image::before, .page-header--image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, color-mix(in srgb, var(--dark) 92%, transparent) 25%, color-mix(in srgb, var(--brand) 55%, transparent));
}
[dir="rtl"] .hero--image::before, [dir="rtl"] .page-header--image::before { background: linear-gradient(-100deg, color-mix(in srgb, var(--dark) 92%, transparent) 25%, color-mix(in srgb, var(--brand) 55%, transparent)); }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  min-height: min(76vh, 680px); padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__title {
  margin: 0 0 1.25rem; color: #fff;
  font-size: clamp(3.2rem, 9.5vw, 7rem); font-weight: 800; letter-spacing: -0.055em; line-height: .95;
  background: linear-gradient(100deg, #fff 30%, var(--accent-300) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.25; font-size: clamp(3rem, 8vw, 5.75rem); }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.6; color: rgb(255 255 255 / .86); max-width: 40ch; margin-bottom: 2.25rem; font-weight: 450; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); }
.molecule { width: 100%; height: auto; overflow: visible; animation: float 9s ease-in-out infinite; }
.molecule__orbit { stroke: rgb(255 255 255 / .16); stroke-width: 1.5; stroke-dasharray: 3 9; transform-origin: 250px 250px; animation: spin 80s linear infinite; }
.molecule__orbit--inner { stroke: rgb(255 255 255 / .1); stroke-dasharray: none; animation: none; }
.molecule__bonds path { stroke: rgb(255 255 255 / .6); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.molecule__bonds .molecule__double { stroke: rgb(255 255 255 / .32); }
.molecule__nodes circle { fill: var(--dark); stroke: #fff; stroke-width: 2.5; }
.molecule__atoms circle { fill: var(--accent); stroke: rgb(255 255 255 / .9); stroke-width: 2.5; }
.molecule__atoms circle:nth-child(2n) { fill: #fff; stroke: var(--accent); }
.capsule rect { fill: #fff; }
.capsule .capsule__half { fill: var(--accent); }
.capsule { filter: drop-shadow(0 14px 18px rgb(0 0 0 / .25)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- page header */
.page-header {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(700px 360px at 92% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%),
    linear-gradient(145deg, var(--brand) 0%, var(--dark) 85%);
}
.page-header__bg { position: absolute; inset: 0; z-index: -2; }
.page-header__inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-header__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; max-width: 22ch; }
.page-header__lead { margin: 1rem 0 0; max-width: 60ch; color: rgb(255 255 255 / .82); font-size: 1.12rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-bottom: 1rem; font-size: .9rem; color: rgb(255 255 255 / .7); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; opacity: .5; }
.breadcrumb a { color: rgb(255 255 255 / .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- sections */
.section { padding-block: clamp(3.75rem, 8vw, 6.5rem); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: rgb(255 255 255 / .8); }
.section--dark :is(h2, h3) { color: #fff; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.section-head__title {
  position: relative; margin: 0; padding-top: 1.1rem;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em;
}
.section-head__title::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.section-head__lead { margin: .9rem 0 0; color: var(--muted); font-size: 1.1rem; }

/* services */
.services { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); list-style: none; }
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
[dir="rtl"] .service::after { transform-origin: right; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2.25rem; }
.service__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-50); color: var(--brand); transition: background-color .3s, color .3s; }
.service:hover .service__icon { background: var(--brand); color: #fff; }
.service__num { font-size: 2.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--brand-100); letter-spacing: -0.04em; font-family: var(--font); }
.service__title { margin: 0; font-size: .98rem; font-weight: 750; letter-spacing: .02em; line-height: 1.45; color: var(--ink); }
html[lang="ar"] .service__title { font-size: 1.12rem; letter-spacing: 0; }
.service__text { margin: .75rem 0 0; font-size: .95rem; color: var(--muted); }

/* products */
.products { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); list-style: none; }
.product__card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.product__media { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #fff, var(--brand-50)); display: grid; place-items: center; overflow: hidden; }
.product__media picture { display: contents; }
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.product__card:hover .product__media img { transform: scale(1.05); }
.product__placeholder { color: var(--brand-100); }
.product__body { padding: 1rem 1.15rem 1.25rem; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.product__title { margin: 0; font-size: .95rem; font-weight: 750; letter-spacing: .01em; line-height: 1.4; color: var(--ink); }
html[lang="ar"] .product__title { font-size: 1.05rem; letter-spacing: 0; }
.product__text { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }

/* tiles (excipients) */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); list-style: none; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 168px;
  padding: 1rem 1.15rem 1.15rem; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--brand-100);
  transition: background-color .3s, border-color .3s, transform .35s var(--ease), color .3s;
}
.tile::before { content: ""; position: absolute; inset-inline-end: 0; top: 0; width: 46px; height: 46px; border-start-end-radius: 12px; background: linear-gradient(225deg, var(--accent-50) 50%, transparent 50%); transition: opacity .3s; }
[dir="rtl"] .tile::before { background: linear-gradient(135deg, var(--accent-50) 50%, transparent 50%); }
.tile:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-4px); }
.tile:hover::before { opacity: 0; }
.tile__num { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--font); }
.tile__symbol { margin-top: auto; font-family: var(--font); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--brand); }
.tile__name { margin-top: .6rem; font-weight: 650; color: var(--ink); line-height: 1.35; font-size: .98rem; }
.tile:hover :is(.tile__num, .tile__symbol, .tile__name) { color: #fff; }

/* rich text */
.richtext { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.richtext--media { grid-template-columns: 1.2fr .8fr; align-items: center; }
.prose { max-width: 75ch; font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-of-type { font-size: 1.22rem; line-height: 1.7; color: var(--ink); font-weight: 450; }
html[lang="ar"] .prose > p:first-of-type { line-height: 1.95; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.25em; border-inline-start: 4px solid var(--accent); color: var(--ink); font-size: 1.15rem; }
.prose--sm { font-size: 1rem; margin-bottom: 1.25rem; }
.prose--sm > p:first-of-type { font-size: 1rem; color: inherit; font-weight: inherit; }
.richtext__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.richtext__media img { width: 100%; height: 100%; object-fit: cover; }

/* info cards (mission / vision) */
.cards { display: grid; gap: 1.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.info-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.info-card:nth-child(odd) { background: linear-gradient(150deg, var(--brand), var(--dark)); border-color: transparent; color: rgb(255 255 255 / .85); }
.info-card:nth-child(odd) .info-card__title { color: #fff; }
.info-card:nth-child(odd) .info-card__icon { background: rgb(255 255 255 / .12); color: #fff; }
.info-card::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -110px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%; border: 32px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.info-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-50); color: var(--accent); margin-bottom: 1.6rem; }
.info-card__title { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 800; margin-bottom: .75rem; }
.info-card__text { margin: 0; font-size: 1.08rem; line-height: 1.75; }

/* contact */
.section--contact { background: linear-gradient(180deg, var(--soft), #fff 70%); }
.contact { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdfe;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--brand-100); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.field--error input, .field--error textarea { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .86rem; font-weight: 600; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; align-items: flex-start; gap: .6rem; padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; font-weight: 600; font-size: .95rem; }
.notice--success { background: color-mix(in srgb, var(--success) 10%, #fff); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 25%, #fff); }
.notice--error { background: color-mix(in srgb, var(--danger) 8%, #fff); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 22%, #fff); }
.contact__info { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.office-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.25rem); color: rgb(255 255 255 / .86); background: linear-gradient(150deg, var(--brand), var(--dark)); }
.office-card::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.office-card__title { display: flex; align-items: center; gap: .65rem; color: #fff; font-size: 1.35rem; margin-bottom: 1.25rem; }
.office-card__title .icon { color: var(--accent-300); }
.office-card a { color: #fff; }
.office { display: grid; gap: .85rem; }
.office__row { display: flex; gap: .7rem; margin: 0; align-items: flex-start; line-height: 1.6; }
.office__row .icon { margin-top: .3rem; opacity: .75; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: rgb(255 255 255 / .72); font-size: .97rem; }
.site-footer__pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%);
}
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 4.5rem); }
.brand--plate { background: #fff; padding: .8rem 1.1rem; border-radius: 14px; }
.brand--plate .brand__logo { height: 48px; }
.social--footer { margin-top: 1.4rem; gap: .5rem; }
.social--footer a { width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .16); }
.site-footer__title { color: #fff; font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.25rem; }
html[lang="ar"] .site-footer__title { letter-spacing: 0; font-size: 1rem; }
.footer-menu { list-style: none; display: grid; gap: .55rem; }
.footer-menu a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; transition: color .2s, transform .2s; }
.footer-menu a .icon { color: var(--accent); }
.footer-menu a:hover { color: #fff; }
.site-footer .office a { color: #fff; text-decoration: none; }
.site-footer .office a:hover { color: var(--accent-300); }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .75rem; }
.site-footer__bottom p { margin: 0; }
.lang-switch--footer { border-color: rgb(255 255 255 / .2); color: #fff; padding: .4rem .85rem; font-size: .85rem; }
.lang-switch--footer:hover { border-color: #fff; color: #fff; }

/* back to top */
.to-top {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s, background-color .2s;
}
.to-top .icon { transform: rotate(180deg); }
.js .to-top { display: grid; pointer-events: none; }
.js .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; }

/* ---------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; text-align: start; }
  .hero__visual { width: min(70%, 320px); order: -1; justify-self: start; margin-bottom: -.5rem; }
  .richtext--media, .contact { grid-template-columns: 1fr; }
  .contact__info { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topbar__contact li:nth-child(n+2) { display: none; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 140px; }
  .tile__symbol { font-size: 2.1rem; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .hero__lead br { display: none; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service__top { margin-bottom: 1.5rem; }
  .products { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .product__body { padding: .8rem .85rem 1rem; }
  .product__title { font-size: .84rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .nav-toggle__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .to-top, .hero__visual, .site-footer__pattern, .contact form { display: none !important; }
  .hero, .page-header, .site-footer, .office-card, .info-card:nth-child(odd) { background: none !important; color: #000 !important; }
  .hero__title { -webkit-text-fill-color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
