/* TG Star Foodstuff Trading: bilingual (EN/AR) trade website. Brand palette from the TG Star card: deep green and gold. Layout follows the client's reference: centred-logo header, rounded cards, numbered steps, masonry gallery. */
:root {
  --bg: #FBFAF6; --white: #fff; --surface: #F2F0E7; --ink: #12261C; --muted: #55665C;
  --primary: #0B2218; --primary-2: #123222; --gold: #A8822C; --gold-hi: #E7C873; --gold-text: #7F6119;
  --line: #E3E0D2; --on: #F3EEDD; --on-muted: #B2C0B6; --err: #9B2C2C; --wa: #1FA855;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html[lang="ar"] { --display: "Cairo", "Segoe UI", Tahoma, sans-serif; --body: "Cairo", "Segoe UI", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; background: radial-gradient(circle, rgba(11, 34, 24, .075) 1px, transparent 1.3px) 0 0 / 26px 26px, var(--bg); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.16; margin: 0; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-hi); color: var(--primary); }
.in { max-width: 1180px; margin-inline: auto; padding-inline: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 60; background: var(--primary); color: var(--on); padding: 8px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
[dir="ltr"] .ar-only, [dir="rtl"] .en-only { display: none; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }

.label { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .label { letter-spacing: 0; font-size: 14px; text-transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 34, 24, .14); }
.btn:active { transform: none; box-shadow: none; }
.btn.solid { background: var(--primary); color: var(--on); border-color: var(--primary); }
.btn.solid:hover { background: var(--primary-2); }
.btn.gold { background: var(--gold-hi); color: var(--primary); border-color: var(--gold-hi); }
.btn.gold:hover { background: #F0D88E; }
.textlink { display: inline-block; padding: 6px 0; font-weight: 600; text-decoration: none; color: var(--gold-text); border-bottom: 1.5px solid var(--gold); transition: color .15s; }
.textlink:hover { color: var(--primary); }
.arrow::after { content: " \2192"; }
[dir="rtl"] .arrow::after { content: " \2190"; }

/* header: centred logo, split navigation */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.top.scrolled { box-shadow: 0 8px 22px rgba(11, 34, 24, .08); }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; min-height: 80px; }
.nav-l { display: flex; gap: 28px; justify-content: flex-end; }
.right { display: flex; align-items: center; gap: 28px; }
.nav-r { display: flex; gap: 28px; }
.top nav a:not(.lang) { font-size: 16px; font-weight: 500; text-decoration: none; padding: 8px 0; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 2px) / 0 2px no-repeat; transition: color .15s, background-size .25s; }
[dir="rtl"] .top nav a:not(.lang) { background-position: 100% calc(100% - 2px); }
.top nav a:not(.lang):hover { color: var(--gold-text); background-size: 100% 2px; }
.top nav a[aria-current="page"] { color: var(--gold-text); background-size: 100% 2px; }
.logo { position: relative; display: block; width: 60px; height: 60px; }
.logo img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--primary); }
.flag { position: absolute; top: -12px; inset-inline-end: -38px; width: 40px; height: 32px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.flag .w { animation: wave 1.9s ease-in-out infinite; animation-delay: calc(var(--i) * -.075s); }
.flag .d { opacity: 0; animation: fold 1.9s ease-in-out infinite; animation-delay: calc(var(--i) * -.075s); }
.flag .l { opacity: 0; animation: fold 1.9s ease-in-out infinite; animation-delay: calc(var(--i) * -.075s - .95s); }
@keyframes wave { 0%,100% { transform: translateY(calc(var(--a) * -1px)); } 50% { transform: translateY(calc(var(--a) * 1px)); } }
@keyframes fold { 0%,100% { opacity: 0; } 50% { opacity: .16; } }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; background: var(--white); transition: border-color .15s, color .15s; }
.lang:hover { border-color: var(--gold); color: var(--gold-text); }
html[lang="ar"] .lang { font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: none; flex-direction: column; padding-block: 4px 12px; border-top: 1px solid var(--line); }
.mnav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.top .mnav a:not(.lang) { background: none; }
.mnav a[aria-current="page"] { color: var(--gold-text); border-inline-start: 3px solid var(--gold); padding-inline-start: 12px; }
.mnav a:last-child { border-bottom: 0; }
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--gold-hi)); pointer-events: none; }
[dir="rtl"] .progress { transform-origin: right; }
@media (max-width: 1120px) {
  .hdr { grid-template-columns: auto 1fr; gap: 14px; min-height: 70px; }
  .nav-l, .nav-r { display: none; }
  .right { justify-self: end; gap: 10px; }
  .burger { display: inline-flex; }
  .top.open .mnav { display: flex; }
  .logo, .logo img { width: 50px; height: 50px; }
  .flag { inset-inline-end: -34px; width: 36px; height: 29px; top: -10px; }
}

