/* ───────────────────────── Rasam Trading LLC — Landing Page ─────────────────────────
   Palette: cream #FAF6EE · border #E8DEC8 · brown #5C3D2E · gold #C4952A
            dark #2C1A0E · muted text #6B5040
   Type:    Playfair Display (display) · IBM Plex Sans (body) · Noto Kufi Arabic (AR) */

:root {
  --cream: #FAF6EE;
  --cream-border: #E8DEC8;
  --cream-tag: #F0E5CE;
  --brown: #5C3D2E;
  --gold: #C4952A;
  --gold-text: #8A671A; /* WCAG AA-safe gold for small text on light backgrounds */
  --dark: #2C1A0E;
  --muted: #6B5040;
  --serif: 'Playfair Display', serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --arabic: 'Noto Kufi Arabic', sans-serif;
  --pad-x: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
/* clip: pre-animation translateX offsets must not create a horizontal scrollbar */
html, body { overflow-x: hidden; overflow-x: clip; }
body { font-family: var(--sans); color: var(--dark); background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ── Shared blocks ── */
.section { padding: 104px 0; }
.section--white { background: #fff; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); }
.section--brown { background: var(--brown); }

.section-head { text-align: center; margin-bottom: 60px; }
.section--dark .section-head { margin-bottom: 64px; }
.section-head__sub {
  font: 400 16px/1.7 var(--sans);
  color: var(--muted);
  max-width: 540px;
  margin: 18px auto 0;
}

.eyebrow {
  font: 600 10px var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 16px;
}
.section--dark .eyebrow, .section--brown .eyebrow { color: var(--gold); }
.heading {
  font: 700 44px/1.15 var(--serif);
  color: var(--dark);
  margin-bottom: 10px;
}
.heading--light { color: var(--cream); }
.heading-ar {
  font: 400 11px var(--arabic);
  color: var(--gold-text);
  text-align: right;
  margin-bottom: 24px;
}
.heading-ar--center { font-size: 12px; text-align: center; margin-bottom: 0; }
.heading-ar--dim { color: rgba(196, 149, 42, .78); }
.body-text {
  font: 400 16px/1.82 var(--sans);
  color: var(--muted);
  margin-bottom: 18px;
}
.body-text--spaced { line-height: 1.8; margin-bottom: 36px; }
.divider {
  width: 80px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  font: 600 14px var(--sans);
  padding: 14px 30px;
  border-radius: 3px;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn--solid { background: var(--brown); color: var(--cream); }
.btn--outline { border: 1.5px solid var(--brown); color: var(--brown); font-weight: 500; }
.btn--gold { background: var(--gold); color: #fff; font-size: 13px; padding: 13px 22px; align-self: flex-start; }
.btn--nav { font-size: 13px; padding: 10px 22px; letter-spacing: .02em; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  box-shadow: 0 1px 8px rgba(92, 61, 46, .06);
}
.nav__logo { height: 44px; object-fit: contain; display: block; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font: 500 14px var(--sans); color: #3D2B1F; }
.nav__links a:hover { color: var(--gold); }
.nav__links a.btn--nav { background: var(--brown); color: var(--cream); font-size: 13px; font-weight: 600; }
.nav__links a.btn--nav:hover { color: var(--cream); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--brown);
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero {
  position: relative;
  min-height: 660px;
  background: linear-gradient(128deg, var(--cream) 0%, #F2E5CE 55%, #EDD9B2 100%);
  display: flex;
  overflow: hidden;
}
.hero__circle { position: absolute; border-radius: 50%; }
.hero__circle--gold {
  right: -80px; top: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(196, 149, 42, .18) 0%, transparent 68%);
}
.hero__circle--brown {
  right: 220px; bottom: -130px;
  width: 340px; height: 340px;
  background: rgba(92, 61, 46, .05);
}
.hero__text {
  position: relative;
  flex: 0 0 56%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px var(--pad-x);
}
.hero__rule {
  position: absolute;
  left: 52px; top: 88px; bottom: 88px;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
}
.hero__text > * { opacity: 0; animation: fadeUp .6s ease forwards; }
.hero__ar { font: 400 16px var(--arabic); color: var(--gold-text); margin-bottom: 8px; animation-duration: .5s; }
.hero__meta {
  font: 500 11px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(61, 43, 31, .6);
  margin-bottom: 22px;
  animation-delay: .06s;
}
.hero__title {
  font: 800 62px/1.04 var(--serif);
  color: var(--dark);
  margin-bottom: 8px;
  animation-delay: .1s;
}
.hero .divider { animation-delay: .16s; }
.hero__lead { font: 400 17px/1.7 var(--sans); color: rgba(44, 26, 14, .62); margin-bottom: 7px; animation-delay: .2s; }
.hero__lead-ar { font: 400 17px/1.5 var(--arabic); color: rgba(92, 61, 46, .72); text-align: right; margin-bottom: 36px; animation-delay: .24s; }
.hero__actions { display: flex; gap: 16px; animation-delay: .3s; }
.hero__media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 88px 88px 40px;
}
.hero__media img {
  width: 100%;
  max-width: 380px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 56px rgba(92, 61, 46, .18);
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--brown);
}
.stats__item { padding: 30px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .13); }
.stats__item:last-child { border-right: 0; }
.stats__num { font: 700 38px/1 var(--serif); color: var(--cream); }
.stats__label {
  font: 400 11px var(--sans);
  color: rgba(250, 246, 238, .6);
  margin-top: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── About ── */
#about .heading-ar { margin-bottom: 28px; }
.about__quote {
  border-right: 3px solid var(--gold);
  padding-right: 20px;
  margin-top: 14px;
}
.about__quote p { font: 500 15px/1.9 var(--arabic); color: var(--brown); text-align: right; }
.about__cards { display: flex; flex-direction: column; gap: 18px; }
.about__card {
  padding: 28px 32px;
  border: 1px solid var(--cream-border);
  border-radius: 4px;
}
.about__card--gold { border-left: 4px solid var(--gold); }
.about__card--brown { border-left: 4px solid var(--brown); }
.about__card p { font: 400 15px/1.72 var(--sans); color: var(--muted); }
.about__card-label {
  font: 600 10px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 10px;
}
.about__card-label--gold { color: var(--gold-text); }
.about__badge {
  padding: 28px 32px;
  background: var(--cream);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.about__badge .about__card-label { margin-bottom: 6px; }
.about__badge-sub { font: 400 14px var(--sans); color: var(--muted); }
.about__badge-ar { font: 500 13px var(--arabic); color: var(--gold-text); }

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--cream-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card--dark { background: var(--brown); border: 0; }
.product-card__visual { position: relative; height: 180px; overflow: hidden; }
.product-card__visual--sugar { background: linear-gradient(145deg, #FDFAEF 0%, #F5E498 40%, #D4A828 80%, #C4952A 100%); }
.product-card__visual--rice { background: linear-gradient(145deg, #FAF6EE 0%, #F0E4CC 55%, #D8C090 100%); }
.product-card__visual--wheat { background: linear-gradient(145deg, #E8B030 0%, #C08020 50%, #8B5A10 100%); }
.product-card__visual--soya { background: linear-gradient(145deg, #7A9B5A 0%, #4D7030 50%, #2E4A18 100%); }
.product-card__visual--pulses { background: linear-gradient(145deg, #D48048 0%, #A84820 50%, #6B2810 100%); }
.product-card__visual--more img { width: 100%; height: 100%; object-fit: cover; opacity: .8; display: block; }
.product-card__stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(60deg, transparent, transparent 20px, rgba(255, 255, 255, .06) 20px, rgba(255, 255, 255, .06) 40px);
}
.product-card__stripes--dark {
  background: repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(0, 0, 0, .04) 14px, rgba(0, 0, 0, .04) 28px);
}
.product-card__stripes--light {
  background: repeating-linear-gradient(30deg, transparent, transparent 20px, rgba(255, 255, 255, .05) 20px, rgba(255, 255, 255, .05) 40px);
}
.product-card__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(255, 255, 255, .13), transparent 60%);
}
.product-card__orb { position: absolute; border-radius: 50%; }
.product-card__orb--a { right: -24px; top: -24px; width: 220px; height: 220px; background: rgba(196, 149, 42, .1); }
.product-card__orb--b { right: 50px; bottom: -40px; width: 150px; height: 150px; background: rgba(196, 149, 42, .07); }
.product-card__orb--c { left: -20px; bottom: -30px; width: 180px; height: 180px; background: rgba(255, 255, 255, .06); }
.product-card__orb--d { right: -16px; bottom: -16px; width: 160px; height: 160px; background: rgba(0, 0, 0, .1); }
.product-card__orb--e { right: -20px; top: -20px; width: 180px; height: 180px; background: rgba(255, 255, 255, .06); }
.product-card__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--brown));
}
.product-card__plus {
  position: absolute;
  bottom: 16px; left: 24px;
  font: 700 40px/1 var(--serif);
  color: rgba(196, 149, 42, .55);
}
.product-card__body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.product-card__body--between { justify-content: space-between; gap: 20px; }
.product-card__bar { width: 44px; height: 4px; background: var(--gold); border-radius: 2px; }
.product-card__bar--brown { background: var(--brown); }
.product-card__index {
  font: 600 10px var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.product-card__index--brown { color: var(--brown); }
.product-card--dark .product-card__index { margin-bottom: 12px; color: var(--gold); }
.product-card__title { font: 700 22px/1.2 var(--serif); color: var(--dark); margin-bottom: 6px; }
.product-card__title--light { color: var(--cream); margin-bottom: 14px; }
.product-card__ar { font: 400 11px var(--arabic); color: var(--gold-text); }
.product-card__ar--brown { color: var(--brown); }
.product-card__ar--rtl { font-size: 12px; text-align: right; color: rgba(196, 149, 42, .8); }
.product-card__desc { font: 400 14px/1.75 var(--sans); color: var(--muted); flex: 1; }
.product-card__desc--light { color: rgba(250, 246, 238, .7); margin-bottom: 10px; }
.product-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.product-card__tags span {
  font: 500 11px var(--sans);
  color: var(--brown);
  background: var(--cream-tag);
  padding: 4px 12px;
  border-radius: 12px;
}

/* ── Why choose us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.why-card { background: rgba(255, 255, 255, .04); padding: 44px 32px; }
.why-card + .why-card { border-left: 1px solid rgba(255, 255, 255, .06); }
.why-card__icon {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(196, 149, 42, .4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.why-card h3 { font: 700 20px/1.3 var(--serif); color: var(--cream); margin-bottom: 14px; }
.why-card p { font: 400 14px/1.72 var(--sans); color: rgba(250, 246, 238, .55); }

/* ── Global reach ── */
.grid-2--center { align-items: center; }
.globe { display: flex; justify-content: center; }
.globe svg { width: 100%; max-width: 420px; display: block; }
.regions {
  border: 1px solid var(--cream-border);
  border-radius: 4px;
  overflow: hidden;
}
.regions__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--cream-border);
}
.regions__row:last-child { border-bottom: 0; }
.regions__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.regions__dot--brown { background: var(--brown); }
.regions__name { font: 600 14px var(--sans); color: var(--dark); }
.regions__note { font: 400 13px var(--sans); color: var(--muted); margin-left: auto; text-align: right; }
.regions__note--gold { color: var(--gold-text); }

/* ── Testimonials ── */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote-card {
  background: rgba(250, 246, 238, .07);
  border: 1px solid rgba(250, 246, 238, .12);
  border-radius: 6px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-card__mark { font: 700 44px/1 var(--serif); color: var(--gold); opacity: .55; }
.quote-card p { font: 400 15px/1.78 var(--sans); color: rgba(250, 246, 238, .8); flex: 1; }
.quote-card footer { border-top: 1px solid rgba(250, 246, 238, .1); padding-top: 18px; }
.quote-card__name { font: 600 14px var(--sans); color: var(--cream); }
.quote-card__loc { font: 400 12px var(--sans); color: rgba(250, 246, 238, .75); margin-top: 4px; }

/* ── Contact ── */
#contact .section-head { margin-bottom: 56px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
}
.contact-card__icon {
  width: 52px; height: 52px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__title { font: 600 15px var(--sans); color: var(--dark); margin-bottom: 8px; }
.contact-card__detail { font: 400 14px/1.6 var(--sans); color: var(--muted); }
.contact-card__link { font: 600 14px var(--sans); color: var(--brown); }
.contact-card__link:hover { color: var(--gold); }

/* ── Footer ── */
.footer { background: var(--dark); padding: 72px 0 36px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer__brand { font: 800 28px var(--serif); color: var(--cream); margin-bottom: 6px; }
.footer__brand span { color: var(--gold); }
.footer__brand-ar { font: 400 13px var(--arabic); color: rgba(196, 149, 42, .7); margin-bottom: 20px; }
.footer__about { font: 400 14px/1.78 var(--sans); color: rgba(250, 246, 238, .48); margin-bottom: 20px; }
.footer__about-ar { font: 400 13px/1.85 var(--arabic); color: rgba(196, 149, 42, .6); text-align: right; }
.footer__head {
  font: 600 10px var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.footer__links { display: flex; flex-direction: column; gap: 14px; }
.footer__links a, .footer__links span { font: 400 14px var(--sans); color: rgba(250, 246, 238, .55); }
.footer__links a:hover { color: var(--gold); }
.footer__links .footer__gold { font-size: 13px; color: rgba(196, 149, 42, .8); }
.footer__links .footer__placeholder { font-size: 13px; color: rgba(196, 149, 42, .55); font-style: italic; }
.footer__bottom {
  border-top: 1px solid rgba(250, 246, 238, .1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__bottom span { font: 400 12px var(--sans), var(--arabic); color: rgba(250, 246, 238, .65); }
.footer__bottom span[dir="rtl"] { font-family: var(--arabic); }

/* ── Scroll animations (set via JS; keeps content visible without JS) ── */
[data-anim] { will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > * { animation: none; opacity: 1; }
  [data-anim] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; }
  .hero__rule { left: 20px; }
  .hero__title { font-size: 52px; }
  .grid-2 { gap: 48px; }
  .footer__grid { gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .heading { font-size: 36px; }

  .hero { flex-direction: column; min-height: 0; }
  .hero__text { flex: none; padding: 72px var(--pad-x) 24px; }
  .hero__rule { left: 20px; top: 72px; bottom: 24px; }
  .hero__media { padding: 24px var(--pad-x) 64px; }

  .grid-2 { grid-template-columns: 1fr; }
  .globe { order: 2; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card + .why-card { border-left: 0; }
  .quotes-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-border);
    box-shadow: 0 12px 24px rgba(92, 61, 46, .12);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px var(--pad-x); border-top: 1px solid var(--cream-border); }
  .nav__links a.btn--nav { margin: 12px var(--pad-x) 16px; border-radius: 3px; text-align: center; border-top: 0; }
}

@media (max-width: 600px) {
  :root { --pad-x: 24px; }
  .hero__title { font-size: 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .stats__item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .13); }
  .stats__item:nth-child(n+3) { border-bottom: 0; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .regions__note { flex-basis: 100%; margin-left: 24px; text-align: left; }
  .regions__row { flex-wrap: wrap; row-gap: 4px; }
}
