/* =====================================================================
   CAIRO PHARMACY — GLOBAL STYLES
   Edit the values in :root to change colours, fonts and spacing site-wide.
   ===================================================================== */

:root {
  /* Brand colours (exact) */
  --teal: #4BA08A;
  --charcoal: #222222;
  --gray: #F4F4F4;
  --white: #FFFFFF;
  --leaf: #6B8F5E;

  /* Tonal variations (same hues, tuned for contrast and depth) */
  --teal-deep: #2F7A67;      /* buttons + small teal text: 5.1:1 on white */
  --teal-darker: #266453;    /* button hover */
  --teal-tint: #E8F3F0;      /* soft teal backgrounds */
  --ink-soft: #55595A;       /* secondary text on white: 7:1 */
  --line: #E4E7E6;

  /* Fonts */
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Layout */
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
  --header-h: 76px;
  --radius: 22px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--teal); color: #fff; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Highlight words */
.hl { color: var(--teal-deep); }
.hl--bright { color: var(--teal); }
.hl--serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--teal); letter-spacing: -.01em; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--teal)); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.1;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn--sm { --pad-y: 11px; --pad-x: 20px; font-size: .88rem; }
.btn--lg { --pad-y: 19px; --pad-x: 38px; font-size: 1.05rem; }
.btn--primary { background: var(--teal-deep); color: #fff; box-shadow: 0 8px 22px -10px rgba(47, 122, 103, .65); }
.btn--primary:hover { background: var(--teal-darker); box-shadow: 0 14px 28px -12px rgba(47, 122, 103, .75); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: rgba(34, 34, 34, .25); }
.btn--ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); background: var(--teal-tint); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .95); }
.site-header__inner { height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 38px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.04); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__list a { position: relative; display: inline-block; padding: 8px 0; font-weight: 600; font-size: .92rem; color: var(--charcoal); transition: color .3s var(--ease); }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--teal-deep); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__lang--mobile { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-weight: 700; font-size: .95rem; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease); }
.lang-switch:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-tint); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Reveal system (only active when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .14s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-hero] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .12s + .25s); }
.js.is-loaded [data-hero] { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line__inner { display: block; }
.js .line__inner { transform: translateY(112%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * .12s + .15s); }
.js.is-loaded .line__inner { transform: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  min-height: calc(100svh - var(--header-h)); min-height: calc(100vh - var(--header-h));
  padding-block: clamp(28px, 5vh, 64px);
  position: relative;
  background:
    radial-gradient(1000px 600px at 88% 45%, rgba(75, 160, 138, .22), transparent 70%),
    radial-gradient(700px 460px at 0% 100%, rgba(75, 160, 138, .14), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--teal-tint) 100%);
}
@supports (min-height: 100svh) { .hero { min-height: calc(100svh - var(--header-h)); } }

.hero__text { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: clamp(20px, 3vw, 48px); will-change: transform; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: clamp(18px, 3vh, 30px); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow i { width: 34px; height: 1.5px; background: var(--teal); display: inline-block; }
.eyebrow span:last-child { color: var(--teal-deep); }

.hero__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.35rem, 3.7vw, 4.6rem); line-height: 1.04; letter-spacing: -.028em; }
.hero__title .line__inner { white-space: nowrap; }
.hero__title .hl--serif { font-weight: 600; letter-spacing: -.02em; }
.hero__lede { margin-top: clamp(20px, 3.4vh, 34px); max-width: 30em; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--ink-soft); line-height: 1.75; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 4.4vh, 44px); }

.scroll-cue { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(28px, 6vh, 64px); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue__line { position: relative; width: 1.5px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--teal); animation: cue 2.2s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: translateY(-110%); } 60% { transform: translateY(230%); } 100% { transform: translateY(230%); } }

.hero__media { position: relative; min-width: 0; }
.hero__frame {
  position: relative; z-index: 1; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 28px 0 0 28px;
  box-shadow: 0 40px 80px -50px rgba(34, 34, 34, .45);
  background: var(--gray);
}
.js .hero__frame { clip-path: inset(0 0 0 100% round 28px 0 0 28px); transition: clip-path 1.5s var(--ease) .1s; }
.js.is-loaded .hero__frame { clip-path: inset(0 0 0 0 round 28px 0 0 28px); }