/* page structure */
main > section, .sec { padding-block: 84px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.plain { background: var(--white); }
.sh { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sh h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); }
.sh p { margin-top: 12px; font-size: 19px; color: var(--muted); }
.sh.l { text-align: start; margin-inline: 0; max-width: 640px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; margin-top: 40px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); background: var(--white); }
.hero-l { position: relative; padding-block: 76px 80px; padding-inline-start: max(18px, calc((100vw - 1180px) / 2 + 18px)); padding-inline-end: 48px; align-self: center; background: linear-gradient(180deg, #F6F5EE, var(--white)); height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-l::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.route { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }
html[lang="ar"] .route { letter-spacing: 0; font-size: 14px; }
.route i { display: block; width: 38px; border-top: 2px dashed var(--gold); position: relative; }
.route i::after { content: ""; position: absolute; inset-inline-end: -2px; top: -5px; border-inline-start: 7px solid var(--gold); border-block: 4px solid transparent; }
[dir="rtl"] .route i::after { border-inline-start: 0; border-inline-end: 7px solid var(--gold); }
.hero h1 { margin-top: 20px; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.08; color: var(--primary); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 22px; max-width: 48ch; font-size: 19px; color: var(--muted); }
.cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.facts { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.facts b { display: block; font-family: var(--display); font-size: 22px; color: var(--primary); }
.facts span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.hero-r { background: var(--primary); display: grid; place-items: center; padding: 40px 28px 36px; min-height: 420px; }
.mapwrap { width: 100%; max-width: 680px; }
.cmap { display: block; width: 100%; height: auto; }
.cap { margin-top: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
html[lang="ar"] .cap { letter-spacing: 0; font-size: 14px; }
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip .in { display: flex; align-items: center; gap: 30px; padding-block: 20px; flex-wrap: wrap; }
.strip .names { display: flex; gap: 30px; flex-wrap: wrap; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--primary); }

/* cards */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(11, 34, 24, .10); }
.card .pic { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); transition: transform .5s ease; }
.card:hover .pic { transform: scale(1.04); }
.picbox { overflow: hidden; }
.card.dk .pic { background: var(--primary); }
.card .cb { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 26px; color: var(--primary); }
.card p { color: var(--muted); font-size: 17px; }
.card .rq { margin-top: auto; padding-top: 12px; color: var(--gold-text); font-weight: 600; text-decoration: none; }
.card .rq::after { content: " \2192"; }
[dir="rtl"] .card .rq::after { content: " \2190"; }
.card .rq::before { content: ""; position: absolute; inset: 0; }
.card.plainc { border-top: 4px solid var(--gold); }
.card.plainc .cb { padding: 32px 30px; }

/* steps */
.steps2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; text-align: center; }
.circ { width: 94px; height: 94px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--gold); background: var(--white); display: grid; place-items: center; font: 700 38px/1 var(--display); color: var(--gold-text); box-shadow: 0 10px 24px rgba(11, 34, 24, .08); transition: background .25s, color .25s, transform .25s, box-shadow .25s; }
.step:hover .circ { background: var(--gold); color: #fff; transform: translateY(-5px) scale(1.06); box-shadow: 0 16px 32px rgba(168, 130, 44, .35); }
.step h3 { font-size: 25px; color: var(--primary); }
.step p { margin: 8px auto 0; max-width: 28ch; color: var(--muted); font-size: 17px; }

/* own brand */
.own { background: var(--primary); color: var(--on); border-block: 1px solid var(--primary-2); }
.own .in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.own img { border-radius: 22px; width: 100%; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.own .label { color: var(--gold-hi); }
.own h2 { margin-top: 10px; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.own h2 em { font-style: normal; color: var(--gold-hi); }
.own p { margin-top: 16px; color: var(--on-muted); max-width: 46ch; font-size: 19px; }
.own .cta { margin-top: 28px; }
.own :focus-visible, .band :focus-visible, footer :focus-visible, .hero-r :focus-visible { outline-color: var(--gold-hi); }

/* inner pages */
.phead { padding-block: 64px 28px; }
.phead h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--primary); margin-top: 12px; }
.phead .lead { margin-top: 14px; max-width: 58ch; font-size: 20px; color: var(--muted); }
.crumbs { font-size: 14.5px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px 30px 32px; }
.panel h3 { font-size: 25px; color: var(--primary); margin-bottom: 14px; }
.panel p { color: var(--muted); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.intro .sh { margin-bottom: 0; }
.prose p { font-size: 19px; line-height: 1.75; color: var(--muted); max-width: 62ch; }
.prose p + p { margin-top: 18px; }
.prose bdi { color: var(--ink); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.table th, .table td { text-align: start; padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { width: 32%; font-weight: 600; color: var(--muted); font-size: 15.5px; background: #FAF9F4; }
.ar { direction: rtl; unicode-bidi: isolate; font-size: 20px; font-family: "Cairo", "Segoe UI", sans-serif; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.office address { font-style: normal; color: var(--muted); margin-top: 10px; }
.office .num { margin-top: 14px; font-size: 21px; font-weight: 600; }
.office .num a { text-decoration: none; display: inline-block; padding: 4px 0; }
.maplink { display: inline-block; margin-top: 8px; padding: 4px 0; color: var(--gold-text); font-weight: 600; }
.mapbox { background: var(--primary); border-radius: 22px; padding: 28px 24px 22px; }
.mapbox .mapwrap { margin-inline: auto; }

/* gallery */
.masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g-item { display: block; width: 100%; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); cursor: zoom-in; text-align: start; font: inherit; color: inherit; transition: transform .22s, box-shadow .22s, border-color .22s; }
.g-item:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(11, 34, 24, .12); }
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.g-item img[src$="map.svg"] { background: var(--primary); object-fit: contain; padding: 14px; }
.g-item span { display: block; padding: 12px 16px 14px; font-size: 15px; color: var(--muted); }
.lb { border: 0; padding: 0; background: transparent; max-width: min(960px, 94vw); max-height: 92vh; overflow: visible; }
.lb::backdrop { background: rgba(5, 18, 12, .82); }
.lb img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 16px; }
.lb p { margin-top: 12px; text-align: center; color: #fff; font-size: 16px; }
.lb .x { position: absolute; top: -14px; inset-inline-end: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold-hi); color: var(--primary); font-size: 24px; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.thumbs a { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: transform .22s, border-color .22s; }
.thumbs a:hover { transform: translateY(-3px); border-color: var(--gold); }
.thumbs img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }

/* catalogue */
.cat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.cat > * { min-width: 0; }
.cat img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(11, 34, 24, .15); max-width: 420px; margin-inline: auto; }

/* contact */
.cgrid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.cinfo { display: grid; gap: 20px; }
.cinfo b { display: block; margin-bottom: 2px; }
.cinfo a { display: inline-block; padding: 4px 0; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.f label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .f label { letter-spacing: 0; font-size: 15px; text-transform: none; }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CFCBB9; border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 17px/1.4 var(--body); }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--primary); outline: 2px solid var(--gold-hi); outline-offset: 0; }
.req { color: var(--err); margin-inline-start: 2px; }
.err { display: block; margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--err); }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(155, 44, 44, .12); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
[hidden] { display: none !important; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
#copyState { font-size: 14.5px; color: var(--gold-text); min-height: 1.2em; }
#copyState.bad { color: var(--err); }
.note { font-size: 14.5px; color: var(--muted); }
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--display); font-size: 20px; font-weight: 600; position: relative; transition: color .15s; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); color: var(--gold-text); font: 400 26px var(--body); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--gold-text); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq details[open] p { animation: fade .35s ease both; }

