/* =========================================================
   Share Source Global Ltd — shared styles for every page
   ---------------------------------------------------------
   Sections in this file:
    1. Colours, fonts & shared values (change them here once)
    2. Base page setup
    3. Animations
    4. Buttons & text styles
    5. Header (top strip + navigation + mobile menu)
    6. Hero
    7. Home page sections
    8. Quote form
    9. About page sections
   10. Footer
   11. Small screens (tablet & mobile)
   12. Reduced motion
   13. Arabic pages (right-to-left)
   ========================================================= */


/* 1. Colours, fonts & shared values ---------------------- */
:root {
  --brand: #234386;        /* main blue */
  --brand-dark: #16295a;
  --navy: #142a57;         /* footer */
  --ink: #1b1f2a;          /* lines & dark text */
  --text: #2b3040;         /* body text */
  --muted: #4a5060;
  --paper: #fbf9f6;        /* page background */
  --line-soft: #e6dfd2;
  --orange: #cf5f1b;
  --rust: #c4561a;
  --rust-text: #a8460f;
  --accent: #ed7328;
  --yellow: #ffc400;
  --yellow-soft: #ffd84d;
  --green: #a2d3a6;
  --sky: #6aa8dc;

  --font-body: 'Jost', 'Futura', 'Trebuchet MS', sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-script: 'Caveat', 'Segoe Print', cursive;

  --shadow-photo: rgba(0, 0, 0, 0.16) -14px 10px 49px 0;
  --shadow-soft: rgba(0, 0, 0, 0.05) 0 20px 27px 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 8px;
}


/* 2. Base page setup ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

img { max-width: 100%; display: block; }

:where(a) { color: var(--brand); }
:where(a:hover) { color: var(--brand-dark); }

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

[hidden] { display: none !important; }

.page { overflow: hidden; }   /* hides decorative shapes that poke past the edges */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }


/* 3. Animations ------------------------------------------ */
@keyframes ssg-up     { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes ssg-photo  { from { opacity: 0; translate: 0 48px; rotate: 2deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes ssg-float  { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-14px, 18px) rotate(4deg); } }
@keyframes ssg-float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(16px, -12px) scale(1.06); } }
@keyframes ssg-sway   { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ssg-marquee{ from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ssg-row    { from { opacity: 0; translate: -16px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ssg-draw   { to { stroke-dashoffset: 0; } }
@keyframes ssg-pop    { 0% { opacity: 0; scale: .92; } 100% { opacity: 1; scale: 1; } }
@keyframes ssg-menu   { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

/* Hero text fades up, one line after another */
.hero-copy > * { animation: ssg-up .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
.hero-copy > *:nth-child(5) { animation-delay: .48s; }

.a-photo  { animation: ssg-photo 1.1s .3s var(--ease) both; }
.a-float  { animation: ssg-float 14s ease-in-out infinite; }
.a-float2 { animation: ssg-float2 11s ease-in-out infinite; }
.a-sway   { transform-origin: 50% 100%; animation: ssg-sway 6s ease-in-out infinite; }

/* Cards lift when you hover over them */
.lift { transition: transform .35s var(--ease), box-shadow .35s; }
.lift:hover { transform: translateY(-8px); }
.lift svg { transition: transform .6s var(--ease); }
.lift:hover svg { transform: rotate(-6deg) scale(1.08); }

.pop { animation: ssg-pop .5s var(--ease) both; }
.draw { stroke-dasharray: 80; stroke-dashoffset: 80; animation: ssg-draw .9s .25s ease forwards; }

/* Scroll reveal. Newer browsers do it in CSS alone. For other browsers,
   script.js adds the "reveal-fallback" class and does it instead. */
@supports (animation-timeline: view()) {
  .reveal { animation: ssg-up linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}
.reveal-fallback .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.reveal-fallback .reveal.lift { transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s; }
.reveal-fallback .reveal.is-visible { opacity: 1; translate: 0 0; }

/* Decorative shapes */
.blob, .deco-plant { position: absolute; pointer-events: none; }
.blob { z-index: 0; }


/* 4. Buttons & text styles ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 32px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

.btn-primary { background: var(--brand); color: #fff; padding: 20px 40px; }
.btn-primary:hover { color: #fff; }

.btn-outline { border: 2px solid var(--rust); color: var(--rust-text); background: transparent; padding: 18px 36px; }
.btn-outline:hover { color: var(--rust-text); }

.btn-white { background: #fff; color: var(--brand); padding: 20px 40px; }
.btn-white:hover { color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.eyebrow--light { color: #fff; }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--brand);
}
.display--light { color: #fff; }
.display-80 { font-size: clamp(46px, 6.8vw, 80px); line-height: 0.88; }
.display-72 { font-size: clamp(42px, 6vw, 72px); }
.display-64 { font-size: clamp(40px, 5.4vw, 64px); }

.script {
  margin: 0;
  font-family: var(--font-script);
  line-height: 1.1;
  color: var(--brand);
}
.script--light { color: #fff; }
.script-38 { font-size: clamp(30px, 3.2vw, 38px); }
.script-34 { font-size: clamp(28px, 2.9vw, 34px); }
.script-32 { font-size: clamp(26px, 2.7vw, 32px); }
.script-30 { font-size: clamp(25px, 2.5vw, 30px); }

.lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }

.heading-stack { display: flex; flex-direction: column; gap: 10px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust-text);
  font-weight: 600;
}
.kicker--sm { font-size: 11px; }

.wave { display: block; width: 100%; height: 120px; }


/* 5. Header ---------------------------------------------- */
.topbar { background: var(--brand); color: #fff; }
.topbar-inner {
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-lang { display: flex; gap: 16px; align-items: center; }
.topbar-lang a { color: #fff; text-decoration: none; }
.topbar-lang a:hover { text-decoration: underline; }
.lang-current { font-weight: 600; }
.lang-ar { letter-spacing: 0; font-size: 14px; }
.lang-sep { opacity: 0.5; }

.site-header { position: relative; z-index: 20; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.logo:hover { color: var(--brand); }
.logo svg { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.06em; }
.logo-sub { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 4px; }

/* On big screens the menu wrapper "disappears" so links sit in the bar */
.nav-menu { display: contents; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--brand);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--brand); }

.nav-cta { padding: 16px 32px; min-height: 44px; }

/* Hamburger button (only shown on small screens) */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 6. Hero ------------------------------------------------ */
.hero {
  position: relative;
  padding-block: 48px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.hero--about { gap: 56px; }

.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; }

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8.5vw, 104px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: var(--brand);
}
.hero--about .hero-title { font-size: clamp(50px, 8vw, 96px); line-height: 0.88; }

.hero-copy .lead { max-width: 520px; }
.hero--about .hero-copy .lead { max-width: 540px; line-height: 1.7; }

.hero-visual { position: relative; min-height: 560px; }
.hero--about .hero-visual { min-height: 520px; }

.blob-hero { inset-block: -40px auto; inset-inline: auto -120px; width: 680px; height: 680px; }
.blob-hero-small { inset-inline-start: -30px; bottom: -20px; width: 300px; height: 230px; }
.hero--about .blob-hero { inset-block: -30px auto; inset-inline: auto -120px; width: 640px; height: 640px; }
.hero--about .blob-hero-small { inset-inline-start: -20px; bottom: -10px; width: 260px; height: 200px; }

.hero-photo {
  position: relative;
  z-index: 1;
  margin-block: 40px 0;
  margin-inline: 60px 0;
  height: 460px;
  border-radius: var(--radius);
  background: #efe6d6;
  box-shadow: var(--shadow-photo);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  overflow: hidden;
}
.hero--about .hero-photo { margin-block: 30px 0; margin-inline: 50px 0; height: 440px; }

.hero-plant { position: absolute; inset-inline-end: 24px; top: 24px; width: 220px; height: 300px; }
.hero--about .hero-plant { inset-inline-end: 32px; top: 28px; width: 150px; height: 210px; }

/* Photo placeholders. When you add a real photo to /images,
   script.js shows it and hides the drawing + caption. */
.photo-caption {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  max-width: 300px;
}
.hero--about .photo-caption { max-width: 320px; }
.photo-note { position: relative; font-size: 12px; color: var(--muted); }
.photo > .photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.has-photo .photo-art,
.photo.has-photo .photo-caption,
.photo.has-photo .photo-note { display: none; }


/* 7. Home page sections ---------------------------------- */

/* Certificates strip */
.trust { background: #fff; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.trust-inner {
  padding-block: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
  align-items: center;
}
.trust-label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-name { font-family: var(--font-display); font-size: 26px; color: var(--brand); letter-spacing: 0.04em; }
.trust-sub { font-size: 13px; color: var(--muted); }

/* Scrolling product ribbon */
.marquee { overflow: hidden; background: var(--yellow); color: var(--brand); border-bottom: 1px solid var(--ink); }
.marquee-track {
  display: flex;
  width: max-content;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: ssg-marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }

/* Products */
.products { background: var(--orange); position: relative; }
.products-inner { padding-block: 24px 96px; display: flex; flex-direction: column; gap: 40px; }
.products .script { max-width: 380px; }

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  display: flex;
  flex-direction: column;
}
.card-media {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.card-art { position: absolute; inset-inline-end: 20px; top: 16px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tag {
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Soft background tints for cards */
.tint-butter { background: #fff3c4; }
.tint-sand   { background: #efe1c8; }
.tint-mint   { background: #dcefdc; }
.tint-leaf   { background: #cfe7d0; }
.tint-wheat  { background: #eadcc4; }
.tint-sky    { background: #dceaf7; }
.tint-tan    { background: #f1dcc6; }
.tint-cocoa  { background: #e6d3c8; }
.tint-jute   { background: #ece2bf; }
.tint-clay   { background: #dfe3d0; }
.tint-peach  { background: #fde2c8; }

.center { display: flex; justify-content: center; }
.center--stack { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.more-note { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: #fff; }

/* Numbered lists (Why us / What we stand for) */
.why { position: relative; padding-block: 64px 96px; display: flex; flex-direction: column; gap: 48px; }
.why .heading-stack { max-width: 720px; }
.deco-plant { inset-inline-end: -60px; top: 0; width: 200px; height: 300px; }

.numbered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  border-top: 1px solid var(--ink);
}
.numbered-item {
  padding-block: 28px;
  padding-inline: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
}
.numbered-num { font-family: var(--font-display); font-size: 48px; color: var(--rust); line-height: 1; }
.item-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

/* Process */
.process { background: #fff; }
.process-inner { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.step-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brand);
}
.step-title { margin: 0; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }

/* Markets */
.markets { position: relative; padding-block: 96px; display: flex; flex-direction: column; gap: 40px; }
.blob-side { inset-inline-start: -140px; top: 40px; width: 300px; height: 240px; }
.markets .heading-stack { position: relative; z-index: 1; max-width: 760px; }
.grid-markets {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.market-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.market-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; letter-spacing: 0.04em; color: var(--brand); }
.market-foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 12px; }


/* Hero trust points */
.hero-copy > *:nth-child(6) { animation-delay: .6s; }
.hero-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 500; color: var(--text); }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks svg { flex-shrink: 0; }

/* Quality standards */
.standards { position: relative; padding-block: 72px 24px; display: flex; flex-direction: column; gap: 40px; }
.grid-standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.std-card {
  background: #fff;
  border-radius: var(--radius);
  border-top: 8px solid var(--tone, var(--brand));
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.std-card--tan  { --tone: #c98a55; }
.std-card--jute { --tone: #c9a94a; }
.std-card--mint { --tone: var(--green); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-inline-start: 30px; font-size: 15px; line-height: 1.55; color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.3 2.3L9.6 3.6' fill='none' stroke='%23234386' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Buy with confidence */
.assure { background: #fff3c4; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.assure-inner { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.assure-lead { max-width: 620px; margin-top: 6px; }
.assure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.assure-card { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-soft); }
.assure-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  background: var(--paper);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.assure-link { align-self: flex-start; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 32px;
}
.fact { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.fact-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.facts .btn { margin-inline-start: auto; padding: 16px 28px; }

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq-inner { padding-block: 88px 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 24px; }
.faq-intro .btn { align-self: flex-start; margin-top: 12px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-block: 22px;
  padding-inline: 0 44px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  translate: 0 -50%;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--rust);
  transition: rotate .3s var(--ease);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item summary:hover { color: var(--brand-dark); }
.faq-item .text { padding-block: 0 24px; padding-inline: 0 44px; max-width: 680px; }


/* 8. Quote form ------------------------------------------ */
.quote { background: var(--brand); color: #fff; }
.quote-inner { padding-block: 32px 112px; display: flex; flex-direction: column; gap: 36px; }
.quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.quote-intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.quote-intro .script { color: var(--yellow-soft); }
.contact-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.contact-label { display: block; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; opacity: 0.85; }

.rfq { display: flex; flex-direction: column; gap: 24px; }

.panel {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-photo);
}
.panel--details { gap: 20px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 40px);
  letter-spacing: 0.04em;
  color: var(--brand);
}
.rfq-count { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust-text); font-weight: 600; }

/* One product row = 6 columns on big screens */
.rfq-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr .9fr 1.25fr 1.4fr 44px;
  gap: 10px;
  align-items: end;
}
.rfq-head {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand);
}
.rfq-head .optional { opacity: 0.6; letter-spacing: 0.08em; }
.rfq-row { padding: 6px 0 14px; border-bottom: 1px solid var(--line-soft); animation: ssg-row .45s var(--ease) both; }
.row-num { display: none; }

.cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cell-label { display: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }

/* Input boxes */
.field {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  min-height: 48px;
  display: flex;
  align-items: center;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237, 115, 40, .28); }
.field input,
.field select,
.field textarea {
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.field :focus-visible { outline: none; }   /* the box itself shows focus */
.field textarea { resize: vertical; }
.field--area { align-items: stretch; }
.field .qty-input { padding-block: 12px; padding-inline: 12px 8px; }
.field .price-input { padding: 12px 8px; }
.field .unit-select {
  width: auto;
  flex-shrink: 0;
  align-self: stretch;
  border-inline-start: 1px solid var(--line-soft);
  border-radius: 0;
  border-start-end-radius: var(--radius);
  border-end-end-radius: var(--radius);
  font-size: 13px;
  padding: 12px 8px;
  background: var(--paper);
  color: var(--brand);
}
.field-prefix { padding-inline-start: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }

.row-remove-wrap { display: flex; justify-content: flex-end; align-items: center; min-height: 48px; }
.btn-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
}

.rfq-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.btn-dashed { border: 2px dashed var(--brand); background: var(--paper); color: var(--brand); padding: 16px 32px; }
.hint { font-size: 14px; color: var(--muted); }

/* Buyer details */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.detail--full { grid-column: 1 / -1; }

.rfq-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; padding-top: 8px; }
.btn-submit { background: #fff; color: var(--brand); padding: 22px 56px; font-size: 14px; gap: 12px; }
.btn-submit:hover { color: var(--brand); }
.btn-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.submit-note { font-size: 15px; color: #fff; }
.form-status { width: 100%; margin: 0; text-align: center; font-size: 15px; color: var(--yellow-soft); }
.form-status:empty { display: none; }

/* Thank-you message */
.thanks {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow: var(--shadow-photo);
}
.thanks:focus { outline: none; }
.thanks-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4.8vw, 56px); letter-spacing: 0.04em; color: var(--brand); }
.thanks-text { margin: 0; font-size: 17px; line-height: 1.6; max-width: 560px; color: var(--text); }
.thanks .script { color: var(--rust-text); }
.thanks-ref { margin: 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.thanks-ref strong { color: var(--brand); letter-spacing: 0.06em; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-outline-sm { border: 2px solid var(--rust); background: #fff; color: var(--rust-text); padding: 16px 32px; }
.btn-outline-sm:hover { color: var(--rust-text); }


/* 9. About page sections --------------------------------- */

/* Company at a glance */
.glance { background: #fff; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.glance-inner { padding-block: 72px; display: flex; flex-direction: column; gap: 36px; }
.section-head--tight { gap: 16px; }
.glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  border-top: 1px solid var(--ink);
  border-inline-start: 1px solid var(--ink);
}
.glance-cell {
  padding: 22px 24px;
  border-inline-end: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.glance-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust-text); font-weight: 600; }
.glance-value { font-size: 17px; font-weight: 500; }

/* Story */
.story {
  position: relative;
  padding-block: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: start;
}
.deco-plant--story { inset-inline-end: -50px; top: 40px; width: 180px; height: 270px; }
.story-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.story-text p { margin: 0; }

/* Chairman */
.chairman { background: var(--brand); color: #fff; }
.chairman-inner {
  padding-block: 32px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.portrait-wrap { position: relative; max-width: 380px; }
.blob-portrait { inset-inline-start: -30px; top: -30px; width: 260px; height: 260px; }
.portrait {
  position: relative;
  height: 440px;
  border-radius: var(--radius);
  background: #e9eef8;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) -14px 10px 49px 0;
}
.portrait .photo-caption { padding: 12px 16px; line-height: normal; }
.chairman-text { display: flex; flex-direction: column; gap: 22px; }
.quote-text { margin: 0; font-size: 22px; line-height: 1.6; }
.signature { display: flex; flex-direction: column; gap: 2px; }
.signature-name { font-family: var(--font-script); font-size: 40px; color: var(--yellow-soft); line-height: 1; }
.signature-role { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Leadership */
.leadership { padding-block: 72px 96px; display: flex; flex-direction: column; gap: 40px; }
.leadership .heading-stack { max-width: 760px; }
.leadership .lead { line-height: 1.6; }
.grid-leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  max-width: 860px;
}
.leader-photo { position: relative; height: 400px; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.leader-photo > .photo-img,
.portrait > .photo-img { object-position: center 20%; }
.card-body--leader { gap: 10px; }
.leader-links {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

/* Values */
.values { background: #fff; border-top: 1px solid var(--ink); }
.values-inner { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }

/* Verify us */
.verify {
  position: relative;
  padding-block: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}
.verify .blob-side { top: 60px; }
.verify-intro { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.verify-intro .btn { align-self: flex-start; margin-top: 8px; }
.doc-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.doc-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
}
.doc-item svg { flex-shrink: 0; }

/* How we work with you */
.visit { background: #fff; border-top: 1px solid var(--ink); }
.visit-inner {
  padding-block: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}
.visit-info { display: flex; flex-direction: column; gap: 20px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 18px;
  font-size: 16px;
  line-height: 1.5;
}
.info-label { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust-text); }

/* Call to action */
.cta { background: var(--orange); color: #fff; }
.cta-inner { padding-block: 80px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-text { display: flex; flex-direction: column; gap: 8px; }
.btn-cta { background: #fff; color: var(--brand); padding: 22px 48px; font-size: 14px; }
.btn-cta:hover { color: var(--brand); }


/* 10. Footer --------------------------------------------- */
.site-footer { background: var(--navy); color: #fff; }
.footer-inner { padding-block: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.06em; }
.footer-tag { font-size: 13px; opacity: 0.85; }
.footer-reg { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }


/* Footer columns */
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-col--brand .footer-name { line-height: 1.05; }
.footer-grid { padding-block: 64px 40px; display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; }
.footer-col a { color: #fff; text-decoration: none; opacity: 0.9; }
.footer-col a:hover { color: #fff; text-decoration: underline; opacity: 1; }
.footer-blurb { margin: 6px 0 0; font-size: 14px; line-height: 1.6; opacity: 0.85; max-width: 320px; }
.footer-head { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow-soft); }
.footer-bottom { position: relative; padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; opacity: 0.8; }


/* 11. Small screens -------------------------------------- */

/* Slightly tighter menu on mid-size laptops */
@media (max-width: 1200px) {
  .nav-links { gap: 24px; }
}

/* Tablets & phones: hamburger menu */
@media (max-width: 1024px) {
  .nav { flex-wrap: nowrap; padding-block: 16px; }
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
  }
  .js .nav-menu:not(.is-open) { display: none; }
  .nav-menu.is-open { animation: ssg-menu .25s var(--ease) both; }
  html:not(.js) .nav-menu { position: static; }   /* if JavaScript is off, just show the links */

  .nav-links { flex-direction: column; gap: 0; font-size: 15px; }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { align-self: stretch; }
}

/* Product rows become 2 columns */
@media (max-width: 900px) {
  .rfq-head { display: none; }
  .rfq-grid { grid-template-columns: 1fr 1fr; }
  .rfq-grid > .wide { grid-column: 1 / -1; }
  .cell-label { display: block; }
  .row-num {
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.06em;
    color: var(--brand);
  }
  .row-remove-wrap { grid-column: 2; grid-row: 1; min-height: 44px; }
  .rfq-row { padding: 14px 0 18px; }
}

@media (max-width: 700px) {
  .wave { height: 64px; }
  .why, .markets, .story, .verify { padding-block: 64px; }
  .process-inner, .values-inner, .visit-inner { padding-block: 64px; }
  .glance-inner, .leadership { padding-block: 56px 72px; }
  .products-inner { padding-bottom: 72px; }
  .quote-inner { padding-bottom: 80px; }
  .cta-inner { padding-block: 64px; }

  .deco-plant { width: 120px; height: 180px; inset-inline-end: -50px; }
  .deco-plant--story { width: 120px; height: 180px; inset-inline-end: -40px; top: 20px; }

  .panel { padding: 22px 18px; }
  .thanks { padding: 40px 20px; }
  .market-card { padding: 26px; }
  .marquee-track { font-size: 26px; padding: 14px 0; }
  .quote-text { font-size: 19px; }

  .trust-inner { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .trust-label { grid-column: 1 / -1; }
  .trust-name { font-size: 22px; }
}

@media (max-width: 600px) {
  .topbar-inner { font-size: 11px; letter-spacing: 0.1em; gap: 8px 12px; }
  .topbar-info { gap: 4px 16px; }

  .hero { padding-block: 24px 64px; gap: 36px; }
  .hero-visual, .hero--about .hero-visual { min-height: 420px; }
  .hero-photo, .hero--about .hero-photo { margin-block: 24px 0; margin-inline: 20px 0; height: 360px; }
  .blob-hero, .hero--about .blob-hero { inset-block: -30px auto; inset-inline: auto -110px; width: 460px; height: 460px; }
  .blob-hero-small, .hero--about .blob-hero-small { width: 210px; height: 160px; }
  .hero-plant { width: 150px; height: 205px; }
  .hero--about .hero-plant { width: 110px; height: 155px; }

  .btn-row .btn { flex: 1 1 auto; }
  .portrait { height: 380px; }
}

/* Product rows: one column on phones */
@media (max-width: 560px) {
  .rfq-grid { grid-template-columns: 1fr auto; }
  .rfq-grid > .cell { grid-column: 1 / -1; }
  .rfq-actions .btn { width: 100%; }
  .btn-submit { width: 100%; padding-inline: 24px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .nav-menu { padding-inline: 16px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-name { font-size: 24px; }
  .logo-sub { letter-spacing: 0.2em; }
  .btn-primary, .btn-white, .btn-cta { padding-inline: 28px; }
  .btn-outline { padding-inline: 26px; }
}


/* New home sections & footer on smaller screens */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
}
@media (max-width: 700px) {
  .standards { padding-block: 56px 16px; }
  .assure-inner, .faq-inner { padding-block: 64px; }
  .std-card, .assure-card { padding: 24px; }
  .facts { padding: 22px; }
  .facts .btn { margin-inline-start: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 28px; }
}


/* 12. Reduced motion ------------------------------------- */
/* If a visitor asks their device for less motion, all animation stops. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .draw { stroke-dashoffset: 0; }   /* show the tick mark straight away */
  .reveal-fallback .reveal { opacity: 1; translate: none; }
}


/* 13. Arabic pages (ar/ folder, right-to-left) ------------ */
/* Layout mirrors automatically (logical properties above).
   This only swaps fonts and undoes Latin-only styling:
   Arabic letters must join, so no letter-spacing or capitals. */
html[lang="ar"] {
  --font-body: 'IBM Plex Sans Arabic', 'Jost', Tahoma, sans-serif;
  --font-display: 'Cairo', 'Bebas Neue', Tahoma, sans-serif;
  --font-script: 'Aref Ruqaa', 'Caveat', serif;
}
html[lang="ar"] body * { letter-spacing: normal !important; text-transform: none !important; }

/* Bebas Neue is very condensed; Arabic needs more height and less size */
html[lang="ar"] .display,
html[lang="ar"] .hero-title,
html[lang="ar"] .card-title,
html[lang="ar"] .market-title,
html[lang="ar"] .panel-title,
html[lang="ar"] .thanks-title,
html[lang="ar"] .step-title,
html[lang="ar"] .item-title,
html[lang="ar"] .trust-name { font-weight: 700; line-height: 1.3; }
html[lang="ar"] .hero-title,
html[lang="ar"] .hero--about .hero-title { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.25; }
html[lang="ar"] .display-80 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.3; }
html[lang="ar"] .display-72 { font-size: clamp(32px, 4.4vw, 52px); }
html[lang="ar"] .display-64 { font-size: clamp(30px, 4vw, 48px); }
html[lang="ar"] .card-title { font-size: 26px; }
html[lang="ar"] .market-title { font-size: 28px; }
html[lang="ar"] .trust-name { font-size: 20px; }
html[lang="ar"] .marquee-track { font-size: 26px; font-weight: 700; }
html[lang="ar"] .script { line-height: 1.5; }
html[lang="ar"] .lead,
html[lang="ar"] .text { line-height: 1.85; }

/* The logo, footer name and signatures stay in English */
html[lang="ar"] .logo-name,
html[lang="ar"] .footer-name { font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif; font-weight: 400; }
html[lang="ar"] .logo-name { letter-spacing: 0.06em !important; }
html[lang="ar"] .signature-name { font-family: 'Caveat', 'Segoe Print', cursive; }

/* Arrows point the other way, and the ribbon scrolls to the right */
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .marquee-track { animation-name: ssg-marquee-rtl; }
@keyframes ssg-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }


/* 14. Product, products and guide pages ------------------- */
/* Breadcrumb ("Home › Products › Rice") */
.crumbs { padding-top: 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--rust); }
html[lang="ar"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Product page hero: smaller headline than the home page */
.hero--product { padding-block: 24px 80px; }
.hero--product .hero-title { font-size: clamp(46px, 6.4vw, 84px); line-height: 0.9; }
html[lang="ar"] .hero--product .hero-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.3; }
.hero--product .hero-photo { height: 420px; }

/* Sections */
.p-intro { padding-block: 24px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.p-intro-body { display: flex; flex-direction: column; gap: 18px; }
.p-types, .p-logistics, .p-related { padding-block: 24px 80px; display: flex; flex-direction: column; gap: 36px; }
.p-logistics { padding-top: 80px; }
.type-card { gap: 12px; }
.spec-grid { margin: 0; }
.spec-grid dd { margin: 0; }
.spec-note { margin: 0; font-size: 13px; color: var(--muted); }
.moq-btn { align-self: flex-start; margin-top: auto; }

/* Related products */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.related-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); text-decoration: none; color: var(--brand); padding-bottom: 20px; }
.related-media { position: relative; display: block; height: 140px; overflow: hidden; }
.related-name { padding-inline: 20px; padding-top: 12px; font-family: var(--font-display); font-size: 28px; letter-spacing: 0.04em; line-height: 1; }
.related-more { padding-inline: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--rust-text); }
.related-card--all { justify-content: center; background: var(--yellow); padding-block: 28px; }
html[lang="ar"] .related-name { font-weight: 700; font-size: 22px; line-height: 1.3; }

/* Links on product cards (home + products page) */
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--rust-text); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.card-more:hover { color: var(--brand); }

/* Products page and 404 heading */
.hub-head { padding-block: 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.hub-head .lead { max-width: 720px; }
.hub-title { font-size: clamp(46px, 6.4vw, 84px); line-height: 0.9; }
html[lang="ar"] .hub-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.3; }

/* Import guide article */
.guide { padding-block: 24px 80px; display: flex; flex-direction: column; gap: 48px; max-width: 860px; }
.guide-head { display: flex; flex-direction: column; gap: 20px; }
.guide-step { display: flex; flex-direction: column; gap: 16px; }
.display-48 { font-size: clamp(32px, 4vw, 48px); }
.guide-products { margin: 0; padding-inline-start: 20px; columns: 2; font-size: 15px; line-height: 1.9; }
.guide-products a { color: var(--brand); }

/* Product links row in the footer */
.footer-products { padding-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.footer-product-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer-product-links a { color: #fff; opacity: 0.9; text-decoration: none; }
.footer-product-links a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 900px) {
  .p-intro { grid-template-columns: 1fr; gap: 24px; padding-bottom: 56px; }
  .p-types, .p-logistics, .p-related { padding-bottom: 56px; }
  .p-logistics { padding-top: 56px; }
  .hero--product .hero-photo { height: 340px; }
}
@media (max-width: 560px) {
  .guide-products { columns: 1; }
}

/* About hero: company profile card */
.id-card {
  position: relative;
  z-index: 1;
  margin-block: 30px 0;
  margin-inline: 50px 0;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-photo);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: ssg-photo 1.1s .3s var(--ease) both;
}
.id-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); color: var(--brand); }
.id-card-logo { display: flex; flex-shrink: 0; }
.id-card-title { display: flex; flex-direction: column; gap: 2px; }
.id-card-kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust-text); }
.id-card-name { font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--brand); }
.id-card-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.id-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.id-row dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.id-row dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); text-align: end; }
.id-row dd a { color: var(--brand); }
.id-card-foot { margin: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: #eef6ef; font-size: 14px; line-height: 1.4; color: var(--ink); }
.id-card-foot svg { flex-shrink: 0; }
@media (max-width: 720px) { .id-card { margin-inline: 12px 0; padding: 24px; } .id-card-name { font-size: 28px; } }

/* How we work with you: ways to meet & verify */
.meet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meet-item { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; }
.meet-item svg { flex-shrink: 0; margin-top: 2px; }
.meet-item .item-title { margin: 0 0 4px; }
.meet-item .text { margin: 0; }
.verify-note { color: var(--muted); }
.verify-note a { color: var(--brand); }

/* Links on dark bars: top bar + contact block beside the quote form */
.topbar-info a,
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-info a:hover,
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-info a:focus-visible,
.contact-list a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
