/* AlRiif Honey — site styles. Works for English (ltr) and Arabic (rtl). */

:root {
  --brown: #52332b;
  --brown-dark: #3f2620;
  --honey: #fbab23;
  --orange: #f4900a;
  --green: #71b321;
  --ink: #3a2a25;
  --text: #6b625e;
  --muted: #8f8782;
  --line: #ece6df;
  --cream: #fdf8f0;
  --white: #fff;

  --font-body: "Kreon", Georgia, serif;
  --font-ui: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-hero: "Lato", "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[dir="rtl"] {
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-ui: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-hero: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.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: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brown);
  color: var(--white);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding-top: clamp(28px, 4vw, 48px); }
.section--flush-top { padding-top: 0; }
.center { margin-top: 40px; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  border-radius: 3px;
  background: var(--honey);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--orange); transform: translateY(-1px); }

.btn-pill {
  display: inline-block;
  padding: .2em 1em;
  border-radius: 999px;
  background: var(--white);
  color: var(--honey);
  font-family: var(--font-hero);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(82, 51, 43, .18);
  transition: transform .25s var(--ease), color .25s;
}
.btn-pill:hover { transform: translateY(-2px); color: var(--orange); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(82, 51, 43, .1); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .container { min-height: 72px; }

.brand img { width: 104px; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 78px; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brown);
  transition: color .2s;
}
[dir="rtl"] .nav a { font-size: 16px; letter-spacing: 0; }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  background: var(--honey);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--orange); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang-switch {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Tajawal", var(--font-ui);
  font-size: 15px;
  color: var(--brown);
  transition: border-color .2s, color .2s;
}
.lang-switch[lang="en"] { font-family: "Roboto", Arial, sans-serif; }
.lang-switch:hover { border-color: var(--honey); color: var(--orange); }

.nav-toggle,
.nav-extra { display: none; }

@media (max-width: 1100px) {
  :root { --bar-h: 64px; }

  /* No backdrop-filter here: it would trap the fixed menu panel inside the bar */
  .site-header {
    background: var(--white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-scrolled { border-bottom-color: transparent; }
  .site-header .container,
  .site-header.is-scrolled .container { min-height: var(--bar-h); gap: 10px; }
  .brand img,
  .site-header.is-scrolled .brand img { width: 56px; }

  .lang-switch {
    display: inline-flex;
    align-items: center;
    height: 38px;
    margin-inline-start: auto;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--brown);
    cursor: pointer;
    transition: border-color .2s, background .2s;
  }
  .nav-toggle:hover { border-color: var(--honey); }
  .nav-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    margin: -1px 0 0 -9px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-6px); }
  .nav-toggle span:nth-child(3) { transform: translateY(6px); }
  .nav-open .nav-toggle { background: var(--honey); border-color: var(--honey); color: var(--white); }
  .nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }

  /* Menu panel drops down under the bar */
  .nav {
    position: fixed;
    inset: var(--bar-h) 0 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 8px var(--gutter) 28px;
    overflow-y: auto;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }

  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li > a,
  [dir="rtl"] .nav li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 2px;
    font-size: 17px;
    letter-spacing: .02em;
    text-transform: none;
  }
  [dir="rtl"] .nav li > a { font-size: 19px; letter-spacing: 0; }
  .nav li > a::after {
    position: static;
    width: 8px;
    height: 8px;
    border: solid var(--honey);
    border-width: 2px 2px 0 0;
    background: none;
    transform: rotate(45deg);
    opacity: .7;
  }
  [dir="rtl"] .nav li > a::after { transform: rotate(-135deg); }
  .nav li > a:hover::after,
  .nav li > a[aria-current="page"]::after { transform: rotate(45deg); opacity: 1; }
  [dir="rtl"] .nav li > a:hover::after,
  [dir="rtl"] .nav li > a[aria-current="page"]::after { transform: rotate(-135deg); }
  .nav li > a[aria-current="page"] { color: var(--orange); font-weight: 700; }

  .nav-extra {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding-top: 28px;
    font-size: 15px;
    color: var(--text);
  }
  .nav-extra a,
  [dir="rtl"] .nav-extra a {
    padding: 0;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--brown);
  }
  .nav-extra a::after { content: none; }
  .nav-extra > a { justify-self: start; }
  .nav-extra .social { margin-top: 10px; }
  .nav-extra .social a {
    display: grid;
    width: 42px;
    height: 42px;
    border-color: var(--line);
    color: var(--brown);
  }
  .nav-extra .social a:hover { background: var(--honey); border-color: var(--honey); color: var(--white); }
}

/* ---------- Home hero slider ---------- */