.parallax { position: absolute; inset: -6% 0; will-change: transform; }
.parallax img, .hero__img { width: 100%; height: 100%; object-fit: cover; }
.js .hero__img { transform: scale(1.16); }
.js.is-loaded .hero__img { animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.16); } to { transform: scale(1.06); } }


/* ---------- Value cards ---------- */
.why { position: relative; padding-block: clamp(72px, 10vw, 150px); background: linear-gradient(180deg, var(--teal-tint) 0%, #d9ece6 100%); overflow: hidden; }
.why__leaf { position: absolute; right: max(2vw, 14px); top: clamp(10px, 4vw, 56px); width: clamp(90px, 12vw, 170px); height: auto; opacity: .55; pointer-events: none; will-change: transform; }
.leaf-float { transform-origin: 60px 108px; animation: leafSway 9s ease-in-out infinite alternate; }
@keyframes leafSway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: start; position: relative; }
.card {
  position: relative; background: #fff; border: 1px solid rgba(75, 160, 138, .25); border-top: 4px solid var(--teal); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 44px); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s var(--ease), opacity .9s var(--ease);
}
.card:nth-child(2) { margin-top: clamp(0px, 4vw, 56px); }
.card:nth-child(3) { margin-top: clamp(0px, 8vw, 112px); }
.js .card[data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease), box-shadow .6s var(--ease), border-color .4s var(--ease); transition-delay: calc(var(--i, 0) * .14s), calc(var(--i, 0) * .14s), 0s, 0s; }
.js .card[data-reveal].is-in:hover, .card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -36px rgba(34, 34, 34, .35); border-color: rgba(75, 160, 138, .55); transition-delay: 0s; }
.card__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 26px; border-radius: 50%; color: #fff; background: var(--teal); box-shadow: 0 12px 24px -12px rgba(47, 122, 103, .7); transition: transform .7s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.08); background: var(--teal-deep); }
.card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: 12px; }
.card__text { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.card__text .hl { font-weight: 700; }

/* ---------- Best-sellers ---------- */
.bestsellers { padding-block: clamp(80px, 11vw, 170px); background: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-bottom: clamp(36px, 6vw, 80px); }
.section-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -.025em; }

.bs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(18px, 3vw, 44px); align-items: start; }
.bs-card--1 { grid-column: 1 / span 7; }
.bs-card--2 { grid-column: 8 / span 5; margin-top: clamp(0px, 9vw, 130px); }
.bs-card--3 { grid-column: 1 / span 5; margin-top: clamp(0px, 3vw, 40px); }
.bs-card--4 { grid-column: 6 / span 7; margin-top: clamp(0px, 7vw, 100px); }
.bs-card--1 .bs-card__media { aspect-ratio: 4 / 3; }
.bs-card--4 .bs-card__media { aspect-ratio: 4 / 3; }
.bs-card--2 .bs-card__media, .bs-card--3 .bs-card__media { aspect-ratio: 4 / 5; }

.bs-card__link { display: block; }
.bs-card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray); box-shadow: 0 34px 60px -40px rgba(47, 122, 103, .65); }
.bs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.js .bs-card[data-reveal] .bs-card__media { transform: scale(.95); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * .14s); }
.js .bs-card[data-reveal] .bs-card__media img { transform: scale(1.14); transition: transform 2s var(--ease); transition-delay: calc(var(--i, 0) * .14s); }
.js .bs-card.is-in .bs-card__media { transform: scale(1); }
.js .bs-card.is-in .bs-card__media img { transform: scale(1); }
.js .bs-card.is-in .bs-card__link:hover .bs-card__media img, .bs-card__link:hover .bs-card__media img { transform: scale(1.06); transition-duration: 1.1s; transition-delay: 0s; }
.bs-card__link:focus-visible .bs-card__media { outline: 3px solid var(--teal-deep); outline-offset: 4px; }