/* band + footer */
.band { background: var(--primary); color: var(--on); padding-block: 60px; }
.band .in { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.band p { margin-top: 8px; color: var(--on-muted); max-width: 54ch; }
footer { background: var(--primary); color: var(--on-muted); border-top: 1px solid var(--primary-2); padding-block: 64px 96px; }
.band + footer { border-top: 1px solid var(--primary-2); }
footer .in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.05fr); gap: 40px 44px; }
footer h4 { margin: 0 0 14px; font: 600 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
html[lang="ar"] footer h4 { letter-spacing: 0; font-size: 15px; text-transform: none; }
footer address, footer p { font-style: normal; font-size: 16px; line-height: 1.7; }
footer a { text-decoration: none; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot-links a { display: inline-block; padding: 7px 0; font-size: 16px; min-height: 36px; }
footer .h4-2 { margin-top: 26px; }
.f-brand img { width: 108px; height: auto; display: block; }
.f-brand p { margin-top: 14px; max-width: 24ch; color: var(--on); font: 600 19px/1.35 var(--display); }
.f-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; min-height: 46px; padding: 0 20px 0 16px; border-radius: 999px; background: #11803D; color: #fff; font: 600 15.5px/1 var(--body); transition: transform .2s, box-shadow .2s; }
.f-wa svg { width: 22px; height: 22px; }
.f-wa:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.f-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.f-contact li { display: grid; gap: 2px; font-size: 16px; line-height: 1.4; }
.f-contact li > span { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-muted); opacity: .8; }
html[lang="ar"] .f-contact li > span { letter-spacing: 0; text-transform: none; font-size: 14px; }
.f-contact a { color: var(--on); padding-block: 2px; }
footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .25s; }
[dir="rtl"] footer a { background-position: 100% 100%; }
footer a:hover { background-size: 100% 1px; }
footer .f-wa { background-image: none; }
footer address { color: var(--on-muted); }
footer a:hover { color: var(--gold-hi); }
footer .legal { grid-column: 1 / -1; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--primary-2); padding-top: 22px; font-size: 14.5px; }
footer img { width: 120px; }
footer .legal .dev a { color: var(--gold-hi); font-weight: 600; }
footer .legal .dev a:hover { color: var(--on); }

