/* Harsha — responsive RTL. One type scale, one margin, no overlapping layers. */
:root {
  --primary-dark: #2d5016;
  --primary: #3f6b24;
  --ink: #1a1a1a;
  --body: #1f1f1f;
  --paper: #ffffff;
  --ground: #f3f0ea;
  --ground-deep: #e7e1d6;
  --gold: #8a6a12;
  --date: #6b3414;
  --font-ar: "Cairo", "Noto Sans Arabic", sans-serif;
  --font-en: "Bricolage Grotesque", system-ui, sans-serif;
  --step-small: 0.9375rem;
  --step-body: 1.0625rem;
  --step-lead: 1.25rem;
  --margin: clamp(1rem, 3vw, 2rem);
  --max: 1180px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: var(--step-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  line-height: 1.28;
  font-weight: 800;
  text-wrap: balance;
}

::selection {
  background: var(--primary-dark);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--margin) * 2), var(--max));
  margin-inline: auto;
}

.en {
  font-family: var(--font-en);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 0;
  background: var(--primary-dark);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: #1e3a0e;
}

.btn--outline {
  background: var(--paper);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 2px var(--primary-dark);
}

.btn--outline:hover {
  background: var(--primary-dark);
  color: var(--paper);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--primary-dark);
}

/* Nav — in flow, never covering the headline */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 0;
  min-height: var(--nav-h);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  width: min(100% - (var(--margin) * 2), var(--max));
  margin-inline: auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.nav__brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex: none;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
  min-width: 0;
}

.nav__brand-text strong {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.nav__brand-text span {
  font-size: 0.8125rem;
  color: var(--date);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav__links a {
  font-weight: 600;
  color: var(--ink);
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ground);
  cursor: pointer;
  flex: none;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav__drawer {
  display: none;
  padding: 0.25rem var(--margin) 1rem;
  background: var(--paper);
}

.nav__drawer.is-open {
  display: grid;
}

.nav__drawer a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 700;
  color: var(--ink);
  border-top: 0;
  background: var(--ground);
  margin-top: 0.4rem;
  padding-inline: 1rem;
}

@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle,
  .nav__drawer {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav__brand-text span {
    display: none;
  }
}

/* Hero — cinematic blurred video, large mark, copy over the scene */
.hero {
  position: sticky;
  top: var(--nav-h);
  z-index: 1;
  height: calc(100svh - var(--nav-h));
  min-height: 32rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #1a120c;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* light blur (~30%) so grove detail stays readable */
  transform: scale(1.08);
  filter: blur(4.5px) brightness(0.86) saturate(1.06) contrast(1.03);
}

.hero__video {
  z-index: 1;
}

.hero__poster {
  z-index: 0;
}

.hero.is-video-ready .hero__poster {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* soft atmospheric veil + readable text band */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 28%, rgba(255, 248, 235, 0.22), transparent 70%),
    linear-gradient(to bottom, rgba(12, 10, 8, 0.28) 0%, transparent 35%);
  pointer-events: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(12, 9, 6, 0.92) 0%,
    rgba(12, 9, 6, 0.62) 26%,
    rgba(12, 9, 6, 0.18) 52%,
    rgba(12, 9, 6, 0.05) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 4;
  width: min(100% - (var(--margin) * 2), 40rem);
  margin-inline-start: var(--margin);
  margin-inline-end: auto;
  margin-bottom: clamp(1rem, 3.5vh, 2.5rem);
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.hero__mark {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 28%;
  translate: -50% -50%;
  width: min(17.5rem, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero__mark::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 250, 242, 0.94) 0%,
    rgba(255, 250, 242, 0.78) 34%,
    rgba(255, 250, 242, 0) 72%
  );
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: 92%;
  height: auto;
  background: none;
  padding: 0;
}

.hero__copy h1 {
  margin: 0;
  color: #f7f4ee;
  font-size: clamp(1.85rem, 1rem + 3.2vw, 3.75rem);
  line-height: 1.28;
  max-width: 12em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.22rem);
  line-height: 1.7;
  color: #f7f4ee;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero .btn--outline {
  background: transparent;
  color: #f7f4ee;
  box-shadow: inset 0 0 0 2px #f7f4ee;
}