.bs-card__meta { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 3px solid var(--teal); }
.bs-card__meta h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -.01em; flex: 1; }
.bs-card__more { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 1.15rem; color: #fff; background: var(--teal); transition: transform .45s var(--ease), background-color .3s var(--ease); }
.bs-card__link:hover .bs-card__more { transform: translateX(6px); background: var(--teal-deep); }

/* ---------- Closing CTA ---------- */
.closing { background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal-deep) 55%, #368a74 100%); color: #fff; padding-block: clamp(84px, 11vw, 170px); text-align: center; position: relative; overflow: hidden; }
.closing::before, .closing::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.closing::before { width: 520px; height: 520px; left: -160px; bottom: -260px; }
.closing::after { width: 360px; height: 360px; right: -90px; top: -170px; }
.closing__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.025em; }
.closing__text { max-width: 34em; color: rgba(255, 255, 255, .94); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.closing .hl--serif { color: #c4eadf; }
.closing .btn--primary { background: #fff; color: var(--teal-darker); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5); }
.closing .btn--primary:hover { background: var(--teal-tint); }
.closing .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding-top: clamp(44px, 6vw, 80px); }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 36px 48px; }
.site-footer__brand img { height: 34px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { color: var(--ink-soft); font-size: .95rem; max-width: 22em; }
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; font-weight: 500; }
.site-footer a { position: relative; width: fit-content; color: var(--charcoal); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--teal-deep); }
.site-footer__legal { padding-block: 32px 36px; margin-top: 40px; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Simple placeholder pages (pages not yet built) ---------- */
.stub { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.stub h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 14px; }
.stub p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- Page transition ---------- */
body { transition: opacity .28s var(--ease-soft); }
html.is-leaving body { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: 18px; }
  .nav__list a { font-size: .86rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 34px; }

  .nav-toggle { display: inline-block; }
  .lang-switch { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; z-index: 90;
    background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .3);
    padding: 12px var(--gutter) 28px;
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 17px 0; font-size: 1.1rem; }
  .nav__list a::after { display: none; }
  .nav__lang--mobile { display: inline-block; margin-top: 20px; font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-weight: 700; padding: 10px 20px; border: 1.5px solid var(--line); border-radius: 999px; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 36px 0; min-height: 0; }
  .hero__text { padding-inline: var(--gutter); }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 4.2rem); }
  .scroll-cue { display: none; }
  .hero__frame { border-radius: 0; }
  .js .hero__frame { clip-path: inset(0 0 100% 0); }
  .js.is-loaded .hero__frame { clip-path: inset(0 0 0 0); }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .card:nth-child(2), .card:nth-child(3) { margin-top: 0; }

  .bs-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .bs-card--1, .bs-card--2, .bs-card--3, .bs-card--4 { grid-column: 1; margin-top: 0; }
  .bs-card--2 .bs-card__media, .bs-card--3 .bs-card__media { aspect-ratio: 4 / 3; }

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .btn { --pad-x: 22px; }
  .site-header__actions .btn--sm { --pad-x: 14px; font-size: .8rem; }
  .site-header__inner { gap: 12px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (hover: none) { .card:hover { transform: none; box-shadow: none; border-color: var(--line); } }

/* ---------- Products page ---------- */
.page-hero { padding-block: clamp(52px, 8vw, 112px) clamp(36px, 5vw, 70px); background:
  radial-gradient(900px 480px at 90% 10%, rgba(75, 160, 138, .20), transparent 70%),
  linear-gradient(180deg, var(--teal-tint) 0%, #fff 100%); }
.page-hero__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 8vw, 6.2rem); line-height: 1.02; letter-spacing: -.03em; }
.page-hero__title .line__inner { white-space: nowrap; }
.page-hero__sub { margin-top: clamp(14px, 2vw, 24px); max-width: 34em; font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: var(--ink-soft); line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 4vw, 44px); }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(75, 160, 138, .5); font-size: .86rem; font-weight: 600; color: var(--charcoal); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.chips a:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; transform: translateY(-2px); }

.cats { padding-block: clamp(48px, 7vw, 100px) clamp(80px, 11vw, 160px); background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(44px, 6vw, 84px) clamp(18px, 3vw, 44px); align-items: start; }
.cat { position: relative; min-width: 0; }
.cat--a { grid-column: 1 / span 7; }
.cat--b { grid-column: 8 / span 5; margin-top: clamp(0px, 9vw, 130px); }
.cat--c { grid-column: 1 / span 5; margin-top: clamp(0px, 3vw, 40px); }
.cat--d { grid-column: 6 / span 7; margin-top: clamp(0px, 7vw, 100px); }
.cat--wide { grid-column: 1 / -1; }
.cat--a .cat__media, .cat--d .cat__media { aspect-ratio: 4 / 3; }
.cat--b .cat__media, .cat--c .cat__media { aspect-ratio: 4 / 5; }
.cat--wide .cat__media { aspect-ratio: 21 / 9; }