/* floating buttons */
.wa-float { position: fixed; inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(11, 34, 24, .35); transition: transform .15s, box-shadow .15s; animation: pop .5s .9s ease both; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px rgba(11, 34, 24, .4); }
.totop { position: fixed; inset-inline-start: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--primary); cursor: pointer; box-shadow: 0 6px 18px rgba(11, 34, 24, .14); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--primary); }
.wa-float { transition: opacity .25s, transform .25s, box-shadow .25s; }
body.at-foot .wa-float { opacity: 0; visibility: hidden; transform: scale(.85); pointer-events: none; }
body.at-foot .totop { inset-inline-start: auto; inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: rgba(231, 200, 115, .4); } 100% { background: transparent; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hero-l > *, .phead .in > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-l > :nth-child(2), .phead .in > :nth-child(2) { animation-delay: .08s; }
.hero-l > :nth-child(3), .phead .in > :nth-child(3) { animation-delay: .16s; }
.hero-l > :nth-child(4) { animation-delay: .24s; }
.hero-l > :nth-child(5) { animation-delay: .32s; }
.mapwrap { animation: fade 1s .2s ease both; }
.rv { opacity: 0; translate: 0 22px; transition: opacity .6s ease var(--d, 0s), translate .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .25s, color .25s; }
.rv.in-view { opacity: 1; translate: none; }
[id] { scroll-margin-top: 96px; }
.card:target, .panel:target { animation: flash 1.8s ease; }
[aria-invalid="true"] { animation: shake .25s ease; }

/* responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-l { padding: 52px max(18px, env(safe-area-inset-right, 0px)) 48px max(18px, env(safe-area-inset-left, 0px)); }
  .hero-r { min-height: 0; padding: 32px 16px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .own .in, .cat, .cgrid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; }
  .f-brand img { grid-row: span 2; }
  .f-brand p { margin: 0; max-width: none; }
  .f-wa { margin-top: 0; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  main > section, .sec { padding-block: 60px; }
  .g2, .g3, .g4, .offices, .row { grid-template-columns: minmax(0, 1fr); }
  .steps2 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .facts li:last-child { border-bottom: 0; }
  .facts b { font-size: 19px; }
  .hero-l::before { width: 4px; }
  .cta .btn, .actions .btn, .band .btn { width: 100%; }
  .table th, .table td { display: block; width: 100%; padding: 12px 18px 0; border: 0; background: none; }
  .table td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .table tr:last-child td { border-bottom: 0; }
  .form { padding: 20px; }
  .thumbs { gap: 12px; }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g-item { border-radius: 16px; }
  .g-item span { padding: 10px 12px 12px; font-size: 14px; }
  footer .in { grid-template-columns: minmax(0, 1fr); }
  footer { padding-block: 48px 96px; }
  .f-brand { grid-template-columns: 1fr; }
  .f-brand img { grid-row: auto; width: 96px; }
  .foot-links { column-gap: 12px; }
  .totop { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; translate: none !important; }
}
@media print { .top, .wa-float, .totop, .progress { display: none !important; } .rv { opacity: 1 !important; translate: none !important; } }