.hero .btn--outline:hover {
  background: #f7f4ee;
  color: var(--primary-dark);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero__trust li {
  background: rgba(247, 244, 238, 0.16);
  color: #f7f4ee;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0.4rem 0.75rem;
}

/* Phones — stack readable: big mark, then copy under it */
@media (max-width: 719px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 0;
  }

  .hero__mark {
    top: 26%;
    width: min(15rem, 68vw);
  }

  .hero__copy {
    width: min(100% - (var(--margin) * 2), 36rem);
    margin-inline: auto;
    margin-bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
    gap: 0.65rem;
    text-align: center;
    justify-items: center;
  }

  .hero__copy h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
    max-width: 14em;
  }

  .hero__lead {
    font-size: 1rem;
    max-width: 28em;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__video,
  .hero__poster {
    filter: blur(4px) brightness(0.84) saturate(1.05) contrast(1.03);
    transform: scale(1.1);
  }
}

/* Short phones */
@media (max-width: 719px) and (max-height: 700px) {
  .hero__mark {
    top: 22%;
    width: min(11.5rem, 52vw);
  }

  .hero__copy {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .hero__lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Tablets */
@media (min-width: 720px) and (max-width: 959px) {
  .hero__mark {
    top: 30%;
    width: min(17rem, 42vw);
  }

  .hero__copy {
    width: min(100% - (var(--margin) * 2), 34rem);
  }

  .hero__video,
  .hero__poster {
    filter: blur(4.5px) brightness(0.85) saturate(1.05) contrast(1.03);
  }
}

@media (max-height: 740px) and (min-width: 720px) {
  .hero {
    min-height: 0;
  }

  .hero__mark {
    width: min(12rem, 30vw);
    top: 26%;
  }

  .hero__copy {
    gap: 0.45rem;
  }

  .hero__lead {
    font-size: 0.95rem;
  }
}

/* Desktop / large */
@media (min-width: 960px) {
  .hero__mark {
    width: min(22rem, 30vw);
    top: 34%;
  }

  .hero__copy {
    width: min(42vw, 38rem);
    margin-bottom: 2.75rem;
    text-align: start;
    justify-items: start;
  }

  .hero__video,
  .hero__poster {
    filter: blur(5px) brightness(0.88) saturate(1.06) contrast(1.02);
    transform: scale(1.07);
  }
}

@media (min-width: 1280px) {
  .hero__mark {
    width: min(24rem, 28vw);
    top: 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__poster {
    opacity: 1 !important;
    filter: blur(3.5px) brightness(0.86) saturate(1.04);
    transform: scale(1.06);
  }
}

/* Sections — each one covers the screen, the next slides over the last */
main > .section,
.contact {
  position: relative;
  z-index: 2;
  scroll-margin-top: var(--nav-h);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  min-height: calc(100svh - var(--nav-h));
  background: var(--paper);
}

.nav__links a.is-current {
  color: var(--primary-dark);
}

.section--ground {
  background: var(--ground);
}

.section--deep {
  background: var(--primary-dark);
  color: var(--paper);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section__head h2 {
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.4rem);
}

.section--deep .section__head h2,
.section--deep .section__head p {
  color: var(--paper);
}

.section__head p {
  margin: 0;
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--ink);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.about__media {
  min-width: 0;
  background: var(--ground-deep);
}

.about__portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__panel {
  min-width: 0;
  background: var(--paper);
  padding: clamp(1.15rem, 2.5vw, 2rem);
  display: grid;
  gap: 1rem;
}

.about__panel p {
  margin: 0;
}

.about__points {
  display: grid;
  gap: 0.65rem;
}

.about__point {
  background: var(--ground);
  color: var(--body);
  padding: 0.9rem 1rem;
  line-height: 1.55;
}

.about__point strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
  line-height: 1.4;
}

@media (min-width: 800px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
  }

  .about__portrait {
    aspect-ratio: 4 / 5;
    height: 100%;
  }

  .about__media {
    height: 100%;
  }
}

/* Products */
.products__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.product {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
}

.product__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ground-deep);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__body {
  min-width: 0;
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product__body h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
}