.cat__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray); box-shadow: 0 34px 60px -40px rgba(47, 122, 103, .65); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.js .cat[data-reveal] .cat__media { transform: scale(.95); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * .14s); }
.js .cat[data-reveal] .cat__media img { transform: scale(1.14); transition: transform 2s var(--ease); transition-delay: calc(var(--i, 0) * .14s); }
.js .cat.is-in .cat__media { transform: scale(1); }
.js .cat.is-in .cat__media img { transform: scale(1); }
.js .cat.is-in:hover .cat__media img, .cat:hover .cat__media img { transform: scale(1.05); transition-duration: 1.1s; transition-delay: 0s; }

.cat__meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-top: 18px; padding-top: 16px; border-top: 3px solid var(--teal); }
.cat__text { min-width: 0; flex: 1 1 14em; }
.cat__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 2.1vw, 1.8rem); letter-spacing: -.015em; line-height: 1.15; }
.cat__desc { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.cat__btn { flex-shrink: 0; }

.cat--wide .cat__meta { position: absolute; left: clamp(16px, 4vw, 56px); bottom: clamp(16px, 3vw, 40px); max-width: min(480px, calc(100% - 32px)); margin: 0; padding: clamp(18px, 2.4vw, 30px); background: #fff; border-top: 0; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(34, 34, 34, .55); }

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .cat--a, .cat--b, .cat--c, .cat--d, .cat--wide { grid-column: 1; margin-top: 0; }
  .cat--b .cat__media, .cat--c .cat__media, .cat--wide .cat__media { aspect-ratio: 4 / 3; }
  .cat--wide .cat__meta { position: static; max-width: none; margin-top: 18px; padding: 16px 0 0; border-top: 3px solid var(--teal); border-radius: 0; box-shadow: none; background: transparent; }
}

/* ---------- Order NOW page ---------- */
.order { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 9vw, 130px); background: #fff; }
.order__inner { max-width: 820px; }
.order__card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 48px); box-shadow: 0 40px 70px -50px rgba(47, 122, 103, .6); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 700; font-size: .92rem; }
.field .req { color: var(--teal-deep); }
.field .opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--gray); border: 1.5px solid transparent; border-radius: 14px; padding: 15px 16px; transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { background: #eef0ef; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(75, 160, 138, .22); }
.field .is-invalid { border-color: #b3261e; background: #fff7f6; }
.field__err { color: #b3261e; font-size: .88rem; font-weight: 600; }
.form__error { background: #fff1f0; color: #8c1d18; border: 1.5px solid #f0b8b4; border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: .95rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__submit { justify-self: start; margin-top: 6px; }
.form__submit:disabled { opacity: .75; cursor: progress; transform: none !important; }
.form.is-sending .btn__arrow { display: none; }
.form__note { color: var(--ink-soft); font-size: .88rem; }
.success { text-align: center; padding-block: clamp(14px, 3vw, 40px); display: grid; justify-items: center; gap: 14px; outline: none; }
.success[hidden], .form[hidden] { display: none; }
.success__icon { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-deep); color: #fff; box-shadow: 0 0 0 10px var(--teal-tint); }
.success__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.success__text { max-width: 32em; color: var(--ink-soft); }
.success__id { background: var(--teal-tint); border-radius: 999px; padding: 10px 20px; font-size: .95rem; }
.success__id strong { color: var(--teal-darker); letter-spacing: .04em; }
.order__aside { background: var(--teal-tint); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 12px; }
.aside__title { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.015em; }
.aside__list { display: grid; gap: 10px; margin-top: 6px; }
.aside__list a { display: block; background: #fff; border-radius: 14px; padding: 14px 16px; font-weight: 700; color: var(--teal-darker); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.aside__list a:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(47, 122, 103, .7); }
.soon { background: var(--gray); padding-block: clamp(64px, 9vw, 130px); text-align: center; }
.soon__badge { display: inline-block; background: var(--teal-deep); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 18px; border-radius: 999px; }
.soon__title { margin-top: 18px; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; }
.soon__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: clamp(28px, 4vw, 52px); text-align: left; }
.soon__grid li { background: #fff; border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); border-top: 4px solid var(--teal); }
.soon__grid h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.soon__grid p { margin-top: 8px; color: var(--ink-soft); }
.soon__note { margin-top: 28px; font-weight: 700; color: var(--teal-darker); }
@media (max-width: 900px) {
  .soon__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact page ---------- */
.contact { padding-block: clamp(40px, 6vw, 90px) clamp(64px, 9vw, 130px); background: #fff; }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.ct-card a { display: grid; gap: 6px; height: 100%; padding: clamp(22px, 2.6vw, 34px); background: var(--gray); border-radius: var(--radius); border-top: 4px solid var(--teal); position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s var(--ease); }
.ct-card a:hover { transform: translateY(-5px); background: var(--teal-tint); box-shadow: 0 26px 44px -30px rgba(47, 122, 103, .7); }
.ct-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-deep); color: #fff; flex-shrink: 0; margin-bottom: 10px; }
.ct-card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.ct-card__text { color: var(--ink-soft); overflow-wrap: anywhere; }
.ct-card__arrow { position: absolute; right: 22px; top: 24px; color: var(--teal-deep); font-weight: 700; transition: transform .4s var(--ease); }
.ct-card a:hover .ct-card__arrow { transform: translateX(5px); }
@media (max-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Our Story page ---------- */
.story { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 9vw, 130px); background: #fff; }
.story__figure { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 40px 70px -50px rgba(47, 122, 103, .6); }
.story__figure img { width: 100%; height: auto; display: block; }
.story__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 6vw, 88px); }
.story__block { border-top: 4px solid var(--teal); padding-top: clamp(18px, 2.4vw, 30px); }
.story__label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.story__heading { margin-block: 0 16px; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
.story__block p { color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; max-width: 36em; }

.story__block p + p { margin-top: 1em; }
.story__block .story__sign { margin-top: 1.4em; font-weight: 700; color: var(--teal-deep); font-size: .95rem; }
@media (max-width: 900px) { .story__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Arabic / right-to-left ---------- */
html[dir="rtl"] { --font-head: 'Amiri', 'Traditional Arabic', 'Times New Roman', serif; --font-body: 'Amiri', 'Traditional Arabic', 'Times New Roman', serif; --font-serif: 'Amiri', 'Traditional Arabic', serif; font-size: 112.5%; }
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] :is(h1, h2, h3) { line-height: 1.35; }
[dir="rtl"] .hero__title, [dir="rtl"] .page-hero__title { line-height: 1.3; }
[dir="rtl"] .line { padding-block: .06em; }
[dir="rtl"] .hl--serif { font-style: normal; font-weight: 700; }
[dir="rtl"] .lang-switch, [dir="rtl"] .nav__lang { font-family: system-ui, 'Segoe UI', Arial, sans-serif; }
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .progress__bar, [dir="rtl"] .nav__list a::after { transform-origin: right; }
[dir="rtl"] .btn:hover .btn__arrow, [dir="rtl"] .ct-card a:hover .ct-card__arrow { transform: translateX(-5px); }
[dir="rtl"] .bs-card__link:hover .bs-card__more { transform: translateX(-6px); }
[dir="rtl"] .why__leaf { right: auto; left: max(2vw, 14px); }
[dir="rtl"] .closing::before { left: auto; right: -160px; }
[dir="rtl"] .closing::after { right: auto; left: -90px; }
[dir="rtl"] .ct-card__arrow { right: auto; left: 22px; }
[dir="rtl"] .soon__grid { text-align: right; }
[dir="rtl"] .field input[type="tel"] { direction: ltr; text-align: right; }
[dir="rtl"] .field input[type="tel"]::placeholder { direction: rtl; }
[dir="rtl"] .success__id strong { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media (min-width: 961px) {
  [dir="rtl"] .hero__text { padding-left: clamp(20px, 3vw, 48px); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  [dir="rtl"] .hero__frame { border-radius: 0 28px 28px 0; }
  [dir="rtl"] .js .hero__frame { clip-path: inset(0 100% 0 0 round 0 28px 28px 0); }
  [dir="rtl"] .js.is-loaded .hero__frame { clip-path: inset(0 0 0 0 round 0 28px 28px 0); }
  [dir="rtl"] .cat--wide .cat__meta { left: auto; right: clamp(16px, 4vw, 56px); }
}

/* ---------- Reduced motion: everything is visible immediately ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero], .js .line__inner,
  .js .bs-card[data-reveal] .bs-card__media, .js .bs-card[data-reveal] .bs-card__media img,
  .js .cat[data-reveal] .cat__media, .js .cat[data-reveal] .cat__media img { opacity: 1 !important; transform: none !important; }
  .js .hero__frame { clip-path: none !important; }
  .js .hero__img { transform: none !important; }
  .progress { display: none; }
}
