/* ===== Peroz — internal pages (shares tokens & fonts with the homepage) ===== */
@font-face { font-family: "Maax Rounded"; src: url("assets/fonts/MaaxRounded.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Maax Rounded"; src: url("assets/fonts/MaaxRounded-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Circle"; src: url("assets/fonts/CircleBook.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --sand: #BC8051; --forest: #455235; --mint: #76B190;
  --mint-soft: #e3efe7; --cream: #FBF6EE; --paper: #F4EDE1; --ink: #1f2618;
  --muted: #5c6652; --line: rgba(69,82,53,.16);
  --gutter: clamp(16px, 3.2vw, 44px);
  --wrap: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Maax Rounded", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="ar"] { --font: "Circle", "Maax Rounded", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Corner chrome (same language as homepage) ---------- */
.chrome { position: fixed; z-index: 30; top: var(--gutter); }
.chrome--logo {
  inset-inline-start: var(--gutter); padding: 8px 14px; border-radius: 16px;
  background: rgba(251,246,238,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.chrome--logo img { width: clamp(108px, 10vw, 150px); transition: transform .5s var(--ease); }
.chrome--logo:hover img { transform: scale(1.03); }
.chrome--nav { inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(251,246,238,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.pill:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pill svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.pill:hover svg { transform: translateX(-3px); }
html[dir="rtl"] .pill svg { transform: scaleX(-1); }
html[dir="rtl"] .pill:hover svg { transform: scaleX(-1) translateX(-3px); }
.lang__opt { opacity: .5; font-size: 12px; letter-spacing: .1em; }
.lang__opt--ar { font-family: "Circle", sans-serif; letter-spacing: 0; font-size: 13px; }
html[lang="en"] .lang__opt[data-lang="en"], html[lang="ar"] .lang__opt[data-lang="ar"] { opacity: 1; }
.lang__track { width: 28px; height: 15px; border-radius: 99px; background: var(--line); position: relative; direction: ltr; }
.lang__knob { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); transition: transform .45s var(--ease); }
html[lang="ar"] .lang__knob { transform: translateX(13px); background: var(--sand); }
.pill:hover .lang__track { background: rgba(251,246,238,.3); }

/* corner markers */
.mark { position: fixed; z-index: 29; width: 20px; height: 20px; pointer-events: none; }
.mark::before, .mark::after { content: ""; position: absolute; top: 0; left: 0; background: var(--mint); }
.mark::before { width: 100%; height: 2px; } .mark::after { width: 2px; height: 100%; }
.mark--tl { top: 10px; left: 10px; } .mark--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.mark--bl { bottom: 10px; left: 10px; transform: scaleY(-1); } .mark--br { bottom: 10px; right: 10px; transform: scale(-1); }

/* WhatsApp */
.wa {
  position: fixed; z-index: 30; inset-inline-end: var(--gutter); bottom: var(--gutter);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--cream); box-shadow: 0 10px 30px rgba(31,38,24,.25);
  transition: background .35s, transform .5s var(--ease);
}
.wa svg { width: 24px; height: 24px; }
.wa:hover, .wa:focus-visible { background: #25D366; transform: scale(1.08) rotate(-8deg); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); font-weight: 500; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
.display { font-weight: 500; font-size: clamp(44px, 7.4vw, 116px); line-height: .95; letter-spacing: -.03em; color: var(--forest); }
.h2 { font-weight: 500; font-size: clamp(30px, 4vw, 56px); line-height: 1.04; letter-spacing: -.02em; color: var(--forest); }
html[lang="en"] .display, html[lang="en"] .h2 { text-transform: lowercase; }
html[lang="ar"] .display, html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 58ch; }
.accent { color: var(--mint); } .copper { color: var(--sand); }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.img-rv { overflow: hidden; border-radius: 22px; position: relative; }
.img-rv img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.img-rv.in img { transform: scale(1.02); }
.img-rv::after { content: ""; position: absolute; inset: 0; background: var(--forest); transform-origin: top; transition: transform 1.1s var(--ease); }
.img-rv.in::after { transform: scaleY(0); }

/* ---------- Page curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--forest); clip-path: inset(0); transition: clip-path 1s var(--ease) .1s; pointer-events: none; }
body.is-ready .curtain { clip-path: inset(0 0 100% 0); }

/* ---------- Closing CTA band ---------- */
.band { background: var(--forest); color: var(--cream); padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.band .h2 { color: var(--cream); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(251,246,238,.35); font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.link-btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
html[dir="rtl"] .link-btn svg { transform: scaleX(-1); }
.link-btn:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.link-btn:hover svg { transform: translate(3px, -3px) rotate(0); }
html[dir="rtl"] .link-btn:hover svg { transform: scaleX(-1) translate(3px, -3px); }
.link-btn--solid { background: var(--sand); border-color: var(--sand); color: var(--cream); }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(251,246,238,.3); transition: background .3s, color .3s, transform .4s var(--ease); }
.social a:hover { background: var(--mint); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 8vw, 100px); padding-top: 26px; border-top: 1px solid rgba(251,246,238,.18); font-size: 14px; opacity: .85; }

@media (max-width: 700px) {
  .chrome--nav .pill--back span { display: none; }
  .mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