.product__body p {
  margin: 0;
}

.product__body ul {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
}

.product__body li {
  line-height: 1.5;
  padding-inline-start: 0.9rem;
  position: relative;
}

.product__body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
}

.product a.btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 700px) {
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Proof */
.proof__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.proof__tile {
  min-width: 0;
  background: var(--ground-deep);
  color: var(--ink);
  padding: 1.25rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.proof__tile h3,
.proof__tile h4,
.proof__tile p {
  margin: 0;
}

.proof__tile h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.proof__tile--accent {
  background: var(--primary-dark);
  color: var(--paper);
}

.proof__tile--accent h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  color: var(--paper);
}

@media (min-width: 700px) {
  .proof__board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof__tile--accent {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .proof__board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .proof__tile--accent {
    grid-column: span 2;
  }
}

/* Stats — equal rows, no staggered overlap */
.stats__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.stat {
  min-width: 0;
  padding: 1.35rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  background: var(--primary);
  color: var(--paper);
}

.stat--ink {
  background: var(--ink);
}

.stat--mid {
  background: var(--date);
}

.stat__num {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--paper);
}

@media (min-width: 800px) {
  .stats__wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Gallery — captions sit under the picture, never on it */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.6rem;
}

.gallery__cell {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.4rem;
  align-content: start;
}

.gallery__cell img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ground-deep);
}

.gallery__cell figcaption {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.gallery__cell--word,
.gallery__cell--gold,
.gallery__cell--brown {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
}

.gallery__cell--word {
  background: var(--primary-dark);
  color: var(--paper);
}

.gallery__cell--gold {
  background: #e3c15a;
  color: var(--ink);
}

.gallery__cell--brown {
  background: var(--date);
  color: var(--paper);
}

.gallery__cell--word figcaption,
.gallery__cell--gold figcaption,
.gallery__cell--brown figcaption {
  display: none;
}

@media (min-width: 800px) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Contact */
.contact {
  background: var(--ground);
}

.coupon {
  background: var(--primary-dark);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.coupon__copy h2 {
  margin: 0 0 0.6rem;
  color: var(--paper);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
}

.coupon__copy p {
  margin: 0;
  max-width: 36rem;
  line-height: 1.65;
  color: var(--paper);
}

.coupon__meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: var(--step-small);
  line-height: 1.5;
  color: #f4f7ef;
}

.coupon__form {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.coupon__form label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--paper);
  margin-top: 0.45rem;
}

.coupon__form input,
.coupon__form select,
.coupon__form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.coupon__form textarea {
  min-height: 7rem;
  resize: vertical;
}

.coupon__form input::placeholder,
.coupon__form textarea::placeholder {
  color: #5c564c;
}

.coupon__form option {
  color: var(--ink);
  background: var(--paper);
}

.coupon__form button {
  margin-top: 0.6rem;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.coupon__form button:hover {
  background: #e3c15a;
  color: var(--ink);
}

.form-note {
  margin: 0.4rem 0 0;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
}

@media (min-width: 860px) {
  .coupon {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
  }
}

/* Footer */
.footer {
  background: var(--ink);
  color: #f3f0ea;
  padding: 2.5rem 0 1.75rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 0;
}

.footer__brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  background: var(--paper);
  flex: none;
}

.footer__brand strong {
  display: block;
  color: var(--paper);
  font-size: 1.15rem;
  line-height: 1.3;
}

.footer__brand p {
  margin: 0.35rem 0 0;
  line-height: 1.6;
  color: #f3f0ea;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-content: start;
}

.footer nav a {
  color: var(--paper);
  font-weight: 700;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.footer__bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: var(--step-small);
  line-height: 1.5;
  color: #f3f0ea;
}

.footer__credit {
  margin: 0.8rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #f3f0ea;
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