.hero {
  position: relative;
  max-width: 1440px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1400 / 788;
  background: #f6c64a;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-link { position: absolute; inset: 0; }

.hero-text {
  position: absolute;
  inset-inline-start: 4%;
  top: 50%;
  width: min(44%, 560px);
  color: var(--white);
  transform: translateY(-50%);
}
.hero-title {
  margin-bottom: .5em;
  font-family: var(--font-hero);
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(82, 51, 43, .25);
}
.hero-sub {
  margin: -.3em 0 .8em;
  font-family: var(--font-hero);
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(82, 51, 43, .25);
}
.hero-slide .hero-text > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-slide.is-active .hero-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-text > :nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-text > :nth-child(3) { transition-delay: .3s; }
.hero-slide.is-active .hero-text > :nth-child(4) { transition-delay: .45s; }

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.hero-dots button[aria-current="true"] { background: var(--white); transform: scale(1.2); }

/* Phones: the mobile photos already contain the text */
@media (max-width: 700px) {
  .hero { aspect-ratio: 1 / 1; padding: 0; }
  .hero-text { display: none; }
}

/* ---------- Page banner ---------- */

.page-banner { margin-top: 0; }
.page-banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 600px) {
  .page-banner { padding: 0; }
  .page-banner img { aspect-ratio: 1 / 1; }
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product { text-align: center; }
.product-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
}
.product-media img {
  max-height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.product:hover .product-media img { transform: translateY(-6px) scale(1.03); }
.product figcaption {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
}
@media (max-width: 860px) {
  .product-grid,
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

.qr-box {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  padding: 20px clamp(16px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  font-size: 16px;
}
.qr-box img { flex: none; width: clamp(90px, 14vw, 130px); }
.qr-box strong { color: var(--ink); }
@media (max-width: 560px) {
  .qr-box { flex-direction: column; text-align: center; }
}

/* ---------- Two-column rows ---------- */

.split-list { display: grid; gap: clamp(48px, 7vw, 88px); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.split--reverse .split-media { order: -1; }
.split-media img {
  width: 100%;
  border-radius: 4px;
}
.split-media--plain img { width: auto; margin: 0 auto; }
.union-logo { width: min(320px, 80%) !important; }
.split-body h2 {
  margin-bottom: 26px;
  font-family: var(--font-ui);
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 500;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { order: -1; }
}

.dots { margin: 0 0 1em; padding-inline-start: 1.4em; list-style: disc; }
.dots li { margin-bottom: .3em; }
.dots li::marker { color: var(--honey); }

.checks li {
  position: relative;
  margin-bottom: 14px;
  padding-inline-start: 36px;
  font-family: var(--font-ui);
  font-size: 16px;
}
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { color: var(--ink); font-weight: 500; }

/* ---------- Honey for sweetening ---------- */

.intro {
  margin-bottom: 36px;
  font-size: 19px;
  color: var(--ink);
  text-align: center;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
.recipe img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.recipe:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(82, 51, 43, .15); }
.recipe figcaption { font-size: 16px; line-height: 1.7; }
@media (max-width: 860px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .recipe-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}
.testimonial img {
  width: 150px;
  height: 150px;
  margin-bottom: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--honey);
  object-fit: cover;
}
.testimonial blockquote { margin: 0 0 12px; font-size: 17px; }
.testimonial blockquote p::before { content: "“"; color: var(--honey); }
.testimonial blockquote p::after { content: "”"; color: var(--honey); }
[dir="rtl"] .testimonial blockquote p::before { content: "”"; }
[dir="rtl"] .testimonial blockquote p::after { content: "“"; }
.testimonial strong { display: block; color: var(--ink); font-weight: 700; }
.testimonial figcaption span { font-style: italic; color: var(--muted); }
[dir="rtl"] .testimonial figcaption span { font-style: normal; }
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial { text-align: center; }
  .testimonial img { margin-inline: auto; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px clamp(32px, 6vw, 80px);
  margin-bottom: 40px;
}
.contact-grid h2 {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 500;
}
.contact-grid a { color: var(--orange); }
.contact-grid a:hover { text-decoration: underline; }
.map {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 440px);
  border: 0;
  border-radius: 6px;
}
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }

.not-found { text-align: center; }
.not-found h2 { margin-bottom: 12px; font-size: 32px; }
.not-found p { margin-bottom: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(48px, 6vw, 64px) 0;
  background: var(--brown);
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.4fr;
  gap: 40px;
}
.site-footer h2 {
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
}
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-weight: 700; color: var(--white); transition: color .2s; }
.footer-nav a:hover { color: var(--honey); }
.footer-about { display: flex; align-items: flex-start; gap: 20px; }
.footer-about img { flex: none; width: 110px; }
.footer-org { margin-bottom: 4px; font-weight: 700; color: var(--white); text-transform: uppercase; }
[dir="rtl"] .footer-org { text-transform: none; }
.site-footer address { font-style: normal; }
.site-footer address a:hover { color: var(--honey); }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--honey); border-color: var(--honey); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.supporters .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--brown);
  text-align: center;
}
.supporters img { width: min(424px, 100%); }

.to-top {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--honey);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(82, 51, 43, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
